(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["vendor"],{ /***/ "+1HZ": /*!*******************************************************************!*\ !*** ./node_modules/@aws-sdk/util-utf8-browser/dist/es/pureJs.js ***! \*******************************************************************/ /*! exports provided: fromUtf8, toUtf8 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; }); /** * Converts a JS string from its native UCS-2/UTF-16 representation into a * Uint8Array of the bytes used to represent the equivalent characters in UTF-8. * * Cribbed from the `goog.crypt.stringToUtf8ByteArray` function in the Google * Closure library, though updated to use typed arrays. */ var fromUtf8 = function (input) { var bytes = []; for (var i = 0, len = input.length; i < len; i++) { var value = input.charCodeAt(i); if (value < 0x80) { bytes.push(value); } else if (value < 0x800) { bytes.push((value >> 6) | 192, (value & 63) | 128); } else if (i + 1 < input.length && (value & 0xfc00) === 0xd800 && (input.charCodeAt(i + 1) & 0xfc00) === 0xdc00) { var surrogatePair = 0x10000 + ((value & 1023) << 10) + (input.charCodeAt(++i) & 1023); bytes.push((surrogatePair >> 18) | 240, ((surrogatePair >> 12) & 63) | 128, ((surrogatePair >> 6) & 63) | 128, (surrogatePair & 63) | 128); } else { bytes.push((value >> 12) | 224, ((value >> 6) & 63) | 128, (value & 63) | 128); } } return Uint8Array.from(bytes); }; /** * Converts a typed array of bytes containing UTF-8 data into a native JS * string. * * Partly cribbed from the `goog.crypt.utf8ByteArrayToString` function in the * Google Closure library, though updated to use typed arrays and to better * handle astral plane code points. */ var toUtf8 = function (input) { var decoded = ""; for (var i = 0, len = input.length; i < len; i++) { var byte = input[i]; if (byte < 0x80) { decoded += String.fromCharCode(byte); } else if (192 <= byte && byte < 224) { var nextByte = input[++i]; decoded += String.fromCharCode(((byte & 31) << 6) | (nextByte & 63)); } else if (240 <= byte && byte < 365) { var surrogatePair = [byte, input[++i], input[++i], input[++i]]; var encoded = "%" + surrogatePair.map(function (byteValue) { return byteValue.toString(16); }).join("%"); decoded += decodeURIComponent(encoded); } else { decoded += String.fromCharCode(((byte & 15) << 12) | ((input[++i] & 63) << 6) | (input[++i] & 63)); } } return decoded; }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVyZUpzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3B1cmVKcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFDSCxNQUFNLENBQUMsSUFBTSxRQUFRLEdBQUcsVUFBQyxLQUFhO0lBQ3BDLElBQU0sS0FBSyxHQUFrQixFQUFFLENBQUM7SUFDaEMsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsR0FBRyxHQUFHLEtBQUssQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLEdBQUcsRUFBRSxDQUFDLEVBQUUsRUFBRTtRQUNoRCxJQUFNLEtBQUssR0FBRyxLQUFLLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQ2xDLElBQUksS0FBSyxHQUFHLElBQUksRUFBRTtZQUNoQixLQUFLLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO1NBQ25CO2FBQU0sSUFBSSxLQUFLLEdBQUcsS0FBSyxFQUFFO1lBQ3hCLEtBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQyxLQUFLLElBQUksQ0FBQyxDQUFDLEdBQUcsR0FBVSxFQUFFLENBQUMsS0FBSyxHQUFHLEVBQVEsQ0FBQyxHQUFHLEdBQVUsQ0FBQyxDQUFDO1NBQ3hFO2FBQU0sSUFBSSxDQUFDLEdBQUcsQ0FBQyxHQUFHLEtBQUssQ0FBQyxNQUFNLElBQUksQ0FBQyxLQUFLLEdBQUcsTUFBTSxDQUFDLEtBQUssTUFBTSxJQUFJLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEdBQUcsTUFBTSxDQUFDLEtBQUssTUFBTSxFQUFFO1lBQy9HLElBQU0sYUFBYSxHQUFHLE9BQU8sR0FBRyxDQUFDLENBQUMsS0FBSyxHQUFHLElBQVksQ0FBQyxJQUFJLEVBQUUsQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxHQUFHLElBQVksQ0FBQyxDQUFDO1lBQ3hHLEtBQUssQ0FBQyxJQUFJLENBQ1IsQ0FBQyxhQUFhLElBQUksRUFBRSxDQUFDLEdBQUcsR0FBVSxFQUNsQyxDQUFDLENBQUMsYUFBYSxJQUFJLEVBQUUsQ0FBQyxHQUFHLEVBQVEsQ0FBQyxHQUFHLEdBQVUsRUFDL0MsQ0FBQyxDQUFDLGFBQWEsSUFBSSxDQUFDLENBQUMsR0FBRyxFQUFRLENBQUMsR0FBRyxHQUFVLEVBQzlDLENBQUMsYUFBYSxHQUFHLEVBQVEsQ0FBQyxHQUFHLEdBQVUsQ0FDeEMsQ0FBQztTQUNIO2FBQU07WUFDTCxLQUFLLENBQUMsSUFBSSxDQUFDLENBQUMsS0FBSyxJQUFJLEVBQUUsQ0FBQyxHQUFHLEdBQVUsRUFBRSxDQUFDLENBQUMsS0FBSyxJQUFJLENBQUMsQ0FBQyxHQUFHLEVBQVEsQ0FBQyxHQUFHLEdBQVUsRUFBRSxDQUFDLEtBQUssR0FBRyxFQUFRLENBQUMsR0FBRyxHQUFVLENBQUMsQ0FBQztTQUNqSDtLQUNGO0lBRUQsT0FBTyxVQUFVLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ2hDLENBQUMsQ0FBQztBQUVGOzs7Ozs7O0dBT0c7QUFDSCxNQUFNLENBQUMsSUFBTSxNQUFNLEdBQUcsVUFBQyxLQUFpQjtJQUN0QyxJQUFJLE9BQU8sR0FBRyxFQUFFLENBQUM7SUFDakIsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsR0FBRyxHQUFHLEtBQUssQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLEdBQUcsRUFBRSxDQUFDLEVBQUUsRUFBRTtRQUNoRCxJQUFNLElBQUksR0FBRyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDdEIsSUFBSSxJQUFJLEdBQUcsSUFBSSxFQUFFO1lBQ2YsT0FBTyxJQUFJLE1BQU0sQ0FBQyxZQUFZLENBQUMsSUFBSSxDQUFDLENBQUM7U0FDdEM7YUFBTSxJQUFJLEdBQVUsSUFBSSxJQUFJLElBQUksSUFBSSxHQUFHLEdBQVUsRUFBRTtZQUNsRCxJQUFNLFFBQVEsR0FBRyxLQUFLLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztZQUM1QixPQUFPLElBQUksTUFBTSxDQUFDLFlBQVksQ0FBQyxDQUFDLENBQUMsSUFBSSxHQUFHLEVBQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxHQUFHLENBQUMsUUFBUSxHQUFHLEVBQVEsQ0FBQyxDQUFDLENBQUM7U0FDakY7YUFBTSxJQUFJLEdBQVUsSUFBSSxJQUFJLElBQUksSUFBSSxHQUFHLEdBQVcsRUFBRTtZQUNuRCxJQUFNLGFBQWEsR0FBRyxDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsRUFBRSxDQUFDLENBQUMsRUFBRSxLQUFLLENBQUMsRUFBRSxDQUFDLENBQUMsRUFBRSxLQUFLLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDO1lBQ2pFLElBQU0sT0FBTyxHQUFHLEdBQUcsR0FBRyxhQUFhLENBQUMsR0FBRyxDQUFDLFVBQUMsU0FBUyxJQUFLLE9BQUEsU0FBUyxDQUFDLFFBQVEsQ0FBQyxFQUFFLENBQUMsRUFBdEIsQ0FBc0IsQ0FBQyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztZQUN6RixPQUFPLElBQUksa0JBQWtCLENBQUMsT0FBTyxDQUFDLENBQUM7U0FDeEM7YUFBTTtZQUNMLE9BQU8sSUFBSSxNQUFNLENBQUMsWUFBWSxDQUM1QixDQUFDLENBQUMsSUFBSSxHQUFHLEVBQU0sQ0FBQyxJQUFJLEVBQUUsQ0FBQyxHQUFHLENBQUMsQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUFDLENBQUMsR0FBRyxFQUFRLENBQUMsSUFBSSxDQUFDLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxFQUFFLENBQUMsQ0FBQyxHQUFHLEVBQVEsQ0FBQyxDQUNuRixDQUFDO1NBQ0g7S0FDRjtJQUVELE9BQU8sT0FBTyxDQUFDO0FBQ2pCLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ29udmVydHMgYSBKUyBzdHJpbmcgZnJvbSBpdHMgbmF0aXZlIFVDUy0yL1VURi0xNiByZXByZXNlbnRhdGlvbiBpbnRvIGFcbiAqIFVpbnQ4QXJyYXkgb2YgdGhlIGJ5dGVzIHVzZWQgdG8gcmVwcmVzZW50IHRoZSBlcXVpdmFsZW50IGNoYXJhY3RlcnMgaW4gVVRGLTguXG4gKlxuICogQ3JpYmJlZCBmcm9tIHRoZSBgZ29vZy5jcnlwdC5zdHJpbmdUb1V0ZjhCeXRlQXJyYXlgIGZ1bmN0aW9uIGluIHRoZSBHb29nbGVcbiAqIENsb3N1cmUgbGlicmFyeSwgdGhvdWdoIHVwZGF0ZWQgdG8gdXNlIHR5cGVkIGFycmF5cy5cbiAqL1xuZXhwb3J0IGNvbnN0IGZyb21VdGY4ID0gKGlucHV0OiBzdHJpbmcpOiBVaW50OEFycmF5ID0+IHtcbiAgY29uc3QgYnl0ZXM6IEFycmF5PG51bWJlcj4gPSBbXTtcbiAgZm9yIChsZXQgaSA9IDAsIGxlbiA9IGlucHV0Lmxlbmd0aDsgaSA8IGxlbjsgaSsrKSB7XG4gICAgY29uc3QgdmFsdWUgPSBpbnB1dC5jaGFyQ29kZUF0KGkpO1xuICAgIGlmICh2YWx1ZSA8IDB4ODApIHtcbiAgICAgIGJ5dGVzLnB1c2godmFsdWUpO1xuICAgIH0gZWxzZSBpZiAodmFsdWUgPCAweDgwMCkge1xuICAgICAgYnl0ZXMucHVzaCgodmFsdWUgPj4gNikgfCAwYjExMDAwMDAwLCAodmFsdWUgJiAwYjExMTExMSkgfCAwYjEwMDAwMDAwKTtcbiAgICB9IGVsc2UgaWYgKGkgKyAxIDwgaW5wdXQubGVuZ3RoICYmICh2YWx1ZSAmIDB4ZmMwMCkgPT09IDB4ZDgwMCAmJiAoaW5wdXQuY2hhckNvZGVBdChpICsgMSkgJiAweGZjMDApID09PSAweGRjMDApIHtcbiAgICAgIGNvbnN0IHN1cnJvZ2F0ZVBhaXIgPSAweDEwMDAwICsgKCh2YWx1ZSAmIDBiMTExMTExMTExMSkgPDwgMTApICsgKGlucHV0LmNoYXJDb2RlQXQoKytpKSAmIDBiMTExMTExMTExMSk7XG4gICAgICBieXRlcy5wdXNoKFxuICAgICAgICAoc3Vycm9nYXRlUGFpciA+PiAxOCkgfCAwYjExMTEwMDAwLFxuICAgICAgICAoKHN1cnJvZ2F0ZVBhaXIgPj4gMTIpICYgMGIxMTExMTEpIHwgMGIxMDAwMDAwMCxcbiAgICAgICAgKChzdXJyb2dhdGVQYWlyID4+IDYpICYgMGIxMTExMTEpIHwgMGIxMDAwMDAwMCxcbiAgICAgICAgKHN1cnJvZ2F0ZVBhaXIgJiAwYjExMTExMSkgfCAwYjEwMDAwMDAwXG4gICAgICApO1xuICAgIH0gZWxzZSB7XG4gICAgICBieXRlcy5wdXNoKCh2YWx1ZSA+PiAxMikgfCAwYjExMTAwMDAwLCAoKHZhbHVlID4+IDYpICYgMGIxMTExMTEpIHwgMGIxMDAwMDAwMCwgKHZhbHVlICYgMGIxMTExMTEpIHwgMGIxMDAwMDAwMCk7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIFVpbnQ4QXJyYXkuZnJvbShieXRlcyk7XG59O1xuXG4vKipcbiAqIENvbnZlcnRzIGEgdHlwZWQgYXJyYXkgb2YgYnl0ZXMgY29udGFpbmluZyBVVEYtOCBkYXRhIGludG8gYSBuYXRpdmUgSlNcbiAqIHN0cmluZy5cbiAqXG4gKiBQYXJ0bHkgY3JpYmJlZCBmcm9tIHRoZSBgZ29vZy5jcnlwdC51dGY4Qnl0ZUFycmF5VG9TdHJpbmdgIGZ1bmN0aW9uIGluIHRoZVxuICogR29vZ2xlIENsb3N1cmUgbGlicmFyeSwgdGhvdWdoIHVwZGF0ZWQgdG8gdXNlIHR5cGVkIGFycmF5cyBhbmQgdG8gYmV0dGVyXG4gKiBoYW5kbGUgYXN0cmFsIHBsYW5lIGNvZGUgcG9pbnRzLlxuICovXG5leHBvcnQgY29uc3QgdG9VdGY4ID0gKGlucHV0OiBVaW50OEFycmF5KTogc3RyaW5nID0+IHtcbiAgbGV0IGRlY29kZWQgPSBcIlwiO1xuICBmb3IgKGxldCBpID0gMCwgbGVuID0gaW5wdXQubGVuZ3RoOyBpIDwgbGVuOyBpKyspIHtcbiAgICBjb25zdCBieXRlID0gaW5wdXRbaV07XG4gICAgaWYgKGJ5dGUgPCAweDgwKSB7XG4gICAgICBkZWNvZGVkICs9IFN0cmluZy5mcm9tQ2hhckNvZGUoYnl0ZSk7XG4gICAgfSBlbHNlIGlmICgwYjExMDAwMDAwIDw9IGJ5dGUgJiYgYnl0ZSA8IDBiMTExMDAwMDApIHtcbiAgICAgIGNvbnN0IG5leHRCeXRlID0gaW5wdXRbKytpXTtcbiAgICAgIGRlY29kZWQgKz0gU3RyaW5nLmZyb21DaGFyQ29kZSgoKGJ5dGUgJiAwYjExMTExKSA8PCA2KSB8IChuZXh0Qnl0ZSAmIDBiMTExMTExKSk7XG4gICAgfSBlbHNlIGlmICgwYjExMTEwMDAwIDw9IGJ5dGUgJiYgYnl0ZSA8IDBiMTAxMTAxMTAxKSB7XG4gICAgICBjb25zdCBzdXJyb2dhdGVQYWlyID0gW2J5dGUsIGlucHV0WysraV0sIGlucHV0WysraV0sIGlucHV0WysraV1dO1xuICAgICAgY29uc3QgZW5jb2RlZCA9IFwiJVwiICsgc3Vycm9nYXRlUGFpci5tYXAoKGJ5dGVWYWx1ZSkgPT4gYnl0ZVZhbHVlLnRvU3RyaW5nKDE2KSkuam9pbihcIiVcIik7XG4gICAgICBkZWNvZGVkICs9IGRlY29kZVVSSUNvbXBvbmVudChlbmNvZGVkKTtcbiAgICB9IGVsc2Uge1xuICAgICAgZGVjb2RlZCArPSBTdHJpbmcuZnJvbUNoYXJDb2RlKFxuICAgICAgICAoKGJ5dGUgJiAwYjExMTEpIDw8IDEyKSB8ICgoaW5wdXRbKytpXSAmIDBiMTExMTExKSA8PCA2KSB8IChpbnB1dFsrK2ldICYgMGIxMTExMTEpXG4gICAgICApO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBkZWNvZGVkO1xufTtcbiJdfQ== /***/ }), /***/ "+57j": /*!***************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/pagination/GetLabelDetectionPaginator.js ***! \***************************************************************************************************/ /*! exports provided: getLabelDetectionPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLabelDetectionPaginate", function() { return getLabelDetectionPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Rekognition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Rekognition */ "MjkZ"); /* harmony import */ var _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../RekognitionClient */ "YOij"); /* harmony import */ var _commands_GetLabelDetectionCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/GetLabelDetectionCommand */ "4wFL"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_GetLabelDetectionCommand__WEBPACK_IMPORTED_MODULE_3__["GetLabelDetectionCommand"].bind.apply(_commands_GetLabelDetectionCommand__WEBPACK_IMPORTED_MODULE_3__["GetLabelDetectionCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.getLabelDetection.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function getLabelDetectionPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function getLabelDetectionPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Rekognition__WEBPACK_IMPORTED_MODULE_1__["Rekognition"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__["RekognitionClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Rekognition | RekognitionClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=GetLabelDetectionPaginator.js.map /***/ }), /***/ "+6XX": /*!**********************************************!*\ !*** ./node_modules/lodash/_listCacheHas.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "y1pI"); /** * Checks if a list cache value for `key` exists. * * @private * @name has * @memberOf ListCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas(key) { return assocIndexOf(this.__data__, key) > -1; } module.exports = listCacheHas; /***/ }), /***/ "+EvU": /*!*******************************************************************!*\ !*** ./node_modules/@aws-sdk/client-textract/dist/es/Textract.js ***! \*******************************************************************/ /*! exports provided: Textract */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Textract", function() { return Textract; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _TextractClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TextractClient */ "a2T7"); /* harmony import */ var _commands_AnalyzeDocumentCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/AnalyzeDocumentCommand */ "fwbe"); /* harmony import */ var _commands_DetectDocumentTextCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/DetectDocumentTextCommand */ "ENBt"); /* harmony import */ var _commands_GetDocumentAnalysisCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/GetDocumentAnalysisCommand */ "knCa"); /* harmony import */ var _commands_GetDocumentTextDetectionCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/GetDocumentTextDetectionCommand */ "VIrK"); /* harmony import */ var _commands_StartDocumentAnalysisCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/StartDocumentAnalysisCommand */ "v8Ef"); /* harmony import */ var _commands_StartDocumentTextDetectionCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/StartDocumentTextDetectionCommand */ "HsTK"); /** *

Amazon Textract detects and analyzes text in documents and converts it * into machine-readable text. This is the API reference documentation for * Amazon Textract.

*/ var Textract = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Textract, _super); function Textract() { return _super !== null && _super.apply(this, arguments) || this; } Textract.prototype.analyzeDocument = function (args, optionsOrCb, cb) { var command = new _commands_AnalyzeDocumentCommand__WEBPACK_IMPORTED_MODULE_2__["AnalyzeDocumentCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Textract.prototype.detectDocumentText = function (args, optionsOrCb, cb) { var command = new _commands_DetectDocumentTextCommand__WEBPACK_IMPORTED_MODULE_3__["DetectDocumentTextCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Textract.prototype.getDocumentAnalysis = function (args, optionsOrCb, cb) { var command = new _commands_GetDocumentAnalysisCommand__WEBPACK_IMPORTED_MODULE_4__["GetDocumentAnalysisCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Textract.prototype.getDocumentTextDetection = function (args, optionsOrCb, cb) { var command = new _commands_GetDocumentTextDetectionCommand__WEBPACK_IMPORTED_MODULE_5__["GetDocumentTextDetectionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Textract.prototype.startDocumentAnalysis = function (args, optionsOrCb, cb) { var command = new _commands_StartDocumentAnalysisCommand__WEBPACK_IMPORTED_MODULE_6__["StartDocumentAnalysisCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Textract.prototype.startDocumentTextDetection = function (args, optionsOrCb, cb) { var command = new _commands_StartDocumentTextDetectionCommand__WEBPACK_IMPORTED_MODULE_7__["StartDocumentTextDetectionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; return Textract; }(_TextractClient__WEBPACK_IMPORTED_MODULE_1__["TextractClient"])); //# sourceMappingURL=Textract.js.map /***/ }), /***/ "+KNX": /*!****************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/package.json ***! \****************************************************************************/ /*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, author, license, default */ /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"@aws-sdk/client-cognito-identity\",\"description\":\"@aws-sdk/client-cognito-identity client\",\"version\":\"1.0.0-gamma.8\",\"scripts\":{\"clean\":\"npm run remove-definitions && npm run remove-dist\",\"build-documentation\":\"npm run clean && typedoc ./\",\"prepublishOnly\":\"yarn build\",\"pretest\":\"yarn build:cjs\",\"remove-definitions\":\"rimraf ./types\",\"remove-dist\":\"rimraf ./dist\",\"remove-documentation\":\"rimraf ./docs\",\"test:unit\":\"mocha **/cjs/**/*.spec.js\",\"test:e2e\":\"mocha **/cjs/**/*.ispec.js && karma start karma.conf.js\",\"test\":\"yarn test:unit\",\"build:cjs\":\"tsc -p tsconfig.json\",\"build:es\":\"tsc -p tsconfig.es.json\",\"build\":\"yarn build:cjs && yarn build:es\"},\"main\":\"./dist/cjs/index.js\",\"types\":\"./types/index.d.ts\",\"module\":\"./dist/es/index.js\",\"browser\":{\"./runtimeConfig\":\"./runtimeConfig.browser\"},\"react-native\":{\"./runtimeConfig\":\"./runtimeConfig.native\"},\"sideEffects\":false,\"dependencies\":{\"@aws-crypto/sha256-browser\":\"^1.0.0-alpha.0\",\"@aws-crypto/sha256-js\":\"^1.0.0-alpha.0\",\"@aws-sdk/config-resolver\":\"1.0.0-gamma.7\",\"@aws-sdk/credential-provider-node\":\"1.0.0-gamma.7\",\"@aws-sdk/fetch-http-handler\":\"1.0.0-gamma.8\",\"@aws-sdk/hash-node\":\"1.0.0-gamma.7\",\"@aws-sdk/invalid-dependency\":\"1.0.0-gamma.5\",\"@aws-sdk/middleware-content-length\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-host-header\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-logger\":\"1.0.0-gamma.1\",\"@aws-sdk/middleware-retry\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-serde\":\"1.0.0-gamma.6\",\"@aws-sdk/middleware-signing\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-stack\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-user-agent\":\"1.0.0-gamma.7\",\"@aws-sdk/node-config-provider\":\"1.0.0-gamma.2\",\"@aws-sdk/node-http-handler\":\"1.0.0-gamma.7\",\"@aws-sdk/protocol-http\":\"1.0.0-gamma.7\",\"@aws-sdk/smithy-client\":\"1.0.0-gamma.7\",\"@aws-sdk/types\":\"1.0.0-gamma.6\",\"@aws-sdk/url-parser-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/url-parser-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-base64-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-base64-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-user-agent-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/util-user-agent-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-utf8-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-utf8-node\":\"1.0.0-gamma.6\",\"tslib\":\"^2.0.0\"},\"devDependencies\":{\"@aws-sdk/client-documentation-generator\":\"1.0.0-gamma.5\",\"@aws-sdk/client-iam\":\"1.0.0-gamma.8\",\"@types/chai\":\"^4.2.11\",\"@types/mocha\":\"^7.0.2\",\"@types/node\":\"^12.7.5\",\"jest\":\"^25.1.0\",\"rimraf\":\"^3.0.0\",\"typedoc\":\"^0.17.8\",\"typescript\":\"~4.0.2\"},\"engines\":{\"node\":\">=8.0.0\"},\"author\":{\"name\":\"AWS SDK for JavaScript Team\",\"url\":\"https://aws.amazon.com/javascript/\"},\"license\":\"Apache-2.0\"}"); /***/ }), /***/ "+PW3": /*!********************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/Platform/version.js ***! \********************************************************************/ /*! exports provided: version */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; }); // generated by genversion var version = '3.6.0'; //# sourceMappingURL=version.js.map /***/ }), /***/ "+VsY": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/DescribeCollectionCommand.js ***! \************************************************************************************************/ /*! exports provided: DescribeCollectionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeCollectionCommand", function() { return DescribeCollectionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DescribeCollectionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeCollectionCommand, _super); // Start section: command_properties // End section: command_properties function DescribeCollectionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DescribeCollectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeCollectionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeCollectionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DescribeCollectionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeCollectionCommand"])(input, context); }; DescribeCollectionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeCollectionCommand"])(output, context); }; return DescribeCollectionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DescribeCollectionCommand.js.map /***/ }), /***/ "+eag": /*!**************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/lib-esm/types.js ***! \**************************************************************/ /*! exports provided: isSchemaModel, isAssociatedWith, isTargetNameAssociation, GraphQLScalarType, isGraphQLScalarType, isModelFieldType, isNonModelFieldType, isEnumFieldType, OpType, isPredicateObj, isPredicateGroup, QueryOne, SortDirection, DISCARD */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSchemaModel", function() { return isSchemaModel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAssociatedWith", function() { return isAssociatedWith; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTargetNameAssociation", function() { return isTargetNameAssociation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLScalarType", function() { return GraphQLScalarType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isGraphQLScalarType", function() { return isGraphQLScalarType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isModelFieldType", function() { return isModelFieldType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNonModelFieldType", function() { return isNonModelFieldType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEnumFieldType", function() { return isEnumFieldType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OpType", function() { return OpType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPredicateObj", function() { return isPredicateObj; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPredicateGroup", function() { return isPredicateGroup; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QueryOne", function() { return QueryOne; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SortDirection", function() { return SortDirection; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DISCARD", function() { return DISCARD; }); /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util */ "wr5y"); function isSchemaModel(obj) { return obj && obj.pluralName !== undefined; } function isAssociatedWith(obj) { return obj && obj.associatedWith; } function isTargetNameAssociation(obj) { return obj && obj.targetName; } var GraphQLScalarType; (function (GraphQLScalarType) { GraphQLScalarType[GraphQLScalarType["ID"] = 0] = "ID"; GraphQLScalarType[GraphQLScalarType["String"] = 1] = "String"; GraphQLScalarType[GraphQLScalarType["Int"] = 2] = "Int"; GraphQLScalarType[GraphQLScalarType["Float"] = 3] = "Float"; GraphQLScalarType[GraphQLScalarType["Boolean"] = 4] = "Boolean"; GraphQLScalarType[GraphQLScalarType["AWSDate"] = 5] = "AWSDate"; GraphQLScalarType[GraphQLScalarType["AWSTime"] = 6] = "AWSTime"; GraphQLScalarType[GraphQLScalarType["AWSDateTime"] = 7] = "AWSDateTime"; GraphQLScalarType[GraphQLScalarType["AWSTimestamp"] = 8] = "AWSTimestamp"; GraphQLScalarType[GraphQLScalarType["AWSEmail"] = 9] = "AWSEmail"; GraphQLScalarType[GraphQLScalarType["AWSJSON"] = 10] = "AWSJSON"; GraphQLScalarType[GraphQLScalarType["AWSURL"] = 11] = "AWSURL"; GraphQLScalarType[GraphQLScalarType["AWSPhone"] = 12] = "AWSPhone"; GraphQLScalarType[GraphQLScalarType["AWSIPAddress"] = 13] = "AWSIPAddress"; })(GraphQLScalarType || (GraphQLScalarType = {})); (function (GraphQLScalarType) { function getJSType(scalar) { switch (scalar) { case 'Boolean': return 'boolean'; case 'ID': case 'String': case 'AWSDate': case 'AWSTime': case 'AWSDateTime': case 'AWSEmail': case 'AWSJSON': case 'AWSURL': case 'AWSPhone': case 'AWSIPAddress': return 'string'; case 'Int': case 'Float': case 'AWSTimestamp': return 'number'; default: Object(_util__WEBPACK_IMPORTED_MODULE_0__["exhaustiveCheck"])(scalar); } } GraphQLScalarType.getJSType = getJSType; })(GraphQLScalarType || (GraphQLScalarType = {})); function isGraphQLScalarType(obj) { return obj && GraphQLScalarType[obj] !== undefined; } function isModelFieldType(obj) { var modelField = 'model'; if (obj && obj[modelField]) return true; return false; } function isNonModelFieldType(obj) { var typeField = 'nonModel'; if (obj && obj[typeField]) return true; return false; } function isEnumFieldType(obj) { var modelField = 'enum'; if (obj && obj[modelField]) return true; return false; } //#endregion //#region Subscription messages var OpType; (function (OpType) { OpType["INSERT"] = "INSERT"; OpType["UPDATE"] = "UPDATE"; OpType["DELETE"] = "DELETE"; })(OpType || (OpType = {})); function isPredicateObj(obj) { return obj && obj.field !== undefined; } function isPredicateGroup(obj) { return obj && obj.type !== undefined; } var QueryOne; (function (QueryOne) { QueryOne[QueryOne["FIRST"] = 0] = "FIRST"; QueryOne[QueryOne["LAST"] = 1] = "LAST"; })(QueryOne || (QueryOne = {})); var SortDirection; (function (SortDirection) { SortDirection["ASCENDING"] = "ASCENDING"; SortDirection["DESCENDING"] = "DESCENDING"; })(SortDirection || (SortDirection = {})); var DISCARD = Symbol('DISCARD'); //#endregion //# sourceMappingURL=types.js.map /***/ }), /***/ "+qE3": /*!***************************************!*\ !*** ./node_modules/events/events.js ***! \***************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. var R = typeof Reflect === 'object' ? Reflect : null var ReflectApply = R && typeof R.apply === 'function' ? R.apply : function ReflectApply(target, receiver, args) { return Function.prototype.apply.call(target, receiver, args); } var ReflectOwnKeys if (R && typeof R.ownKeys === 'function') { ReflectOwnKeys = R.ownKeys } else if (Object.getOwnPropertySymbols) { ReflectOwnKeys = function ReflectOwnKeys(target) { return Object.getOwnPropertyNames(target) .concat(Object.getOwnPropertySymbols(target)); }; } else { ReflectOwnKeys = function ReflectOwnKeys(target) { return Object.getOwnPropertyNames(target); }; } function ProcessEmitWarning(warning) { if (console && console.warn) console.warn(warning); } var NumberIsNaN = Number.isNaN || function NumberIsNaN(value) { return value !== value; } function EventEmitter() { EventEmitter.init.call(this); } module.exports = EventEmitter; module.exports.once = once; // Backwards-compat with node 0.10.x EventEmitter.EventEmitter = EventEmitter; EventEmitter.prototype._events = undefined; EventEmitter.prototype._eventsCount = 0; EventEmitter.prototype._maxListeners = undefined; // By default EventEmitters will print a warning if more than 10 listeners are // added to it. This is a useful default which helps finding memory leaks. var defaultMaxListeners = 10; function checkListener(listener) { if (typeof listener !== 'function') { throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener); } } Object.defineProperty(EventEmitter, 'defaultMaxListeners', { enumerable: true, get: function() { return defaultMaxListeners; }, set: function(arg) { if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) { throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + '.'); } defaultMaxListeners = arg; } }); EventEmitter.init = function() { if (this._events === undefined || this._events === Object.getPrototypeOf(this)._events) { this._events = Object.create(null); this._eventsCount = 0; } this._maxListeners = this._maxListeners || undefined; }; // Obviously not all Emitters should be limited to 10. This function allows // that to be increased. Set to zero for unlimited. EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) { if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) { throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + '.'); } this._maxListeners = n; return this; }; function _getMaxListeners(that) { if (that._maxListeners === undefined) return EventEmitter.defaultMaxListeners; return that._maxListeners; } EventEmitter.prototype.getMaxListeners = function getMaxListeners() { return _getMaxListeners(this); }; EventEmitter.prototype.emit = function emit(type) { var args = []; for (var i = 1; i < arguments.length; i++) args.push(arguments[i]); var doError = (type === 'error'); var events = this._events; if (events !== undefined) doError = (doError && events.error === undefined); else if (!doError) return false; // If there is no 'error' event listener then throw. if (doError) { var er; if (args.length > 0) er = args[0]; if (er instanceof Error) { // Note: The comments on the `throw` lines are intentional, they show // up in Node's output if this results in an unhandled exception. throw er; // Unhandled 'error' event } // At least give some kind of context to the user var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : '')); err.context = er; throw err; // Unhandled 'error' event } var handler = events[type]; if (handler === undefined) return false; if (typeof handler === 'function') { ReflectApply(handler, this, args); } else { var len = handler.length; var listeners = arrayClone(handler, len); for (var i = 0; i < len; ++i) ReflectApply(listeners[i], this, args); } return true; }; function _addListener(target, type, listener, prepend) { var m; var events; var existing; checkListener(listener); events = target._events; if (events === undefined) { events = target._events = Object.create(null); target._eventsCount = 0; } else { // To avoid recursion in the case that type === "newListener"! Before // adding it to the listeners, first emit "newListener". if (events.newListener !== undefined) { target.emit('newListener', type, listener.listener ? listener.listener : listener); // Re-assign `events` because a newListener handler could have caused the // this._events to be assigned to a new object events = target._events; } existing = events[type]; } if (existing === undefined) { // Optimize the case of one listener. Don't need the extra array object. existing = events[type] = listener; ++target._eventsCount; } else { if (typeof existing === 'function') { // Adding the second element, need to change to array. existing = events[type] = prepend ? [listener, existing] : [existing, listener]; // If we've already got an array, just append. } else if (prepend) { existing.unshift(listener); } else { existing.push(listener); } // Check for listener leak m = _getMaxListeners(target); if (m > 0 && existing.length > m && !existing.warned) { existing.warned = true; // No error code for this since it is a Warning // eslint-disable-next-line no-restricted-syntax var w = new Error('Possible EventEmitter memory leak detected. ' + existing.length + ' ' + String(type) + ' listeners ' + 'added. Use emitter.setMaxListeners() to ' + 'increase limit'); w.name = 'MaxListenersExceededWarning'; w.emitter = target; w.type = type; w.count = existing.length; ProcessEmitWarning(w); } } return target; } EventEmitter.prototype.addListener = function addListener(type, listener) { return _addListener(this, type, listener, false); }; EventEmitter.prototype.on = EventEmitter.prototype.addListener; EventEmitter.prototype.prependListener = function prependListener(type, listener) { return _addListener(this, type, listener, true); }; function onceWrapper() { if (!this.fired) { this.target.removeListener(this.type, this.wrapFn); this.fired = true; if (arguments.length === 0) return this.listener.call(this.target); return this.listener.apply(this.target, arguments); } } function _onceWrap(target, type, listener) { var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener }; var wrapped = onceWrapper.bind(state); wrapped.listener = listener; state.wrapFn = wrapped; return wrapped; } EventEmitter.prototype.once = function once(type, listener) { checkListener(listener); this.on(type, _onceWrap(this, type, listener)); return this; }; EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) { checkListener(listener); this.prependListener(type, _onceWrap(this, type, listener)); return this; }; // Emits a 'removeListener' event if and only if the listener was removed. EventEmitter.prototype.removeListener = function removeListener(type, listener) { var list, events, position, i, originalListener; checkListener(listener); events = this._events; if (events === undefined) return this; list = events[type]; if (list === undefined) return this; if (list === listener || list.listener === listener) { if (--this._eventsCount === 0) this._events = Object.create(null); else { delete events[type]; if (events.removeListener) this.emit('removeListener', type, list.listener || listener); } } else if (typeof list !== 'function') { position = -1; for (i = list.length - 1; i >= 0; i--) { if (list[i] === listener || list[i].listener === listener) { originalListener = list[i].listener; position = i; break; } } if (position < 0) return this; if (position === 0) list.shift(); else { spliceOne(list, position); } if (list.length === 1) events[type] = list[0]; if (events.removeListener !== undefined) this.emit('removeListener', type, originalListener || listener); } return this; }; EventEmitter.prototype.off = EventEmitter.prototype.removeListener; EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) { var listeners, events, i; events = this._events; if (events === undefined) return this; // not listening for removeListener, no need to emit if (events.removeListener === undefined) { if (arguments.length === 0) { this._events = Object.create(null); this._eventsCount = 0; } else if (events[type] !== undefined) { if (--this._eventsCount === 0) this._events = Object.create(null); else delete events[type]; } return this; } // emit removeListener for all listeners on all events if (arguments.length === 0) { var keys = Object.keys(events); var key; for (i = 0; i < keys.length; ++i) { key = keys[i]; if (key === 'removeListener') continue; this.removeAllListeners(key); } this.removeAllListeners('removeListener'); this._events = Object.create(null); this._eventsCount = 0; return this; } listeners = events[type]; if (typeof listeners === 'function') { this.removeListener(type, listeners); } else if (listeners !== undefined) { // LIFO order for (i = listeners.length - 1; i >= 0; i--) { this.removeListener(type, listeners[i]); } } return this; }; function _listeners(target, type, unwrap) { var events = target._events; if (events === undefined) return []; var evlistener = events[type]; if (evlistener === undefined) return []; if (typeof evlistener === 'function') return unwrap ? [evlistener.listener || evlistener] : [evlistener]; return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length); } EventEmitter.prototype.listeners = function listeners(type) { return _listeners(this, type, true); }; EventEmitter.prototype.rawListeners = function rawListeners(type) { return _listeners(this, type, false); }; EventEmitter.listenerCount = function(emitter, type) { if (typeof emitter.listenerCount === 'function') { return emitter.listenerCount(type); } else { return listenerCount.call(emitter, type); } }; EventEmitter.prototype.listenerCount = listenerCount; function listenerCount(type) { var events = this._events; if (events !== undefined) { var evlistener = events[type]; if (typeof evlistener === 'function') { return 1; } else if (evlistener !== undefined) { return evlistener.length; } } return 0; } EventEmitter.prototype.eventNames = function eventNames() { return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : []; }; function arrayClone(arr, n) { var copy = new Array(n); for (var i = 0; i < n; ++i) copy[i] = arr[i]; return copy; } function spliceOne(list, index) { for (; index + 1 < list.length; index++) list[index] = list[index + 1]; list.pop(); } function unwrapListeners(arr) { var ret = new Array(arr.length); for (var i = 0; i < ret.length; ++i) { ret[i] = arr[i].listener || arr[i]; } return ret; } function once(emitter, name) { return new Promise(function (resolve, reject) { function eventListener() { if (errorListener !== undefined) { emitter.removeListener('error', errorListener); } resolve([].slice.call(arguments)); }; var errorListener; // Adding an error listener is not optional because // if an error is thrown on an event emitter we cannot // guarantee that the actual event we are waiting will // be fired. The result could be a silent way to create // memory or file descriptor leaks, which is something // we should avoid. if (name !== 'error') { errorListener = function errorListener(err) { emitter.removeListener(name, eventListener); reject(err); }; emitter.once('error', errorListener); } emitter.once(name, eventListener); }); } /***/ }), /***/ "+rOU": /*!*******************************************************************!*\ !*** ./node_modules/@angular/cdk/__ivy_ngcc__/fesm2015/portal.js ***! \*******************************************************************/ /*! exports provided: BasePortalHost, BasePortalOutlet, CdkPortal, CdkPortalOutlet, ComponentPortal, DomPortal, DomPortalHost, DomPortalOutlet, Portal, PortalHostDirective, PortalInjector, PortalModule, TemplatePortal, TemplatePortalDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BasePortalHost", function() { return BasePortalHost; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BasePortalOutlet", function() { return BasePortalOutlet; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CdkPortal", function() { return CdkPortal; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CdkPortalOutlet", function() { return CdkPortalOutlet; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComponentPortal", function() { return ComponentPortal; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DomPortal", function() { return DomPortal; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DomPortalHost", function() { return DomPortalHost; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DomPortalOutlet", function() { return DomPortalOutlet; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Portal", function() { return Portal; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PortalHostDirective", function() { return PortalHostDirective; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PortalInjector", function() { return PortalInjector; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PortalModule", function() { return PortalModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplatePortal", function() { return TemplatePortal; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplatePortalDirective", function() { return TemplatePortalDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Throws an exception when attempting to attach a null portal to a host. * @docs-private */ function throwNullPortalError() { throw Error('Must provide a portal to attach'); } /** * Throws an exception when attempting to attach a portal to a host that is already attached. * @docs-private */ function throwPortalAlreadyAttachedError() { throw Error('Host already has a portal attached'); } /** * Throws an exception when attempting to attach a portal to an already-disposed host. * @docs-private */ function throwPortalOutletAlreadyDisposedError() { throw Error('This PortalOutlet has already been disposed'); } /** * Throws an exception when attempting to attach an unknown portal type. * @docs-private */ function throwUnknownPortalTypeError() { throw Error('Attempting to attach an unknown Portal type. BasePortalOutlet accepts either ' + 'a ComponentPortal or a TemplatePortal.'); } /** * Throws an exception when attempting to attach a portal to a null host. * @docs-private */ function throwNullPortalOutletError() { throw Error('Attempting to attach a portal to a null PortalOutlet'); } /** * Throws an exception when attempting to detach a portal that is not attached. * @docs-private */ function throwNoPortalAttachedError() { throw Error('Attempting to detach a portal that is not attached to a host'); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * A `Portal` is something that you want to render somewhere else. * It can be attach to / detached from a `PortalOutlet`. */ class Portal { /** Attach this portal to a host. */ attach(host) { if (typeof ngDevMode === 'undefined' || ngDevMode) { if (host == null) { throwNullPortalOutletError(); } if (host.hasAttached()) { throwPortalAlreadyAttachedError(); } } this._attachedHost = host; return host.attach(this); } /** Detach this portal from its host */ detach() { let host = this._attachedHost; if (host != null) { this._attachedHost = null; host.detach(); } else if (typeof ngDevMode === 'undefined' || ngDevMode) { throwNoPortalAttachedError(); } } /** Whether this portal is attached to a host. */ get isAttached() { return this._attachedHost != null; } /** * Sets the PortalOutlet reference without performing `attach()`. This is used directly by * the PortalOutlet when it is performing an `attach()` or `detach()`. */ setAttachedHost(host) { this._attachedHost = host; } } /** * A `ComponentPortal` is a portal that instantiates some Component upon attachment. */ class ComponentPortal extends Portal { constructor(component, viewContainerRef, injector, componentFactoryResolver) { super(); this.component = component; this.viewContainerRef = viewContainerRef; this.injector = injector; this.componentFactoryResolver = componentFactoryResolver; } } /** * A `TemplatePortal` is a portal that represents some embedded template (TemplateRef). */ class TemplatePortal extends Portal { constructor(template, viewContainerRef, context) { super(); this.templateRef = template; this.viewContainerRef = viewContainerRef; this.context = context; } get origin() { return this.templateRef.elementRef; } /** * Attach the portal to the provided `PortalOutlet`. * When a context is provided it will override the `context` property of the `TemplatePortal` * instance. */ attach(host, context = this.context) { this.context = context; return super.attach(host); } detach() { this.context = undefined; return super.detach(); } } /** * A `DomPortal` is a portal whose DOM element will be taken from its current position * in the DOM and moved into a portal outlet, when it is attached. On detach, the content * will be restored to its original position. */ class DomPortal extends Portal { constructor(element) { super(); this.element = element instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] ? element.nativeElement : element; } } /** * Partial implementation of PortalOutlet that handles attaching * ComponentPortal and TemplatePortal. */ class BasePortalOutlet { constructor() { /** Whether this host has already been permanently disposed. */ this._isDisposed = false; // @breaking-change 10.0.0 `attachDomPortal` to become a required abstract method. this.attachDomPortal = null; } /** Whether this host has an attached portal. */ hasAttached() { return !!this._attachedPortal; } /** Attaches a portal. */ attach(portal) { if (typeof ngDevMode === 'undefined' || ngDevMode) { if (!portal) { throwNullPortalError(); } if (this.hasAttached()) { throwPortalAlreadyAttachedError(); } if (this._isDisposed) { throwPortalOutletAlreadyDisposedError(); } } if (portal instanceof ComponentPortal) { this._attachedPortal = portal; return this.attachComponentPortal(portal); } else if (portal instanceof TemplatePortal) { this._attachedPortal = portal; return this.attachTemplatePortal(portal); // @breaking-change 10.0.0 remove null check for `this.attachDomPortal`. } else if (this.attachDomPortal && portal instanceof DomPortal) { this._attachedPortal = portal; return this.attachDomPortal(portal); } if (typeof ngDevMode === 'undefined' || ngDevMode) { throwUnknownPortalTypeError(); } } /** Detaches a previously attached portal. */ detach() { if (this._attachedPortal) { this._attachedPortal.setAttachedHost(null); this._attachedPortal = null; } this._invokeDisposeFn(); } /** Permanently dispose of this portal host. */ dispose() { if (this.hasAttached()) { this.detach(); } this._invokeDisposeFn(); this._isDisposed = true; } /** @docs-private */ setDisposeFn(fn) { this._disposeFn = fn; } _invokeDisposeFn() { if (this._disposeFn) { this._disposeFn(); this._disposeFn = null; } } } /** * @deprecated Use `BasePortalOutlet` instead. * @breaking-change 9.0.0 */ class BasePortalHost extends BasePortalOutlet { } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * A PortalOutlet for attaching portals to an arbitrary DOM element outside of the Angular * application context. */ class DomPortalOutlet extends BasePortalOutlet { constructor( /** Element into which the content is projected. */ outletElement, _componentFactoryResolver, _appRef, _defaultInjector, /** * @deprecated `_document` Parameter to be made required. * @breaking-change 10.0.0 */ _document) { super(); this.outletElement = outletElement; this._componentFactoryResolver = _componentFactoryResolver; this._appRef = _appRef; this._defaultInjector = _defaultInjector; /** * Attaches a DOM portal by transferring its content into the outlet. * @param portal Portal to be attached. * @deprecated To be turned into a method. * @breaking-change 10.0.0 */ this.attachDomPortal = (portal) => { // @breaking-change 10.0.0 Remove check and error once the // `_document` constructor parameter is required. if (!this._document && (typeof ngDevMode === 'undefined' || ngDevMode)) { throw Error('Cannot attach DOM portal without _document constructor parameter'); } const element = portal.element; if (!element.parentNode && (typeof ngDevMode === 'undefined' || ngDevMode)) { throw Error('DOM portal content must be attached to a parent node.'); } // Anchor used to save the element's previous position so // that we can restore it when the portal is detached. const anchorNode = this._document.createComment('dom-portal'); element.parentNode.insertBefore(anchorNode, element); this.outletElement.appendChild(element); super.setDisposeFn(() => { // We can't use `replaceWith` here because IE doesn't support it. if (anchorNode.parentNode) { anchorNode.parentNode.replaceChild(element, anchorNode); } }); }; this._document = _document; } /** * Attach the given ComponentPortal to DOM element using the ComponentFactoryResolver. * @param portal Portal to be attached * @returns Reference to the created component. */ attachComponentPortal(portal) { const resolver = portal.componentFactoryResolver || this._componentFactoryResolver; const componentFactory = resolver.resolveComponentFactory(portal.component); let componentRef; // If the portal specifies a ViewContainerRef, we will use that as the attachment point // for the component (in terms of Angular's component tree, not rendering). // When the ViewContainerRef is missing, we use the factory to create the component directly // and then manually attach the view to the application. if (portal.viewContainerRef) { componentRef = portal.viewContainerRef.createComponent(componentFactory, portal.viewContainerRef.length, portal.injector || portal.viewContainerRef.injector); this.setDisposeFn(() => componentRef.destroy()); } else { componentRef = componentFactory.create(portal.injector || this._defaultInjector); this._appRef.attachView(componentRef.hostView); this.setDisposeFn(() => { this._appRef.detachView(componentRef.hostView); componentRef.destroy(); }); } // At this point the component has been instantiated, so we move it to the location in the DOM // where we want it to be rendered. this.outletElement.appendChild(this._getComponentRootNode(componentRef)); return componentRef; } /** * Attaches a template portal to the DOM as an embedded view. * @param portal Portal to be attached. * @returns Reference to the created embedded view. */ attachTemplatePortal(portal) { let viewContainer = portal.viewContainerRef; let viewRef = viewContainer.createEmbeddedView(portal.templateRef, portal.context); // The method `createEmbeddedView` will add the view as a child of the viewContainer. // But for the DomPortalOutlet the view can be added everywhere in the DOM // (e.g Overlay Container) To move the view to the specified host element. We just // re-append the existing root nodes. viewRef.rootNodes.forEach(rootNode => this.outletElement.appendChild(rootNode)); // Note that we want to detect changes after the nodes have been moved so that // any directives inside the portal that are looking at the DOM inside a lifecycle // hook won't be invoked too early. viewRef.detectChanges(); this.setDisposeFn((() => { let index = viewContainer.indexOf(viewRef); if (index !== -1) { viewContainer.remove(index); } })); // TODO(jelbourn): Return locals from view. return viewRef; } /** * Clears out a portal from the DOM. */ dispose() { super.dispose(); if (this.outletElement.parentNode != null) { this.outletElement.parentNode.removeChild(this.outletElement); } } /** Gets the root HTMLElement for an instantiated component. */ _getComponentRootNode(componentRef) { return componentRef.hostView.rootNodes[0]; } } /** * @deprecated Use `DomPortalOutlet` instead. * @breaking-change 9.0.0 */ class DomPortalHost extends DomPortalOutlet { } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal, * the directive instance itself can be attached to a host, enabling declarative use of portals. */ class CdkPortal extends TemplatePortal { constructor(templateRef, viewContainerRef) { super(templateRef, viewContainerRef); } } CdkPortal.ɵfac = function CdkPortal_Factory(t) { return new (t || CdkPortal)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"])); }; CdkPortal.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: CdkPortal, selectors: [["", "cdkPortal", ""]], exportAs: ["cdkPortal"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]] }); CdkPortal.ctorParameters = () => [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] } ]; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkPortal, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"], args: [{ selector: '[cdkPortal]', exportAs: 'cdkPortal' }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }]; }, null); })(); /** * @deprecated Use `CdkPortal` instead. * @breaking-change 9.0.0 */ class TemplatePortalDirective extends CdkPortal { } TemplatePortalDirective.ɵfac = function TemplatePortalDirective_Factory(t) { return ɵTemplatePortalDirective_BaseFactory(t || TemplatePortalDirective); }; TemplatePortalDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: TemplatePortalDirective, selectors: [["", "cdk-portal", ""], ["", "portal", ""]], exportAs: ["cdkPortal"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{ provide: CdkPortal, useExisting: TemplatePortalDirective }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]] }); const ɵTemplatePortalDirective_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](TemplatePortalDirective); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TemplatePortalDirective, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"], args: [{ selector: '[cdk-portal], [portal]', exportAs: 'cdkPortal', providers: [{ provide: CdkPortal, useExisting: TemplatePortalDirective }] }] }], null, null); })(); /** * Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be * directly attached to it, enabling declarative use. * * Usage: * `` */ class CdkPortalOutlet extends BasePortalOutlet { constructor(_componentFactoryResolver, _viewContainerRef, /** * @deprecated `_document` parameter to be made required. * @breaking-change 9.0.0 */ _document) { super(); this._componentFactoryResolver = _componentFactoryResolver; this._viewContainerRef = _viewContainerRef; /** Whether the portal component is initialized. */ this._isInitialized = false; /** Emits when a portal is attached to the outlet. */ this.attached = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); /** * Attaches the given DomPortal to this PortalHost by moving all of the portal content into it. * @param portal Portal to be attached. * @deprecated To be turned into a method. * @breaking-change 10.0.0 */ this.attachDomPortal = (portal) => { // @breaking-change 9.0.0 Remove check and error once the // `_document` constructor parameter is required. if (!this._document && (typeof ngDevMode === 'undefined' || ngDevMode)) { throw Error('Cannot attach DOM portal without _document constructor parameter'); } const element = portal.element; if (!element.parentNode && (typeof ngDevMode === 'undefined' || ngDevMode)) { throw Error('DOM portal content must be attached to a parent node.'); } // Anchor used to save the element's previous position so // that we can restore it when the portal is detached. const anchorNode = this._document.createComment('dom-portal'); portal.setAttachedHost(this); element.parentNode.insertBefore(anchorNode, element); this._getRootNode().appendChild(element); super.setDisposeFn(() => { if (anchorNode.parentNode) { anchorNode.parentNode.replaceChild(element, anchorNode); } }); }; this._document = _document; } /** Portal associated with the Portal outlet. */ get portal() { return this._attachedPortal; } set portal(portal) { // Ignore the cases where the `portal` is set to a falsy value before the lifecycle hooks have // run. This handles the cases where the user might do something like `
` // and attach a portal programmatically in the parent component. When Angular does the first CD // round, it will fire the setter with empty string, causing the user's content to be cleared. if (this.hasAttached() && !portal && !this._isInitialized) { return; } if (this.hasAttached()) { super.detach(); } if (portal) { super.attach(portal); } this._attachedPortal = portal; } /** Component or view reference that is attached to the portal. */ get attachedRef() { return this._attachedRef; } ngOnInit() { this._isInitialized = true; } ngOnDestroy() { super.dispose(); this._attachedPortal = null; this._attachedRef = null; } /** * Attach the given ComponentPortal to this PortalOutlet using the ComponentFactoryResolver. * * @param portal Portal to be attached to the portal outlet. * @returns Reference to the created component. */ attachComponentPortal(portal) { portal.setAttachedHost(this); // If the portal specifies an origin, use that as the logical location of the component // in the application tree. Otherwise use the location of this PortalOutlet. const viewContainerRef = portal.viewContainerRef != null ? portal.viewContainerRef : this._viewContainerRef; const resolver = portal.componentFactoryResolver || this._componentFactoryResolver; const componentFactory = resolver.resolveComponentFactory(portal.component); const ref = viewContainerRef.createComponent(componentFactory, viewContainerRef.length, portal.injector || viewContainerRef.injector); // If we're using a view container that's different from the injected one (e.g. when the portal // specifies its own) we need to move the component into the outlet, otherwise it'll be rendered // inside of the alternate view container. if (viewContainerRef !== this._viewContainerRef) { this._getRootNode().appendChild(ref.hostView.rootNodes[0]); } super.setDisposeFn(() => ref.destroy()); this._attachedPortal = portal; this._attachedRef = ref; this.attached.emit(ref); return ref; } /** * Attach the given TemplatePortal to this PortalHost as an embedded View. * @param portal Portal to be attached. * @returns Reference to the created embedded view. */ attachTemplatePortal(portal) { portal.setAttachedHost(this); const viewRef = this._viewContainerRef.createEmbeddedView(portal.templateRef, portal.context); super.setDisposeFn(() => this._viewContainerRef.clear()); this._attachedPortal = portal; this._attachedRef = viewRef; this.attached.emit(viewRef); return viewRef; } /** Gets the root node of the portal outlet. */ _getRootNode() { const nativeElement = this._viewContainerRef.element.nativeElement; // The directive could be set on a template which will result in a comment // node being the root. Use the comment's parent node if that is the case. return (nativeElement.nodeType === nativeElement.ELEMENT_NODE ? nativeElement : nativeElement.parentNode); } } CdkPortalOutlet.ɵfac = function CdkPortalOutlet_Factory(t) { return new (t || CdkPortalOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"])); }; CdkPortalOutlet.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: CdkPortalOutlet, selectors: [["", "cdkPortalOutlet", ""]], inputs: { portal: ["cdkPortalOutlet", "portal"] }, outputs: { attached: "attached" }, exportAs: ["cdkPortalOutlet"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]] }); CdkPortalOutlet.ctorParameters = () => [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"],] }] } ]; CdkPortalOutlet.propDecorators = { attached: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }] }; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkPortalOutlet, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"], args: [{ selector: '[cdkPortalOutlet]', exportAs: 'cdkPortalOutlet', inputs: ['portal: cdkPortalOutlet'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]] }] }]; }, { attached: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }] }); })(); /** * @deprecated Use `CdkPortalOutlet` instead. * @breaking-change 9.0.0 */ class PortalHostDirective extends CdkPortalOutlet { } PortalHostDirective.ɵfac = function PortalHostDirective_Factory(t) { return ɵPortalHostDirective_BaseFactory(t || PortalHostDirective); }; PortalHostDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: PortalHostDirective, selectors: [["", "cdkPortalHost", ""], ["", "portalHost", ""]], inputs: { portal: ["cdkPortalHost", "portal"] }, exportAs: ["cdkPortalHost"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{ provide: CdkPortalOutlet, useExisting: PortalHostDirective }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]] }); const ɵPortalHostDirective_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](PortalHostDirective); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PortalHostDirective, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"], args: [{ selector: '[cdkPortalHost], [portalHost]', exportAs: 'cdkPortalHost', inputs: ['portal: cdkPortalHost'], providers: [{ provide: CdkPortalOutlet, useExisting: PortalHostDirective }] }] }], null, null); })(); class PortalModule { } PortalModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: PortalModule }); PortalModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function PortalModule_Factory(t) { return new (t || PortalModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](PortalModule, { declarations: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective], exports: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective] }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PortalModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"], args: [{ exports: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective], declarations: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective] }] }], null, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Custom injector to be used when providing custom * injection tokens to components inside a portal. * @docs-private * @deprecated Use `Injector.create` instead. * @breaking-change 11.0.0 */ class PortalInjector { constructor(_parentInjector, _customTokens) { this._parentInjector = _parentInjector; this._customTokens = _customTokens; } get(token, notFoundValue) { const value = this._customTokens.get(token); if (typeof value !== 'undefined') { return value; } return this._parentInjector.get(token, notFoundValue); } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Generated bundle index. Do not edit. */ //# sourceMappingURL=portal.js.map /***/ }), /***/ "+rSW": /*!******************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/Platform/index.js ***! \******************************************************************/ /*! exports provided: Platform, getAmplifyUserAgent, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Platform", function() { return Platform; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAmplifyUserAgent", function() { return getAmplifyUserAgent; }); /* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./version */ "+PW3"); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var BASE_USER_AGENT = "aws-amplify/" + _version__WEBPACK_IMPORTED_MODULE_0__["version"]; var Platform = { userAgent: BASE_USER_AGENT + " js", product: '', navigator: null, isReactNative: false, }; if (typeof navigator !== 'undefined' && navigator.product) { Platform.product = navigator.product || ''; Platform.navigator = navigator || null; switch (navigator.product) { case 'ReactNative': Platform.userAgent = BASE_USER_AGENT + " react-native"; Platform.isReactNative = true; break; default: Platform.userAgent = BASE_USER_AGENT + " js"; Platform.isReactNative = false; break; } } var getAmplifyUserAgent = function () { return Platform.userAgent; }; /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (Platform); //# sourceMappingURL=index.js.map /***/ }), /***/ "+tC1": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/DeleteBucketWebsiteCommand.js ***! \****************************************************************************************/ /*! exports provided: DeleteBucketWebsiteCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketWebsiteCommand", function() { return DeleteBucketWebsiteCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteBucketWebsiteCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteBucketWebsiteCommand, _super); // Start section: command_properties // End section: command_properties function DeleteBucketWebsiteCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteBucketWebsiteCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteBucketWebsiteRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteBucketWebsiteCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlDeleteBucketWebsiteCommand"])(input, context); }; DeleteBucketWebsiteCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlDeleteBucketWebsiteCommand"])(output, context); }; return DeleteBucketWebsiteCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=DeleteBucketWebsiteCommand.js.map /***/ }), /***/ "+tRG": /*!******************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-logger/dist/es/index.js ***! \******************************************************************/ /*! exports provided: resolveLoggerConfig, loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _configurations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./configurations */ "9xv2"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveLoggerConfig", function() { return _configurations__WEBPACK_IMPORTED_MODULE_0__["resolveLoggerConfig"]; }); /* harmony import */ var _loggerMiddleware__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./loggerMiddleware */ "qDhO"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "loggerMiddleware", function() { return _loggerMiddleware__WEBPACK_IMPORTED_MODULE_1__["loggerMiddleware"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "loggerMiddlewareOptions", function() { return _loggerMiddleware__WEBPACK_IMPORTED_MODULE_1__["loggerMiddlewareOptions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLoggerPlugin", function() { return _loggerMiddleware__WEBPACK_IMPORTED_MODULE_1__["getLoggerPlugin"]; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLG9CQUFvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY29uZmlndXJhdGlvbnNcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2xvZ2dlck1pZGRsZXdhcmVcIjtcbiJdfQ== /***/ }), /***/ "+uY7": /*!********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-firehose/dist/es/commands/UpdateDestinationCommand.js ***! \********************************************************************************************/ /*! exports provided: UpdateDestinationCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationCommand", function() { return UpdateDestinationCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "qPic"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "IZqD"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UpdateDestinationCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateDestinationCommand, _super); // Start section: command_properties // End section: command_properties function UpdateDestinationCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UpdateDestinationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateDestinationInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateDestinationOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UpdateDestinationCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1UpdateDestinationCommand"])(input, context); }; UpdateDestinationCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1UpdateDestinationCommand"])(output, context); }; return UpdateDestinationCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=UpdateDestinationCommand.js.map /***/ }), /***/ "+wnk": /*!****************************************************!*\ !*** ./node_modules/universal-cookie/es6/utils.js ***! \****************************************************/ /*! exports provided: hasDocumentCookie, cleanCookies, parseCookies, isParsingCookie, readCookie */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasDocumentCookie", function() { return hasDocumentCookie; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cleanCookies", function() { return cleanCookies; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseCookies", function() { return parseCookies; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isParsingCookie", function() { return isParsingCookie; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "readCookie", function() { return readCookie; }); /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "iVi/"); /* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cookie__WEBPACK_IMPORTED_MODULE_0__); function hasDocumentCookie() { // Can we get/set cookies on document.cookie? return typeof document === 'object' && typeof document.cookie === 'string'; } function cleanCookies() { document.cookie.split(';').forEach(function (c) { document.cookie = c .replace(/^ +/, '') .replace(/=.*/, '=;expires=' + new Date().toUTCString() + ';path=/'); }); } function parseCookies(cookies, options) { if (typeof cookies === 'string') { return cookie__WEBPACK_IMPORTED_MODULE_0__["parse"](cookies, options); } else if (typeof cookies === 'object' && cookies !== null) { return cookies; } else { return {}; } } function isParsingCookie(value, doNotParse) { if (typeof doNotParse === 'undefined') { // We guess if the cookie start with { or [, it has been serialized doNotParse = !value || (value[0] !== '{' && value[0] !== '[' && value[0] !== '"'); } return !doNotParse; } function readCookie(value, options) { if (options === void 0) { options = {}; } var cleanValue = cleanupCookieValue(value); if (isParsingCookie(cleanValue, options.doNotParse)) { try { return JSON.parse(cleanValue); } catch (e) { // At least we tried } } // Ignore clean value if we failed the deserialization // It is not relevant anymore to trim those values return value; } function cleanupCookieValue(value) { // express prepend j: before serializing a cookie if (value && value[0] === 'j' && value[1] === ':') { return value.substr(2); } return value; } /***/ }), /***/ "/0mR": /*!*****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/SearchFacesCommand.js ***! \*****************************************************************************************/ /*! exports provided: SearchFacesCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SearchFacesCommand", function() { return SearchFacesCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var SearchFacesCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SearchFacesCommand, _super); // Start section: command_properties // End section: command_properties function SearchFacesCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } SearchFacesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["SearchFacesRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["SearchFacesResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; SearchFacesCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1SearchFacesCommand"])(input, context); }; SearchFacesCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1SearchFacesCommand"])(output, context); }; return SearchFacesCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=SearchFacesCommand.js.map /***/ }), /***/ "/9aa": /*!*****************************************!*\ !*** ./node_modules/lodash/isSymbol.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "NykK"), isObjectLike = __webpack_require__(/*! ./isObjectLike */ "ExA7"); /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; /** * Checks if `value` is classified as a `Symbol` primitive or object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * * _.isSymbol(Symbol.iterator); * // => true * * _.isSymbol('abc'); * // => false */ function isSymbol(value) { return typeof value == 'symbol' || (isObjectLike(value) && baseGetTag(value) == symbolTag); } module.exports = isSymbol; /***/ }), /***/ "/C/i": /*!***********************************************************************!*\ !*** ./node_modules/graphql/validation/rules/UniqueArgumentNames.mjs ***! \***********************************************************************/ /*! exports provided: duplicateArgMessage, UniqueArgumentNames */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "duplicateArgMessage", function() { return duplicateArgMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UniqueArgumentNames", function() { return UniqueArgumentNames; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function duplicateArgMessage(argName) { return "There can be only one argument named \"".concat(argName, "\"."); } /** * Unique argument names * * A GraphQL field or directive is only valid if all supplied arguments are * uniquely named. */ function UniqueArgumentNames(context) { var knownArgNames = Object.create(null); return { Field: function Field() { knownArgNames = Object.create(null); }, Directive: function Directive() { knownArgNames = Object.create(null); }, Argument: function Argument(node) { var argName = node.name.value; if (knownArgNames[argName]) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](duplicateArgMessage(argName), [knownArgNames[argName], node.name])); } else { knownArgNames[argName] = node.name; } return false; } }; } /***/ }), /***/ "/LVy": /*!****************************************************************!*\ !*** ./node_modules/@aws-sdk/smithy-client/dist/es/command.js ***! \****************************************************************/ /*! exports provided: Command */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Command", function() { return Command; }); /* harmony import */ var _aws_sdk_middleware_stack__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-sdk/middleware-stack */ "YuOy"); var Command = /** @class */ (function () { function Command() { this.middlewareStack = Object(_aws_sdk_middleware_stack__WEBPACK_IMPORTED_MODULE_0__["constructStack"])(); } return Command; }()); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUczRDtJQUFBO1FBUVcsb0JBQWUsR0FBb0MsY0FBYyxFQUFpQixDQUFDO0lBTTlGLENBQUM7SUFBRCxjQUFDO0FBQUQsQ0FBQyxBQWRELElBY0MiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjb25zdHJ1Y3RTdGFjayB9IGZyb20gXCJAYXdzLXNkay9taWRkbGV3YXJlLXN0YWNrXCI7XG5pbXBvcnQgeyBDb21tYW5kIGFzIElDb21tYW5kLCBIYW5kbGVyLCBNZXRhZGF0YUJlYXJlciwgTWlkZGxld2FyZVN0YWNrIGFzIElNaWRkbGV3YXJlU3RhY2sgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuZXhwb3J0IGFic3RyYWN0IGNsYXNzIENvbW1hbmQ8XG4gIElucHV0IGV4dGVuZHMgQ2xpZW50SW5wdXQsXG4gIE91dHB1dCBleHRlbmRzIENsaWVudE91dHB1dCxcbiAgUmVzb2x2ZWRDbGllbnRDb25maWd1cmF0aW9uLFxuICBDbGllbnRJbnB1dCBleHRlbmRzIG9iamVjdCA9IGFueSxcbiAgQ2xpZW50T3V0cHV0IGV4dGVuZHMgTWV0YWRhdGFCZWFyZXIgPSBhbnlcbj4gaW1wbGVtZW50cyBJQ29tbWFuZDxDbGllbnRJbnB1dCwgSW5wdXQsIENsaWVudE91dHB1dCwgT3V0cHV0LCBSZXNvbHZlZENsaWVudENvbmZpZ3VyYXRpb24+IHtcbiAgYWJzdHJhY3QgaW5wdXQ6IElucHV0O1xuICByZWFkb25seSBtaWRkbGV3YXJlU3RhY2s6IElNaWRkbGV3YXJlU3RhY2s8SW5wdXQsIE91dHB1dD4gPSBjb25zdHJ1Y3RTdGFjazxJbnB1dCwgT3V0cHV0PigpO1xuICBhYnN0cmFjdCByZXNvbHZlTWlkZGxld2FyZShcbiAgICBzdGFjazogSU1pZGRsZXdhcmVTdGFjazxDbGllbnRJbnB1dCwgQ2xpZW50T3V0cHV0PixcbiAgICBjb25maWd1cmF0aW9uOiBSZXNvbHZlZENsaWVudENvbmZpZ3VyYXRpb24sXG4gICAgb3B0aW9uczogYW55XG4gICk6IEhhbmRsZXI8SW5wdXQsIE91dHB1dD47XG59XG4iXX0= /***/ }), /***/ "/P9S": /*!***********************************************************************!*\ !*** ./node_modules/@aws-sdk/xml-builder/dist/es/escape-attribute.js ***! \***********************************************************************/ /*! exports provided: escapeAttribute */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeAttribute", function() { return escapeAttribute; }); /** * Escapes characters that can not be in an XML attribute. */ function escapeAttribute(value) { return value.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNjYXBlLWF0dHJpYnV0ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lc2NhcGUtYXR0cmlidXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxVQUFVLGVBQWUsQ0FBQyxLQUFhO0lBQzNDLE9BQU8sS0FBSyxDQUFDLE9BQU8sQ0FBQyxJQUFJLEVBQUUsT0FBTyxDQUFDLENBQUMsT0FBTyxDQUFDLElBQUksRUFBRSxNQUFNLENBQUMsQ0FBQyxPQUFPLENBQUMsSUFBSSxFQUFFLE1BQU0sQ0FBQyxDQUFDLE9BQU8sQ0FBQyxJQUFJLEVBQUUsUUFBUSxDQUFDLENBQUM7QUFDMUcsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXNjYXBlcyBjaGFyYWN0ZXJzIHRoYXQgY2FuIG5vdCBiZSBpbiBhbiBYTUwgYXR0cmlidXRlLlxuICovXG5leHBvcnQgZnVuY3Rpb24gZXNjYXBlQXR0cmlidXRlKHZhbHVlOiBzdHJpbmcpOiBzdHJpbmcge1xuICByZXR1cm4gdmFsdWUucmVwbGFjZSgvJi9nLCBcIiZhbXA7XCIpLnJlcGxhY2UoLzwvZywgXCImbHQ7XCIpLnJlcGxhY2UoLz4vZywgXCImZ3Q7XCIpLnJlcGxhY2UoL1wiL2csIFwiJnF1b3Q7XCIpO1xufVxuIl19 /***/ }), /***/ "/PXZ": /*!*********************************************************************************!*\ !*** ./node_modules/@aws-amplify/analytics/lib-esm/vendor/dom-utils/closest.js ***! \*********************************************************************************/ /*! exports provided: closest */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "closest", function() { return closest; }); /* harmony import */ var _matches__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./matches */ "lVaT"); /* harmony import */ var _parents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parents */ "c83j"); /** * Copyright (c) 2017, Philip Walton */ /** * Gets the closest parent element that matches the passed selector. * @param {Element} element The element whose parents to check. * @param {string} selector The CSS selector to match against. * @param {boolean=} shouldCheckSelf True if the selector should test against * the passed element itself. * @return {Element|undefined} The matching element or undefined. */ function closest(element, selector, shouldCheckSelf) { if (shouldCheckSelf === void 0) { shouldCheckSelf = false; } if (!(element && element.nodeType === 1 && selector)) return; var parentElements = (shouldCheckSelf ? [element] : []).concat(Object(_parents__WEBPACK_IMPORTED_MODULE_1__["parents"])(element)); for (var i = 0, parent_1; (parent_1 = parentElements[i]); i++) { if (Object(_matches__WEBPACK_IMPORTED_MODULE_0__["matches"])(parent_1, selector)) return parent_1; } } //# sourceMappingURL=closest.js.map /***/ }), /***/ "/WRn": /*!***************************************************************************!*\ !*** ./node_modules/@aws-sdk/signature-v4/dist/es/getCanonicalHeaders.js ***! \***************************************************************************/ /*! exports provided: getCanonicalHeaders */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCanonicalHeaders", function() { return getCanonicalHeaders; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "IkwW"); /** * @internal */ function getCanonicalHeaders(_a, unsignableHeaders, signableHeaders) { var e_1, _b; var headers = _a.headers; var canonical = {}; try { for (var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(headers).sort()), _d = _c.next(); !_d.done; _d = _c.next()) { var headerName = _d.value; var canonicalHeaderName = headerName.toLowerCase(); if (canonicalHeaderName in _constants__WEBPACK_IMPORTED_MODULE_1__["ALWAYS_UNSIGNABLE_HEADERS"] || (unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || _constants__WEBPACK_IMPORTED_MODULE_1__["PROXY_HEADER_PATTERN"].test(canonicalHeaderName) || _constants__WEBPACK_IMPORTED_MODULE_1__["SEC_HEADER_PATTERN"].test(canonicalHeaderName)) { if (!signableHeaders || (signableHeaders && !signableHeaders.has(canonicalHeaderName))) { continue; } } canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " "); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_b = _c.return)) _b.call(_c); } finally { if (e_1) throw e_1.error; } } return canonical; } //# sourceMappingURL=getCanonicalHeaders.js.map /***/ }), /***/ "/boe": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetBucketNotificationConfigurationCommand.js ***! \*******************************************************************************************************/ /*! exports provided: GetBucketNotificationConfigurationCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBucketNotificationConfigurationCommand", function() { return GetBucketNotificationConfigurationCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetBucketNotificationConfigurationCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetBucketNotificationConfigurationCommand, _super); // Start section: command_properties // End section: command_properties function GetBucketNotificationConfigurationCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetBucketNotificationConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketNotificationConfigurationRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["NotificationConfiguration"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetBucketNotificationConfigurationCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetBucketNotificationConfigurationCommand"])(input, context); }; GetBucketNotificationConfigurationCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetBucketNotificationConfigurationCommand"])(output, context); }; return GetBucketNotificationConfigurationCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetBucketNotificationConfigurationCommand.js.map /***/ }), /***/ "/d8p": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/repeat.js ***! \*****************************************************************/ /*! exports provided: repeat */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "repeat", function() { return repeat; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); /* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../observable/empty */ "EY2u"); function repeat(count = -1) { return (source) => { if (count === 0) { return Object(_observable_empty__WEBPACK_IMPORTED_MODULE_1__["empty"])(); } else if (count < 0) { return source.lift(new RepeatOperator(-1, source)); } else { return source.lift(new RepeatOperator(count - 1, source)); } }; } class RepeatOperator { constructor(count, source) { this.count = count; this.source = source; } call(subscriber, source) { return source.subscribe(new RepeatSubscriber(subscriber, this.count, this.source)); } } class RepeatSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, count, source) { super(destination); this.count = count; this.source = source; } complete() { if (!this.isStopped) { const { source, count } = this; if (count === 0) { return super.complete(); } else if (count > -1) { this.count = count - 1; } source.subscribe(this._unsubscribeAndRecycle()); } } } //# sourceMappingURL=repeat.js.map /***/ }), /***/ "/hlF": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutBucketVersioningCommand.js ***! \****************************************************************************************/ /*! exports provided: PutBucketVersioningCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutBucketVersioningCommand", function() { return PutBucketVersioningCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutBucketVersioningCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutBucketVersioningCommand, _super); // Start section: command_properties // End section: command_properties function PutBucketVersioningCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutBucketVersioningCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutBucketVersioningRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutBucketVersioningCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutBucketVersioningCommand"])(input, context); }; PutBucketVersioningCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutBucketVersioningCommand"])(output, context); }; return PutBucketVersioningCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=PutBucketVersioningCommand.js.map /***/ }), /***/ "/jXB": /*!*************************************************!*\ !*** ./node_modules/graphql/language/kinds.mjs ***! \*************************************************/ /*! exports provided: Kind */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kind", function() { return Kind; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * The set of allowed kind values for AST nodes. */ var Kind = Object.freeze({ // Name NAME: 'Name', // Document DOCUMENT: 'Document', OPERATION_DEFINITION: 'OperationDefinition', VARIABLE_DEFINITION: 'VariableDefinition', SELECTION_SET: 'SelectionSet', FIELD: 'Field', ARGUMENT: 'Argument', // Fragments FRAGMENT_SPREAD: 'FragmentSpread', INLINE_FRAGMENT: 'InlineFragment', FRAGMENT_DEFINITION: 'FragmentDefinition', // Values VARIABLE: 'Variable', INT: 'IntValue', FLOAT: 'FloatValue', STRING: 'StringValue', BOOLEAN: 'BooleanValue', NULL: 'NullValue', ENUM: 'EnumValue', LIST: 'ListValue', OBJECT: 'ObjectValue', OBJECT_FIELD: 'ObjectField', // Directives DIRECTIVE: 'Directive', // Types NAMED_TYPE: 'NamedType', LIST_TYPE: 'ListType', NON_NULL_TYPE: 'NonNullType', // Type System Definitions SCHEMA_DEFINITION: 'SchemaDefinition', OPERATION_TYPE_DEFINITION: 'OperationTypeDefinition', // Type Definitions SCALAR_TYPE_DEFINITION: 'ScalarTypeDefinition', OBJECT_TYPE_DEFINITION: 'ObjectTypeDefinition', FIELD_DEFINITION: 'FieldDefinition', INPUT_VALUE_DEFINITION: 'InputValueDefinition', INTERFACE_TYPE_DEFINITION: 'InterfaceTypeDefinition', UNION_TYPE_DEFINITION: 'UnionTypeDefinition', ENUM_TYPE_DEFINITION: 'EnumTypeDefinition', ENUM_VALUE_DEFINITION: 'EnumValueDefinition', INPUT_OBJECT_TYPE_DEFINITION: 'InputObjectTypeDefinition', // Directive Definitions DIRECTIVE_DEFINITION: 'DirectiveDefinition', // Type System Extensions SCHEMA_EXTENSION: 'SchemaExtension', // Type Extensions SCALAR_TYPE_EXTENSION: 'ScalarTypeExtension', OBJECT_TYPE_EXTENSION: 'ObjectTypeExtension', INTERFACE_TYPE_EXTENSION: 'InterfaceTypeExtension', UNION_TYPE_EXTENSION: 'UnionTypeExtension', ENUM_TYPE_EXTENSION: 'EnumTypeExtension', INPUT_OBJECT_TYPE_EXTENSION: 'InputObjectTypeExtension' }); /** * The enum type representing the possible kind values of AST nodes. */ /***/ }), /***/ "/kEc": /*!****************************************************!*\ !*** ./node_modules/graphql/jsutils/isInvalid.mjs ***! \****************************************************/ /*! exports provided: default */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isInvalid; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Returns true if a value is undefined, or NaN. */ function isInvalid(value) { return value === undefined || value !== value; } /***/ }), /***/ "/sDv": /*!*************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationSettingsCommand.js ***! \*************************************************************************************************/ /*! exports provided: GetApplicationSettingsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsCommand", function() { return GetApplicationSettingsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetApplicationSettingsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetApplicationSettingsCommand, _super); // Start section: command_properties // End section: command_properties function GetApplicationSettingsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetApplicationSettingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetApplicationSettingsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetApplicationSettingsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetApplicationSettingsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetApplicationSettingsCommand"])(input, context); }; GetApplicationSettingsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetApplicationSettingsCommand"])(output, context); }; return GetApplicationSettingsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetApplicationSettingsCommand.js.map /***/ }), /***/ "/tdA": /*!********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetBucketRequestPaymentCommand.js ***! \********************************************************************************************/ /*! exports provided: GetBucketRequestPaymentCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBucketRequestPaymentCommand", function() { return GetBucketRequestPaymentCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetBucketRequestPaymentCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetBucketRequestPaymentCommand, _super); // Start section: command_properties // End section: command_properties function GetBucketRequestPaymentCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetBucketRequestPaymentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketRequestPaymentRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketRequestPaymentOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetBucketRequestPaymentCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetBucketRequestPaymentCommand"])(input, context); }; GetBucketRequestPaymentCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetBucketRequestPaymentCommand"])(output, context); }; return GetBucketRequestPaymentCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetBucketRequestPaymentCommand.js.map /***/ }), /***/ "/tqZ": /*!********************************************************************!*\ !*** ./node_modules/zen-push/node_modules/zen-observable/index.js ***! \********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! ./zen-observable.js */ "knNr").Observable; /***/ }), /***/ "/uKA": /*!*************************************************************!*\ !*** ./node_modules/@aws-sdk/client-polly/dist/es/Polly.js ***! \*************************************************************/ /*! exports provided: Polly */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Polly", function() { return Polly; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _PollyClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PollyClient */ "EGfy"); /* harmony import */ var _commands_DeleteLexiconCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/DeleteLexiconCommand */ "EAju"); /* harmony import */ var _commands_DescribeVoicesCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/DescribeVoicesCommand */ "f2PL"); /* harmony import */ var _commands_GetLexiconCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/GetLexiconCommand */ "d3V/"); /* harmony import */ var _commands_GetSpeechSynthesisTaskCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/GetSpeechSynthesisTaskCommand */ "F7JK"); /* harmony import */ var _commands_ListLexiconsCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/ListLexiconsCommand */ "Nc/2"); /* harmony import */ var _commands_ListSpeechSynthesisTasksCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/ListSpeechSynthesisTasksCommand */ "RXia"); /* harmony import */ var _commands_PutLexiconCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/PutLexiconCommand */ "AhNH"); /* harmony import */ var _commands_StartSpeechSynthesisTaskCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/StartSpeechSynthesisTaskCommand */ "dYIA"); /* harmony import */ var _commands_SynthesizeSpeechCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/SynthesizeSpeechCommand */ "PyPM"); /** *

Amazon Polly is a web service that makes it easy to synthesize speech from text.

*

The Amazon Polly service provides API operations for synthesizing high-quality speech from plain text and Speech Synthesis Markup Language (SSML), * along with managing pronunciations lexicons that enable you to get the best results for your application domain.

*/ var Polly = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Polly, _super); function Polly() { return _super !== null && _super.apply(this, arguments) || this; } Polly.prototype.deleteLexicon = function (args, optionsOrCb, cb) { var command = new _commands_DeleteLexiconCommand__WEBPACK_IMPORTED_MODULE_2__["DeleteLexiconCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Polly.prototype.describeVoices = function (args, optionsOrCb, cb) { var command = new _commands_DescribeVoicesCommand__WEBPACK_IMPORTED_MODULE_3__["DescribeVoicesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Polly.prototype.getLexicon = function (args, optionsOrCb, cb) { var command = new _commands_GetLexiconCommand__WEBPACK_IMPORTED_MODULE_4__["GetLexiconCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Polly.prototype.getSpeechSynthesisTask = function (args, optionsOrCb, cb) { var command = new _commands_GetSpeechSynthesisTaskCommand__WEBPACK_IMPORTED_MODULE_5__["GetSpeechSynthesisTaskCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Polly.prototype.listLexicons = function (args, optionsOrCb, cb) { var command = new _commands_ListLexiconsCommand__WEBPACK_IMPORTED_MODULE_6__["ListLexiconsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Polly.prototype.listSpeechSynthesisTasks = function (args, optionsOrCb, cb) { var command = new _commands_ListSpeechSynthesisTasksCommand__WEBPACK_IMPORTED_MODULE_7__["ListSpeechSynthesisTasksCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Polly.prototype.putLexicon = function (args, optionsOrCb, cb) { var command = new _commands_PutLexiconCommand__WEBPACK_IMPORTED_MODULE_8__["PutLexiconCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Polly.prototype.startSpeechSynthesisTask = function (args, optionsOrCb, cb) { var command = new _commands_StartSpeechSynthesisTaskCommand__WEBPACK_IMPORTED_MODULE_9__["StartSpeechSynthesisTaskCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Polly.prototype.synthesizeSpeech = function (args, optionsOrCb, cb) { var command = new _commands_SynthesizeSpeechCommand__WEBPACK_IMPORTED_MODULE_10__["SynthesizeSpeechCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; return Polly; }(_PollyClient__WEBPACK_IMPORTED_MODULE_1__["PollyClient"])); //# sourceMappingURL=Polly.js.map /***/ }), /***/ "/uUt": /*!*******************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/distinctUntilChanged.js ***! \*******************************************************************************/ /*! exports provided: distinctUntilChanged */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "distinctUntilChanged", function() { return distinctUntilChanged; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); function distinctUntilChanged(compare, keySelector) { return (source) => source.lift(new DistinctUntilChangedOperator(compare, keySelector)); } class DistinctUntilChangedOperator { constructor(compare, keySelector) { this.compare = compare; this.keySelector = keySelector; } call(subscriber, source) { return source.subscribe(new DistinctUntilChangedSubscriber(subscriber, this.compare, this.keySelector)); } } class DistinctUntilChangedSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, compare, keySelector) { super(destination); this.keySelector = keySelector; this.hasKey = false; if (typeof compare === 'function') { this.compare = compare; } } compare(x, y) { return x === y; } _next(value) { let key; try { const { keySelector } = this; key = keySelector ? keySelector(value) : value; } catch (err) { return this.destination.error(err); } let result = false; if (this.hasKey) { try { const { compare } = this; result = compare(this.key, key); } catch (err) { return this.destination.error(err); } } else { this.hasKey = true; } if (!result) { this.key = key; this.destination.next(value); } } } //# sourceMappingURL=distinctUntilChanged.js.map /***/ }), /***/ "/vcS": /*!********************************************************************************!*\ !*** ./node_modules/@aws-amplify/ui-components/dist/esm/constants-d1abe7de.js ***! \********************************************************************************/ /*! exports provided: A, C, E, N, P, R, S, T, U, a, b, c, d, e, f, g, h, i, j, k, l, m */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return AUTH_CHANNEL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return COUNTRY_DIAL_CODE_SUFFIX; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return EMAIL_SUFFIX; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return NO_AUTH_MODULE_FOUND; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return PHONE_EMPTY_ERROR_MESSAGE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return REDIRECTED_FROM_HOSTED_UI; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return SETUP_TOTP; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return TOAST_AUTH_ERROR_EVENT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return UI_AUTH_CHANNEL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AUTH_STATE_CHANGE_EVENT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return PHONE_SUFFIX; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return AUTHENTICATOR_AUTHSTATE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return NO_INTERACTIONS_MODULE_FOUND; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return NO_STORAGE_MODULE_FOUND; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return USER_NOT_SETUP_SOFTWARE_TOKEN_MFA; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return USER_NOT_VERIFIED_SOFTWARE_TOKEN_MFA; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return COUNTRY_DIAL_CODE_DEFAULT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return AUTH_SOURCE_KEY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return CODE_SUFFIX; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return PASSWORD_SUFFIX; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return USERNAME_SUFFIX; }); // Dictionaries // fieldId constants const USERNAME_SUFFIX = 'username'; const EMAIL_SUFFIX = 'email'; const CODE_SUFFIX = 'code'; const PHONE_SUFFIX = 'phone'; const PASSWORD_SUFFIX = 'password'; // Country Dial Code common constants const COUNTRY_DIAL_CODE_SUFFIX = 'country-dial-code-select'; const COUNTRY_DIAL_CODE_DEFAULT = '+1'; // Auth Keys const AUTH_SOURCE_KEY = 'amplify-auth-source'; const REDIRECTED_FROM_HOSTED_UI = 'amplify-redirected-from-hosted-ui'; const AUTHENTICATOR_AUTHSTATE = 'amplify-authenticator-authState'; // Error message Common Constants const PHONE_EMPTY_ERROR_MESSAGE = 'Phone number can not be empty'; const NO_AUTH_MODULE_FOUND = 'No Auth module found, please ensure @aws-amplify/auth is imported'; const NO_STORAGE_MODULE_FOUND = 'No Storage module found, please ensure @aws-amplify/storage is imported'; const NO_INTERACTIONS_MODULE_FOUND = 'No Interactions module found, please ensure @aws-amplify/interactions is imported'; // TOTP Messages const SETUP_TOTP = 'SETUP_TOTP'; // Select MFA Types Messages const USER_NOT_SETUP_SOFTWARE_TOKEN_MFA = 'User has not set up software token mfa'; const USER_NOT_VERIFIED_SOFTWARE_TOKEN_MFA = 'User has not verified software token mfa'; // Common events const SUCCESS = 'SUCCESS'; // Hub Events and Channels const AUTH_CHANNEL = 'auth'; const UI_AUTH_CHANNEL = 'UI Auth'; const TOAST_AUTH_ERROR_EVENT = 'ToastAuthError'; const AUTH_STATE_CHANGE_EVENT = 'AuthStateChange'; /***/ }), /***/ "/wK6": /*!************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordsCommand.js ***! \************************************************************************************/ /*! exports provided: PutRecordsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordsCommand", function() { return PutRecordsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutRecordsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutRecordsCommand, _super); // Start section: command_properties // End section: command_properties function PutRecordsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutRecordsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutRecordsInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutRecordsOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutRecordsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1PutRecordsCommand"])(input, context); }; PutRecordsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1PutRecordsCommand"])(output, context); }; return PutRecordsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=PutRecordsCommand.js.map /***/ }), /***/ "/xGt": /*!*****************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/OAuthHelper/index.js ***! \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var GoogleOAuth_1 = __webpack_require__(/*! ./GoogleOAuth */ "3aDT"); var FacebookOAuth_1 = __webpack_require__(/*! ./FacebookOAuth */ "l9Po"); exports.GoogleOAuth = new GoogleOAuth_1.GoogleOAuth(); exports.FacebookOAuth = new FacebookOAuth_1.FacebookOAuth(); //# sourceMappingURL=index.js.map /***/ }), /***/ "/yzG": /*!********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/eventstream-serde-universal/dist/es/getUnmarshalledStream.js ***! \********************************************************************************************/ /*! exports provided: getUnmarshalledStream */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUnmarshalledStream", function() { return getUnmarshalledStream; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); function getUnmarshalledStream(source, options) { var _a; return _a = {}, _a[Symbol.asyncIterator] = function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function () { var source_1, source_1_1, chunk, message, messageType, unmodeledError, code, exception, deserializedException, error, event, deserialized, e_1_1; var _a, _b; var e_1, _c; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_d) { switch (_d.label) { case 0: _d.trys.push([0, 12, 13, 18]); source_1 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncValues"])(source); _d.label = 1; case 1: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(source_1.next())]; case 2: if (!(source_1_1 = _d.sent(), !source_1_1.done)) return [3 /*break*/, 11]; chunk = source_1_1.value; message = options.eventMarshaller.unmarshall(chunk); messageType = message.headers[":message-type"].value; if (!(messageType === "error")) return [3 /*break*/, 3]; unmodeledError = new Error(message.headers[":error-message"].value || "UnknownError"); unmodeledError.name = message.headers[":error-code"].value; throw unmodeledError; case 3: if (!(messageType === "exception")) return [3 /*break*/, 5]; code = message.headers[":exception-type"].value; exception = (_a = {}, _a[code] = message, _a); return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(options.deserializer(exception))]; case 4: deserializedException = _d.sent(); if (deserializedException.$unknown) { error = new Error(options.toUtf8(message.body)); error.name = code; throw error; } throw deserializedException[code]; case 5: if (!(messageType === "event")) return [3 /*break*/, 9]; event = (_b = {}, _b[message.headers[":event-type"].value] = message, _b); return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(options.deserializer(event))]; case 6: deserialized = _d.sent(); if (deserialized.$unknown) return [3 /*break*/, 10]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(deserialized)]; case 7: return [4 /*yield*/, _d.sent()]; case 8: _d.sent(); return [3 /*break*/, 10]; case 9: throw Error("Unrecognizable event type: " + message.headers[":event-type"].value); case 10: return [3 /*break*/, 1]; case 11: return [3 /*break*/, 18]; case 12: e_1_1 = _d.sent(); e_1 = { error: e_1_1 }; return [3 /*break*/, 18]; case 13: _d.trys.push([13, , 16, 17]); if (!(source_1_1 && !source_1_1.done && (_c = source_1.return))) return [3 /*break*/, 15]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(_c.call(source_1))]; case 14: _d.sent(); _d.label = 15; case 15: return [3 /*break*/, 17]; case 16: if (e_1) throw e_1.error; return [7 /*endfinally*/]; case 17: return [7 /*endfinally*/]; case 18: return [2 /*return*/]; } }); }); }, _a; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0VW5tYXJzaGFsbGVkU3RyZWFtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2dldFVubWFyc2hhbGxlZFN0cmVhbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBU0EsTUFBTSxVQUFVLHFCQUFxQixDQUNuQyxNQUFpQyxFQUNqQyxPQUFxQzs7SUFFckM7UUFDRSxHQUFDLE1BQU0sQ0FBQyxhQUFhLElBQUc7Ozs7Ozs7Ozs0QkFDSSxXQUFBLGNBQUEsTUFBTSxDQUFBOzs7Ozs0QkFBZixLQUFLLG1CQUFBLENBQUE7NEJBQ2QsT0FBTyxHQUFHLE9BQU8sQ0FBQyxlQUFlLENBQUMsVUFBVSxDQUFDLEtBQUssQ0FBQyxDQUFDOzRCQUMzQyxXQUFXLEdBQUssT0FBTyxDQUFDLE9BQU8sQ0FBQyxlQUFlLENBQUMsTUFBckMsQ0FBc0M7aUNBQzVELENBQUEsV0FBVyxLQUFLLE9BQU8sQ0FBQSxFQUF2Qix3QkFBdUI7NEJBRW5CLGNBQWMsR0FBRyxJQUFJLEtBQUssQ0FBRSxPQUFPLENBQUMsT0FBTyxDQUFDLGdCQUFnQixDQUFDLENBQUMsS0FBZ0IsSUFBSSxjQUFjLENBQUMsQ0FBQzs0QkFDeEcsY0FBYyxDQUFDLElBQUksR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLGFBQWEsQ0FBQyxDQUFDLEtBQWUsQ0FBQzs0QkFDckUsTUFBTSxjQUFjLENBQUM7O2lDQUNaLENBQUEsV0FBVyxLQUFLLFdBQVcsQ0FBQSxFQUEzQix3QkFBMkI7NEJBRTlCLElBQUksR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLGlCQUFpQixDQUFDLENBQUMsS0FBZSxDQUFDOzRCQUMxRCxTQUFTLGFBQUssR0FBQyxJQUFJLElBQUcsT0FBTyxLQUFFLENBQUM7NEJBRVIsNkJBQU0sT0FBTyxDQUFDLFlBQVksQ0FBQyxTQUFTLENBQUMsR0FBQTs7NEJBQTdELHFCQUFxQixHQUFHLFNBQXFDOzRCQUNuRSxJQUFJLHFCQUFxQixDQUFDLFFBQVEsRUFBRTtnQ0FFNUIsS0FBSyxHQUFHLElBQUksS0FBSyxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7Z0NBQ3RELEtBQUssQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO2dDQUNsQixNQUFNLEtBQUssQ0FBQzs2QkFDYjs0QkFDRCxNQUFNLHFCQUFxQixDQUFDLElBQUksQ0FBQyxDQUFDOztpQ0FDekIsQ0FBQSxXQUFXLEtBQUssT0FBTyxDQUFBLEVBQXZCLHdCQUF1Qjs0QkFDMUIsS0FBSztnQ0FDVCxHQUFDLE9BQU8sQ0FBQyxPQUFPLENBQUMsYUFBYSxDQUFDLENBQUMsS0FBZSxJQUFHLE9BQU87bUNBQzFELENBQUM7NEJBQ21CLDZCQUFNLE9BQU8sQ0FBQyxZQUFZLENBQUMsS0FBSyxDQUFDLEdBQUE7OzRCQUFoRCxZQUFZLEdBQUcsU0FBaUM7NEJBQ3RELElBQUksWUFBWSxDQUFDLFFBQVE7Z0NBQUUseUJBQVM7eURBQzlCLFlBQVk7Z0NBQWxCLGdDQUFrQjs7NEJBQWxCLFNBQWtCLENBQUM7O2dDQUVuQixNQUFNLEtBQUssQ0FBQyxnQ0FBOEIsT0FBTyxDQUFDLE9BQU8sQ0FBQyxhQUFhLENBQUMsQ0FBQyxLQUFPLENBQUMsQ0FBQzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7U0FHdkY7V0FDRDtBQUNKLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFdmVudFN0cmVhbU1hcnNoYWxsZXIgYXMgRXZlbnRNYXJzaGFsbGVyIH0gZnJvbSBcIkBhd3Mtc2RrL2V2ZW50c3RyZWFtLW1hcnNoYWxsZXJcIjtcbmltcG9ydCB7IEVuY29kZXIsIE1lc3NhZ2UgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuZXhwb3J0IHR5cGUgVW5tYXJzaGFsbGVkU3RyZWFtT3B0aW9uczxUPiA9IHtcbiAgZXZlbnRNYXJzaGFsbGVyOiBFdmVudE1hcnNoYWxsZXI7XG4gIGRlc2VyaWFsaXplcjogKGlucHV0OiB7IFtuYW1lOiBzdHJpbmddOiBNZXNzYWdlIH0pID0+IFByb21pc2U8VD47XG4gIHRvVXRmODogRW5jb2Rlcjtcbn07XG5cbmV4cG9ydCBmdW5jdGlvbiBnZXRVbm1hcnNoYWxsZWRTdHJlYW08VCBleHRlbmRzIHsgW2tleTogc3RyaW5nXTogYW55IH0+KFxuICBzb3VyY2U6IEFzeW5jSXRlcmFibGU8VWludDhBcnJheT4sXG4gIG9wdGlvbnM6IFVubWFyc2hhbGxlZFN0cmVhbU9wdGlvbnM8VD5cbik6IEFzeW5jSXRlcmFibGU8VD4ge1xuICByZXR1cm4ge1xuICAgIFtTeW1ib2wuYXN5bmNJdGVyYXRvcl06IGFzeW5jIGZ1bmN0aW9uKiAoKSB7XG4gICAgICBmb3IgYXdhaXQgKGNvbnN0IGNodW5rIG9mIHNvdXJjZSkge1xuICAgICAgICBjb25zdCBtZXNzYWdlID0gb3B0aW9ucy5ldmVudE1hcnNoYWxsZXIudW5tYXJzaGFsbChjaHVuayk7XG4gICAgICAgIGNvbnN0IHsgdmFsdWU6IG1lc3NhZ2VUeXBlIH0gPSBtZXNzYWdlLmhlYWRlcnNbXCI6bWVzc2FnZS10eXBlXCJdO1xuICAgICAgICBpZiAobWVzc2FnZVR5cGUgPT09IFwiZXJyb3JcIikge1xuICAgICAgICAgIC8vIFVubW9kZWxlZCBleGNlcHRpb24gaW4gZXZlbnRcbiAgICAgICAgICBjb25zdCB1bm1vZGVsZWRFcnJvciA9IG5ldyBFcnJvcigobWVzc2FnZS5oZWFkZXJzW1wiOmVycm9yLW1lc3NhZ2VcIl0udmFsdWUgYXMgc3RyaW5nKSB8fCBcIlVua25vd25FcnJvclwiKTtcbiAgICAgICAgICB1bm1vZGVsZWRFcnJvci5uYW1lID0gbWVzc2FnZS5oZWFkZXJzW1wiOmVycm9yLWNvZGVcIl0udmFsdWUgYXMgc3RyaW5nO1xuICAgICAgICAgIHRocm93IHVubW9kZWxlZEVycm9yO1xuICAgICAgICB9IGVsc2UgaWYgKG1lc3NhZ2VUeXBlID09PSBcImV4Y2VwdGlvblwiKSB7XG4gICAgICAgICAgLy8gRm9yIG1vZGVsZWQgZXhjZXB0aW9uLCBwdXNoIGl0IHRvIGRlc2VyaWFsaXplciBhbmQgdGhyb3cgYWZ0ZXIgZGVzZXJpYWxpemluZ1xuICAgICAgICAgIGNvbnN0IGNvZGUgPSBtZXNzYWdlLmhlYWRlcnNbXCI6ZXhjZXB0aW9uLXR5cGVcIl0udmFsdWUgYXMgc3RyaW5nO1xuICAgICAgICAgIGNvbnN0IGV4Y2VwdGlvbiA9IHsgW2NvZGVdOiBtZXNzYWdlIH07XG4gICAgICAgICAgLy8gR2V0IHBhcnNlZCBleGNlcHRpb24gZXZlbnQgaW4ga2V5KGVycm9yIGNvZGUpIHZhbHVlKHN0cnVjdHVyZWQgZXJyb3IpIHBhaXIuXG4gICAgICAgICAgY29uc3QgZGVzZXJpYWxpemVkRXhjZXB0aW9uID0gYXdhaXQgb3B0aW9ucy5kZXNlcmlhbGl6ZXIoZXhjZXB0aW9uKTtcbiAgICAgICAgICBpZiAoZGVzZXJpYWxpemVkRXhjZXB0aW9uLiR1bmtub3duKSB7XG4gICAgICAgICAgICAvL3RoaXMgaXMgYW4gdW5tb2RlbGVkIGV4Y2VwdGlvbiB0aGVuIHRyeSBwYXJzaW5nIGl0IHdpdGggYmVzdCBlZmZvcnRcbiAgICAgICAgICAgIGNvbnN0IGVycm9yID0gbmV3IEVycm9yKG9wdGlvbnMudG9VdGY4KG1lc3NhZ2UuYm9keSkpO1xuICAgICAgICAgICAgZXJyb3IubmFtZSA9IGNvZGU7XG4gICAgICAgICAgICB0aHJvdyBlcnJvcjtcbiAgICAgICAgICB9XG4gICAgICAgICAgdGhyb3cgZGVzZXJpYWxpemVkRXhjZXB0aW9uW2NvZGVdO1xuICAgICAgICB9IGVsc2UgaWYgKG1lc3NhZ2VUeXBlID09PSBcImV2ZW50XCIpIHtcbiAgICAgICAgICBjb25zdCBldmVudCA9IHtcbiAgICAgICAgICAgIFttZXNzYWdlLmhlYWRlcnNbXCI6ZXZlbnQtdHlwZVwiXS52YWx1ZSBhcyBzdHJpbmddOiBtZXNzYWdlLFxuICAgICAgICAgIH07XG4gICAgICAgICAgY29uc3QgZGVzZXJpYWxpemVkID0gYXdhaXQgb3B0aW9ucy5kZXNlcmlhbGl6ZXIoZXZlbnQpO1xuICAgICAgICAgIGlmIChkZXNlcmlhbGl6ZWQuJHVua25vd24pIGNvbnRpbnVlO1xuICAgICAgICAgIHlpZWxkIGRlc2VyaWFsaXplZDtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB0aHJvdyBFcnJvcihgVW5yZWNvZ25pemFibGUgZXZlbnQgdHlwZTogJHttZXNzYWdlLmhlYWRlcnNbXCI6ZXZlbnQtdHlwZVwiXS52YWx1ZX1gKTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0sXG4gIH07XG59XG4iXX0= /***/ }), /***/ "015y": /*!*****************************************************************!*\ !*** ./node_modules/@aws-sdk/client-polly/dist/es/package.json ***! \*****************************************************************/ /*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, author, license, default */ /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"@aws-sdk/client-polly\",\"description\":\"@aws-sdk/client-polly client\",\"version\":\"1.0.0-gamma.8\",\"scripts\":{\"clean\":\"npm run remove-definitions && npm run remove-dist\",\"build-documentation\":\"npm run clean && typedoc ./\",\"prepublishOnly\":\"yarn build\",\"pretest\":\"yarn build:cjs\",\"remove-definitions\":\"rimraf ./types\",\"remove-dist\":\"rimraf ./dist\",\"remove-documentation\":\"rimraf ./docs\",\"test\":\"exit 0\",\"build:cjs\":\"tsc -p tsconfig.json\",\"build:es\":\"tsc -p tsconfig.es.json\",\"build\":\"yarn build:cjs && yarn build:es\"},\"main\":\"./dist/cjs/index.js\",\"types\":\"./types/index.d.ts\",\"module\":\"./dist/es/index.js\",\"browser\":{\"./runtimeConfig\":\"./runtimeConfig.browser\"},\"react-native\":{\"./runtimeConfig\":\"./runtimeConfig.native\"},\"sideEffects\":false,\"dependencies\":{\"@aws-crypto/sha256-browser\":\"^1.0.0-alpha.0\",\"@aws-crypto/sha256-js\":\"^1.0.0-alpha.0\",\"@aws-sdk/config-resolver\":\"1.0.0-gamma.7\",\"@aws-sdk/credential-provider-node\":\"1.0.0-gamma.7\",\"@aws-sdk/fetch-http-handler\":\"1.0.0-gamma.8\",\"@aws-sdk/hash-node\":\"1.0.0-gamma.7\",\"@aws-sdk/invalid-dependency\":\"1.0.0-gamma.5\",\"@aws-sdk/middleware-content-length\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-host-header\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-logger\":\"1.0.0-gamma.1\",\"@aws-sdk/middleware-retry\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-serde\":\"1.0.0-gamma.6\",\"@aws-sdk/middleware-signing\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-stack\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-user-agent\":\"1.0.0-gamma.7\",\"@aws-sdk/node-config-provider\":\"1.0.0-gamma.2\",\"@aws-sdk/node-http-handler\":\"1.0.0-gamma.7\",\"@aws-sdk/protocol-http\":\"1.0.0-gamma.7\",\"@aws-sdk/smithy-client\":\"1.0.0-gamma.7\",\"@aws-sdk/types\":\"1.0.0-gamma.6\",\"@aws-sdk/url-parser-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/url-parser-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-base64-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-base64-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-user-agent-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/util-user-agent-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-utf8-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-utf8-node\":\"1.0.0-gamma.6\",\"tslib\":\"^2.0.0\"},\"devDependencies\":{\"@aws-sdk/client-documentation-generator\":\"1.0.0-gamma.5\",\"@types/node\":\"^12.7.5\",\"jest\":\"^26.1.0\",\"rimraf\":\"^3.0.0\",\"typedoc\":\"^0.17.8\",\"typescript\":\"~4.0.2\"},\"engines\":{\"node\":\">=8.0.0\"},\"author\":{\"name\":\"AWS SDK for JavaScript Team\",\"url\":\"https://aws.amazon.com/javascript/\"},\"license\":\"Apache-2.0\"}"); /***/ }), /***/ "02Lk": /*!*******************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/distinct.js ***! \*******************************************************************/ /*! exports provided: distinct, DistinctSubscriber */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "distinct", function() { return distinct; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DistinctSubscriber", function() { return DistinctSubscriber; }); /* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../innerSubscribe */ "zx2A"); function distinct(keySelector, flushes) { return (source) => source.lift(new DistinctOperator(keySelector, flushes)); } class DistinctOperator { constructor(keySelector, flushes) { this.keySelector = keySelector; this.flushes = flushes; } call(subscriber, source) { return source.subscribe(new DistinctSubscriber(subscriber, this.keySelector, this.flushes)); } } class DistinctSubscriber extends _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"] { constructor(destination, keySelector, flushes) { super(destination); this.keySelector = keySelector; this.values = new Set(); if (flushes) { this.add(Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(flushes, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](this))); } } notifyNext() { this.values.clear(); } notifyError(error) { this._error(error); } _next(value) { if (this.keySelector) { this._useKeySelector(value); } else { this._finalizeNext(value, value); } } _useKeySelector(value) { let key; const { destination } = this; try { key = this.keySelector(value); } catch (err) { destination.error(err); return; } this._finalizeNext(key, value); } _finalizeNext(key, value) { const { values } = this; if (!values.has(key)) { values.add(key); this.destination.next(value); } } } //# sourceMappingURL=distinct.js.map /***/ }), /***/ "03A+": /*!********************************************!*\ !*** ./node_modules/lodash/isArguments.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "JTzB"), isObjectLike = __webpack_require__(/*! ./isObjectLike */ "ExA7"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /** * Checks if `value` is likely an `arguments` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, * else `false`. * @example * * _.isArguments(function() { return arguments; }()); * // => true * * _.isArguments([1, 2, 3]); * // => false */ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); }; module.exports = isArguments; /***/ }), /***/ "04ZW": /*!****************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/fromEventPattern.js ***! \****************************************************************************/ /*! exports provided: fromEventPattern */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromEventPattern", function() { return fromEventPattern; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isArray */ "DH7j"); /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isFunction */ "n6bG"); /* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../operators/map */ "lJxs"); function fromEventPattern(addHandler, removeHandler, resultSelector) { if (resultSelector) { return fromEventPattern(addHandler, removeHandler).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_3__["map"])(args => Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(args) ? resultSelector(...args) : resultSelector(args))); } return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => { const handler = (...e) => subscriber.next(e.length === 1 ? e[0] : e); let retValue; try { retValue = addHandler(handler); } catch (err) { subscriber.error(err); return undefined; } if (!Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(removeHandler)) { return undefined; } return () => removeHandler(handler, retValue); }); } //# sourceMappingURL=fromEventPattern.js.map /***/ }), /***/ "05l1": /*!************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/publishReplay.js ***! \************************************************************************/ /*! exports provided: publishReplay */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "publishReplay", function() { return publishReplay; }); /* harmony import */ var _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ReplaySubject */ "jtHE"); /* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./multicast */ "oB13"); function publishReplay(bufferSize, windowTime, selectorOrScheduler, scheduler) { if (selectorOrScheduler && typeof selectorOrScheduler !== 'function') { scheduler = selectorOrScheduler; } const selector = typeof selectorOrScheduler === 'function' ? selectorOrScheduler : undefined; const subject = new _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__["ReplaySubject"](bufferSize, windowTime, scheduler); return (source) => Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(() => subject, selector)(source); } //# sourceMappingURL=publishReplay.js.map /***/ }), /***/ "07OR": /*!*****************************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/lib-esm/sync/processors/sync.js ***! \*****************************************************************************/ /*! exports provided: SyncProcessor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SyncProcessor", function() { return SyncProcessor; }); /* harmony import */ var _aws_amplify_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/api */ "Gyle"); /* harmony import */ var zen_observable_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zen-observable-ts */ "b0dj"); /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "U1Cx"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (undefined && undefined.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__["ConsoleLogger"]('DataStore'); var DEFAULT_PAGINATION_LIMIT = 1000; var DEFAULT_MAX_RECORDS_TO_SYNC = 10000; var SyncProcessor = /** @class */ (function () { function SyncProcessor(schema, maxRecordsToSync, syncPageSize) { if (maxRecordsToSync === void 0) { maxRecordsToSync = DEFAULT_MAX_RECORDS_TO_SYNC; } if (syncPageSize === void 0) { syncPageSize = DEFAULT_PAGINATION_LIMIT; } this.schema = schema; this.maxRecordsToSync = maxRecordsToSync; this.syncPageSize = syncPageSize; this.typeQuery = new WeakMap(); this.generateQueries(); } SyncProcessor.prototype.generateQueries = function () { var _this = this; Object.values(this.schema.namespaces).forEach(function (namespace) { Object.values(namespace.models) .filter(function (_a) { var syncable = _a.syncable; return syncable; }) .forEach(function (model) { var _a = __read(Object(_utils__WEBPACK_IMPORTED_MODULE_2__["buildGraphQLOperation"])(namespace, model, 'LIST'), 1), _b = __read(_a[0]), opNameQuery = _b.slice(1); _this.typeQuery.set(model, opNameQuery); }); }); }; SyncProcessor.prototype.retrievePage = function (modelDefinition, lastSync, nextToken, limit) { if (limit === void 0) { limit = null; } return __awaiter(this, void 0, void 0, function () { var _a, opName, query, variables, data, _b, opResult, items, newNextToken, startedAt; return __generator(this, function (_c) { switch (_c.label) { case 0: _a = __read(this.typeQuery.get(modelDefinition), 2), opName = _a[0], query = _a[1]; variables = { limit: limit, nextToken: nextToken, lastSync: lastSync, }; return [4 /*yield*/, this.jitteredRetry(query, variables, opName)]; case 1: data = (_c.sent()).data; _b = opName, opResult = data[_b]; items = opResult.items, newNextToken = opResult.nextToken, startedAt = opResult.startedAt; return [2 /*return*/, { nextToken: newNextToken, startedAt: startedAt, items: items }]; } }); }); }; SyncProcessor.prototype.jitteredRetry = function (query, variables, opName) { return __awaiter(this, void 0, void 0, function () { var _this = this; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__["jitteredExponentialRetry"])(function (query, variables) { return __awaiter(_this, void 0, void 0, function () { var error_1, unauthorized, result; return __generator(this, function (_a) { switch (_a.label) { case 0: _a.trys.push([0, 2, , 3]); return [4 /*yield*/, _aws_amplify_api__WEBPACK_IMPORTED_MODULE_0__["default"].graphql({ query: query, variables: variables, })]; case 1: return [2 /*return*/, _a.sent()]; case 2: error_1 = _a.sent(); unauthorized = error_1.errors.some(function (err) { return err.errorType === 'Unauthorized'; }); if (unauthorized) { result = error_1; result.data[opName].items = result.data[opName].items.filter(function (item) { return item !== null; }); logger.warn('queryError', 'User is unauthorized, some items could not be returned.'); return [2 /*return*/, result]; } else { throw error_1; } return [3 /*break*/, 3]; case 3: return [2 /*return*/]; } }); }); }, [query, variables])]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; SyncProcessor.prototype.start = function (typesLastSync) { var _this = this; var processing = true; var maxRecordsToSync = this.maxRecordsToSync !== undefined ? this.maxRecordsToSync : DEFAULT_MAX_RECORDS_TO_SYNC; var syncPageSize = this.syncPageSize !== undefined ? this.syncPageSize : DEFAULT_PAGINATION_LIMIT; var parentPromises = new Map(); var observable = new zen_observable_ts__WEBPACK_IMPORTED_MODULE_1__["default"](function (observer) { var sortedTypesLastSyncs = Object.values(_this.schema.namespaces).reduce(function (map, namespace) { var e_1, _a; try { for (var _b = __values(Array.from(namespace.modelTopologicalOrdering.keys())), _c = _b.next(); !_c.done; _c = _b.next()) { var modelName = _c.value; var typeLastSync = typesLastSync.get(namespace.models[modelName]); map.set(namespace.models[modelName], typeLastSync); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return map; }, new Map()); var allModelsReady = Array.from(sortedTypesLastSyncs.entries()) .filter(function (_a) { var _b = __read(_a, 1), syncable = _b[0].syncable; return syncable; }) .map(function (_a) { var _b = __read(_a, 2), modelDefinition = _b[0], _c = __read(_b[1], 2), namespace = _c[0], lastSync = _c[1]; return __awaiter(_this, void 0, void 0, function () { var done, nextToken, startedAt, items, recordsReceived, parents, promises, promise; var _this = this; return __generator(this, function (_d) { switch (_d.label) { case 0: done = false; nextToken = null; startedAt = null; items = null; recordsReceived = 0; parents = this.schema.namespaces[namespace].modelTopologicalOrdering.get(modelDefinition.name); promises = parents.map(function (parent) { return parentPromises.get(namespace + "_" + parent); }); promise = new Promise(function (res) { return __awaiter(_this, void 0, void 0, function () { var limit; var _a; return __generator(this, function (_b) { switch (_b.label) { case 0: return [4 /*yield*/, Promise.all(promises)]; case 1: _b.sent(); _b.label = 2; case 2: if (!processing) { return [2 /*return*/]; } limit = Math.min(maxRecordsToSync - recordsReceived, syncPageSize); return [4 /*yield*/, this.retrievePage(modelDefinition, lastSync, nextToken, limit)]; case 3: (_a = _b.sent(), items = _a.items, nextToken = _a.nextToken, startedAt = _a.startedAt); recordsReceived += items.length; done = nextToken === null || recordsReceived >= maxRecordsToSync; observer.next({ namespace: namespace, modelDefinition: modelDefinition, items: items, done: done, startedAt: startedAt, isFullSync: !lastSync, }); _b.label = 4; case 4: if (!done) return [3 /*break*/, 2]; _b.label = 5; case 5: res(); return [2 /*return*/]; } }); }); }); parentPromises.set(namespace + "_" + modelDefinition.name, promise); return [4 /*yield*/, promise]; case 1: _d.sent(); return [2 /*return*/]; } }); }); }); Promise.all(allModelsReady).then(function () { observer.complete(); }); return function () { processing = false; }; }); return observable; }; return SyncProcessor; }()); //# sourceMappingURL=sync.js.map /***/ }), /***/ "0Cz8": /*!******************************************!*\ !*** ./node_modules/lodash/_stackSet.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__(/*! ./_ListCache */ "Xi7e"), Map = __webpack_require__(/*! ./_Map */ "ebwN"), MapCache = __webpack_require__(/*! ./_MapCache */ "e4Nc"); /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** * Sets the stack `key` to `value`. * * @private * @name set * @memberOf Stack * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the stack cache instance. */ function stackSet(key, value) { var data = this.__data__; if (data instanceof ListCache) { var pairs = data.__data__; if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { pairs.push([key, value]); this.size = ++data.size; return this; } data = this.__data__ = new MapCache(pairs); } data.set(key, value); this.size = data.size; return this; } module.exports = stackSet; /***/ }), /***/ "0EQZ": /*!************************************************************************!*\ !*** ./node_modules/@angular/cdk/__ivy_ngcc__/fesm2015/collections.js ***! \************************************************************************/ /*! exports provided: ArrayDataSource, DataSource, SelectionModel, UniqueSelectionDispatcher, _DisposeViewRepeaterStrategy, _RecycleViewRepeaterStrategy, _VIEW_REPEATER_STRATEGY, getMultipleValuesInSingleSelectionError, isDataSource */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ArrayDataSource", function() { return ArrayDataSource; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataSource", function() { return DataSource; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectionModel", function() { return SelectionModel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UniqueSelectionDispatcher", function() { return UniqueSelectionDispatcher; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_DisposeViewRepeaterStrategy", function() { return _DisposeViewRepeaterStrategy; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_RecycleViewRepeaterStrategy", function() { return _RecycleViewRepeaterStrategy; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_VIEW_REPEATER_STRATEGY", function() { return _VIEW_REPEATER_STRATEGY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMultipleValuesInSingleSelectionError", function() { return getMultipleValuesInSingleSelectionError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isDataSource", function() { return isDataSource; }); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ "qCKp"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class DataSource { } /** Checks whether an object is a data source. */ function isDataSource(value) { // Check if the value is a DataSource by observing if it has a connect function. Cannot // be checked as an `instanceof DataSource` since people could create their own sources // that match the interface, but don't extend DataSource. return value && typeof value.connect === 'function'; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** DataSource wrapper for a native array. */ class ArrayDataSource extends DataSource { constructor(_data) { super(); this._data = _data; } connect() { return Object(rxjs__WEBPACK_IMPORTED_MODULE_0__["isObservable"])(this._data) ? this._data : Object(rxjs__WEBPACK_IMPORTED_MODULE_0__["of"])(this._data); } disconnect() { } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * A repeater that destroys views when they are removed from a * {@link ViewContainerRef}. When new items are inserted into the container, * the repeater will always construct a new embedded view for each item. * * @template T The type for the embedded view's $implicit property. * @template R The type for the item in each IterableDiffer change record. * @template C The type for the context passed to each embedded view. */ class _DisposeViewRepeaterStrategy { applyChanges(changes, viewContainerRef, itemContextFactory, itemValueResolver, itemViewChanged) { changes.forEachOperation((record, adjustedPreviousIndex, currentIndex) => { let view; let operation; if (record.previousIndex == null) { const insertContext = itemContextFactory(record, adjustedPreviousIndex, currentIndex); view = viewContainerRef.createEmbeddedView(insertContext.templateRef, insertContext.context, insertContext.index); operation = 1 /* INSERTED */; } else if (currentIndex == null) { viewContainerRef.remove(adjustedPreviousIndex); operation = 3 /* REMOVED */; } else { view = viewContainerRef.get(adjustedPreviousIndex); viewContainerRef.move(view, currentIndex); operation = 2 /* MOVED */; } if (itemViewChanged) { itemViewChanged({ context: view === null || view === void 0 ? void 0 : view.context, operation, record, }); } }); } detach() { } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * A repeater that caches views when they are removed from a * {@link ViewContainerRef}. When new items are inserted into the container, * the repeater will reuse one of the cached views instead of creating a new * embedded view. Recycling cached views reduces the quantity of expensive DOM * inserts. * * @template T The type for the embedded view's $implicit property. * @template R The type for the item in each IterableDiffer change record. * @template C The type for the context passed to each embedded view. */ class _RecycleViewRepeaterStrategy { constructor() { /** * The size of the cache used to store unused views. * Setting the cache size to `0` will disable caching. Defaults to 20 views. */ this.viewCacheSize = 20; /** * View cache that stores embedded view instances that have been previously stamped out, * but don't are not currently rendered. The view repeater will reuse these views rather than * creating brand new ones. * * TODO(michaeljamesparsons) Investigate whether using a linked list would improve performance. */ this._viewCache = []; } /** Apply changes to the DOM. */ applyChanges(changes, viewContainerRef, itemContextFactory, itemValueResolver, itemViewChanged) { // Rearrange the views to put them in the right location. changes.forEachOperation((record, adjustedPreviousIndex, currentIndex) => { let view; let operation; if (record.previousIndex == null) { // Item added. const viewArgsFactory = () => itemContextFactory(record, adjustedPreviousIndex, currentIndex); view = this._insertView(viewArgsFactory, currentIndex, viewContainerRef, itemValueResolver(record)); operation = view ? 1 /* INSERTED */ : 0 /* REPLACED */; } else if (currentIndex == null) { // Item removed. this._detachAndCacheView(adjustedPreviousIndex, viewContainerRef); operation = 3 /* REMOVED */; } else { // Item moved. view = this._moveView(adjustedPreviousIndex, currentIndex, viewContainerRef, itemValueResolver(record)); operation = 2 /* MOVED */; } if (itemViewChanged) { itemViewChanged({ context: view === null || view === void 0 ? void 0 : view.context, operation, record, }); } }); } detach() { for (const view of this._viewCache) { view.destroy(); } } /** * Inserts a view for a new item, either from the cache or by creating a new * one. Returns `undefined` if the item was inserted into a cached view. */ _insertView(viewArgsFactory, currentIndex, viewContainerRef, value) { let cachedView = this._insertViewFromCache(currentIndex, viewContainerRef); if (cachedView) { cachedView.context.$implicit = value; return undefined; } const viewArgs = viewArgsFactory(); return viewContainerRef.createEmbeddedView(viewArgs.templateRef, viewArgs.context, viewArgs.index); } /** Detaches the view at the given index and inserts into the view cache. */ _detachAndCacheView(index, viewContainerRef) { const detachedView = this._detachView(index, viewContainerRef); this._maybeCacheView(detachedView, viewContainerRef); } /** Moves view at the previous index to the current index. */ _moveView(adjustedPreviousIndex, currentIndex, viewContainerRef, value) { const view = viewContainerRef.get(adjustedPreviousIndex); viewContainerRef.move(view, currentIndex); view.context.$implicit = value; return view; } /** * Cache the given detached view. If the cache is full, the view will be * destroyed. */ _maybeCacheView(view, viewContainerRef) { if (this._viewCache.length < this.viewCacheSize) { this._viewCache.push(view); } else { const index = viewContainerRef.indexOf(view); // The host component could remove views from the container outside of // the view repeater. It's unlikely this will occur, but just in case, // destroy the view on its own, otherwise destroy it through the // container to ensure that all the references are removed. if (index === -1) { view.destroy(); } else { viewContainerRef.remove(index); } } } /** Inserts a recycled view from the cache at the given index. */ _insertViewFromCache(index, viewContainerRef) { const cachedView = this._viewCache.pop(); if (cachedView) { viewContainerRef.insert(cachedView, index); } return cachedView || null; } /** Detaches the embedded view at the given index. */ _detachView(index, viewContainerRef) { return viewContainerRef.detach(index); } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Class to be used to power selecting one or more options from a list. */ class SelectionModel { constructor(_multiple = false, initiallySelectedValues, _emitChanges = true) { this._multiple = _multiple; this._emitChanges = _emitChanges; /** Currently-selected values. */ this._selection = new Set(); /** Keeps track of the deselected options that haven't been emitted by the change event. */ this._deselectedToEmit = []; /** Keeps track of the selected options that haven't been emitted by the change event. */ this._selectedToEmit = []; /** Event emitted when the value has changed. */ this.changed = new rxjs__WEBPACK_IMPORTED_MODULE_0__["Subject"](); if (initiallySelectedValues && initiallySelectedValues.length) { if (_multiple) { initiallySelectedValues.forEach(value => this._markSelected(value)); } else { this._markSelected(initiallySelectedValues[0]); } // Clear the array in order to avoid firing the change event for preselected values. this._selectedToEmit.length = 0; } } /** Selected values. */ get selected() { if (!this._selected) { this._selected = Array.from(this._selection.values()); } return this._selected; } /** * Selects a value or an array of values. */ select(...values) { this._verifyValueAssignment(values); values.forEach(value => this._markSelected(value)); this._emitChangeEvent(); } /** * Deselects a value or an array of values. */ deselect(...values) { this._verifyValueAssignment(values); values.forEach(value => this._unmarkSelected(value)); this._emitChangeEvent(); } /** * Toggles a value between selected and deselected. */ toggle(value) { this.isSelected(value) ? this.deselect(value) : this.select(value); } /** * Clears all of the selected values. */ clear() { this._unmarkAll(); this._emitChangeEvent(); } /** * Determines whether a value is selected. */ isSelected(value) { return this._selection.has(value); } /** * Determines whether the model does not have a value. */ isEmpty() { return this._selection.size === 0; } /** * Determines whether the model has a value. */ hasValue() { return !this.isEmpty(); } /** * Sorts the selected values based on a predicate function. */ sort(predicate) { if (this._multiple && this.selected) { this._selected.sort(predicate); } } /** * Gets whether multiple values can be selected. */ isMultipleSelection() { return this._multiple; } /** Emits a change event and clears the records of selected and deselected values. */ _emitChangeEvent() { // Clear the selected values so they can be re-cached. this._selected = null; if (this._selectedToEmit.length || this._deselectedToEmit.length) { this.changed.next({ source: this, added: this._selectedToEmit, removed: this._deselectedToEmit }); this._deselectedToEmit = []; this._selectedToEmit = []; } } /** Selects a value. */ _markSelected(value) { if (!this.isSelected(value)) { if (!this._multiple) { this._unmarkAll(); } this._selection.add(value); if (this._emitChanges) { this._selectedToEmit.push(value); } } } /** Deselects a value. */ _unmarkSelected(value) { if (this.isSelected(value)) { this._selection.delete(value); if (this._emitChanges) { this._deselectedToEmit.push(value); } } } /** Clears out the selected values. */ _unmarkAll() { if (!this.isEmpty()) { this._selection.forEach(value => this._unmarkSelected(value)); } } /** * Verifies the value assignment and throws an error if the specified value array is * including multiple values while the selection model is not supporting multiple values. */ _verifyValueAssignment(values) { if (values.length > 1 && !this._multiple && (typeof ngDevMode === 'undefined' || ngDevMode)) { throw getMultipleValuesInSingleSelectionError(); } } } /** * Returns an error that reports that multiple values are passed into a selection model * with a single value. * @docs-private */ function getMultipleValuesInSingleSelectionError() { return Error('Cannot pass multiple values into SelectionModel with single-value mode.'); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Class to coordinate unique selection based on name. * Intended to be consumed as an Angular service. * This service is needed because native radio change events are only fired on the item currently * being selected, and we still need to uncheck the previous selection. * * This service does not *store* any IDs and names because they may change at any time, so it is * less error-prone if they are simply passed through when the events occur. */ class UniqueSelectionDispatcher { constructor() { this._listeners = []; } /** * Notify other items that selection for the given name has been set. * @param id ID of the item. * @param name Name of the item. */ notify(id, name) { for (let listener of this._listeners) { listener(id, name); } } /** * Listen for future changes to item selection. * @return Function used to deregister listener */ listen(listener) { this._listeners.push(listener); return () => { this._listeners = this._listeners.filter((registered) => { return listener !== registered; }); }; } ngOnDestroy() { this._listeners = []; } } UniqueSelectionDispatcher.ɵfac = function UniqueSelectionDispatcher_Factory(t) { return new (t || UniqueSelectionDispatcher)(); }; UniqueSelectionDispatcher.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({ factory: function UniqueSelectionDispatcher_Factory() { return new UniqueSelectionDispatcher(); }, token: UniqueSelectionDispatcher, providedIn: "root" }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](UniqueSelectionDispatcher, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"], args: [{ providedIn: 'root' }] }], function () { return []; }, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Injection token for {@link _ViewRepeater}. This token is for use by Angular Material only. * @docs-private */ const _VIEW_REPEATER_STRATEGY = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('_ViewRepeater'); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Generated bundle index. Do not edit. */ //# sourceMappingURL=collections.js.map /***/ }), /***/ "0EUg": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/concatAll.js ***! \********************************************************************/ /*! exports provided: concatAll */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concatAll", function() { return concatAll; }); /* harmony import */ var _mergeAll__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mergeAll */ "bHdf"); function concatAll() { return Object(_mergeAll__WEBPACK_IMPORTED_MODULE_0__["mergeAll"])(1); } //# sourceMappingURL=concatAll.js.map /***/ }), /***/ "0FMQ": /*!**************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/pagination/ListObjectsV2Paginator.js ***! \**************************************************************************************/ /*! exports provided: listObjectsV2Paginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "listObjectsV2Paginate", function() { return listObjectsV2Paginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _S3__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../S3 */ "kCdd"); /* harmony import */ var _S3Client__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../S3Client */ "8HHK"); /* harmony import */ var _commands_ListObjectsV2Command__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/ListObjectsV2Command */ "ca8x"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_ListObjectsV2Command__WEBPACK_IMPORTED_MODULE_3__["ListObjectsV2Command"].bind.apply(_commands_ListObjectsV2Command__WEBPACK_IMPORTED_MODULE_3__["ListObjectsV2Command"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.listObjectsV2.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function listObjectsV2Paginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function listObjectsV2Paginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["ContinuationToken"] = token; input["MaxKeys"] = config.pageSize; if (!(config.client instanceof _S3__WEBPACK_IMPORTED_MODULE_1__["S3"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _S3Client__WEBPACK_IMPORTED_MODULE_2__["S3Client"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected S3 | S3Client"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextContinuationToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=ListObjectsV2Paginator.js.map /***/ }), /***/ "0Og2": /*!*********************************************************************!*\ !*** ./node_modules/@aws-sdk/protocol-http/dist/es/httpResponse.js ***! \*********************************************************************/ /*! exports provided: HttpResponse */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpResponse", function() { return HttpResponse; }); var HttpResponse = /** @class */ (function () { function HttpResponse(options) { this.statusCode = options.statusCode; this.headers = options.headers || {}; this.body = options.body; } HttpResponse.isInstance = function (response) { //determine if response is a valid HttpResponse if (!response) return false; var resp = response; return typeof resp.statusCode === "number" && typeof resp.headers === "object"; }; return HttpResponse; }()); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cFJlc3BvbnNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2h0dHBSZXNwb25zZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRQTtJQUtFLHNCQUFZLE9BQTRCO1FBQ3RDLElBQUksQ0FBQyxVQUFVLEdBQUcsT0FBTyxDQUFDLFVBQVUsQ0FBQztRQUNyQyxJQUFJLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQyxPQUFPLElBQUksRUFBRSxDQUFDO1FBQ3JDLElBQUksQ0FBQyxJQUFJLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQztJQUMzQixDQUFDO0lBRU0sdUJBQVUsR0FBakIsVUFBa0IsUUFBaUI7UUFDakMsK0NBQStDO1FBQy9DLElBQUksQ0FBQyxRQUFRO1lBQUUsT0FBTyxLQUFLLENBQUM7UUFDNUIsSUFBTSxJQUFJLEdBQUcsUUFBZSxDQUFDO1FBQzdCLE9BQU8sT0FBTyxJQUFJLENBQUMsVUFBVSxLQUFLLFFBQVEsSUFBSSxPQUFPLElBQUksQ0FBQyxPQUFPLEtBQUssUUFBUSxDQUFDO0lBQ2pGLENBQUM7SUFDSCxtQkFBQztBQUFELENBQUMsQUFqQkQsSUFpQkMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBIZWFkZXJCYWcsIEh0dHBNZXNzYWdlLCBIdHRwUmVzcG9uc2UgYXMgSUh0dHBSZXNwb25zZSB9IGZyb20gXCJAYXdzLXNkay90eXBlc1wiO1xuXG50eXBlIEh0dHBSZXNwb25zZU9wdGlvbnMgPSBQYXJ0aWFsPEh0dHBNZXNzYWdlPiAmIHtcbiAgc3RhdHVzQ29kZTogbnVtYmVyO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBIdHRwUmVzcG9uc2UgZXh0ZW5kcyBJSHR0cFJlc3BvbnNlIHt9XG5cbmV4cG9ydCBjbGFzcyBIdHRwUmVzcG9uc2Uge1xuICBwdWJsaWMgc3RhdHVzQ29kZTogbnVtYmVyO1xuICBwdWJsaWMgaGVhZGVyczogSGVhZGVyQmFnO1xuICBwdWJsaWMgYm9keT86IGFueTtcblxuICBjb25zdHJ1Y3RvcihvcHRpb25zOiBIdHRwUmVzcG9uc2VPcHRpb25zKSB7XG4gICAgdGhpcy5zdGF0dXNDb2RlID0gb3B0aW9ucy5zdGF0dXNDb2RlO1xuICAgIHRoaXMuaGVhZGVycyA9IG9wdGlvbnMuaGVhZGVycyB8fCB7fTtcbiAgICB0aGlzLmJvZHkgPSBvcHRpb25zLmJvZHk7XG4gIH1cblxuICBzdGF0aWMgaXNJbnN0YW5jZShyZXNwb25zZTogdW5rbm93bik6IHJlc3BvbnNlIGlzIEh0dHBSZXNwb25zZSB7XG4gICAgLy9kZXRlcm1pbmUgaWYgcmVzcG9uc2UgaXMgYSB2YWxpZCBIdHRwUmVzcG9uc2VcbiAgICBpZiAoIXJlc3BvbnNlKSByZXR1cm4gZmFsc2U7XG4gICAgY29uc3QgcmVzcCA9IHJlc3BvbnNlIGFzIGFueTtcbiAgICByZXR1cm4gdHlwZW9mIHJlc3Auc3RhdHVzQ29kZSA9PT0gXCJudW1iZXJcIiAmJiB0eXBlb2YgcmVzcC5oZWFkZXJzID09PSBcIm9iamVjdFwiO1xuICB9XG59XG4iXX0= /***/ }), /***/ "0P/e": /*!***************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-lex-runtime-service/dist/es/LexRuntimeService.js ***! \***************************************************************************************/ /*! exports provided: LexRuntimeService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LexRuntimeService", function() { return LexRuntimeService; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _LexRuntimeServiceClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LexRuntimeServiceClient */ "xpud"); /* harmony import */ var _commands_DeleteSessionCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/DeleteSessionCommand */ "60r2"); /* harmony import */ var _commands_GetSessionCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/GetSessionCommand */ "IDSa"); /* harmony import */ var _commands_PostContentCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/PostContentCommand */ "Kl1+"); /* harmony import */ var _commands_PostTextCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/PostTextCommand */ "Zj+2"); /* harmony import */ var _commands_PutSessionCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/PutSessionCommand */ "M8Rd"); /** *

Amazon Lex provides both build and runtime endpoints. Each endpoint provides a set of * operations (API). Your conversational bot uses the runtime API to understand user utterances * (user input text or voice). For example, suppose a user says "I want pizza", your bot sends * this input to Amazon Lex using the runtime API. Amazon Lex recognizes that the user request is * for the OrderPizza intent (one of the intents defined in the bot). Then Amazon Lex engages in * user conversation on behalf of the bot to elicit required information (slot values, such as * pizza size and crust type), and then performs fulfillment activity (that you configured when * you created the bot). You use the build-time API to create and manage your Amazon Lex bot. For * a list of build-time operations, see the build-time API, .

*/ var LexRuntimeService = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LexRuntimeService, _super); function LexRuntimeService() { return _super !== null && _super.apply(this, arguments) || this; } LexRuntimeService.prototype.deleteSession = function (args, optionsOrCb, cb) { var command = new _commands_DeleteSessionCommand__WEBPACK_IMPORTED_MODULE_2__["DeleteSessionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; LexRuntimeService.prototype.getSession = function (args, optionsOrCb, cb) { var command = new _commands_GetSessionCommand__WEBPACK_IMPORTED_MODULE_3__["GetSessionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; LexRuntimeService.prototype.postContent = function (args, optionsOrCb, cb) { var command = new _commands_PostContentCommand__WEBPACK_IMPORTED_MODULE_4__["PostContentCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; LexRuntimeService.prototype.postText = function (args, optionsOrCb, cb) { var command = new _commands_PostTextCommand__WEBPACK_IMPORTED_MODULE_5__["PostTextCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; LexRuntimeService.prototype.putSession = function (args, optionsOrCb, cb) { var command = new _commands_PutSessionCommand__WEBPACK_IMPORTED_MODULE_6__["PutSessionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; return LexRuntimeService; }(_LexRuntimeServiceClient__WEBPACK_IMPORTED_MODULE_1__["LexRuntimeServiceClient"])); //# sourceMappingURL=LexRuntimeService.js.map /***/ }), /***/ "0PI4": /*!************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetRecordsCommand.js ***! \************************************************************************************/ /*! exports provided: GetRecordsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecordsCommand", function() { return GetRecordsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetRecordsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetRecordsCommand, _super); // Start section: command_properties // End section: command_properties function GetRecordsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetRecordsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetRecordsInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetRecordsOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetRecordsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetRecordsCommand"])(input, context); }; GetRecordsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetRecordsCommand"])(output, context); }; return GetRecordsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetRecordsCommand.js.map /***/ }), /***/ "0Pi8": /*!******************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/endWith.js ***! \******************************************************************/ /*! exports provided: endWith */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "endWith", function() { return endWith; }); /* harmony import */ var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/concat */ "GyhO"); /* harmony import */ var _observable_of__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../observable/of */ "LRne"); function endWith(...array) { return (source) => Object(_observable_concat__WEBPACK_IMPORTED_MODULE_0__["concat"])(source, Object(_observable_of__WEBPACK_IMPORTED_MODULE_1__["of"])(...array)); } //# sourceMappingURL=endWith.js.map /***/ }), /***/ "0VOl": /*!*************************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/lib-esm/predicates/index.js ***! \*************************************************************************/ /*! exports provided: ModelSortPredicateCreator, isPredicatesAll, PredicateAll, Predicates, ModelPredicateCreator */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPredicatesAll", function() { return isPredicatesAll; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PredicateAll", function() { return PredicateAll; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Predicates", function() { return Predicates; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ModelPredicateCreator", function() { return ModelPredicateCreator; }); /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "wr5y"); /* harmony import */ var _sort__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sort */ "VIpU"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModelSortPredicateCreator", function() { return _sort__WEBPACK_IMPORTED_MODULE_1__["ModelSortPredicateCreator"]; }); var predicatesAllSet = new WeakSet(); function isPredicatesAll(predicate) { return predicatesAllSet.has(predicate); } // This symbol is not used at runtime, only its type (unique symbol) var PredicateAll = Symbol('A predicate that matches all records'); var Predicates = /** @class */ (function () { function Predicates() { } Object.defineProperty(Predicates, "ALL", { get: function () { var predicate = (function (c) { return c; }); predicatesAllSet.add(predicate); return predicate; }, enumerable: true, configurable: true }); return Predicates; }()); var ModelPredicateCreator = /** @class */ (function () { function ModelPredicateCreator() { } ModelPredicateCreator.createPredicateBuilder = function (modelDefinition) { var modelName = modelDefinition.name; var fieldNames = new Set(Object.keys(modelDefinition.fields)); var handler; var predicate = new Proxy({}, (handler = { get: function (_target, propertyKey, receiver) { var groupType = propertyKey; switch (groupType) { case 'and': case 'or': case 'not': var result_1 = function (newPredicate) { var group = { type: groupType, predicates: [], }; // Create a new recorder var tmpPredicateRecorder = new Proxy({}, handler); // Set the recorder group ModelPredicateCreator.predicateGroupsMap.set(tmpPredicateRecorder, group); // Apply the predicates to the recorder (this is the step that records the changes) newPredicate(tmpPredicateRecorder); // Push the group to the top-level recorder ModelPredicateCreator.predicateGroupsMap .get(receiver) .predicates.push(group); return receiver; }; return result_1; default: Object(_util__WEBPACK_IMPORTED_MODULE_0__["exhaustiveCheck"])(groupType, false); } var field = propertyKey; if (!fieldNames.has(field)) { throw new Error("Invalid field for model. field: " + field + ", model: " + modelName); } var result = function (operator, operand) { ModelPredicateCreator.predicateGroupsMap .get(receiver) .predicates.push({ field: field, operator: operator, operand: operand }); return receiver; }; return result; }, })); var group = { type: 'and', predicates: [], }; ModelPredicateCreator.predicateGroupsMap.set(predicate, group); return predicate; }; ModelPredicateCreator.isValidPredicate = function (predicate) { return ModelPredicateCreator.predicateGroupsMap.has(predicate); }; ModelPredicateCreator.getPredicates = function (predicate, throwOnInvalid) { if (throwOnInvalid === void 0) { throwOnInvalid = true; } if (throwOnInvalid && !ModelPredicateCreator.isValidPredicate(predicate)) { throw new Error('The predicate is not valid'); } return ModelPredicateCreator.predicateGroupsMap.get(predicate); }; // transforms cb-style predicate into Proxy ModelPredicateCreator.createFromExisting = function (modelDefinition, existing) { if (!existing || !modelDefinition) { return undefined; } return existing(ModelPredicateCreator.createPredicateBuilder(modelDefinition)); }; ModelPredicateCreator.createForId = function (modelDefinition, id) { return ModelPredicateCreator.createPredicateBuilder(modelDefinition).id('eq', id); }; ModelPredicateCreator.predicateGroupsMap = new WeakMap(); return ModelPredicateCreator; }()); //# sourceMappingURL=index.js.map /***/ }), /***/ "0X2B": /*!**********************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/Errors.js ***! \**********************************************************/ /*! exports provided: missingConfig, invalidParameter */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "missingConfig", function() { return missingConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "invalidParameter", function() { return invalidParameter; }); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ function missingConfig(name) { return new Error('Missing config value of ' + name); } function invalidParameter(name) { return new Error('Invalid parameter value of ' + name); } //# sourceMappingURL=Errors.js.map /***/ }), /***/ "0XB9": /*!********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/pagination/ListDocumentClassifiersPaginator.js ***! \********************************************************************************************************/ /*! exports provided: listDocumentClassifiersPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "listDocumentClassifiersPaginate", function() { return listDocumentClassifiersPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Comprehend__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Comprehend */ "KcXj"); /* harmony import */ var _ComprehendClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ComprehendClient */ "8JFw"); /* harmony import */ var _commands_ListDocumentClassifiersCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/ListDocumentClassifiersCommand */ "5AGO"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_ListDocumentClassifiersCommand__WEBPACK_IMPORTED_MODULE_3__["ListDocumentClassifiersCommand"].bind.apply(_commands_ListDocumentClassifiersCommand__WEBPACK_IMPORTED_MODULE_3__["ListDocumentClassifiersCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.listDocumentClassifiers.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function listDocumentClassifiersPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function listDocumentClassifiersPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Comprehend__WEBPACK_IMPORTED_MODULE_1__["Comprehend"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _ComprehendClient__WEBPACK_IMPORTED_MODULE_2__["ComprehendClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Comprehend | ComprehendClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=ListDocumentClassifiersPaginator.js.map /***/ }), /***/ "0Zte": /*!****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-firehose/dist/es/commands/ListTagsForDeliveryStreamCommand.js ***! \****************************************************************************************************/ /*! exports provided: ListTagsForDeliveryStreamCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamCommand", function() { return ListTagsForDeliveryStreamCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "qPic"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "IZqD"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListTagsForDeliveryStreamCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTagsForDeliveryStreamCommand, _super); // Start section: command_properties // End section: command_properties function ListTagsForDeliveryStreamCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListTagsForDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListTagsForDeliveryStreamInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListTagsForDeliveryStreamOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListTagsForDeliveryStreamCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListTagsForDeliveryStreamCommand"])(input, context); }; ListTagsForDeliveryStreamCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListTagsForDeliveryStreamCommand"])(output, context); }; return ListTagsForDeliveryStreamCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListTagsForDeliveryStreamCommand.js.map /***/ }), /***/ "0gvd": /*!**************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/RecognizeCelebritiesCommand.js ***! \**************************************************************************************************/ /*! exports provided: RecognizeCelebritiesCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RecognizeCelebritiesCommand", function() { return RecognizeCelebritiesCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var RecognizeCelebritiesCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RecognizeCelebritiesCommand, _super); // Start section: command_properties // End section: command_properties function RecognizeCelebritiesCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } RecognizeCelebritiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["RecognizeCelebritiesRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["RecognizeCelebritiesResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; RecognizeCelebritiesCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1RecognizeCelebritiesCommand"])(input, context); }; RecognizeCelebritiesCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1RecognizeCelebritiesCommand"])(output, context); }; return RecognizeCelebritiesCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=RecognizeCelebritiesCommand.js.map /***/ }), /***/ "0huj": /*!*****************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/Util/Reachability.js ***! \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); var zen_observable_ts_1 = __importDefault(__webpack_require__(/*! zen-observable-ts */ "b0dj")); var ReachabilityNavigator = /** @class */ (function () { function ReachabilityNavigator() { } ReachabilityNavigator.prototype.networkMonitor = function (netInfo) { if (core_1.browserOrNode().isNode) { return zen_observable_ts_1.default.from([{ online: true }]); } return new zen_observable_ts_1.default(function (observer) { var online = core_1.isWebWorker() ? self.navigator.onLine : window.navigator.onLine; observer.next({ online: online }); var notifyOnline = function () { return observer.next({ online: true }); }; var notifyOffline = function () { return observer.next({ online: false }); }; window.addEventListener('online', notifyOnline); window.addEventListener('offline', notifyOffline); ReachabilityNavigator._observers.push(observer); return function () { window.removeEventListener('online', notifyOnline); window.removeEventListener('offline', notifyOffline); ReachabilityNavigator._observers = ReachabilityNavigator._observers.filter(function (_observer) { return _observer !== observer; }); }; }); }; // expose observers to simulate offline mode for integration testing ReachabilityNavigator._observerOverride = function (status) { var e_1, _a; var _loop_1 = function (observer) { if (observer.closed) { ReachabilityNavigator._observers = ReachabilityNavigator._observers.filter(function (_observer) { return _observer !== observer; }); return "continue"; } observer.next(status); }; try { for (var _b = __values(ReachabilityNavigator._observers), _c = _b.next(); !_c.done; _c = _b.next()) { var observer = _c.value; _loop_1(observer); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; ReachabilityNavigator._observers = []; return ReachabilityNavigator; }()); exports.default = ReachabilityNavigator; //# sourceMappingURL=Reachability.js.map /***/ }), /***/ "0jX4": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-translate/dist/es/commands/DeleteTerminologyCommand.js ***! \*********************************************************************************************/ /*! exports provided: DeleteTerminologyCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteTerminologyCommand", function() { return DeleteTerminologyCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "B4mn"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "eh4a"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteTerminologyCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteTerminologyCommand, _super); // Start section: command_properties // End section: command_properties function DeleteTerminologyCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteTerminologyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteTerminologyRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteTerminologyCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DeleteTerminologyCommand"])(input, context); }; DeleteTerminologyCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DeleteTerminologyCommand"])(output, context); }; return DeleteTerminologyCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteTerminologyCommand.js.map /***/ }), /***/ "0lYC": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/RegisterStreamConsumerCommand.js ***! \************************************************************************************************/ /*! exports provided: RegisterStreamConsumerCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerCommand", function() { return RegisterStreamConsumerCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var RegisterStreamConsumerCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RegisterStreamConsumerCommand, _super); // Start section: command_properties // End section: command_properties function RegisterStreamConsumerCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } RegisterStreamConsumerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["RegisterStreamConsumerInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["RegisterStreamConsumerOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; RegisterStreamConsumerCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1RegisterStreamConsumerCommand"])(input, context); }; RegisterStreamConsumerCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1RegisterStreamConsumerCommand"])(output, context); }; return RegisterStreamConsumerCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=RegisterStreamConsumerCommand.js.map /***/ }), /***/ "0lu8": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/CognitoIdentity.js ***! \**********************************************************************************/ /*! exports provided: CognitoIdentity */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CognitoIdentity", function() { return CognitoIdentity; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _CognitoIdentityClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CognitoIdentityClient */ "gmVG"); /* harmony import */ var _commands_CreateIdentityPoolCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/CreateIdentityPoolCommand */ "JjY0"); /* harmony import */ var _commands_DeleteIdentitiesCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/DeleteIdentitiesCommand */ "ArSr"); /* harmony import */ var _commands_DeleteIdentityPoolCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/DeleteIdentityPoolCommand */ "HxMu"); /* harmony import */ var _commands_DescribeIdentityCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/DescribeIdentityCommand */ "5hen"); /* harmony import */ var _commands_DescribeIdentityPoolCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/DescribeIdentityPoolCommand */ "UF2x"); /* harmony import */ var _commands_GetCredentialsForIdentityCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/GetCredentialsForIdentityCommand */ "GegD"); /* harmony import */ var _commands_GetIdCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/GetIdCommand */ "ROOK"); /* harmony import */ var _commands_GetIdentityPoolRolesCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/GetIdentityPoolRolesCommand */ "kpNz"); /* harmony import */ var _commands_GetOpenIdTokenCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/GetOpenIdTokenCommand */ "47v2"); /* harmony import */ var _commands_GetOpenIdTokenForDeveloperIdentityCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/GetOpenIdTokenForDeveloperIdentityCommand */ "CRyI"); /* harmony import */ var _commands_ListIdentitiesCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/ListIdentitiesCommand */ "vAiO"); /* harmony import */ var _commands_ListIdentityPoolsCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/ListIdentityPoolsCommand */ "5Etk"); /* harmony import */ var _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/ListTagsForResourceCommand */ "NL7a"); /* harmony import */ var _commands_LookupDeveloperIdentityCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/LookupDeveloperIdentityCommand */ "GdT8"); /* harmony import */ var _commands_MergeDeveloperIdentitiesCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/MergeDeveloperIdentitiesCommand */ "HbM5"); /* harmony import */ var _commands_SetIdentityPoolRolesCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/SetIdentityPoolRolesCommand */ "Eau9"); /* harmony import */ var _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/TagResourceCommand */ "UXVc"); /* harmony import */ var _commands_UnlinkDeveloperIdentityCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/UnlinkDeveloperIdentityCommand */ "8pxE"); /* harmony import */ var _commands_UnlinkIdentityCommand__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./commands/UnlinkIdentityCommand */ "GAK+"); /* harmony import */ var _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/UntagResourceCommand */ "FVs0"); /* harmony import */ var _commands_UpdateIdentityPoolCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/UpdateIdentityPoolCommand */ "aaE5"); /** * Amazon Cognito Federated Identities *

Amazon Cognito Federated Identities is a web service that delivers scoped temporary * credentials to mobile devices and other untrusted environments. It uniquely identifies a * device and supplies the user with a consistent identity over the lifetime of an * application.

*

Using Amazon Cognito Federated Identities, you can enable authentication with one or * more third-party identity providers (Facebook, Google, or Login with Amazon) or an Amazon * Cognito user pool, and you can also choose to support unauthenticated access from your app. * Cognito delivers a unique identifier for each user and acts as an OpenID token provider * trusted by AWS Security Token Service (STS) to access temporary, limited-privilege AWS * credentials.

*

For a description of the authentication flow from the Amazon Cognito Developer Guide * see Authentication Flow.

*

For more information see Amazon Cognito Federated Identities.

*/ var CognitoIdentity = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CognitoIdentity, _super); function CognitoIdentity() { return _super !== null && _super.apply(this, arguments) || this; } CognitoIdentity.prototype.createIdentityPool = function (args, optionsOrCb, cb) { var command = new _commands_CreateIdentityPoolCommand__WEBPACK_IMPORTED_MODULE_2__["CreateIdentityPoolCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.deleteIdentities = function (args, optionsOrCb, cb) { var command = new _commands_DeleteIdentitiesCommand__WEBPACK_IMPORTED_MODULE_3__["DeleteIdentitiesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.deleteIdentityPool = function (args, optionsOrCb, cb) { var command = new _commands_DeleteIdentityPoolCommand__WEBPACK_IMPORTED_MODULE_4__["DeleteIdentityPoolCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.describeIdentity = function (args, optionsOrCb, cb) { var command = new _commands_DescribeIdentityCommand__WEBPACK_IMPORTED_MODULE_5__["DescribeIdentityCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.describeIdentityPool = function (args, optionsOrCb, cb) { var command = new _commands_DescribeIdentityPoolCommand__WEBPACK_IMPORTED_MODULE_6__["DescribeIdentityPoolCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.getCredentialsForIdentity = function (args, optionsOrCb, cb) { var command = new _commands_GetCredentialsForIdentityCommand__WEBPACK_IMPORTED_MODULE_7__["GetCredentialsForIdentityCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.getId = function (args, optionsOrCb, cb) { var command = new _commands_GetIdCommand__WEBPACK_IMPORTED_MODULE_8__["GetIdCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.getIdentityPoolRoles = function (args, optionsOrCb, cb) { var command = new _commands_GetIdentityPoolRolesCommand__WEBPACK_IMPORTED_MODULE_9__["GetIdentityPoolRolesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.getOpenIdToken = function (args, optionsOrCb, cb) { var command = new _commands_GetOpenIdTokenCommand__WEBPACK_IMPORTED_MODULE_10__["GetOpenIdTokenCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.getOpenIdTokenForDeveloperIdentity = function (args, optionsOrCb, cb) { var command = new _commands_GetOpenIdTokenForDeveloperIdentityCommand__WEBPACK_IMPORTED_MODULE_11__["GetOpenIdTokenForDeveloperIdentityCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.listIdentities = function (args, optionsOrCb, cb) { var command = new _commands_ListIdentitiesCommand__WEBPACK_IMPORTED_MODULE_12__["ListIdentitiesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.listIdentityPools = function (args, optionsOrCb, cb) { var command = new _commands_ListIdentityPoolsCommand__WEBPACK_IMPORTED_MODULE_13__["ListIdentityPoolsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.listTagsForResource = function (args, optionsOrCb, cb) { var command = new _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_14__["ListTagsForResourceCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.lookupDeveloperIdentity = function (args, optionsOrCb, cb) { var command = new _commands_LookupDeveloperIdentityCommand__WEBPACK_IMPORTED_MODULE_15__["LookupDeveloperIdentityCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.mergeDeveloperIdentities = function (args, optionsOrCb, cb) { var command = new _commands_MergeDeveloperIdentitiesCommand__WEBPACK_IMPORTED_MODULE_16__["MergeDeveloperIdentitiesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.setIdentityPoolRoles = function (args, optionsOrCb, cb) { var command = new _commands_SetIdentityPoolRolesCommand__WEBPACK_IMPORTED_MODULE_17__["SetIdentityPoolRolesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.tagResource = function (args, optionsOrCb, cb) { var command = new _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_18__["TagResourceCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.unlinkDeveloperIdentity = function (args, optionsOrCb, cb) { var command = new _commands_UnlinkDeveloperIdentityCommand__WEBPACK_IMPORTED_MODULE_19__["UnlinkDeveloperIdentityCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.unlinkIdentity = function (args, optionsOrCb, cb) { var command = new _commands_UnlinkIdentityCommand__WEBPACK_IMPORTED_MODULE_20__["UnlinkIdentityCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.untagResource = function (args, optionsOrCb, cb) { var command = new _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_21__["UntagResourceCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; CognitoIdentity.prototype.updateIdentityPool = function (args, optionsOrCb, cb) { var command = new _commands_UpdateIdentityPoolCommand__WEBPACK_IMPORTED_MODULE_22__["UpdateIdentityPoolCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; return CognitoIdentity; }(_CognitoIdentityClient__WEBPACK_IMPORTED_MODULE_1__["CognitoIdentityClient"])); //# sourceMappingURL=CognitoIdentity.js.map /***/ }), /***/ "0xor": /*!**************************************************************************!*\ !*** ./node_modules/graphql/validation/rules/VariablesAreInputTypes.mjs ***! \**************************************************************************/ /*! exports provided: nonInputTypeOnVarMessage, VariablesAreInputTypes */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nonInputTypeOnVarMessage", function() { return nonInputTypeOnVarMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VariablesAreInputTypes", function() { return VariablesAreInputTypes; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /* harmony import */ var _language_printer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../language/printer */ "dQau"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../type/definition */ "axIb"); /* harmony import */ var _utilities_typeFromAST__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utilities/typeFromAST */ "umOc"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function nonInputTypeOnVarMessage(variableName, typeName) { return "Variable \"$".concat(variableName, "\" cannot be non-input type \"").concat(typeName, "\"."); } /** * Variables are input types * * A GraphQL operation is only valid if all the variables it defines are of * input types (scalar, enum, or input object). */ function VariablesAreInputTypes(context) { return { VariableDefinition: function VariableDefinition(node) { var type = Object(_utilities_typeFromAST__WEBPACK_IMPORTED_MODULE_3__["typeFromAST"])(context.getSchema(), node.type); // If the variable type is not an input type, return an error. if (type && !Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["isInputType"])(type)) { var variableName = node.variable.name.value; context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](nonInputTypeOnVarMessage(variableName, Object(_language_printer__WEBPACK_IMPORTED_MODULE_1__["print"])(node.type)), [node.type])); } } }; } /***/ }), /***/ "0ycA": /*!******************************************!*\ !*** ./node_modules/lodash/stubArray.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns a new empty array. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {Array} Returns the new empty array. * @example * * var arrays = _.times(2, _.stubArray); * * console.log(arrays); * // => [[], []] * * console.log(arrays[0] === arrays[1]); * // => false */ function stubArray() { return []; } module.exports = stubArray; /***/ }), /***/ "10sW": /*!******************************************************************!*\ !*** ./node_modules/graphql/validation/rules/KnownTypeNames.mjs ***! \******************************************************************/ /*! exports provided: unknownTypeMessage, KnownTypeNames */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unknownTypeMessage", function() { return unknownTypeMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KnownTypeNames", function() { return KnownTypeNames; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /* harmony import */ var _jsutils_suggestionList__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../jsutils/suggestionList */ "T95z"); /* harmony import */ var _jsutils_quotedOrList__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../jsutils/quotedOrList */ "Ei2f"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function unknownTypeMessage(typeName, suggestedTypes) { var message = "Unknown type \"".concat(typeName, "\"."); if (suggestedTypes.length) { message += " Did you mean ".concat(Object(_jsutils_quotedOrList__WEBPACK_IMPORTED_MODULE_2__["default"])(suggestedTypes), "?"); } return message; } /** * Known type names * * A GraphQL document is only valid if referenced types (specifically * variable definitions and fragment conditions) are defined by the type schema. */ function KnownTypeNames(context) { return { // TODO: when validating IDL, re-enable these. Experimental version does not // add unreferenced types, resulting in false-positive errors. Squelched // errors for now. ObjectTypeDefinition: function ObjectTypeDefinition() { return false; }, InterfaceTypeDefinition: function InterfaceTypeDefinition() { return false; }, UnionTypeDefinition: function UnionTypeDefinition() { return false; }, InputObjectTypeDefinition: function InputObjectTypeDefinition() { return false; }, NamedType: function NamedType(node) { var schema = context.getSchema(); var typeName = node.name.value; var type = schema.getType(typeName); if (!type) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](unknownTypeMessage(typeName, Object(_jsutils_suggestionList__WEBPACK_IMPORTED_MODULE_1__["default"])(typeName, Object.keys(schema.getTypeMap()))), [node])); } } }; } /***/ }), /***/ "128B": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/reduce.js ***! \*****************************************************************/ /*! exports provided: reduce */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reduce", function() { return reduce; }); /* harmony import */ var _scan__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./scan */ "Kqap"); /* harmony import */ var _takeLast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./takeLast */ "BFxc"); /* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./defaultIfEmpty */ "xbPD"); /* harmony import */ var _util_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/pipe */ "mCNh"); function reduce(accumulator, seed) { if (arguments.length >= 2) { return function reduceOperatorFunctionWithSeed(source) { return Object(_util_pipe__WEBPACK_IMPORTED_MODULE_3__["pipe"])(Object(_scan__WEBPACK_IMPORTED_MODULE_0__["scan"])(accumulator, seed), Object(_takeLast__WEBPACK_IMPORTED_MODULE_1__["takeLast"])(1), Object(_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_2__["defaultIfEmpty"])(seed))(source); }; } return function reduceOperatorFunction(source) { return Object(_util_pipe__WEBPACK_IMPORTED_MODULE_3__["pipe"])(Object(_scan__WEBPACK_IMPORTED_MODULE_0__["scan"])((acc, value, index) => accumulator(acc, value, index + 1)), Object(_takeLast__WEBPACK_IMPORTED_MODULE_1__["takeLast"])(1))(source); }; } //# sourceMappingURL=reduce.js.map /***/ }), /***/ "13g7": /*!************************************************************!*\ !*** ./node_modules/@aws-sdk/smithy-client/dist/es/isa.js ***! \************************************************************/ /*! exports provided: isa */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isa", function() { return isa; }); /** * Checks if the given value is a Smithy structure of the given type. */ function isa(o) { var ids = []; for (var _i = 1; _i < arguments.length; _i++) { ids[_i - 1] = arguments[_i]; } return (typeof o === "object" && // Checks for name after __type, as name is used instead for errors. (("__type" in o && ids.indexOf(o["__type"]) > -1) || ("name" in o && ids.indexOf(o["name"]) > -1))); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXNhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2lzYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE1BQU0sVUFBVSxHQUFHLENBQUksQ0FBTTtJQUFFLGFBQWdCO1NBQWhCLFVBQWdCLEVBQWhCLHFCQUFnQixFQUFoQixJQUFnQjtRQUFoQiw0QkFBZ0I7O0lBQzdDLE9BQU8sQ0FDTCxPQUFPLENBQUMsS0FBSyxRQUFRO1FBQ3JCLG9FQUFvRTtRQUNwRSxDQUFDLENBQUMsUUFBUSxJQUFJLENBQUMsSUFBSSxHQUFHLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxNQUFNLElBQUksQ0FBQyxJQUFJLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLE1BQU0sQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUNuRyxDQUFDO0FBQ0osQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ2hlY2tzIGlmIHRoZSBnaXZlbiB2YWx1ZSBpcyBhIFNtaXRoeSBzdHJ1Y3R1cmUgb2YgdGhlIGdpdmVuIHR5cGUuXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBpc2E8VD4obzogYW55LCAuLi5pZHM6IHN0cmluZ1tdKTogbyBpcyBUIHtcbiAgcmV0dXJuIChcbiAgICB0eXBlb2YgbyA9PT0gXCJvYmplY3RcIiAmJlxuICAgIC8vIENoZWNrcyBmb3IgbmFtZSBhZnRlciBfX3R5cGUsIGFzIG5hbWUgaXMgdXNlZCBpbnN0ZWFkIGZvciBlcnJvcnMuXG4gICAgKChcIl9fdHlwZVwiIGluIG8gJiYgaWRzLmluZGV4T2Yob1tcIl9fdHlwZVwiXSkgPiAtMSkgfHwgKFwibmFtZVwiIGluIG8gJiYgaWRzLmluZGV4T2Yob1tcIm5hbWVcIl0pID4gLTEpKVxuICApO1xufVxuIl19 /***/ }), /***/ "19Hc": /*!***********************************************!*\ !*** ./node_modules/graphql/type/scalars.mjs ***! \***********************************************/ /*! exports provided: GraphQLInt, GraphQLFloat, GraphQLString, GraphQLBoolean, GraphQLID, specifiedScalarTypes, isSpecifiedScalarType */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLInt", function() { return GraphQLInt; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLFloat", function() { return GraphQLFloat; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLString", function() { return GraphQLString; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLBoolean", function() { return GraphQLBoolean; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLID", function() { return GraphQLID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "specifiedScalarTypes", function() { return specifiedScalarTypes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSpecifiedScalarType", function() { return isSpecifiedScalarType; }); /* harmony import */ var _jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/inspect */ "rWdj"); /* harmony import */ var _jsutils_isFinite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/isFinite */ "eHe1"); /* harmony import */ var _jsutils_isInteger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../jsutils/isInteger */ "J/To"); /* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./definition */ "axIb"); /* harmony import */ var _language_kinds__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../language/kinds */ "/jXB"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ // As per the GraphQL Spec, Integers are only treated as valid when a valid // 32-bit signed integer, providing the broadest support across platforms. // // n.b. JavaScript's integers are safe between -(2^53 - 1) and 2^53 - 1 because // they are internally represented as IEEE 754 doubles. var MAX_INT = 2147483647; var MIN_INT = -2147483648; function serializeInt(value) { if (typeof value === 'boolean') { return value ? 1 : 0; } var num = value; if (typeof value === 'string' && value !== '') { num = Number(value); } if (!Object(_jsutils_isInteger__WEBPACK_IMPORTED_MODULE_2__["default"])(num)) { throw new TypeError("Int cannot represent non-integer value: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(value))); } if (num > MAX_INT || num < MIN_INT) { throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(value))); } return num; } function coerceInt(value) { if (!Object(_jsutils_isInteger__WEBPACK_IMPORTED_MODULE_2__["default"])(value)) { throw new TypeError("Int cannot represent non-integer value: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(value))); } if (value > MAX_INT || value < MIN_INT) { throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(value))); } return value; } var GraphQLInt = new _definition__WEBPACK_IMPORTED_MODULE_3__["GraphQLScalarType"]({ name: 'Int', description: 'The `Int` scalar type represents non-fractional signed whole numeric ' + 'values. Int can represent values between -(2^31) and 2^31 - 1. ', serialize: serializeInt, parseValue: coerceInt, parseLiteral: function parseLiteral(ast) { if (ast.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INT) { var num = parseInt(ast.value, 10); if (num <= MAX_INT && num >= MIN_INT) { return num; } } return undefined; } }); function serializeFloat(value) { if (typeof value === 'boolean') { return value ? 1 : 0; } var num = value; if (typeof value === 'string' && value !== '') { num = Number(value); } if (!Object(_jsutils_isFinite__WEBPACK_IMPORTED_MODULE_1__["default"])(num)) { throw new TypeError("Float cannot represent non numeric value: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(value))); } return num; } function coerceFloat(value) { if (!Object(_jsutils_isFinite__WEBPACK_IMPORTED_MODULE_1__["default"])(value)) { throw new TypeError("Float cannot represent non numeric value: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(value))); } return value; } var GraphQLFloat = new _definition__WEBPACK_IMPORTED_MODULE_3__["GraphQLScalarType"]({ name: 'Float', description: 'The `Float` scalar type represents signed double-precision fractional ' + 'values as specified by ' + '[IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ', serialize: serializeFloat, parseValue: coerceFloat, parseLiteral: function parseLiteral(ast) { return ast.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].FLOAT || ast.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INT ? parseFloat(ast.value) : undefined; } }); function serializeString(value) { // Support serializing objects with custom valueOf() functions - a common way // to represent an complex value which can be represented as a string // (ex: MongoDB id objects). var result = value && typeof value.valueOf === 'function' ? value.valueOf() : value; // Serialize string, boolean and number values to a string, but do not // attempt to coerce object, function, symbol, or other types as strings. if (typeof result === 'string') { return result; } if (typeof result === 'boolean') { return result ? 'true' : 'false'; } if (Object(_jsutils_isFinite__WEBPACK_IMPORTED_MODULE_1__["default"])(result)) { return result.toString(); } throw new TypeError("String cannot represent value: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(value))); } function coerceString(value) { if (typeof value !== 'string') { throw new TypeError("String cannot represent a non string value: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(value))); } return value; } var GraphQLString = new _definition__WEBPACK_IMPORTED_MODULE_3__["GraphQLScalarType"]({ name: 'String', description: 'The `String` scalar type represents textual data, represented as UTF-8 ' + 'character sequences. The String type is most often used by GraphQL to ' + 'represent free-form human-readable text.', serialize: serializeString, parseValue: coerceString, parseLiteral: function parseLiteral(ast) { return ast.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].STRING ? ast.value : undefined; } }); function serializeBoolean(value) { if (typeof value === 'boolean') { return value; } if (Object(_jsutils_isFinite__WEBPACK_IMPORTED_MODULE_1__["default"])(value)) { return value !== 0; } throw new TypeError("Boolean cannot represent a non boolean value: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(value))); } function coerceBoolean(value) { if (typeof value !== 'boolean') { throw new TypeError("Boolean cannot represent a non boolean value: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(value))); } return value; } var GraphQLBoolean = new _definition__WEBPACK_IMPORTED_MODULE_3__["GraphQLScalarType"]({ name: 'Boolean', description: 'The `Boolean` scalar type represents `true` or `false`.', serialize: serializeBoolean, parseValue: coerceBoolean, parseLiteral: function parseLiteral(ast) { return ast.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].BOOLEAN ? ast.value : undefined; } }); function serializeID(value) { // Support serializing objects with custom valueOf() functions - a common way // to represent an object identifier (ex. MongoDB). var result = value && typeof value.valueOf === 'function' ? value.valueOf() : value; if (typeof result === 'string') { return result; } if (Object(_jsutils_isInteger__WEBPACK_IMPORTED_MODULE_2__["default"])(result)) { return String(result); } throw new TypeError("ID cannot represent value: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(value))); } function coerceID(value) { if (typeof value === 'string') { return value; } if (Object(_jsutils_isInteger__WEBPACK_IMPORTED_MODULE_2__["default"])(value)) { return value.toString(); } throw new TypeError("ID cannot represent value: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(value))); } var GraphQLID = new _definition__WEBPACK_IMPORTED_MODULE_3__["GraphQLScalarType"]({ name: 'ID', description: 'The `ID` scalar type represents a unique identifier, often used to ' + 'refetch an object or as key for a cache. The ID type appears in a JSON ' + 'response as a String; however, it is not intended to be human-readable. ' + 'When expected as an input type, any string (such as `"4"`) or integer ' + '(such as `4`) input value will be accepted as an ID.', serialize: serializeID, parseValue: coerceID, parseLiteral: function parseLiteral(ast) { return ast.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].STRING || ast.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INT ? ast.value : undefined; } }); var specifiedScalarTypes = [GraphQLString, GraphQLInt, GraphQLFloat, GraphQLBoolean, GraphQLID]; function isSpecifiedScalarType(type) { return Object(_definition__WEBPACK_IMPORTED_MODULE_3__["isNamedType"])(type) && ( // Would prefer to use specifiedScalarTypes.some(), however %checks needs // a simple expression. type.name === GraphQLString.name || type.name === GraphQLInt.name || type.name === GraphQLFloat.name || type.name === GraphQLBoolean.name || type.name === GraphQLID.name); } /***/ }), /***/ "1F7f": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamCommand.js ***! \****************************************************************************************/ /*! exports provided: DescribeStreamCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamCommand", function() { return DescribeStreamCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DescribeStreamCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeStreamCommand, _super); // Start section: command_properties // End section: command_properties function DescribeStreamCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DescribeStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DescribeStreamCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeStreamCommand"])(input, context); }; DescribeStreamCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeStreamCommand"])(output, context); }; return DescribeStreamCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DescribeStreamCommand.js.map /***/ }), /***/ "1FIz": /*!******************************************************************!*\ !*** ./node_modules/@aws-sdk/hash-blob-browser/dist/es/index.js ***! \******************************************************************/ /*! exports provided: blobHasher */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blobHasher", function() { return blobHasher; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_chunked_blob_reader__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/chunked-blob-reader */ "X7k8"); var blobHasher = function blobHasher(hashCtor, blob) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var hash; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: hash = new hashCtor(); return [4 /*yield*/, Object(_aws_sdk_chunked_blob_reader__WEBPACK_IMPORTED_MODULE_1__["blobReader"])(blob, function (chunk) { hash.update(chunk); })]; case 1: _a.sent(); return [2 /*return*/, hash.digest()]; } }); }); }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUcxRCxNQUFNLENBQUMsSUFBTSxVQUFVLEdBQXVCLFNBQWUsVUFBVSxDQUNyRSxRQUF5QixFQUN6QixJQUFVOzs7Ozs7b0JBRUosSUFBSSxHQUFHLElBQUksUUFBUSxFQUFFLENBQUM7b0JBRTVCLHFCQUFNLFVBQVUsQ0FBQyxJQUFJLEVBQUUsVUFBQyxLQUFLOzRCQUMzQixJQUFJLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO3dCQUNyQixDQUFDLENBQUMsRUFBQTs7b0JBRkYsU0FFRSxDQUFDO29CQUVILHNCQUFPLElBQUksQ0FBQyxNQUFNLEVBQUUsRUFBQzs7OztDQUN0QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgYmxvYlJlYWRlciB9IGZyb20gXCJAYXdzLXNkay9jaHVua2VkLWJsb2ItcmVhZGVyXCI7XG5pbXBvcnQgeyBIYXNoQ29uc3RydWN0b3IsIFN0cmVhbUhhc2hlciB9IGZyb20gXCJAYXdzLXNkay90eXBlc1wiO1xuXG5leHBvcnQgY29uc3QgYmxvYkhhc2hlcjogU3RyZWFtSGFzaGVyPEJsb2I+ID0gYXN5bmMgZnVuY3Rpb24gYmxvYkhhc2hlcihcbiAgaGFzaEN0b3I6IEhhc2hDb25zdHJ1Y3RvcixcbiAgYmxvYjogQmxvYlxuKTogUHJvbWlzZTxVaW50OEFycmF5PiB7XG4gIGNvbnN0IGhhc2ggPSBuZXcgaGFzaEN0b3IoKTtcblxuICBhd2FpdCBibG9iUmVhZGVyKGJsb2IsIChjaHVuaykgPT4ge1xuICAgIGhhc2gudXBkYXRlKGNodW5rKTtcbiAgfSk7XG5cbiAgcmV0dXJuIGhhc2guZGlnZXN0KCk7XG59O1xuIl19 /***/ }), /***/ "1G5W": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/takeUntil.js ***! \********************************************************************/ /*! exports provided: takeUntil */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "takeUntil", function() { return takeUntil; }); /* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../innerSubscribe */ "zx2A"); function takeUntil(notifier) { return (source) => source.lift(new TakeUntilOperator(notifier)); } class TakeUntilOperator { constructor(notifier) { this.notifier = notifier; } call(subscriber, source) { const takeUntilSubscriber = new TakeUntilSubscriber(subscriber); const notifierSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(this.notifier, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](takeUntilSubscriber)); if (notifierSubscription && !takeUntilSubscriber.seenValue) { takeUntilSubscriber.add(notifierSubscription); return source.subscribe(takeUntilSubscriber); } return takeUntilSubscriber; } } class TakeUntilSubscriber extends _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"] { constructor(destination) { super(destination); this.seenValue = false; } notifyNext() { this.seenValue = true; this.complete(); } notifyComplete() { } } //# sourceMappingURL=takeUntil.js.map /***/ }), /***/ "1KiX": /*!*********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/StopTrainingEntityRecognizerCommand.js ***! \*********************************************************************************************************/ /*! exports provided: StopTrainingEntityRecognizerCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopTrainingEntityRecognizerCommand", function() { return StopTrainingEntityRecognizerCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StopTrainingEntityRecognizerCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StopTrainingEntityRecognizerCommand, _super); // Start section: command_properties // End section: command_properties function StopTrainingEntityRecognizerCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StopTrainingEntityRecognizerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StopTrainingEntityRecognizerRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StopTrainingEntityRecognizerResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StopTrainingEntityRecognizerCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StopTrainingEntityRecognizerCommand"])(input, context); }; StopTrainingEntityRecognizerCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StopTrainingEntityRecognizerCommand"])(output, context); }; return StopTrainingEntityRecognizerCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StopTrainingEntityRecognizerCommand.js.map /***/ }), /***/ "1MZE": /*!********************************************************!*\ !*** ./node_modules/graphql/utilities/coerceValue.mjs ***! \********************************************************/ /*! exports provided: coerceValue */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "coerceValue", function() { return coerceValue; }); /* harmony import */ var iterall__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! iterall */ "EkS5"); /* harmony import */ var _jsutils_inspect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/inspect */ "rWdj"); /* harmony import */ var _jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../jsutils/isInvalid */ "/kEc"); /* harmony import */ var _jsutils_orList__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../jsutils/orList */ "7AeT"); /* harmony import */ var _jsutils_suggestionList__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../jsutils/suggestionList */ "T95z"); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../error/GraphQLError */ "dWS+"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../type/definition */ "axIb"); function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Coerces a JavaScript value given a GraphQL Type. * * Returns either a value which is valid for the provided type or a list of * encountered coercion errors. * */ function coerceValue(value, type, blameNode, path) { // A value must be provided if the type is non-null. if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["isNonNullType"])(type)) { if (value == null) { return ofErrors([coercionError("Expected non-nullable type ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_1__["default"])(type), " not to be null"), blameNode, path)]); } return coerceValue(value, type.ofType, blameNode, path); } if (value == null) { // Explicitly return the value null. return ofValue(null); } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["isScalarType"])(type)) { // Scalars determine if a value is valid via parseValue(), which can // throw to indicate failure. If it throws, maintain a reference to // the original error. try { var parseResult = type.parseValue(value); if (Object(_jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_2__["default"])(parseResult)) { return ofErrors([coercionError("Expected type ".concat(type.name), blameNode, path)]); } return ofValue(parseResult); } catch (error) { return ofErrors([coercionError("Expected type ".concat(type.name), blameNode, path, error.message, error)]); } } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["isEnumType"])(type)) { if (typeof value === 'string') { var enumValue = type.getValue(value); if (enumValue) { return ofValue(enumValue.value); } } var suggestions = Object(_jsutils_suggestionList__WEBPACK_IMPORTED_MODULE_4__["default"])(String(value), type.getValues().map(function (enumValue) { return enumValue.name; })); var didYouMean = suggestions.length !== 0 ? "did you mean ".concat(Object(_jsutils_orList__WEBPACK_IMPORTED_MODULE_3__["default"])(suggestions), "?") : undefined; return ofErrors([coercionError("Expected type ".concat(type.name), blameNode, path, didYouMean)]); } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["isListType"])(type)) { var itemType = type.ofType; if (Object(iterall__WEBPACK_IMPORTED_MODULE_0__["isCollection"])(value)) { var errors; var coercedValue = []; Object(iterall__WEBPACK_IMPORTED_MODULE_0__["forEach"])(value, function (itemValue, index) { var coercedItem = coerceValue(itemValue, itemType, blameNode, atPath(path, index)); if (coercedItem.errors) { errors = add(errors, coercedItem.errors); } else if (!errors) { coercedValue.push(coercedItem.value); } }); return errors ? ofErrors(errors) : ofValue(coercedValue); } // Lists accept a non-list value as a list of one. var coercedItem = coerceValue(value, itemType, blameNode); return coercedItem.errors ? coercedItem : ofValue([coercedItem.value]); } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["isInputObjectType"])(type)) { if (_typeof(value) !== 'object') { return ofErrors([coercionError("Expected type ".concat(type.name, " to be an object"), blameNode, path)]); } var _errors; var _coercedValue = {}; var fields = type.getFields(); // Ensure every defined field is valid. for (var fieldName in fields) { if (hasOwnProperty.call(fields, fieldName)) { var field = fields[fieldName]; var fieldValue = value[fieldName]; if (Object(_jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_2__["default"])(fieldValue)) { if (!Object(_jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_2__["default"])(field.defaultValue)) { _coercedValue[fieldName] = field.defaultValue; } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["isNonNullType"])(field.type)) { _errors = add(_errors, coercionError("Field ".concat(printPath(atPath(path, fieldName)), " of required ") + "type ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_1__["default"])(field.type), " was not provided"), blameNode)); } } else { var coercedField = coerceValue(fieldValue, field.type, blameNode, atPath(path, fieldName)); if (coercedField.errors) { _errors = add(_errors, coercedField.errors); } else if (!_errors) { _coercedValue[fieldName] = coercedField.value; } } } } // Ensure every provided field is defined. for (var _fieldName in value) { if (hasOwnProperty.call(value, _fieldName)) { if (!fields[_fieldName]) { var _suggestions = Object(_jsutils_suggestionList__WEBPACK_IMPORTED_MODULE_4__["default"])(_fieldName, Object.keys(fields)); var _didYouMean = _suggestions.length !== 0 ? "did you mean ".concat(Object(_jsutils_orList__WEBPACK_IMPORTED_MODULE_3__["default"])(_suggestions), "?") : undefined; _errors = add(_errors, coercionError("Field \"".concat(_fieldName, "\" is not defined by type ").concat(type.name), blameNode, path, _didYouMean)); } } } return _errors ? ofErrors(_errors) : ofValue(_coercedValue); } /* istanbul ignore next */ throw new Error("Unexpected type: ".concat(type, ".")); } function ofValue(value) { return { errors: undefined, value: value }; } function ofErrors(errors) { return { errors: errors, value: undefined }; } function add(errors, moreErrors) { return (errors || []).concat(moreErrors); } function atPath(prev, key) { return { prev: prev, key: key }; } function coercionError(message, blameNode, path, subMessage, originalError) { var pathStr = printPath(path); // Return a GraphQLError instance return new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_5__["GraphQLError"](message + (pathStr ? ' at ' + pathStr : '') + (subMessage ? '; ' + subMessage : '.'), blameNode, undefined, undefined, undefined, originalError); } // Build a string describing the path into the value where the error was found function printPath(path) { var pathStr = ''; var currentPath = path; while (currentPath) { pathStr = (typeof currentPath.key === 'string' ? '.' + currentPath.key : '[' + String(currentPath.key) + ']') + pathStr; currentPath = currentPath.prev; } return pathStr ? 'value' + pathStr : ''; } var hasOwnProperty = Object.prototype.hasOwnProperty; /***/ }), /***/ "1NSU": /*!*****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-personalize-events/dist/es/runtimeConfig.shared.js ***! \*****************************************************************************************/ /*! exports provided: ClientSharedValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientSharedValues", function() { return ClientSharedValues; }); /* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "xcJO"); var ClientSharedValues = { apiVersion: "2018-03-22", disableHostPrefix: false, regionInfoProvider: _endpoints__WEBPACK_IMPORTED_MODULE_0__["defaultRegionInfoProvider"], signingName: "personalize", }; //# sourceMappingURL=runtimeConfig.shared.js.map /***/ }), /***/ "1Ykd": /*!*********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/sampleTime.js ***! \*********************************************************************/ /*! exports provided: sampleTime */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sampleTime", function() { return sampleTime; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scheduler/async */ "D0XW"); function sampleTime(period, scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"]) { return (source) => source.lift(new SampleTimeOperator(period, scheduler)); } class SampleTimeOperator { constructor(period, scheduler) { this.period = period; this.scheduler = scheduler; } call(subscriber, source) { return source.subscribe(new SampleTimeSubscriber(subscriber, this.period, this.scheduler)); } } class SampleTimeSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, period, scheduler) { super(destination); this.period = period; this.scheduler = scheduler; this.hasValue = false; this.add(scheduler.schedule(dispatchNotification, period, { subscriber: this, period })); } _next(value) { this.lastValue = value; this.hasValue = true; } notifyNext() { if (this.hasValue) { this.hasValue = false; this.destination.next(this.lastValue); } } } function dispatchNotification(state) { let { subscriber, period } = state; subscriber.notifyNext(); this.schedule(state, period); } //# sourceMappingURL=sampleTime.js.map /***/ }), /***/ "1hJj": /*!******************************************!*\ !*** ./node_modules/lodash/_SetCache.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var MapCache = __webpack_require__(/*! ./_MapCache */ "e4Nc"), setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "ftKO"), setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "3A9y"); /** * * Creates an array cache object to store unique values. * * @private * @constructor * @param {Array} [values] The values to cache. */ function SetCache(values) { var index = -1, length = values == null ? 0 : values.length; this.__data__ = new MapCache; while (++index < length) { this.add(values[index]); } } // Add methods to `SetCache`. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; SetCache.prototype.has = setCacheHas; module.exports = SetCache; /***/ }), /***/ "1uah": /*!***************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/zip.js ***! \***************************************************************/ /*! exports provided: zip, ZipOperator, ZipSubscriber */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return zip; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ZipOperator", function() { return ZipOperator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ZipSubscriber", function() { return ZipSubscriber; }); /* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fromArray */ "yCtX"); /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isArray */ "DH7j"); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); /* harmony import */ var _internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../internal/symbol/iterator */ "Lhse"); /* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../innerSubscribe */ "zx2A"); function zip(...observables) { const resultSelector = observables[observables.length - 1]; if (typeof resultSelector === 'function') { observables.pop(); } return Object(_fromArray__WEBPACK_IMPORTED_MODULE_0__["fromArray"])(observables, undefined).lift(new ZipOperator(resultSelector)); } class ZipOperator { constructor(resultSelector) { this.resultSelector = resultSelector; } call(subscriber, source) { return source.subscribe(new ZipSubscriber(subscriber, this.resultSelector)); } } class ZipSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_2__["Subscriber"] { constructor(destination, resultSelector, values = Object.create(null)) { super(destination); this.resultSelector = resultSelector; this.iterators = []; this.active = 0; this.resultSelector = (typeof resultSelector === 'function') ? resultSelector : undefined; } _next(value) { const iterators = this.iterators; if (Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(value)) { iterators.push(new StaticArrayIterator(value)); } else if (typeof value[_internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_3__["iterator"]] === 'function') { iterators.push(new StaticIterator(value[_internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_3__["iterator"]]())); } else { iterators.push(new ZipBufferIterator(this.destination, this, value)); } } _complete() { const iterators = this.iterators; const len = iterators.length; this.unsubscribe(); if (len === 0) { this.destination.complete(); return; } this.active = len; for (let i = 0; i < len; i++) { let iterator = iterators[i]; if (iterator.stillUnsubscribed) { const destination = this.destination; destination.add(iterator.subscribe()); } else { this.active--; } } } notifyInactive() { this.active--; if (this.active === 0) { this.destination.complete(); } } checkIterators() { const iterators = this.iterators; const len = iterators.length; const destination = this.destination; for (let i = 0; i < len; i++) { let iterator = iterators[i]; if (typeof iterator.hasValue === 'function' && !iterator.hasValue()) { return; } } let shouldComplete = false; const args = []; for (let i = 0; i < len; i++) { let iterator = iterators[i]; let result = iterator.next(); if (iterator.hasCompleted()) { shouldComplete = true; } if (result.done) { destination.complete(); return; } args.push(result.value); } if (this.resultSelector) { this._tryresultSelector(args); } else { destination.next(args); } if (shouldComplete) { destination.complete(); } } _tryresultSelector(args) { let result; try { result = this.resultSelector.apply(this, args); } catch (err) { this.destination.error(err); return; } this.destination.next(result); } } class StaticIterator { constructor(iterator) { this.iterator = iterator; this.nextResult = iterator.next(); } hasValue() { return true; } next() { const result = this.nextResult; this.nextResult = this.iterator.next(); return result; } hasCompleted() { const nextResult = this.nextResult; return Boolean(nextResult && nextResult.done); } } class StaticArrayIterator { constructor(array) { this.array = array; this.index = 0; this.length = 0; this.length = array.length; } [_internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_3__["iterator"]]() { return this; } next(value) { const i = this.index++; const array = this.array; return i < this.length ? { value: array[i], done: false } : { value: null, done: true }; } hasValue() { return this.array.length > this.index; } hasCompleted() { return this.array.length === this.index; } } class ZipBufferIterator extends _innerSubscribe__WEBPACK_IMPORTED_MODULE_4__["SimpleOuterSubscriber"] { constructor(destination, parent, observable) { super(destination); this.parent = parent; this.observable = observable; this.stillUnsubscribed = true; this.buffer = []; this.isComplete = false; } [_internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_3__["iterator"]]() { return this; } next() { const buffer = this.buffer; if (buffer.length === 0 && this.isComplete) { return { value: null, done: true }; } else { return { value: buffer.shift(), done: false }; } } hasValue() { return this.buffer.length > 0; } hasCompleted() { return this.buffer.length === 0 && this.isComplete; } notifyComplete() { if (this.buffer.length > 0) { this.isComplete = true; this.parent.notifyInactive(); } else { this.destination.complete(); } } notifyNext(innerValue) { this.buffer.push(innerValue); this.parent.checkIterators(); } subscribe() { return Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_4__["innerSubscribe"])(this.observable, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_4__["SimpleInnerSubscriber"](this)); } } //# sourceMappingURL=zip.js.map /***/ }), /***/ "1y/n": /*!******************************************************************!*\ !*** ./node_modules/@aws-amplify/auth/lib/OAuth/oauthStorage.js ***! \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.setState = function (state) { window.sessionStorage.setItem('oauth_state', state); }; exports.getState = function () { var oauth_state = window.sessionStorage.getItem('oauth_state'); window.sessionStorage.removeItem('oauth_state'); return oauth_state; }; exports.setPKCE = function (private_key) { window.sessionStorage.setItem('ouath_pkce_key', private_key); }; exports.getPKCE = function () { var ouath_pkce_key = window.sessionStorage.getItem('ouath_pkce_key'); window.sessionStorage.removeItem('ouath_pkce_key'); return ouath_pkce_key; }; exports.clearAll = function () { window.sessionStorage.removeItem('ouath_pkce_key'); window.sessionStorage.removeItem('oauth_state'); }; //# sourceMappingURL=oauthStorage.js.map /***/ }), /***/ "2+WY": /*!******************************************************************************!*\ !*** ./node_modules/@aws-sdk/fetch-http-handler/dist/es/stream-collector.js ***! \******************************************************************************/ /*! exports provided: streamCollector */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "streamCollector", function() { return streamCollector; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/util-base64-browser */ "S3Uu"); //reference: https://snack.expo.io/r1JCSWRGU var streamCollector = function (stream) { if (typeof Blob === "function" && stream instanceof Blob) { return collectBlob(stream); } return collectStream(stream); }; function collectBlob(blob) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var base64, arrayBuffer; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, readToBase64(blob)]; case 1: base64 = _a.sent(); arrayBuffer = Object(_aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_1__["fromBase64"])(base64); return [2 /*return*/, new Uint8Array(arrayBuffer)]; } }); }); } function collectStream(stream) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var res, reader, isDone, _a, done, value, prior; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: res = new Uint8Array(0); reader = stream.getReader(); isDone = false; _b.label = 1; case 1: if (!!isDone) return [3 /*break*/, 3]; return [4 /*yield*/, reader.read()]; case 2: _a = _b.sent(), done = _a.done, value = _a.value; if (value) { prior = res; res = new Uint8Array(prior.length + value.length); res.set(prior); res.set(value, prior.length); } isDone = done; return [3 /*break*/, 1]; case 3: return [2 /*return*/, res]; } }); }); } function readToBase64(blob) { return new Promise(function (resolve, reject) { var reader = new FileReader(); reader.onloadend = function () { var _a; // reference: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL // response from readAsDataURL is always prepended with "data:*/*;base64," if (reader.readyState !== 2) { return reject(new Error("Reader aborted too early")); } var result = ((_a = reader.result) !== null && _a !== void 0 ? _a : ""); // Response can include only 'data:' for empty blob, return empty string in this case. // Otherwise, return the string after ',' var commaIndex = result.indexOf(","); var dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length; resolve(result.substring(dataOffset)); }; reader.onabort = function () { return reject(new Error("Read aborted")); }; reader.onerror = function () { return reject(reader.error); }; // reader.readAsArrayBuffer is not always available reader.readAsDataURL(blob); }); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyZWFtLWNvbGxlY3Rvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdHJlYW0tY29sbGVjdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFFMUQsNENBQTRDO0FBQzVDLE1BQU0sQ0FBQyxJQUFNLGVBQWUsR0FBb0IsVUFBQyxNQUE2QjtJQUM1RSxJQUFJLE9BQU8sSUFBSSxLQUFLLFVBQVUsSUFBSSxNQUFNLFlBQVksSUFBSSxFQUFFO1FBQ3hELE9BQU8sV0FBVyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0tBQzVCO0lBRUQsT0FBTyxhQUFhLENBQUMsTUFBd0IsQ0FBQyxDQUFDO0FBQ2pELENBQUMsQ0FBQztBQUVGLFNBQWUsV0FBVyxDQUFDLElBQVU7Ozs7O3dCQUNwQixxQkFBTSxZQUFZLENBQUMsSUFBSSxDQUFDLEVBQUE7O29CQUFqQyxNQUFNLEdBQUcsU0FBd0I7b0JBQ2pDLFdBQVcsR0FBRyxVQUFVLENBQUMsTUFBTSxDQUFDLENBQUM7b0JBQ3ZDLHNCQUFPLElBQUksVUFBVSxDQUFDLFdBQVcsQ0FBQyxFQUFDOzs7O0NBQ3BDO0FBRUQsU0FBZSxhQUFhLENBQUMsTUFBc0I7Ozs7OztvQkFDN0MsR0FBRyxHQUFHLElBQUksVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDO29CQUN0QixNQUFNLEdBQUcsTUFBTSxDQUFDLFNBQVMsRUFBRSxDQUFDO29CQUM5QixNQUFNLEdBQUcsS0FBSyxDQUFDOzs7eUJBQ1osQ0FBQyxNQUFNO29CQUNZLHFCQUFNLE1BQU0sQ0FBQyxJQUFJLEVBQUUsRUFBQTs7b0JBQXJDLEtBQWtCLFNBQW1CLEVBQW5DLElBQUksVUFBQSxFQUFFLEtBQUssV0FBQTtvQkFDbkIsSUFBSSxLQUFLLEVBQUU7d0JBQ0gsS0FBSyxHQUFHLEdBQUcsQ0FBQzt3QkFDbEIsR0FBRyxHQUFHLElBQUksVUFBVSxDQUFDLEtBQUssQ0FBQyxNQUFNLEdBQUcsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFDO3dCQUNsRCxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDO3dCQUNmLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQztxQkFDOUI7b0JBQ0QsTUFBTSxHQUFHLElBQUksQ0FBQzs7d0JBRWhCLHNCQUFPLEdBQUcsRUFBQzs7OztDQUNaO0FBRUQsU0FBUyxZQUFZLENBQUMsSUFBVTtJQUM5QixPQUFPLElBQUksT0FBTyxDQUFDLFVBQUMsT0FBTyxFQUFFLE1BQU07UUFDakMsSUFBTSxNQUFNLEdBQUcsSUFBSSxVQUFVLEVBQUUsQ0FBQztRQUNoQyxNQUFNLENBQUMsU0FBUyxHQUFHOztZQUNqQix1RkFBdUY7WUFDdkYsMEVBQTBFO1lBQzFFLElBQUksTUFBTSxDQUFDLFVBQVUsS0FBSyxDQUFDLEVBQUU7Z0JBQzNCLE9BQU8sTUFBTSxDQUFDLElBQUksS0FBSyxDQUFDLDBCQUEwQixDQUFDLENBQUMsQ0FBQzthQUN0RDtZQUNELElBQU0sTUFBTSxHQUFHLE9BQUMsTUFBTSxDQUFDLE1BQU0sbUNBQUksRUFBRSxDQUFXLENBQUM7WUFDL0Msc0ZBQXNGO1lBQ3RGLHlDQUF5QztZQUN6QyxJQUFNLFVBQVUsR0FBRyxNQUFNLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDO1lBQ3ZDLElBQU0sVUFBVSxHQUFHLFVBQVUsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsVUFBVSxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQztZQUNwRSxPQUFPLENBQUMsTUFBTSxDQUFDLFNBQVMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDO1FBQ3hDLENBQUMsQ0FBQztRQUNGLE1BQU0sQ0FBQyxPQUFPLEdBQUcsY0FBTSxPQUFBLE1BQU0sQ0FBQyxJQUFJLEtBQUssQ0FBQyxjQUFjLENBQUMsQ0FBQyxFQUFqQyxDQUFpQyxDQUFDO1FBQ3pELE1BQU0sQ0FBQyxPQUFPLEdBQUcsY0FBTSxPQUFBLE1BQU0sQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLEVBQXBCLENBQW9CLENBQUM7UUFDNUMsbURBQW1EO1FBQ25ELE1BQU0sQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDN0IsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU3RyZWFtQ29sbGVjdG9yIH0gZnJvbSBcIkBhd3Mtc2RrL3R5cGVzXCI7XG5pbXBvcnQgeyBmcm9tQmFzZTY0IH0gZnJvbSBcIkBhd3Mtc2RrL3V0aWwtYmFzZTY0LWJyb3dzZXJcIjtcblxuLy9yZWZlcmVuY2U6IGh0dHBzOi8vc25hY2suZXhwby5pby9yMUpDU1dSR1VcbmV4cG9ydCBjb25zdCBzdHJlYW1Db2xsZWN0b3I6IFN0cmVhbUNvbGxlY3RvciA9IChzdHJlYW06IEJsb2IgfCBSZWFkYWJsZVN0cmVhbSk6IFByb21pc2U8VWludDhBcnJheT4gPT4ge1xuICBpZiAodHlwZW9mIEJsb2IgPT09IFwiZnVuY3Rpb25cIiAmJiBzdHJlYW0gaW5zdGFuY2VvZiBCbG9iKSB7XG4gICAgcmV0dXJuIGNvbGxlY3RCbG9iKHN0cmVhbSk7XG4gIH1cblxuICByZXR1cm4gY29sbGVjdFN0cmVhbShzdHJlYW0gYXMgUmVhZGFibGVTdHJlYW0pO1xufTtcblxuYXN5bmMgZnVuY3Rpb24gY29sbGVjdEJsb2IoYmxvYjogQmxvYik6IFByb21pc2U8VWludDhBcnJheT4ge1xuICBjb25zdCBiYXNlNjQgPSBhd2FpdCByZWFkVG9CYXNlNjQoYmxvYik7XG4gIGNvbnN0IGFycmF5QnVmZmVyID0gZnJvbUJhc2U2NChiYXNlNjQpO1xuICByZXR1cm4gbmV3IFVpbnQ4QXJyYXkoYXJyYXlCdWZmZXIpO1xufVxuXG5hc3luYyBmdW5jdGlvbiBjb2xsZWN0U3RyZWFtKHN0cmVhbTogUmVhZGFibGVTdHJlYW0pOiBQcm9taXNlPFVpbnQ4QXJyYXk+IHtcbiAgbGV0IHJlcyA9IG5ldyBVaW50OEFycmF5KDApO1xuICBjb25zdCByZWFkZXIgPSBzdHJlYW0uZ2V0UmVhZGVyKCk7XG4gIGxldCBpc0RvbmUgPSBmYWxzZTtcbiAgd2hpbGUgKCFpc0RvbmUpIHtcbiAgICBjb25zdCB7IGRvbmUsIHZhbHVlIH0gPSBhd2FpdCByZWFkZXIucmVhZCgpO1xuICAgIGlmICh2YWx1ZSkge1xuICAgICAgY29uc3QgcHJpb3IgPSByZXM7XG4gICAgICByZXMgPSBuZXcgVWludDhBcnJheShwcmlvci5sZW5ndGggKyB2YWx1ZS5sZW5ndGgpO1xuICAgICAgcmVzLnNldChwcmlvcik7XG4gICAgICByZXMuc2V0KHZhbHVlLCBwcmlvci5sZW5ndGgpO1xuICAgIH1cbiAgICBpc0RvbmUgPSBkb25lO1xuICB9XG4gIHJldHVybiByZXM7XG59XG5cbmZ1bmN0aW9uIHJlYWRUb0Jhc2U2NChibG9iOiBCbG9iKTogUHJvbWlzZTxzdHJpbmc+IHtcbiAgcmV0dXJuIG5ldyBQcm9taXNlKChyZXNvbHZlLCByZWplY3QpID0+IHtcbiAgICBjb25zdCByZWFkZXIgPSBuZXcgRmlsZVJlYWRlcigpO1xuICAgIHJlYWRlci5vbmxvYWRlbmQgPSAoKSA9PiB7XG4gICAgICAvLyByZWZlcmVuY2U6IGh0dHBzOi8vZGV2ZWxvcGVyLm1vemlsbGEub3JnL2VuLVVTL2RvY3MvV2ViL0FQSS9GaWxlUmVhZGVyL3JlYWRBc0RhdGFVUkxcbiAgICAgIC8vIHJlc3BvbnNlIGZyb20gcmVhZEFzRGF0YVVSTCBpcyBhbHdheXMgcHJlcGVuZGVkIHdpdGggXCJkYXRhOiovKjtiYXNlNjQsXCJcbiAgICAgIGlmIChyZWFkZXIucmVhZHlTdGF0ZSAhPT0gMikge1xuICAgICAgICByZXR1cm4gcmVqZWN0KG5ldyBFcnJvcihcIlJlYWRlciBhYm9ydGVkIHRvbyBlYXJseVwiKSk7XG4gICAgICB9XG4gICAgICBjb25zdCByZXN1bHQgPSAocmVhZGVyLnJlc3VsdCA/PyBcIlwiKSBhcyBzdHJpbmc7XG4gICAgICAvLyBSZXNwb25zZSBjYW4gaW5jbHVkZSBvbmx5ICdkYXRhOicgZm9yIGVtcHR5IGJsb2IsIHJldHVybiBlbXB0eSBzdHJpbmcgaW4gdGhpcyBjYXNlLlxuICAgICAgLy8gT3RoZXJ3aXNlLCByZXR1cm4gdGhlIHN0cmluZyBhZnRlciAnLCdcbiAgICAgIGNvbnN0IGNvbW1hSW5kZXggPSByZXN1bHQuaW5kZXhPZihcIixcIik7XG4gICAgICBjb25zdCBkYXRhT2Zmc2V0ID0gY29tbWFJbmRleCA+IC0xID8gY29tbWFJbmRleCArIDEgOiByZXN1bHQubGVuZ3RoO1xuICAgICAgcmVzb2x2ZShyZXN1bHQuc3Vic3RyaW5nKGRhdGFPZmZzZXQpKTtcbiAgICB9O1xuICAgIHJlYWRlci5vbmFib3J0ID0gKCkgPT4gcmVqZWN0KG5ldyBFcnJvcihcIlJlYWQgYWJvcnRlZFwiKSk7XG4gICAgcmVhZGVyLm9uZXJyb3IgPSAoKSA9PiByZWplY3QocmVhZGVyLmVycm9yKTtcbiAgICAvLyByZWFkZXIucmVhZEFzQXJyYXlCdWZmZXIgaXMgbm90IGFsd2F5cyBhdmFpbGFibGVcbiAgICByZWFkZXIucmVhZEFzRGF0YVVSTChibG9iKTtcbiAgfSk7XG59XG4iXX0= /***/ }), /***/ "2/d+": /*!***************************************************************!*\ !*** ./node_modules/graphql/validation/rules/ScalarLeafs.mjs ***! \***************************************************************/ /*! exports provided: noSubselectionAllowedMessage, requiredSubselectionMessage, ScalarLeafs */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noSubselectionAllowedMessage", function() { return noSubselectionAllowedMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "requiredSubselectionMessage", function() { return requiredSubselectionMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScalarLeafs", function() { return ScalarLeafs; }); /* harmony import */ var _jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../jsutils/inspect */ "rWdj"); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../type/definition */ "axIb"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function noSubselectionAllowedMessage(fieldName, type) { return "Field \"".concat(fieldName, "\" must not have a selection since ") + "type \"".concat(type, "\" has no subfields."); } function requiredSubselectionMessage(fieldName, type) { return "Field \"".concat(fieldName, "\" of type \"").concat(type, "\" must have a ") + "selection of subfields. Did you mean \"".concat(fieldName, " { ... }\"?"); } /** * Scalar leafs * * A GraphQL document is valid only if all leaf fields (fields without * sub selections) are of scalar or enum types. */ function ScalarLeafs(context) { return { Field: function Field(node) { var type = context.getType(); var selectionSet = node.selectionSet; if (type) { if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["isLeafType"])(Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["getNamedType"])(type))) { if (selectionSet) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_1__["GraphQLError"](noSubselectionAllowedMessage(node.name.value, Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(type)), [selectionSet])); } } else if (!selectionSet) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_1__["GraphQLError"](requiredSubselectionMessage(node.name.value, Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(type)), [node])); } } } }; } /***/ }), /***/ "2ACi": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailChannelCommand.js ***! \*********************************************************************************************/ /*! exports provided: DeleteEmailChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelCommand", function() { return DeleteEmailChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteEmailChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteEmailChannelCommand, _super); // Start section: command_properties // End section: command_properties function DeleteEmailChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteEmailChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteEmailChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteEmailChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteEmailChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteEmailChannelCommand"])(input, context); }; DeleteEmailChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteEmailChannelCommand"])(output, context); }; return DeleteEmailChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteEmailChannelCommand.js.map /***/ }), /***/ "2C6G": /*!****************************************************!*\ !*** ./node_modules/graphql/jsutils/invariant.mjs ***! \****************************************************/ /*! exports provided: default */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return invariant; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function invariant(condition, message) { /* istanbul ignore else */ if (!condition) { throw new Error(message); } } /***/ }), /***/ "2Ctp": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsChannelCommand.js ***! \****************************************************************************************/ /*! exports provided: GetSmsChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelCommand", function() { return GetSmsChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetSmsChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSmsChannelCommand, _super); // Start section: command_properties // End section: command_properties function GetSmsChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetSmsChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetSmsChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetSmsChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetSmsChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSmsChannelCommand"])(input, context); }; GetSmsChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSmsChannelCommand"])(output, context); }; return GetSmsChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetSmsChannelCommand.js.map /***/ }), /***/ "2Fxz": /*!******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/CreateMultipartUploadCommand.js ***! \******************************************************************************************/ /*! exports provided: CreateMultipartUploadCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateMultipartUploadCommand", function() { return CreateMultipartUploadCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_ssec__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-ssec */ "CXEx"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CreateMultipartUploadCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateMultipartUploadCommand, _super); // Start section: command_properties // End section: command_properties function CreateMultipartUploadCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CreateMultipartUploadCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_ssec__WEBPACK_IMPORTED_MODULE_5__["getSsecPlugin"])(configuration)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateMultipartUploadRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateMultipartUploadOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CreateMultipartUploadCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlCreateMultipartUploadCommand"])(input, context); }; CreateMultipartUploadCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlCreateMultipartUploadCommand"])(output, context); }; return CreateMultipartUploadCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__["Command"])); //# sourceMappingURL=CreateMultipartUploadCommand.js.map /***/ }), /***/ "2Ir5": /*!*****************************************************!*\ !*** ./node_modules/graphql/subscription/index.mjs ***! \*****************************************************/ /*! exports provided: subscribe, createSourceEventStream */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _subscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./subscribe */ "9+74"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "subscribe", function() { return _subscribe__WEBPACK_IMPORTED_MODULE_0__["subscribe"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createSourceEventStream", function() { return _subscribe__WEBPACK_IMPORTED_MODULE_0__["createSourceEventStream"]; }); /** * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /***/ }), /***/ "2Izi": /*!********************************************************************!*\ !*** ./node_modules/@aws-sdk/protocol-http/dist/es/httpHandler.js ***! \********************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cEhhbmRsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaHR0cEhhbmRsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEh0dHBIYW5kbGVyT3B0aW9ucywgUmVxdWVzdEhhbmRsZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuaW1wb3J0IHsgSHR0cFJlcXVlc3QgfSBmcm9tIFwiLi9odHRwUmVxdWVzdFwiO1xuaW1wb3J0IHsgSHR0cFJlc3BvbnNlIH0gZnJvbSBcIi4vaHR0cFJlc3BvbnNlXCI7XG5cbmV4cG9ydCB0eXBlIEh0dHBIYW5kbGVyID0gUmVxdWVzdEhhbmRsZXI8SHR0cFJlcXVlc3QsIEh0dHBSZXNwb25zZSwgSHR0cEhhbmRsZXJPcHRpb25zPjtcbiJdfQ== /***/ }), /***/ "2Lx6": /*!***********************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/StorageHelper/index.js ***! \***********************************************************************/ /*! exports provided: MemoryStorage, StorageHelper, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MemoryStorage", function() { return MemoryStorage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StorageHelper", function() { return StorageHelper; }); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var dataMemory = {}; /** @class */ var MemoryStorage = /** @class */ (function () { function MemoryStorage() { } /** * This is used to set a specific item in storage * @param {string} key - the key for the item * @param {object} value - the value * @returns {string} value that was set */ MemoryStorage.setItem = function (key, value) { dataMemory[key] = value; return dataMemory[key]; }; /** * This is used to get a specific key from storage * @param {string} key - the key for the item * This is used to clear the storage * @returns {string} the data item */ MemoryStorage.getItem = function (key) { return Object.prototype.hasOwnProperty.call(dataMemory, key) ? dataMemory[key] : undefined; }; /** * This is used to remove an item from storage * @param {string} key - the key being set * @returns {string} value - value that was deleted */ MemoryStorage.removeItem = function (key) { return delete dataMemory[key]; }; /** * This is used to clear the storage * @returns {string} nothing */ MemoryStorage.clear = function () { dataMemory = {}; return dataMemory; }; return MemoryStorage; }()); var StorageHelper = /** @class */ (function () { /** * This is used to get a storage object * @returns {object} the storage */ function StorageHelper() { try { this.storageWindow = window.localStorage; this.storageWindow.setItem('aws.amplify.test-ls', 1); this.storageWindow.removeItem('aws.amplify.test-ls'); } catch (exception) { this.storageWindow = MemoryStorage; } } /** * This is used to return the storage * @returns {object} the storage */ StorageHelper.prototype.getStorage = function () { return this.storageWindow; }; return StorageHelper; }()); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (StorageHelper); //# sourceMappingURL=index.js.map /***/ }), /***/ "2Q8h": /*!********************************************************************************!*\ !*** ./node_modules/@aws-amplify/predictions/lib-esm/types/Providers/index.js ***! \********************************************************************************/ /*! exports provided: AbstractPredictionsProvider, AbstractConvertPredictionsProvider, AbstractIdentifyPredictionsProvider, AbstractInterpretPredictionsProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _AbstractPredictionsProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AbstractPredictionsProvider */ "qFjB"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AbstractPredictionsProvider", function() { return _AbstractPredictionsProvider__WEBPACK_IMPORTED_MODULE_0__["AbstractPredictionsProvider"]; }); /* harmony import */ var _AbstractConvertPredictionsProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AbstractConvertPredictionsProvider */ "NE84"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AbstractConvertPredictionsProvider", function() { return _AbstractConvertPredictionsProvider__WEBPACK_IMPORTED_MODULE_1__["AbstractConvertPredictionsProvider"]; }); /* harmony import */ var _AbstractIdentifyPredictionsProvider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AbstractIdentifyPredictionsProvider */ "wbv8"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AbstractIdentifyPredictionsProvider", function() { return _AbstractIdentifyPredictionsProvider__WEBPACK_IMPORTED_MODULE_2__["AbstractIdentifyPredictionsProvider"]; }); /* harmony import */ var _AbstractInterpretPredictionsProvider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AbstractInterpretPredictionsProvider */ "to5h"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AbstractInterpretPredictionsProvider", function() { return _AbstractInterpretPredictionsProvider__WEBPACK_IMPORTED_MODULE_3__["AbstractInterpretPredictionsProvider"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "2QA8": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/symbol/rxSubscriber.js ***! \********************************************************************/ /*! exports provided: rxSubscriber, $$rxSubscriber */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rxSubscriber", function() { return rxSubscriber; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "$$rxSubscriber", function() { return $$rxSubscriber; }); const rxSubscriber = (() => typeof Symbol === 'function' ? Symbol('rxSubscriber') : '@@rxSubscriber_' + Math.random())(); const $$rxSubscriber = rxSubscriber; //# sourceMappingURL=rxSubscriber.js.map /***/ }), /***/ "2QGa": /*!*********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/partition.js ***! \*********************************************************************/ /*! exports provided: partition */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "partition", function() { return partition; }); /* harmony import */ var _util_not__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/not */ "F97/"); /* harmony import */ var _util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeTo */ "SeVD"); /* harmony import */ var _operators_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operators/filter */ "pLZG"); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Observable */ "HDdC"); function partition(source, predicate, thisArg) { return [ Object(_operators_filter__WEBPACK_IMPORTED_MODULE_2__["filter"])(predicate, thisArg)(new _Observable__WEBPACK_IMPORTED_MODULE_3__["Observable"](Object(_util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__["subscribeTo"])(source))), Object(_operators_filter__WEBPACK_IMPORTED_MODULE_2__["filter"])(Object(_util_not__WEBPACK_IMPORTED_MODULE_0__["not"])(predicate, thisArg))(new _Observable__WEBPACK_IMPORTED_MODULE_3__["Observable"](Object(_util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__["subscribeTo"])(source))) ]; } //# sourceMappingURL=partition.js.map /***/ }), /***/ "2Rkc": /*!*****************************************************************************!*\ !*** ./node_modules/graphql/validation/rules/FragmentsOnCompositeTypes.mjs ***! \*****************************************************************************/ /*! exports provided: inlineFragmentOnNonCompositeErrorMessage, fragmentOnNonCompositeErrorMessage, FragmentsOnCompositeTypes */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inlineFragmentOnNonCompositeErrorMessage", function() { return inlineFragmentOnNonCompositeErrorMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fragmentOnNonCompositeErrorMessage", function() { return fragmentOnNonCompositeErrorMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FragmentsOnCompositeTypes", function() { return FragmentsOnCompositeTypes; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /* harmony import */ var _language_printer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../language/printer */ "dQau"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../type/definition */ "axIb"); /* harmony import */ var _utilities_typeFromAST__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utilities/typeFromAST */ "umOc"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function inlineFragmentOnNonCompositeErrorMessage(type) { return "Fragment cannot condition on non composite type \"".concat(type, "\"."); } function fragmentOnNonCompositeErrorMessage(fragName, type) { return "Fragment \"".concat(fragName, "\" cannot condition on non composite ") + "type \"".concat(type, "\"."); } /** * Fragments on composite type * * Fragments use a type condition to determine if they apply, since fragments * can only be spread into a composite type (object, interface, or union), the * type condition must also be a composite type. */ function FragmentsOnCompositeTypes(context) { return { InlineFragment: function InlineFragment(node) { var typeCondition = node.typeCondition; if (typeCondition) { var type = Object(_utilities_typeFromAST__WEBPACK_IMPORTED_MODULE_3__["typeFromAST"])(context.getSchema(), typeCondition); if (type && !Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["isCompositeType"])(type)) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](inlineFragmentOnNonCompositeErrorMessage(Object(_language_printer__WEBPACK_IMPORTED_MODULE_1__["print"])(typeCondition)), [typeCondition])); } } }, FragmentDefinition: function FragmentDefinition(node) { var type = Object(_utilities_typeFromAST__WEBPACK_IMPORTED_MODULE_3__["typeFromAST"])(context.getSchema(), node.typeCondition); if (type && !Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["isCompositeType"])(type)) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](fragmentOnNonCompositeErrorMessage(node.name.value, Object(_language_printer__WEBPACK_IMPORTED_MODULE_1__["print"])(node.typeCondition)), [node.typeCondition])); } } }; } /***/ }), /***/ "2SVd": /*!*********************************************************!*\ !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***! \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Determines whether the specified URL is absolute * * @param {string} url The URL to test * @returns {boolean} True if the specified URL is absolute, otherwise false */ module.exports = function isAbsoluteURL(url) { // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed // by any combination of letters, digits, plus, period, or hyphen. return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); }; /***/ }), /***/ "2TPv": /*!*****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/ListMultipartUploadsCommand.js ***! \*****************************************************************************************/ /*! exports provided: ListMultipartUploadsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListMultipartUploadsCommand", function() { return ListMultipartUploadsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListMultipartUploadsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListMultipartUploadsCommand, _super); // Start section: command_properties // End section: command_properties function ListMultipartUploadsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListMultipartUploadsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListMultipartUploadsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListMultipartUploadsOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListMultipartUploadsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlListMultipartUploadsCommand"])(input, context); }; ListMultipartUploadsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlListMultipartUploadsCommand"])(output, context); }; return ListMultipartUploadsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=ListMultipartUploadsCommand.js.map /***/ }), /***/ "2Tg4": /*!******************************************************************!*\ !*** ./node_modules/amazon-cognito-identity-js/es/DateHelper.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return DateHelper; }); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ var monthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; var weekNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; /** @class */ var DateHelper = /*#__PURE__*/function () { function DateHelper() {} var _proto = DateHelper.prototype; /** * @returns {string} The current time in "ddd MMM D HH:mm:ss UTC YYYY" format. */ _proto.getNowString = function getNowString() { var now = new Date(); var weekDay = weekNames[now.getUTCDay()]; var month = monthNames[now.getUTCMonth()]; var day = now.getUTCDate(); var hours = now.getUTCHours(); if (hours < 10) { hours = "0" + hours; } var minutes = now.getUTCMinutes(); if (minutes < 10) { minutes = "0" + minutes; } var seconds = now.getUTCSeconds(); if (seconds < 10) { seconds = "0" + seconds; } var year = now.getUTCFullYear(); // ddd MMM D HH:mm:ss UTC YYYY var dateNow = weekDay + " " + month + " " + day + " " + hours + ":" + minutes + ":" + seconds + " UTC " + year; return dateNow; }; return DateHelper; }(); /***/ }), /***/ "2Vo4": /*!****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/BehaviorSubject.js ***! \****************************************************************/ /*! exports provided: BehaviorSubject */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BehaviorSubject", function() { return BehaviorSubject; }); /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Subject */ "XNiG"); /* harmony import */ var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util/ObjectUnsubscribedError */ "9ppp"); class BehaviorSubject extends _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"] { constructor(_value) { super(); this._value = _value; } get value() { return this.getValue(); } _subscribe(subscriber) { const subscription = super._subscribe(subscriber); if (subscription && !subscription.closed) { subscriber.next(this._value); } return subscription; } getValue() { if (this.hasError) { throw this.thrownError; } else if (this.closed) { throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_1__["ObjectUnsubscribedError"](); } else { return this._value; } } next(value) { super.next(this._value = value); } } //# sourceMappingURL=BehaviorSubject.js.map /***/ }), /***/ "2XnK": /*!*******************************************************************!*\ !*** ./node_modules/@aws-sdk/querystring-parser/dist/es/index.js ***! \*******************************************************************/ /*! exports provided: parseQueryString */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseQueryString", function() { return parseQueryString; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); function parseQueryString(querystring) { var e_1, _a; var query = {}; querystring = querystring.replace(/^\?/, ""); if (querystring) { try { for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(querystring.split("&")), _c = _b.next(); !_c.done; _c = _b.next()) { var pair = _c.value; var _d = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(pair.split("="), 2), key = _d[0], _e = _d[1], value = _e === void 0 ? null : _e; key = decodeURIComponent(key); if (value) { value = decodeURIComponent(value); } if (!(key in query)) { query[key] = value; } else if (Array.isArray(query[key])) { query[key].push(value); } else { query[key] = [query[key], value]; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } return query; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUVBLE1BQU0sVUFBVSxnQkFBZ0IsQ0FBQyxXQUFtQjs7SUFDbEQsSUFBTSxLQUFLLEdBQXNCLEVBQUUsQ0FBQztJQUNwQyxXQUFXLEdBQUcsV0FBVyxDQUFDLE9BQU8sQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7SUFFN0MsSUFBSSxXQUFXLEVBQUU7O1lBQ2YsS0FBbUIsSUFBQSxLQUFBLFNBQUEsV0FBVyxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQSxnQkFBQSw0QkFBRTtnQkFBdEMsSUFBTSxJQUFJLFdBQUE7Z0JBQ1QsSUFBQSxLQUFBLE9BQXNCLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLElBQUEsRUFBcEMsR0FBRyxRQUFBLEVBQUUsVUFBWSxFQUFaLEtBQUssbUJBQUcsSUFBSSxLQUFtQixDQUFDO2dCQUMxQyxHQUFHLEdBQUcsa0JBQWtCLENBQUMsR0FBRyxDQUFDLENBQUM7Z0JBQzlCLElBQUksS0FBSyxFQUFFO29CQUNULEtBQUssR0FBRyxrQkFBa0IsQ0FBQyxLQUFLLENBQUMsQ0FBQztpQkFDbkM7Z0JBQ0QsSUFBSSxDQUFDLENBQUMsR0FBRyxJQUFJLEtBQUssQ0FBQyxFQUFFO29CQUNuQixLQUFLLENBQUMsR0FBRyxDQUFDLEdBQUcsS0FBSyxDQUFDO2lCQUNwQjtxQkFBTSxJQUFJLEtBQUssQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEVBQUU7b0JBQ25DLEtBQUssQ0FBQyxHQUFHLENBQW1CLENBQUMsSUFBSSxDQUFDLEtBQWUsQ0FBQyxDQUFDO2lCQUNyRDtxQkFBTTtvQkFDTCxLQUFLLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFXLEVBQUUsS0FBZSxDQUFDLENBQUM7aUJBQ3REO2FBQ0Y7Ozs7Ozs7OztLQUNGO0lBRUQsT0FBTyxLQUFLLENBQUM7QUFDZixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUXVlcnlQYXJhbWV0ZXJCYWcgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuZXhwb3J0IGZ1bmN0aW9uIHBhcnNlUXVlcnlTdHJpbmcocXVlcnlzdHJpbmc6IHN0cmluZyk6IFF1ZXJ5UGFyYW1ldGVyQmFnIHtcbiAgY29uc3QgcXVlcnk6IFF1ZXJ5UGFyYW1ldGVyQmFnID0ge307XG4gIHF1ZXJ5c3RyaW5nID0gcXVlcnlzdHJpbmcucmVwbGFjZSgvXlxcPy8sIFwiXCIpO1xuXG4gIGlmIChxdWVyeXN0cmluZykge1xuICAgIGZvciAoY29uc3QgcGFpciBvZiBxdWVyeXN0cmluZy5zcGxpdChcIiZcIikpIHtcbiAgICAgIGxldCBba2V5LCB2YWx1ZSA9IG51bGxdID0gcGFpci5zcGxpdChcIj1cIik7XG4gICAgICBrZXkgPSBkZWNvZGVVUklDb21wb25lbnQoa2V5KTtcbiAgICAgIGlmICh2YWx1ZSkge1xuICAgICAgICB2YWx1ZSA9IGRlY29kZVVSSUNvbXBvbmVudCh2YWx1ZSk7XG4gICAgICB9XG4gICAgICBpZiAoIShrZXkgaW4gcXVlcnkpKSB7XG4gICAgICAgIHF1ZXJ5W2tleV0gPSB2YWx1ZTtcbiAgICAgIH0gZWxzZSBpZiAoQXJyYXkuaXNBcnJheShxdWVyeVtrZXldKSkge1xuICAgICAgICAocXVlcnlba2V5XSBhcyBBcnJheTxzdHJpbmc+KS5wdXNoKHZhbHVlIGFzIHN0cmluZyk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBxdWVyeVtrZXldID0gW3F1ZXJ5W2tleV0gYXMgc3RyaW5nLCB2YWx1ZSBhcyBzdHJpbmddO1xuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIHJldHVybiBxdWVyeTtcbn1cbiJdfQ== /***/ }), /***/ "2fFW": /*!*******************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/config.js ***! \*******************************************************/ /*! exports provided: config */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "config", function() { return config; }); let _enable_super_gross_mode_that_will_cause_bad_things = false; const config = { Promise: undefined, set useDeprecatedSynchronousErrorHandling(value) { if (value) { const error = new Error(); console.warn('DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n' + error.stack); } else if (_enable_super_gross_mode_that_will_cause_bad_things) { console.log('RxJS: Back to a better error behavior. Thank you. <3'); } _enable_super_gross_mode_that_will_cause_bad_things = value; }, get useDeprecatedSynchronousErrorHandling() { return _enable_super_gross_mode_that_will_cause_bad_things; }, }; //# sourceMappingURL=config.js.map /***/ }), /***/ "2gN3": /*!********************************************!*\ !*** ./node_modules/lodash/_coreJsData.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__(/*! ./_root */ "Kz5y"); /** Used to detect overreaching core-js shims. */ var coreJsData = root['__core-js_shared__']; module.exports = coreJsData; /***/ }), /***/ "2lIZ": /*!*********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppCommand.js ***! \*********************************************************************************/ /*! exports provided: GetAppCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAppCommand", function() { return GetAppCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetAppCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetAppCommand, _super); // Start section: command_properties // End section: command_properties function GetAppCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetAppCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetAppRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetAppResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetAppCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetAppCommand"])(input, context); }; GetAppCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetAppCommand"])(output, context); }; return GetAppCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetAppCommand.js.map /***/ }), /***/ "2uTk": /*!**************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/Util/Retry.js ***! \**************************************************************/ /*! exports provided: NonRetryableError, retry, jitteredExponentialRetry */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NonRetryableError", function() { return NonRetryableError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retry", function() { return retry; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jitteredExponentialRetry", function() { return jitteredExponentialRetry; }); /* harmony import */ var _Logger_ConsoleLogger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Logger/ConsoleLogger */ "Nt7R"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (undefined && undefined.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var logger = new _Logger_ConsoleLogger__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('Util'); var NonRetryableError = /** @class */ (function (_super) { __extends(NonRetryableError, _super); function NonRetryableError(message) { var _this = _super.call(this, message) || this; _this.nonRetryable = true; return _this; } return NonRetryableError; }(Error)); var isNonRetryableError = function (obj) { var key = 'nonRetryable'; return obj && obj[key]; }; /** * @private * Internal use of Amplify only */ function retry(functionToRetry, args, delayFn, attempt) { if (attempt === void 0) { attempt = 1; } return __awaiter(this, void 0, void 0, function () { var err_1, retryIn_1; return __generator(this, function (_a) { switch (_a.label) { case 0: if (typeof functionToRetry !== 'function') { throw Error('functionToRetry must be a function'); } logger.debug(functionToRetry.name + " attempt #" + attempt + " with this vars: " + JSON.stringify(args)); _a.label = 1; case 1: _a.trys.push([1, 3, , 8]); return [4 /*yield*/, functionToRetry.apply(void 0, __spread(args))]; case 2: return [2 /*return*/, _a.sent()]; case 3: err_1 = _a.sent(); logger.debug("error on " + functionToRetry.name, err_1); if (isNonRetryableError(err_1)) { logger.debug(functionToRetry.name + " non retryable error", err_1); throw err_1; } retryIn_1 = delayFn(attempt, args, err_1); logger.debug(functionToRetry.name + " retrying in " + retryIn_1 + " ms"); if (!(retryIn_1 !== false)) return [3 /*break*/, 6]; return [4 /*yield*/, new Promise(function (res) { return setTimeout(res, retryIn_1); })]; case 4: _a.sent(); return [4 /*yield*/, retry(functionToRetry, args, delayFn, attempt + 1)]; case 5: return [2 /*return*/, _a.sent()]; case 6: throw err_1; case 7: return [3 /*break*/, 8]; case 8: return [2 /*return*/]; } }); }); } var MAX_DELAY_MS = 5 * 60 * 1000; function jitteredBackoff(maxDelayMs) { var BASE_TIME_MS = 100; var JITTER_FACTOR = 100; return function (attempt) { var delay = Math.pow(2, attempt) * BASE_TIME_MS + JITTER_FACTOR * Math.random(); return delay > maxDelayMs ? false : delay; }; } /** * @private * Internal use of Amplify only */ var jitteredExponentialRetry = function (functionToRetry, args, maxDelayMs) { if (maxDelayMs === void 0) { maxDelayMs = MAX_DELAY_MS; } return retry(functionToRetry, args, jitteredBackoff(maxDelayMs)); }; //# sourceMappingURL=Retry.js.map /***/ }), /***/ "30Lp": /*!**********************************************************!*\ !*** ./node_modules/@aws-amplify/auth/lib/types/Auth.js ***! \**********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); var CognitoHostedUIIdentityProvider; (function (CognitoHostedUIIdentityProvider) { CognitoHostedUIIdentityProvider["Cognito"] = "COGNITO"; CognitoHostedUIIdentityProvider["Google"] = "Google"; CognitoHostedUIIdentityProvider["Facebook"] = "Facebook"; CognitoHostedUIIdentityProvider["Amazon"] = "LoginWithAmazon"; CognitoHostedUIIdentityProvider["Apple"] = "SignInWithApple"; })(CognitoHostedUIIdentityProvider = exports.CognitoHostedUIIdentityProvider || (exports.CognitoHostedUIIdentityProvider = {})); function isFederatedSignInOptions(obj) { var keys = ['provider']; return obj && !!keys.find(function (k) { return obj.hasOwnProperty(k); }); } exports.isFederatedSignInOptions = isFederatedSignInOptions; function isFederatedSignInOptionsCustom(obj) { var keys = ['customProvider']; return obj && !!keys.find(function (k) { return obj.hasOwnProperty(k); }); } exports.isFederatedSignInOptionsCustom = isFederatedSignInOptionsCustom; function hasCustomState(obj) { var keys = ['customState']; return obj && !!keys.find(function (k) { return obj.hasOwnProperty(k); }); } exports.hasCustomState = hasCustomState; function isCognitoHostedOpts(oauth) { return oauth.redirectSignIn !== undefined; } exports.isCognitoHostedOpts = isCognitoHostedOpts; var AuthErrorTypes; (function (AuthErrorTypes) { AuthErrorTypes["NoConfig"] = "noConfig"; AuthErrorTypes["MissingAuthConfig"] = "missingAuthConfig"; AuthErrorTypes["EmptyUsername"] = "emptyUsername"; AuthErrorTypes["InvalidUsername"] = "invalidUsername"; AuthErrorTypes["EmptyPassword"] = "emptyPassword"; AuthErrorTypes["EmptyCode"] = "emptyCode"; AuthErrorTypes["SignUpError"] = "signUpError"; AuthErrorTypes["NoMFA"] = "noMFA"; AuthErrorTypes["InvalidMFA"] = "invalidMFA"; AuthErrorTypes["EmptyChallengeResponse"] = "emptyChallengeResponse"; AuthErrorTypes["NoUserSession"] = "noUserSession"; AuthErrorTypes["Default"] = "default"; })(AuthErrorTypes = exports.AuthErrorTypes || (exports.AuthErrorTypes = {})); function isUsernamePasswordOpts(obj) { return !!obj.username; } exports.isUsernamePasswordOpts = isUsernamePasswordOpts; //# sourceMappingURL=Auth.js.map /***/ }), /***/ "31ZT": /*!*******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/CreateEndpointCommand.js ***! \*******************************************************************************************/ /*! exports provided: CreateEndpointCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEndpointCommand", function() { return CreateEndpointCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CreateEndpointCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateEndpointCommand, _super); // Start section: command_properties // End section: command_properties function CreateEndpointCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CreateEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateEndpointRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateEndpointResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CreateEndpointCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1CreateEndpointCommand"])(input, context); }; CreateEndpointCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1CreateEndpointCommand"])(output, context); }; return CreateEndpointCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=CreateEndpointCommand.js.map /***/ }), /***/ "32Ea": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/skipWhile.js ***! \********************************************************************/ /*! exports provided: skipWhile */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "skipWhile", function() { return skipWhile; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); function skipWhile(predicate) { return (source) => source.lift(new SkipWhileOperator(predicate)); } class SkipWhileOperator { constructor(predicate) { this.predicate = predicate; } call(subscriber, source) { return source.subscribe(new SkipWhileSubscriber(subscriber, this.predicate)); } } class SkipWhileSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, predicate) { super(destination); this.predicate = predicate; this.skipping = true; this.index = 0; } _next(value) { const destination = this.destination; if (this.skipping) { this.tryCallPredicate(value); } if (!this.skipping) { destination.next(value); } } tryCallPredicate(value) { try { const result = this.predicate(value, this.index++); this.skipping = Boolean(result); } catch (err) { this.destination.error(err); } } } //# sourceMappingURL=skipWhile.js.map /***/ }), /***/ "35dS": /*!******************************************************************************************!*\ !*** ./node_modules/@aws-amplify/interactions/lib-esm/Providers/InteractionsProvider.js ***! \******************************************************************************************/ /*! exports provided: AbstractInteractionsProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AbstractInteractionsProvider", function() { return AbstractInteractionsProvider; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AbstractInteractionsProvider'); var AbstractInteractionsProvider = /** @class */ (function () { function AbstractInteractionsProvider(options) { if (options === void 0) { options = {}; } this._config = options; } AbstractInteractionsProvider.prototype.configure = function (config) { if (config === void 0) { config = {}; } this._config = __assign(__assign({}, this._config), config); logger.debug("configure " + this.getProviderName(), this._config); return this.options; }; AbstractInteractionsProvider.prototype.getCategory = function () { return 'Interactions'; }; Object.defineProperty(AbstractInteractionsProvider.prototype, "options", { get: function () { return __assign({}, this._config); }, enumerable: true, configurable: true }); return AbstractInteractionsProvider; }()); //# sourceMappingURL=InteractionsProvider.js.map /***/ }), /***/ "37IQ": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/TagResourceCommand.js ***! \****************************************************************************************/ /*! exports provided: TagResourceCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagResourceCommand", function() { return TagResourceCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var TagResourceCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TagResourceCommand, _super); // Start section: command_properties // End section: command_properties function TagResourceCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["TagResourceRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["TagResourceResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; TagResourceCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1TagResourceCommand"])(input, context); }; TagResourceCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1TagResourceCommand"])(output, context); }; return TagResourceCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=TagResourceCommand.js.map /***/ }), /***/ "37TR": /*!*******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/GetFaceSearchCommand.js ***! \*******************************************************************************************/ /*! exports provided: GetFaceSearchCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetFaceSearchCommand", function() { return GetFaceSearchCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetFaceSearchCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetFaceSearchCommand, _super); // Start section: command_properties // End section: command_properties function GetFaceSearchCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetFaceSearchCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetFaceSearchRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetFaceSearchResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetFaceSearchCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetFaceSearchCommand"])(input, context); }; GetFaceSearchCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetFaceSearchCommand"])(output, context); }; return GetFaceSearchCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetFaceSearchCommand.js.map /***/ }), /***/ "3A9y": /*!*********************************************!*\ !*** ./node_modules/lodash/_setCacheHas.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Checks if `value` is in the array cache. * * @private * @name has * @memberOf SetCache * @param {*} value The value to search for. * @returns {number} Returns `true` if `value` is found, else `false`. */ function setCacheHas(value) { return this.__data__.has(value); } module.exports = setCacheHas; /***/ }), /***/ "3AcE": /*!********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/BatchDetectDominantLanguageCommand.js ***! \********************************************************************************************************/ /*! exports provided: BatchDetectDominantLanguageCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectDominantLanguageCommand", function() { return BatchDetectDominantLanguageCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var BatchDetectDominantLanguageCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BatchDetectDominantLanguageCommand, _super); // Start section: command_properties // End section: command_properties function BatchDetectDominantLanguageCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } BatchDetectDominantLanguageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["BatchDetectDominantLanguageRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["BatchDetectDominantLanguageResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; BatchDetectDominantLanguageCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1BatchDetectDominantLanguageCommand"])(input, context); }; BatchDetectDominantLanguageCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1BatchDetectDominantLanguageCommand"])(output, context); }; return BatchDetectDominantLanguageCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=BatchDetectDominantLanguageCommand.js.map /***/ }), /***/ "3Aid": /*!******************************************!*\ !*** ./node_modules/graphql/graphql.mjs ***! \******************************************/ /*! exports provided: graphql, graphqlSync */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "graphql", function() { return graphql; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "graphqlSync", function() { return graphqlSync; }); /* harmony import */ var _type_validate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./type/validate */ "93gR"); /* harmony import */ var _language_parser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./language/parser */ "EMzn"); /* harmony import */ var _validation_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./validation/validate */ "EkME"); /* harmony import */ var _execution_execute__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./execution/execute */ "yRpE"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function graphql(argsOrSchema, source, rootValue, contextValue, variableValues, operationName, fieldResolver) { var _arguments = arguments; /* eslint-enable no-redeclare */ // Always return a Promise for a consistent API. return new Promise(function (resolve) { return resolve( // Extract arguments from object args if provided. _arguments.length === 1 ? graphqlImpl(argsOrSchema.schema, argsOrSchema.source, argsOrSchema.rootValue, argsOrSchema.contextValue, argsOrSchema.variableValues, argsOrSchema.operationName, argsOrSchema.fieldResolver) : graphqlImpl(argsOrSchema, source, rootValue, contextValue, variableValues, operationName, fieldResolver)); }); } /** * The graphqlSync function also fulfills GraphQL operations by parsing, * validating, and executing a GraphQL document along side a GraphQL schema. * However, it guarantees to complete synchronously (or throw an error) assuming * that all field resolvers are also synchronous. */ function graphqlSync(argsOrSchema, source, rootValue, contextValue, variableValues, operationName, fieldResolver) { /* eslint-enable no-redeclare */ // Extract arguments from object args if provided. var result = arguments.length === 1 ? graphqlImpl(argsOrSchema.schema, argsOrSchema.source, argsOrSchema.rootValue, argsOrSchema.contextValue, argsOrSchema.variableValues, argsOrSchema.operationName, argsOrSchema.fieldResolver) : graphqlImpl(argsOrSchema, source, rootValue, contextValue, variableValues, operationName, fieldResolver); // Assert that the execution was synchronous. if (result.then) { throw new Error('GraphQL execution failed to complete synchronously.'); } return result; } function graphqlImpl(schema, source, rootValue, contextValue, variableValues, operationName, fieldResolver) { // Validate Schema var schemaValidationErrors = Object(_type_validate__WEBPACK_IMPORTED_MODULE_0__["validateSchema"])(schema); if (schemaValidationErrors.length > 0) { return { errors: schemaValidationErrors }; } // Parse var document; try { document = Object(_language_parser__WEBPACK_IMPORTED_MODULE_1__["parse"])(source); } catch (syntaxError) { return { errors: [syntaxError] }; } // Validate var validationErrors = Object(_validation_validate__WEBPACK_IMPORTED_MODULE_2__["validate"])(schema, document); if (validationErrors.length > 0) { return { errors: validationErrors }; } // Execute return Object(_execution_execute__WEBPACK_IMPORTED_MODULE_3__["execute"])(schema, document, rootValue, contextValue, variableValues, operationName, fieldResolver); } /***/ }), /***/ "3E0/": /*!****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/delay.js ***! \****************************************************************/ /*! exports provided: delay */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "delay", function() { return delay; }); /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scheduler/async */ "D0XW"); /* harmony import */ var _util_isDate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isDate */ "mlxB"); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); /* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Notification */ "WMd4"); function delay(delay, scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"]) { const absoluteDelay = Object(_util_isDate__WEBPACK_IMPORTED_MODULE_1__["isDate"])(delay); const delayFor = absoluteDelay ? (+delay - scheduler.now()) : Math.abs(delay); return (source) => source.lift(new DelayOperator(delayFor, scheduler)); } class DelayOperator { constructor(delay, scheduler) { this.delay = delay; this.scheduler = scheduler; } call(subscriber, source) { return source.subscribe(new DelaySubscriber(subscriber, this.delay, this.scheduler)); } } class DelaySubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_2__["Subscriber"] { constructor(destination, delay, scheduler) { super(destination); this.delay = delay; this.scheduler = scheduler; this.queue = []; this.active = false; this.errored = false; } static dispatch(state) { const source = state.source; const queue = source.queue; const scheduler = state.scheduler; const destination = state.destination; while (queue.length > 0 && (queue[0].time - scheduler.now()) <= 0) { queue.shift().notification.observe(destination); } if (queue.length > 0) { const delay = Math.max(0, queue[0].time - scheduler.now()); this.schedule(state, delay); } else { this.unsubscribe(); source.active = false; } } _schedule(scheduler) { this.active = true; const destination = this.destination; destination.add(scheduler.schedule(DelaySubscriber.dispatch, this.delay, { source: this, destination: this.destination, scheduler: scheduler })); } scheduleNotification(notification) { if (this.errored === true) { return; } const scheduler = this.scheduler; const message = new DelayMessage(scheduler.now() + this.delay, notification); this.queue.push(message); if (this.active === false) { this._schedule(scheduler); } } _next(value) { this.scheduleNotification(_Notification__WEBPACK_IMPORTED_MODULE_3__["Notification"].createNext(value)); } _error(err) { this.errored = true; this.queue = []; this.destination.error(err); this.unsubscribe(); } _complete() { this.scheduleNotification(_Notification__WEBPACK_IMPORTED_MODULE_3__["Notification"].createComplete()); this.unsubscribe(); } } class DelayMessage { constructor(time, notification) { this.time = time; this.notification = notification; } } //# sourceMappingURL=delay.js.map /***/ }), /***/ "3Fdi": /*!******************************************!*\ !*** ./node_modules/lodash/_toSource.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** Used for built-in method references. */ var funcProto = Function.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** * Converts `func` to its source code. * * @private * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ function toSource(func) { if (func != null) { try { return funcToString.call(func); } catch (e) {} try { return (func + ''); } catch (e) {} } return ''; } module.exports = toSource; /***/ }), /***/ "3HNt": /*!*********************************************************!*\ !*** ./node_modules/graphql/utilities/astFromValue.mjs ***! \*********************************************************/ /*! exports provided: astFromValue */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "astFromValue", function() { return astFromValue; }); /* harmony import */ var iterall__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! iterall */ "EkS5"); /* harmony import */ var _jsutils_inspect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/inspect */ "rWdj"); /* harmony import */ var _jsutils_isNullish__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../jsutils/isNullish */ "das/"); /* harmony import */ var _jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../jsutils/isInvalid */ "/kEc"); /* harmony import */ var _jsutils_objectValues__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../jsutils/objectValues */ "S4Ci"); /* harmony import */ var _language_kinds__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../language/kinds */ "/jXB"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../type/definition */ "axIb"); /* harmony import */ var _type_scalars__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../type/scalars */ "19Hc"); function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Produces a GraphQL Value AST given a JavaScript value. * * A GraphQL type must be provided, which will be used to interpret different * JavaScript values. * * | JSON Value | GraphQL Value | * | ------------- | -------------------- | * | Object | Input Object | * | Array | List | * | Boolean | Boolean | * | String | String / Enum Value | * | Number | Int / Float | * | Mixed | Enum Value | * | null | NullValue | * */ function astFromValue(value, type) { if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["isNonNullType"])(type)) { var astValue = astFromValue(value, type.ofType); if (astValue && astValue.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_5__["Kind"].NULL) { return null; } return astValue; } // only explicit null, not undefined, NaN if (value === null) { return { kind: _language_kinds__WEBPACK_IMPORTED_MODULE_5__["Kind"].NULL }; } // undefined, NaN if (Object(_jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_3__["default"])(value)) { return null; } // Convert JavaScript array to GraphQL list. If the GraphQLType is a list, but // the value is not an array, convert the value using the list's item type. if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["isListType"])(type)) { var itemType = type.ofType; if (Object(iterall__WEBPACK_IMPORTED_MODULE_0__["isCollection"])(value)) { var valuesNodes = []; Object(iterall__WEBPACK_IMPORTED_MODULE_0__["forEach"])(value, function (item) { var itemNode = astFromValue(item, itemType); if (itemNode) { valuesNodes.push(itemNode); } }); return { kind: _language_kinds__WEBPACK_IMPORTED_MODULE_5__["Kind"].LIST, values: valuesNodes }; } return astFromValue(value, itemType); } // Populate the fields of the input object by creating ASTs from each value // in the JavaScript object according to the fields in the input type. if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["isInputObjectType"])(type)) { if (value === null || _typeof(value) !== 'object') { return null; } var fields = Object(_jsutils_objectValues__WEBPACK_IMPORTED_MODULE_4__["default"])(type.getFields()); var fieldNodes = []; var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = fields[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var field = _step.value; var fieldValue = astFromValue(value[field.name], field.type); if (fieldValue) { fieldNodes.push({ kind: _language_kinds__WEBPACK_IMPORTED_MODULE_5__["Kind"].OBJECT_FIELD, name: { kind: _language_kinds__WEBPACK_IMPORTED_MODULE_5__["Kind"].NAME, value: field.name }, value: fieldValue }); } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } return { kind: _language_kinds__WEBPACK_IMPORTED_MODULE_5__["Kind"].OBJECT, fields: fieldNodes }; } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["isScalarType"])(type) || Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["isEnumType"])(type)) { // Since value is an internally represented value, it must be serialized // to an externally represented value before converting into an AST. var serialized = type.serialize(value); if (Object(_jsutils_isNullish__WEBPACK_IMPORTED_MODULE_2__["default"])(serialized)) { return null; } // Others serialize based on their corresponding JavaScript scalar types. if (typeof serialized === 'boolean') { return { kind: _language_kinds__WEBPACK_IMPORTED_MODULE_5__["Kind"].BOOLEAN, value: serialized }; } // JavaScript numbers can be Int or Float values. if (typeof serialized === 'number') { var stringNum = String(serialized); return integerStringRegExp.test(stringNum) ? { kind: _language_kinds__WEBPACK_IMPORTED_MODULE_5__["Kind"].INT, value: stringNum } : { kind: _language_kinds__WEBPACK_IMPORTED_MODULE_5__["Kind"].FLOAT, value: stringNum }; } if (typeof serialized === 'string') { // Enum types use Enum literals. if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["isEnumType"])(type)) { return { kind: _language_kinds__WEBPACK_IMPORTED_MODULE_5__["Kind"].ENUM, value: serialized }; } // ID types can use Int literals. if (type === _type_scalars__WEBPACK_IMPORTED_MODULE_7__["GraphQLID"] && integerStringRegExp.test(serialized)) { return { kind: _language_kinds__WEBPACK_IMPORTED_MODULE_5__["Kind"].INT, value: serialized }; } return { kind: _language_kinds__WEBPACK_IMPORTED_MODULE_5__["Kind"].STRING, value: serialized }; } throw new TypeError("Cannot convert value to AST: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_1__["default"])(serialized))); } /* istanbul ignore next */ throw new Error("Unknown type: ".concat(type, ".")); } /** * IntValue: * - NegativeSign? 0 * - NegativeSign? NonZeroDigit ( Digit+ )? */ var integerStringRegExp = /^-?(0|[1-9][0-9]*)$/; /***/ }), /***/ "3Mas": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAdmChannelCommand.js ***! \****************************************************************************************/ /*! exports provided: GetAdmChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelCommand", function() { return GetAdmChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetAdmChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetAdmChannelCommand, _super); // Start section: command_properties // End section: command_properties function GetAdmChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetAdmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetAdmChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetAdmChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetAdmChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetAdmChannelCommand"])(input, context); }; GetAdmChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetAdmChannelCommand"])(output, context); }; return GetAdmChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetAdmChannelCommand.js.map /***/ }), /***/ "3N8a": /*!**********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/scheduler/AsyncAction.js ***! \**********************************************************************/ /*! exports provided: AsyncAction */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncAction", function() { return AsyncAction; }); /* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Action */ "7ve7"); class AsyncAction extends _Action__WEBPACK_IMPORTED_MODULE_0__["Action"] { constructor(scheduler, work) { super(scheduler, work); this.scheduler = scheduler; this.work = work; this.pending = false; } schedule(state, delay = 0) { if (this.closed) { return this; } this.state = state; const id = this.id; const scheduler = this.scheduler; if (id != null) { this.id = this.recycleAsyncId(scheduler, id, delay); } this.pending = true; this.delay = delay; this.id = this.id || this.requestAsyncId(scheduler, this.id, delay); return this; } requestAsyncId(scheduler, id, delay = 0) { return setInterval(scheduler.flush.bind(scheduler, this), delay); } recycleAsyncId(scheduler, id, delay = 0) { if (delay !== null && this.delay === delay && this.pending === false) { return id; } clearInterval(id); return undefined; } execute(state, delay) { if (this.closed) { return new Error('executing a cancelled action'); } this.pending = false; const error = this._execute(state, delay); if (error) { return error; } else if (this.pending === false && this.id != null) { this.id = this.recycleAsyncId(this.scheduler, this.id, null); } } _execute(state, delay) { let errored = false; let errorValue = undefined; try { this.work(state); } catch (e) { errored = true; errorValue = !!e && e || new Error(e); } if (errored) { this.unsubscribe(); return errorValue; } } _unsubscribe() { const id = this.id; const scheduler = this.scheduler; const actions = scheduler.actions; const index = actions.indexOf(this); this.work = null; this.state = null; this.pending = false; this.scheduler = null; if (index !== -1) { actions.splice(index, 1); } if (id != null) { this.id = this.recycleAsyncId(scheduler, id, null); } this.delay = null; } } //# sourceMappingURL=AsyncAction.js.map /***/ }), /***/ "3OOI": /*!*************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/MergeShardsCommand.js ***! \*************************************************************************************/ /*! exports provided: MergeShardsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeShardsCommand", function() { return MergeShardsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var MergeShardsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MergeShardsCommand, _super); // Start section: command_properties // End section: command_properties function MergeShardsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } MergeShardsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["MergeShardsInput"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; MergeShardsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1MergeShardsCommand"])(input, context); }; MergeShardsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1MergeShardsCommand"])(output, context); }; return MergeShardsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=MergeShardsCommand.js.map /***/ }), /***/ "3UWI": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/auditTime.js ***! \********************************************************************/ /*! exports provided: auditTime */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "auditTime", function() { return auditTime; }); /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scheduler/async */ "D0XW"); /* harmony import */ var _audit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./audit */ "tnsW"); /* harmony import */ var _observable_timer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/timer */ "PqYM"); function auditTime(duration, scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"]) { return Object(_audit__WEBPACK_IMPORTED_MODULE_1__["audit"])(() => Object(_observable_timer__WEBPACK_IMPORTED_MODULE_2__["timer"])(duration, scheduler)); } //# sourceMappingURL=auditTime.js.map /***/ }), /***/ "3XtK": /*!**************************************************************************!*\ !*** ./node_modules/@aws-amplify/predictions/lib-esm/Providers/index.js ***! \**************************************************************************/ /*! exports provided: AmazonAIConvertPredictionsProvider, AmazonAIIdentifyPredictionsProvider, AmazonAIInterpretPredictionsProvider, AmazonAIPredictionsProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _AmazonAIConvertPredictionsProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AmazonAIConvertPredictionsProvider */ "JMOx"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AmazonAIConvertPredictionsProvider", function() { return _AmazonAIConvertPredictionsProvider__WEBPACK_IMPORTED_MODULE_0__["AmazonAIConvertPredictionsProvider"]; }); /* harmony import */ var _AmazonAIIdentifyPredictionsProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AmazonAIIdentifyPredictionsProvider */ "bRr/"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AmazonAIIdentifyPredictionsProvider", function() { return _AmazonAIIdentifyPredictionsProvider__WEBPACK_IMPORTED_MODULE_1__["AmazonAIIdentifyPredictionsProvider"]; }); /* harmony import */ var _AmazonAIInterpretPredictionsProvider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AmazonAIInterpretPredictionsProvider */ "D9Dy"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AmazonAIInterpretPredictionsProvider", function() { return _AmazonAIInterpretPredictionsProvider__WEBPACK_IMPORTED_MODULE_2__["AmazonAIInterpretPredictionsProvider"]; }); /* harmony import */ var _AmazonAIPredictionsProvider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AmazonAIPredictionsProvider */ "x73n"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AmazonAIPredictionsProvider", function() { return _AmazonAIPredictionsProvider__WEBPACK_IMPORTED_MODULE_3__["AmazonAIPredictionsProvider"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "3aDT": /*!***********************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/OAuthHelper/GoogleOAuth.js ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; Object.defineProperty(exports, "__esModule", { value: true }); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var Logger_1 = __webpack_require__(/*! ../Logger */ "t5A6"); var JS_1 = __webpack_require__(/*! ../JS */ "eIkY"); var Util_1 = __webpack_require__(/*! ../Util */ "HGW4"); var logger = new Logger_1.ConsoleLogger('CognitoCredentials'); var waitForInit = new Promise(function (res, rej) { if (!JS_1.browserOrNode().isBrowser) { logger.debug('not in the browser, directly resolved'); return res(); } var ga = window['gapi'] && window['gapi'].auth2 ? window['gapi'].auth2 : null; if (ga) { logger.debug('google api already loaded'); return res(); } else { setTimeout(function () { return res(); }, 2000); } }); var GoogleOAuth = /** @class */ (function () { function GoogleOAuth() { this.initialized = false; this.refreshGoogleToken = this.refreshGoogleToken.bind(this); this._refreshGoogleTokenImpl = this._refreshGoogleTokenImpl.bind(this); } GoogleOAuth.prototype.refreshGoogleToken = function () { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: if (!!this.initialized) return [3 /*break*/, 2]; logger.debug('need to wait for the Google SDK loaded'); return [4 /*yield*/, waitForInit]; case 1: _a.sent(); this.initialized = true; logger.debug('finish waiting'); _a.label = 2; case 2: return [2 /*return*/, this._refreshGoogleTokenImpl()]; } }); }); }; GoogleOAuth.prototype._refreshGoogleTokenImpl = function () { var ga = null; if (JS_1.browserOrNode().isBrowser) ga = window['gapi'] && window['gapi'].auth2 ? window['gapi'].auth2 : null; if (!ga) { logger.debug('no gapi auth2 available'); return Promise.reject('no gapi auth2 available'); } return new Promise(function (res, rej) { ga.getAuthInstance() .then(function (googleAuth) { if (!googleAuth) { logger.debug('google Auth undefined'); rej(new Util_1.NonRetryableError('google Auth undefined')); } var googleUser = googleAuth.currentUser.get(); // refresh the token if (googleUser.isSignedIn()) { logger.debug('refreshing the google access token'); googleUser .reloadAuthResponse() .then(function (authResponse) { var id_token = authResponse.id_token, expires_at = authResponse.expires_at; res({ token: id_token, expires_at: expires_at }); }) .catch(function (err) { if (err && err.error === 'network_error') { // Not using NonRetryableError so handler will be retried rej('Network error reloading google auth response'); } else { rej(new Util_1.NonRetryableError('Failed to reload google auth response')); } }); } else { rej(new Util_1.NonRetryableError('User is not signed in with Google')); } }) .catch(function (err) { logger.debug('Failed to refresh google token', err); rej(new Util_1.NonRetryableError('Failed to refresh google token')); }); }); }; return GoogleOAuth; }()); exports.GoogleOAuth = GoogleOAuth; /** * @deprecated use named import */ exports.default = GoogleOAuth; //# sourceMappingURL=GoogleOAuth.js.map /***/ }), /***/ "3eE1": /*!************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetBucketPolicyCommand.js ***! \************************************************************************************/ /*! exports provided: GetBucketPolicyCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBucketPolicyCommand", function() { return GetBucketPolicyCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetBucketPolicyCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetBucketPolicyCommand, _super); // Start section: command_properties // End section: command_properties function GetBucketPolicyCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetBucketPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketPolicyRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketPolicyOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetBucketPolicyCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetBucketPolicyCommand"])(input, context); }; GetBucketPolicyCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetBucketPolicyCommand"])(output, context); }; return GetBucketPolicyCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetBucketPolicyCommand.js.map /***/ }), /***/ "3fs/": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-lex-runtime-service/dist/es/protocols/Aws_restJson1.js ***! \*********************************************************************************************/ /*! exports provided: serializeAws_restJson1DeleteSessionCommand, serializeAws_restJson1GetSessionCommand, serializeAws_restJson1PostContentCommand, serializeAws_restJson1PostTextCommand, serializeAws_restJson1PutSessionCommand, deserializeAws_restJson1DeleteSessionCommand, deserializeAws_restJson1GetSessionCommand, deserializeAws_restJson1PostContentCommand, deserializeAws_restJson1PostTextCommand, deserializeAws_restJson1PutSessionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteSessionCommand", function() { return serializeAws_restJson1DeleteSessionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSessionCommand", function() { return serializeAws_restJson1GetSessionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PostContentCommand", function() { return serializeAws_restJson1PostContentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PostTextCommand", function() { return serializeAws_restJson1PostTextCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PutSessionCommand", function() { return serializeAws_restJson1PutSessionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteSessionCommand", function() { return deserializeAws_restJson1DeleteSessionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSessionCommand", function() { return deserializeAws_restJson1GetSessionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PostContentCommand", function() { return deserializeAws_restJson1PostContentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PostTextCommand", function() { return deserializeAws_restJson1PostTextCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PutSessionCommand", function() { return deserializeAws_restJson1PutSessionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "Enk7"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var serializeAws_restJson1DeleteSessionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/bot/{botName}/alias/{botAlias}/user/{userId}/session"; if (input.userId !== undefined) { labelValue = input.userId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: userId."); } resolvedPath = resolvedPath.replace("{userId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: userId."); } if (input.botName !== undefined) { labelValue = input.botName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: botName."); } resolvedPath = resolvedPath.replace("{botName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: botName."); } if (input.botAlias !== undefined) { labelValue = input.botAlias; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: botAlias."); } resolvedPath = resolvedPath.replace("{botAlias}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: botAlias."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetSessionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/bot/{botName}/alias/{botAlias}/user/{userId}/session"; if (input.botName !== undefined) { labelValue = input.botName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: botName."); } resolvedPath = resolvedPath.replace("{botName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: botName."); } if (input.botAlias !== undefined) { labelValue = input.botAlias; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: botAlias."); } resolvedPath = resolvedPath.replace("{botAlias}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: botAlias."); } if (input.userId !== undefined) { labelValue = input.userId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: userId."); } resolvedPath = resolvedPath.replace("{userId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: userId."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.checkpointLabelFilter !== undefined && { checkpointLabelFilter: input.checkpointLabelFilter })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1PostContentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ "Content-Type": "application/octet-stream", "x-amz-content-sha256": "UNSIGNED-PAYLOAD" }, (isSerializableHeaderValue(input.sessionAttributes) && { "x-amz-lex-session-attributes": _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["LazyJsonString"].fromObject(input.sessionAttributes), })), (isSerializableHeaderValue(input.requestAttributes) && { "x-amz-lex-request-attributes": _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["LazyJsonString"].fromObject(input.requestAttributes), })), (isSerializableHeaderValue(input.accept) && { Accept: input.accept })), (isSerializableHeaderValue(input.contentType) && { "Content-Type": input.contentType })); resolvedPath = "/bot/{botName}/alias/{botAlias}/user/{userId}/content"; if (input.userId !== undefined) { labelValue = input.userId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: userId."); } resolvedPath = resolvedPath.replace("{userId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: userId."); } if (input.botName !== undefined) { labelValue = input.botName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: botName."); } resolvedPath = resolvedPath.replace("{botName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: botName."); } if (input.botAlias !== undefined) { labelValue = input.botAlias; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: botAlias."); } resolvedPath = resolvedPath.replace("{botAlias}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: botAlias."); } if (input.inputStream !== undefined) { body = input.inputStream; } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1PostTextCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/bot/{botName}/alias/{botAlias}/user/{userId}/text"; if (input.userId !== undefined) { labelValue = input.userId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: userId."); } resolvedPath = resolvedPath.replace("{userId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: userId."); } if (input.botName !== undefined) { labelValue = input.botName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: botName."); } resolvedPath = resolvedPath.replace("{botName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: botName."); } if (input.botAlias !== undefined) { labelValue = input.botAlias; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: botAlias."); } resolvedPath = resolvedPath.replace("{botAlias}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: botAlias."); } body = JSON.stringify(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.inputText !== undefined && { inputText: input.inputText })), (input.requestAttributes !== undefined && { requestAttributes: serializeAws_restJson1StringMap(input.requestAttributes, context), })), (input.sessionAttributes !== undefined && { sessionAttributes: serializeAws_restJson1StringMap(input.sessionAttributes, context), }))); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1PutSessionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ "Content-Type": "application/json" }, (isSerializableHeaderValue(input.accept) && { Accept: input.accept })); resolvedPath = "/bot/{botName}/alias/{botAlias}/user/{userId}/session"; if (input.userId !== undefined) { labelValue = input.userId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: userId."); } resolvedPath = resolvedPath.replace("{userId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: userId."); } if (input.botName !== undefined) { labelValue = input.botName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: botName."); } resolvedPath = resolvedPath.replace("{botName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: botName."); } if (input.botAlias !== undefined) { labelValue = input.botAlias; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: botAlias."); } resolvedPath = resolvedPath.replace("{botAlias}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: botAlias."); } body = JSON.stringify(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.dialogAction !== undefined && { dialogAction: serializeAws_restJson1DialogAction(input.dialogAction, context), })), (input.recentIntentSummaryView !== undefined && { recentIntentSummaryView: serializeAws_restJson1IntentSummaryList(input.recentIntentSummaryView, context), })), (input.sessionAttributes !== undefined && { sessionAttributes: serializeAws_restJson1StringMap(input.sessionAttributes, context), }))); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var deserializeAws_restJson1DeleteSessionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteSessionCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteSessionResponse", botAlias: undefined, botName: undefined, sessionId: undefined, userId: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); if (data.botAlias !== undefined && data.botAlias !== null) { contents.botAlias = data.botAlias; } if (data.botName !== undefined && data.botName !== null) { contents.botName = data.botName; } if (data.sessionId !== undefined && data.sessionId !== null) { contents.sessionId = data.sessionId; } if (data.userId !== undefined && data.userId !== null) { contents.userId = data.userId; } return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteSessionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.lexruntimeservice#BadRequestException": return [3 /*break*/, 2]; case "ConflictException": return [3 /*break*/, 4]; case "com.amazonaws.lexruntimeservice#ConflictException": return [3 /*break*/, 4]; case "InternalFailureException": return [3 /*break*/, 6]; case "com.amazonaws.lexruntimeservice#InternalFailureException": return [3 /*break*/, 6]; case "LimitExceededException": return [3 /*break*/, 8]; case "com.amazonaws.lexruntimeservice#LimitExceededException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.lexruntimeservice#NotFoundException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetSessionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetSessionCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetSessionResponse", dialogAction: undefined, recentIntentSummaryView: undefined, sessionAttributes: undefined, sessionId: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); if (data.dialogAction !== undefined && data.dialogAction !== null) { contents.dialogAction = deserializeAws_restJson1DialogAction(data.dialogAction, context); } if (data.recentIntentSummaryView !== undefined && data.recentIntentSummaryView !== null) { contents.recentIntentSummaryView = deserializeAws_restJson1IntentSummaryList(data.recentIntentSummaryView, context); } if (data.sessionAttributes !== undefined && data.sessionAttributes !== null) { contents.sessionAttributes = deserializeAws_restJson1StringMap(data.sessionAttributes, context); } if (data.sessionId !== undefined && data.sessionId !== null) { contents.sessionId = data.sessionId; } return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetSessionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.lexruntimeservice#BadRequestException": return [3 /*break*/, 2]; case "InternalFailureException": return [3 /*break*/, 4]; case "com.amazonaws.lexruntimeservice#InternalFailureException": return [3 /*break*/, 4]; case "LimitExceededException": return [3 /*break*/, 6]; case "com.amazonaws.lexruntimeservice#LimitExceededException": return [3 /*break*/, 6]; case "NotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.lexruntimeservice#NotFoundException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1PostContentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1PostContentCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "PostContentResponse", audioStream: undefined, contentType: undefined, dialogState: undefined, inputTranscript: undefined, intentName: undefined, message: undefined, messageFormat: undefined, sentimentResponse: undefined, sessionAttributes: undefined, sessionId: undefined, slotToElicit: undefined, slots: undefined, }; if (output.headers["x-amz-lex-message"] !== undefined) { contents.message = output.headers["x-amz-lex-message"]; } if (output.headers["x-amz-lex-slots"] !== undefined) { contents.slots = new _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["LazyJsonString"](output.headers["x-amz-lex-slots"]); } if (output.headers["x-amz-lex-dialog-state"] !== undefined) { contents.dialogState = output.headers["x-amz-lex-dialog-state"]; } if (output.headers["x-amz-lex-intent-name"] !== undefined) { contents.intentName = output.headers["x-amz-lex-intent-name"]; } if (output.headers["x-amz-lex-input-transcript"] !== undefined) { contents.inputTranscript = output.headers["x-amz-lex-input-transcript"]; } if (output.headers["x-amz-lex-message-format"] !== undefined) { contents.messageFormat = output.headers["x-amz-lex-message-format"]; } if (output.headers["content-type"] !== undefined) { contents.contentType = output.headers["content-type"]; } if (output.headers["x-amz-lex-session-id"] !== undefined) { contents.sessionId = output.headers["x-amz-lex-session-id"]; } if (output.headers["x-amz-lex-session-attributes"] !== undefined) { contents.sessionAttributes = new _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["LazyJsonString"](output.headers["x-amz-lex-session-attributes"]); } if (output.headers["x-amz-lex-sentiment"] !== undefined) { contents.sentimentResponse = output.headers["x-amz-lex-sentiment"]; } if (output.headers["x-amz-lex-slot-to-elicit"] !== undefined) { contents.slotToElicit = output.headers["x-amz-lex-slot-to-elicit"]; } data = output.body; contents.audioStream = data; return [2 /*return*/, Promise.resolve(contents)]; }); }); }; var deserializeAws_restJson1PostContentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, parsedBody, message; var _p; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_q) { switch (_q.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _p = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_p.body = _q.sent(), _p)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadGatewayException": return [3 /*break*/, 2]; case "com.amazonaws.lexruntimeservice#BadGatewayException": return [3 /*break*/, 2]; case "BadRequestException": return [3 /*break*/, 4]; case "com.amazonaws.lexruntimeservice#BadRequestException": return [3 /*break*/, 4]; case "ConflictException": return [3 /*break*/, 6]; case "com.amazonaws.lexruntimeservice#ConflictException": return [3 /*break*/, 6]; case "DependencyFailedException": return [3 /*break*/, 8]; case "com.amazonaws.lexruntimeservice#DependencyFailedException": return [3 /*break*/, 8]; case "InternalFailureException": return [3 /*break*/, 10]; case "com.amazonaws.lexruntimeservice#InternalFailureException": return [3 /*break*/, 10]; case "LimitExceededException": return [3 /*break*/, 12]; case "com.amazonaws.lexruntimeservice#LimitExceededException": return [3 /*break*/, 12]; case "LoopDetectedException": return [3 /*break*/, 14]; case "com.amazonaws.lexruntimeservice#LoopDetectedException": return [3 /*break*/, 14]; case "NotAcceptableException": return [3 /*break*/, 16]; case "com.amazonaws.lexruntimeservice#NotAcceptableException": return [3 /*break*/, 16]; case "NotFoundException": return [3 /*break*/, 18]; case "com.amazonaws.lexruntimeservice#NotFoundException": return [3 /*break*/, 18]; case "RequestTimeoutException": return [3 /*break*/, 20]; case "com.amazonaws.lexruntimeservice#RequestTimeoutException": return [3 /*break*/, 20]; case "UnsupportedMediaTypeException": return [3 /*break*/, 22]; case "com.amazonaws.lexruntimeservice#UnsupportedMediaTypeException": return [3 /*break*/, 22]; } return [3 /*break*/, 24]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadGatewayExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1DependencyFailedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1LoopDetectedExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotAcceptableExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 20: _m = [{}]; return [4 /*yield*/, deserializeAws_restJson1RequestTimeoutExceptionResponse(parsedOutput, context)]; case 21: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _m.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 22: _o = [{}]; return [4 /*yield*/, deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse(parsedOutput, context)]; case 23: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _o.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 24: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _q.label = 25; case 25: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1PostTextCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1PostTextCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "PostTextResponse", dialogState: undefined, intentName: undefined, message: undefined, messageFormat: undefined, responseCard: undefined, sentimentResponse: undefined, sessionAttributes: undefined, sessionId: undefined, slotToElicit: undefined, slots: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); if (data.dialogState !== undefined && data.dialogState !== null) { contents.dialogState = data.dialogState; } if (data.intentName !== undefined && data.intentName !== null) { contents.intentName = data.intentName; } if (data.message !== undefined && data.message !== null) { contents.message = data.message; } if (data.messageFormat !== undefined && data.messageFormat !== null) { contents.messageFormat = data.messageFormat; } if (data.responseCard !== undefined && data.responseCard !== null) { contents.responseCard = deserializeAws_restJson1ResponseCard(data.responseCard, context); } if (data.sentimentResponse !== undefined && data.sentimentResponse !== null) { contents.sentimentResponse = deserializeAws_restJson1SentimentResponse(data.sentimentResponse, context); } if (data.sessionAttributes !== undefined && data.sessionAttributes !== null) { contents.sessionAttributes = deserializeAws_restJson1StringMap(data.sessionAttributes, context); } if (data.sessionId !== undefined && data.sessionId !== null) { contents.sessionId = data.sessionId; } if (data.slotToElicit !== undefined && data.slotToElicit !== null) { contents.slotToElicit = data.slotToElicit; } if (data.slots !== undefined && data.slots !== null) { contents.slots = deserializeAws_restJson1StringMap(data.slots, context); } return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1PostTextCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; var _l; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) { switch (_m.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _l = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadGatewayException": return [3 /*break*/, 2]; case "com.amazonaws.lexruntimeservice#BadGatewayException": return [3 /*break*/, 2]; case "BadRequestException": return [3 /*break*/, 4]; case "com.amazonaws.lexruntimeservice#BadRequestException": return [3 /*break*/, 4]; case "ConflictException": return [3 /*break*/, 6]; case "com.amazonaws.lexruntimeservice#ConflictException": return [3 /*break*/, 6]; case "DependencyFailedException": return [3 /*break*/, 8]; case "com.amazonaws.lexruntimeservice#DependencyFailedException": return [3 /*break*/, 8]; case "InternalFailureException": return [3 /*break*/, 10]; case "com.amazonaws.lexruntimeservice#InternalFailureException": return [3 /*break*/, 10]; case "LimitExceededException": return [3 /*break*/, 12]; case "com.amazonaws.lexruntimeservice#LimitExceededException": return [3 /*break*/, 12]; case "LoopDetectedException": return [3 /*break*/, 14]; case "com.amazonaws.lexruntimeservice#LoopDetectedException": return [3 /*break*/, 14]; case "NotFoundException": return [3 /*break*/, 16]; case "com.amazonaws.lexruntimeservice#NotFoundException": return [3 /*break*/, 16]; } return [3 /*break*/, 18]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadGatewayExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1DependencyFailedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1LoopDetectedExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 18: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _m.label = 19; case 19: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1PutSessionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1PutSessionCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "PutSessionResponse", audioStream: undefined, contentType: undefined, dialogState: undefined, intentName: undefined, message: undefined, messageFormat: undefined, sessionAttributes: undefined, sessionId: undefined, slotToElicit: undefined, slots: undefined, }; if (output.headers["x-amz-lex-slots"] !== undefined) { contents.slots = new _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["LazyJsonString"](output.headers["x-amz-lex-slots"]); } if (output.headers["x-amz-lex-message-format"] !== undefined) { contents.messageFormat = output.headers["x-amz-lex-message-format"]; } if (output.headers["x-amz-lex-intent-name"] !== undefined) { contents.intentName = output.headers["x-amz-lex-intent-name"]; } if (output.headers["x-amz-lex-session-id"] !== undefined) { contents.sessionId = output.headers["x-amz-lex-session-id"]; } if (output.headers["x-amz-lex-session-attributes"] !== undefined) { contents.sessionAttributes = new _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["LazyJsonString"](output.headers["x-amz-lex-session-attributes"]); } if (output.headers["x-amz-lex-dialog-state"] !== undefined) { contents.dialogState = output.headers["x-amz-lex-dialog-state"]; } if (output.headers["x-amz-lex-message"] !== undefined) { contents.message = output.headers["x-amz-lex-message"]; } if (output.headers["content-type"] !== undefined) { contents.contentType = output.headers["content-type"]; } if (output.headers["x-amz-lex-slot-to-elicit"] !== undefined) { contents.slotToElicit = output.headers["x-amz-lex-slot-to-elicit"]; } data = output.body; contents.audioStream = data; return [2 /*return*/, Promise.resolve(contents)]; }); }); }; var deserializeAws_restJson1PutSessionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; var _l; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) { switch (_m.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _l = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadGatewayException": return [3 /*break*/, 2]; case "com.amazonaws.lexruntimeservice#BadGatewayException": return [3 /*break*/, 2]; case "BadRequestException": return [3 /*break*/, 4]; case "com.amazonaws.lexruntimeservice#BadRequestException": return [3 /*break*/, 4]; case "ConflictException": return [3 /*break*/, 6]; case "com.amazonaws.lexruntimeservice#ConflictException": return [3 /*break*/, 6]; case "DependencyFailedException": return [3 /*break*/, 8]; case "com.amazonaws.lexruntimeservice#DependencyFailedException": return [3 /*break*/, 8]; case "InternalFailureException": return [3 /*break*/, 10]; case "com.amazonaws.lexruntimeservice#InternalFailureException": return [3 /*break*/, 10]; case "LimitExceededException": return [3 /*break*/, 12]; case "com.amazonaws.lexruntimeservice#LimitExceededException": return [3 /*break*/, 12]; case "NotAcceptableException": return [3 /*break*/, 14]; case "com.amazonaws.lexruntimeservice#NotAcceptableException": return [3 /*break*/, 14]; case "NotFoundException": return [3 /*break*/, 16]; case "com.amazonaws.lexruntimeservice#NotFoundException": return [3 /*break*/, 16]; } return [3 /*break*/, 18]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadGatewayExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1DependencyFailedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotAcceptableExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 18: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _m.label = 19; case 19: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1BadGatewayExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "BadGatewayException", $fault: "server", $metadata: deserializeMetadata(parsedOutput), Message: undefined, }; data = parsedOutput.body; if (data.Message !== undefined && data.Message !== null) { contents.Message = data.Message; } return [2 /*return*/, contents]; }); }); }; var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "BadRequestException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), message: undefined, }; data = parsedOutput.body; if (data.message !== undefined && data.message !== null) { contents.message = data.message; } return [2 /*return*/, contents]; }); }); }; var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "ConflictException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), message: undefined, }; data = parsedOutput.body; if (data.message !== undefined && data.message !== null) { contents.message = data.message; } return [2 /*return*/, contents]; }); }); }; var deserializeAws_restJson1DependencyFailedExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "DependencyFailedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), Message: undefined, }; data = parsedOutput.body; if (data.Message !== undefined && data.Message !== null) { contents.Message = data.Message; } return [2 /*return*/, contents]; }); }); }; var deserializeAws_restJson1InternalFailureExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "InternalFailureException", $fault: "server", $metadata: deserializeMetadata(parsedOutput), message: undefined, }; data = parsedOutput.body; if (data.message !== undefined && data.message !== null) { contents.message = data.message; } return [2 /*return*/, contents]; }); }); }; var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), message: undefined, retryAfterSeconds: undefined, }; if (parsedOutput.headers["retry-after"] !== undefined) { contents.retryAfterSeconds = parsedOutput.headers["retry-after"]; } data = parsedOutput.body; if (data.message !== undefined && data.message !== null) { contents.message = data.message; } return [2 /*return*/, contents]; }); }); }; var deserializeAws_restJson1LoopDetectedExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "LoopDetectedException", $fault: "server", $metadata: deserializeMetadata(parsedOutput), Message: undefined, }; data = parsedOutput.body; if (data.Message !== undefined && data.Message !== null) { contents.Message = data.Message; } return [2 /*return*/, contents]; }); }); }; var deserializeAws_restJson1NotAcceptableExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "NotAcceptableException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), message: undefined, }; data = parsedOutput.body; if (data.message !== undefined && data.message !== null) { contents.message = data.message; } return [2 /*return*/, contents]; }); }); }; var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "NotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), message: undefined, }; data = parsedOutput.body; if (data.message !== undefined && data.message !== null) { contents.message = data.message; } return [2 /*return*/, contents]; }); }); }; var deserializeAws_restJson1RequestTimeoutExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "RequestTimeoutException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), message: undefined, }; data = parsedOutput.body; if (data.message !== undefined && data.message !== null) { contents.message = data.message; } return [2 /*return*/, contents]; }); }); }; var deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "UnsupportedMediaTypeException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), message: undefined, }; data = parsedOutput.body; if (data.message !== undefined && data.message !== null) { contents.message = data.message; } return [2 /*return*/, contents]; }); }); }; var serializeAws_restJson1DialogAction = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.fulfillmentState !== undefined && { fulfillmentState: input.fulfillmentState })), (input.intentName !== undefined && { intentName: input.intentName })), (input.message !== undefined && { message: input.message })), (input.messageFormat !== undefined && { messageFormat: input.messageFormat })), (input.slotToElicit !== undefined && { slotToElicit: input.slotToElicit })), (input.slots !== undefined && { slots: serializeAws_restJson1StringMap(input.slots, context) })), (input.type !== undefined && { type: input.type })); }; var serializeAws_restJson1IntentSummary = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.checkpointLabel !== undefined && { checkpointLabel: input.checkpointLabel })), (input.confirmationStatus !== undefined && { confirmationStatus: input.confirmationStatus })), (input.dialogActionType !== undefined && { dialogActionType: input.dialogActionType })), (input.fulfillmentState !== undefined && { fulfillmentState: input.fulfillmentState })), (input.intentName !== undefined && { intentName: input.intentName })), (input.slotToElicit !== undefined && { slotToElicit: input.slotToElicit })), (input.slots !== undefined && { slots: serializeAws_restJson1StringMap(input.slots, context) })); }; var serializeAws_restJson1IntentSummaryList = function (input, context) { return input.map(function (entry) { return serializeAws_restJson1IntentSummary(entry, context); }); }; var serializeAws_restJson1StringMap = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b))); }, {}); }; var deserializeAws_restJson1Button = function (output, context) { return { __type: "Button", text: output.text !== undefined && output.text !== null ? output.text : undefined, value: output.value !== undefined && output.value !== null ? output.value : undefined, }; }; var deserializeAws_restJson1DialogAction = function (output, context) { return { __type: "DialogAction", fulfillmentState: output.fulfillmentState !== undefined && output.fulfillmentState !== null ? output.fulfillmentState : undefined, intentName: output.intentName !== undefined && output.intentName !== null ? output.intentName : undefined, message: output.message !== undefined && output.message !== null ? output.message : undefined, messageFormat: output.messageFormat !== undefined && output.messageFormat !== null ? output.messageFormat : undefined, slotToElicit: output.slotToElicit !== undefined && output.slotToElicit !== null ? output.slotToElicit : undefined, slots: output.slots !== undefined && output.slots !== null ? deserializeAws_restJson1StringMap(output.slots, context) : undefined, type: output.type !== undefined && output.type !== null ? output.type : undefined, }; }; var deserializeAws_restJson1GenericAttachment = function (output, context) { return { __type: "GenericAttachment", attachmentLinkUrl: output.attachmentLinkUrl !== undefined && output.attachmentLinkUrl !== null ? output.attachmentLinkUrl : undefined, buttons: output.buttons !== undefined && output.buttons !== null ? deserializeAws_restJson1listOfButtons(output.buttons, context) : undefined, imageUrl: output.imageUrl !== undefined && output.imageUrl !== null ? output.imageUrl : undefined, subTitle: output.subTitle !== undefined && output.subTitle !== null ? output.subTitle : undefined, title: output.title !== undefined && output.title !== null ? output.title : undefined, }; }; var deserializeAws_restJson1genericAttachmentList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1GenericAttachment(entry, context); }); }; var deserializeAws_restJson1IntentSummary = function (output, context) { return { __type: "IntentSummary", checkpointLabel: output.checkpointLabel !== undefined && output.checkpointLabel !== null ? output.checkpointLabel : undefined, confirmationStatus: output.confirmationStatus !== undefined && output.confirmationStatus !== null ? output.confirmationStatus : undefined, dialogActionType: output.dialogActionType !== undefined && output.dialogActionType !== null ? output.dialogActionType : undefined, fulfillmentState: output.fulfillmentState !== undefined && output.fulfillmentState !== null ? output.fulfillmentState : undefined, intentName: output.intentName !== undefined && output.intentName !== null ? output.intentName : undefined, slotToElicit: output.slotToElicit !== undefined && output.slotToElicit !== null ? output.slotToElicit : undefined, slots: output.slots !== undefined && output.slots !== null ? deserializeAws_restJson1StringMap(output.slots, context) : undefined, }; }; var deserializeAws_restJson1IntentSummaryList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1IntentSummary(entry, context); }); }; var deserializeAws_restJson1listOfButtons = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1Button(entry, context); }); }; var deserializeAws_restJson1ResponseCard = function (output, context) { return { __type: "ResponseCard", contentType: output.contentType !== undefined && output.contentType !== null ? output.contentType : undefined, genericAttachments: output.genericAttachments !== undefined && output.genericAttachments !== null ? deserializeAws_restJson1genericAttachmentList(output.genericAttachments, context) : undefined, version: output.version !== undefined && output.version !== null ? output.version : undefined, }; }; var deserializeAws_restJson1SentimentResponse = function (output, context) { return { __type: "SentimentResponse", sentimentLabel: output.sentimentLabel !== undefined && output.sentimentLabel !== null ? output.sentimentLabel : undefined, sentimentScore: output.sentimentScore !== undefined && output.sentimentScore !== null ? output.sentimentScore : undefined, }; }; var deserializeAws_restJson1StringMap = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b))); }, {}); }; var deserializeMetadata = function (output) { return ({ httpStatusCode: output.statusCode, httpHeaders: output.headers, requestId: output.headers["x-amzn-requestid"], }); }; // Collect low-level response body stream to Uint8Array. var collectBody = function (streamBody, context) { if (streamBody === void 0) { streamBody = new Uint8Array(); } if (streamBody instanceof Uint8Array) { return Promise.resolve(streamBody); } return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); }; // Encode Uint8Array data into string with utf-8. var collectBodyString = function (streamBody, context) { return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); }); }; var isSerializableHeaderValue = function (value) { return value !== undefined && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); }; var parseBody = function (streamBody, context) { return collectBodyString(streamBody, context).then(function (encoded) { if (encoded.length) { return JSON.parse(encoded); } return {}; }); }; /** * Load an error code for the aws.rest-json-1.1 protocol. */ var loadRestJsonErrorCode = function (output, data) { var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); }; var sanitizeErrorCode = function (rawValue) { var cleanValue = rawValue; if (cleanValue.indexOf(":") >= 0) { cleanValue = cleanValue.split(":")[0]; } if (cleanValue.indexOf("#") >= 0) { cleanValue = cleanValue.split("#")[1]; } return cleanValue; }; var headerKey = findKey(output.headers, "x-amzn-errortype"); if (headerKey !== undefined) { return sanitizeErrorCode(output.headers[headerKey]); } if (data.code !== undefined) { return sanitizeErrorCode(data.code); } if (data["__type"] !== undefined) { return sanitizeErrorCode(data["__type"]); } return ""; }; //# sourceMappingURL=Aws_restJson1.js.map /***/ }), /***/ "3hRD": /*!********************************************************************!*\ !*** ./node_modules/@aws-sdk/protocol-http/dist/es/httpRequest.js ***! \********************************************************************/ /*! exports provided: HttpRequest */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpRequest", function() { return HttpRequest; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); var HttpRequest = /** @class */ (function () { function HttpRequest(options) { this.method = options.method || "GET"; this.hostname = options.hostname || "localhost"; this.port = options.port; this.query = options.query || {}; this.headers = options.headers || {}; this.body = options.body; this.protocol = options.protocol ? options.protocol.substr(-1) !== ":" ? options.protocol + ":" : options.protocol : "https:"; this.path = options.path ? (options.path.charAt(0) !== "/" ? "/" + options.path : options.path) : "/"; } HttpRequest.isInstance = function (request) { //determine if request is a valid httpRequest if (!request) return false; var req = request; return ("method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object"); }; HttpRequest.prototype.clone = function () { var cloned = new HttpRequest(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this), { headers: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this.headers) })); if (cloned.query) cloned.query = cloneQuery(cloned.query); return cloned; }; return HttpRequest; }()); function cloneQuery(query) { return Object.keys(query).reduce(function (carry, paramName) { var _a; var param = query[paramName]; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, carry), (_a = {}, _a[paramName] = Array.isArray(param) ? Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])(param) : param, _a)); }, {}); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cFJlcXVlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaHR0cFJlcXVlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQU1BO0lBVUUscUJBQVksT0FBMkI7UUFDckMsSUFBSSxDQUFDLE1BQU0sR0FBRyxPQUFPLENBQUMsTUFBTSxJQUFJLEtBQUssQ0FBQztRQUN0QyxJQUFJLENBQUMsUUFBUSxHQUFHLE9BQU8sQ0FBQyxRQUFRLElBQUksV0FBVyxDQUFDO1FBQ2hELElBQUksQ0FBQyxJQUFJLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQztRQUN6QixJQUFJLENBQUMsS0FBSyxHQUFHLE9BQU8sQ0FBQyxLQUFLLElBQUksRUFBRSxDQUFDO1FBQ2pDLElBQUksQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFDLE9BQU8sSUFBSSxFQUFFLENBQUM7UUFDckMsSUFBSSxDQUFDLElBQUksR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDO1FBQ3pCLElBQUksQ0FBQyxRQUFRLEdBQUcsT0FBTyxDQUFDLFFBQVE7WUFDOUIsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDLEtBQUssR0FBRztnQkFDbkMsQ0FBQyxDQUFJLE9BQU8sQ0FBQyxRQUFRLE1BQUc7Z0JBQ3hCLENBQUMsQ0FBQyxPQUFPLENBQUMsUUFBUTtZQUNwQixDQUFDLENBQUMsUUFBUSxDQUFDO1FBQ2IsSUFBSSxDQUFDLElBQUksR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxLQUFLLEdBQUcsQ0FBQyxDQUFDLENBQUMsTUFBSSxPQUFPLENBQUMsSUFBTSxDQUFDLENBQUMsQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQztJQUN4RyxDQUFDO0lBRU0sc0JBQVUsR0FBakIsVUFBa0IsT0FBZ0I7UUFDaEMsNkNBQTZDO1FBQzdDLElBQUksQ0FBQyxPQUFPO1lBQUUsT0FBTyxLQUFLLENBQUM7UUFDM0IsSUFBTSxHQUFHLEdBQVEsT0FBTyxDQUFDO1FBQ3pCLE9BQU8sQ0FDTCxRQUFRLElBQUksR0FBRztZQUNmLFVBQVUsSUFBSSxHQUFHO1lBQ2pCLFVBQVUsSUFBSSxHQUFHO1lBQ2pCLE1BQU0sSUFBSSxHQUFHO1lBQ2IsT0FBTyxHQUFHLENBQUMsT0FBTyxDQUFDLEtBQUssUUFBUTtZQUNoQyxPQUFPLEdBQUcsQ0FBQyxTQUFTLENBQUMsS0FBSyxRQUFRLENBQ25DLENBQUM7SUFDSixDQUFDO0lBRUQsMkJBQUssR0FBTDtRQUNFLElBQU0sTUFBTSxHQUFHLElBQUksV0FBVyx1QkFDekIsSUFBSSxLQUNQLE9BQU8sZUFBTyxJQUFJLENBQUMsT0FBTyxLQUMxQixDQUFDO1FBQ0gsSUFBSSxNQUFNLENBQUMsS0FBSztZQUFFLE1BQU0sQ0FBQyxLQUFLLEdBQUcsVUFBVSxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUMxRCxPQUFPLE1BQU0sQ0FBQztJQUNoQixDQUFDO0lBQ0gsa0JBQUM7QUFBRCxDQUFDLEFBL0NELElBK0NDOztBQUVELFNBQVMsVUFBVSxDQUFDLEtBQXdCO0lBQzFDLE9BQU8sTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxNQUFNLENBQUMsVUFBQyxLQUF3QixFQUFFLFNBQWlCOztRQUMzRSxJQUFNLEtBQUssR0FBRyxLQUFLLENBQUMsU0FBUyxDQUFDLENBQUM7UUFDL0IsNkJBQ0ssS0FBSyxnQkFDUCxTQUFTLElBQUcsS0FBSyxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLFVBQUssS0FBSyxFQUFFLENBQUMsQ0FBQyxLQUFLLE9BQ3REO0lBQ0osQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDO0FBQ1QsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEVuZHBvaW50LCBIZWFkZXJCYWcsIEh0dHBNZXNzYWdlLCBIdHRwUmVxdWVzdCBhcyBJSHR0cFJlcXVlc3QsIFF1ZXJ5UGFyYW1ldGVyQmFnIH0gZnJvbSBcIkBhd3Mtc2RrL3R5cGVzXCI7XG5cbnR5cGUgSHR0cFJlcXVlc3RPcHRpb25zID0gUGFydGlhbDxIdHRwTWVzc2FnZT4gJiBQYXJ0aWFsPEVuZHBvaW50PiAmIHsgbWV0aG9kPzogc3RyaW5nIH07XG5cbmV4cG9ydCBpbnRlcmZhY2UgSHR0cFJlcXVlc3QgZXh0ZW5kcyBJSHR0cFJlcXVlc3Qge31cblxuZXhwb3J0IGNsYXNzIEh0dHBSZXF1ZXN0IGltcGxlbWVudHMgSHR0cE1lc3NhZ2UsIEVuZHBvaW50IHtcbiAgcHVibGljIG1ldGhvZDogc3RyaW5nO1xuICBwdWJsaWMgcHJvdG9jb2w6IHN0cmluZztcbiAgcHVibGljIGhvc3RuYW1lOiBzdHJpbmc7XG4gIHB1YmxpYyBwb3J0PzogbnVtYmVyO1xuICBwdWJsaWMgcGF0aDogc3RyaW5nO1xuICBwdWJsaWMgcXVlcnk6IFF1ZXJ5UGFyYW1ldGVyQmFnO1xuICBwdWJsaWMgaGVhZGVyczogSGVhZGVyQmFnO1xuICBwdWJsaWMgYm9keT86IGFueTtcblxuICBjb25zdHJ1Y3RvcihvcHRpb25zOiBIdHRwUmVxdWVzdE9wdGlvbnMpIHtcbiAgICB0aGlzLm1ldGhvZCA9IG9wdGlvbnMubWV0aG9kIHx8IFwiR0VUXCI7XG4gICAgdGhpcy5ob3N0bmFtZSA9IG9wdGlvbnMuaG9zdG5hbWUgfHwgXCJsb2NhbGhvc3RcIjtcbiAgICB0aGlzLnBvcnQgPSBvcHRpb25zLnBvcnQ7XG4gICAgdGhpcy5xdWVyeSA9IG9wdGlvbnMucXVlcnkgfHwge307XG4gICAgdGhpcy5oZWFkZXJzID0gb3B0aW9ucy5oZWFkZXJzIHx8IHt9O1xuICAgIHRoaXMuYm9keSA9IG9wdGlvbnMuYm9keTtcbiAgICB0aGlzLnByb3RvY29sID0gb3B0aW9ucy5wcm90b2NvbFxuICAgICAgPyBvcHRpb25zLnByb3RvY29sLnN1YnN0cigtMSkgIT09IFwiOlwiXG4gICAgICAgID8gYCR7b3B0aW9ucy5wcm90b2NvbH06YFxuICAgICAgICA6IG9wdGlvbnMucHJvdG9jb2xcbiAgICAgIDogXCJodHRwczpcIjtcbiAgICB0aGlzLnBhdGggPSBvcHRpb25zLnBhdGggPyAob3B0aW9ucy5wYXRoLmNoYXJBdCgwKSAhPT0gXCIvXCIgPyBgLyR7b3B0aW9ucy5wYXRofWAgOiBvcHRpb25zLnBhdGgpIDogXCIvXCI7XG4gIH1cblxuICBzdGF0aWMgaXNJbnN0YW5jZShyZXF1ZXN0OiB1bmtub3duKTogcmVxdWVzdCBpcyBIdHRwUmVxdWVzdCB7XG4gICAgLy9kZXRlcm1pbmUgaWYgcmVxdWVzdCBpcyBhIHZhbGlkIGh0dHBSZXF1ZXN0XG4gICAgaWYgKCFyZXF1ZXN0KSByZXR1cm4gZmFsc2U7XG4gICAgY29uc3QgcmVxOiBhbnkgPSByZXF1ZXN0O1xuICAgIHJldHVybiAoXG4gICAgICBcIm1ldGhvZFwiIGluIHJlcSAmJlxuICAgICAgXCJwcm90b2NvbFwiIGluIHJlcSAmJlxuICAgICAgXCJob3N0bmFtZVwiIGluIHJlcSAmJlxuICAgICAgXCJwYXRoXCIgaW4gcmVxICYmXG4gICAgICB0eXBlb2YgcmVxW1wicXVlcnlcIl0gPT09IFwib2JqZWN0XCIgJiZcbiAgICAgIHR5cGVvZiByZXFbXCJoZWFkZXJzXCJdID09PSBcIm9iamVjdFwiXG4gICAgKTtcbiAgfVxuXG4gIGNsb25lKCk6IEh0dHBSZXF1ZXN0IHtcbiAgICBjb25zdCBjbG9uZWQgPSBuZXcgSHR0cFJlcXVlc3Qoe1xuICAgICAgLi4udGhpcyxcbiAgICAgIGhlYWRlcnM6IHsgLi4udGhpcy5oZWFkZXJzIH0sXG4gICAgfSk7XG4gICAgaWYgKGNsb25lZC5xdWVyeSkgY2xvbmVkLnF1ZXJ5ID0gY2xvbmVRdWVyeShjbG9uZWQucXVlcnkpO1xuICAgIHJldHVybiBjbG9uZWQ7XG4gIH1cbn1cblxuZnVuY3Rpb24gY2xvbmVRdWVyeShxdWVyeTogUXVlcnlQYXJhbWV0ZXJCYWcpOiBRdWVyeVBhcmFtZXRlckJhZyB7XG4gIHJldHVybiBPYmplY3Qua2V5cyhxdWVyeSkucmVkdWNlKChjYXJyeTogUXVlcnlQYXJhbWV0ZXJCYWcsIHBhcmFtTmFtZTogc3RyaW5nKSA9PiB7XG4gICAgY29uc3QgcGFyYW0gPSBxdWVyeVtwYXJhbU5hbWVdO1xuICAgIHJldHVybiB7XG4gICAgICAuLi5jYXJyeSxcbiAgICAgIFtwYXJhbU5hbWVdOiBBcnJheS5pc0FycmF5KHBhcmFtKSA/IFsuLi5wYXJhbV0gOiBwYXJhbSxcbiAgICB9O1xuICB9LCB7fSk7XG59XG4iXX0= /***/ }), /***/ "3hse": /*!*****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEndpointCommand.js ***! \*****************************************************************************************/ /*! exports provided: DeleteEndpointCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointCommand", function() { return DeleteEndpointCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteEndpointCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteEndpointCommand, _super); // Start section: command_properties // End section: command_properties function DeleteEndpointCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteEndpointRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteEndpointResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteEndpointCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteEndpointCommand"])(input, context); }; DeleteEndpointCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteEndpointCommand"])(output, context); }; return DeleteEndpointCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteEndpointCommand.js.map /***/ }), /***/ "3pMQ": /*!***************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/runtimeConfig.shared.js ***! \***************************************************************************************/ /*! exports provided: ClientSharedValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientSharedValues", function() { return ClientSharedValues; }); /* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "NaSI"); var ClientSharedValues = { apiVersion: "2014-06-30", disableHostPrefix: false, regionInfoProvider: _endpoints__WEBPACK_IMPORTED_MODULE_0__["defaultRegionInfoProvider"], signingName: "cognito-identity", }; //# sourceMappingURL=runtimeConfig.shared.js.map /***/ }), /***/ "3spr": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreatePushTemplateCommand.js ***! \*********************************************************************************************/ /*! exports provided: CreatePushTemplateCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateCommand", function() { return CreatePushTemplateCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CreatePushTemplateCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreatePushTemplateCommand, _super); // Start section: command_properties // End section: command_properties function CreatePushTemplateCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CreatePushTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreatePushTemplateRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreatePushTemplateResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CreatePushTemplateCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreatePushTemplateCommand"])(input, context); }; CreatePushTemplateCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreatePushTemplateCommand"])(output, context); }; return CreatePushTemplateCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=CreatePushTemplateCommand.js.map /***/ }), /***/ "3tHY": /*!********************************************************************!*\ !*** ./node_modules/@aws-sdk/querystring-builder/dist/es/index.js ***! \********************************************************************/ /*! exports provided: buildQueryString */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildQueryString", function() { return buildQueryString; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_util_uri_escape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/util-uri-escape */ "TARy"); function buildQueryString(query) { var e_1, _a; var parts = []; try { for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(query).sort()), _c = _b.next(); !_c.done; _c = _b.next()) { var key = _c.value; var value = query[key]; key = Object(_aws_sdk_util_uri_escape__WEBPACK_IMPORTED_MODULE_1__["escapeUri"])(key); if (Array.isArray(value)) { for (var i = 0, iLen = value.length; i < iLen; i++) { parts.push(key + "=" + Object(_aws_sdk_util_uri_escape__WEBPACK_IMPORTED_MODULE_1__["escapeUri"])(value[i])); } } else { var qsEntry = key; if (value || typeof value === "string") { qsEntry += "=" + Object(_aws_sdk_util_uri_escape__WEBPACK_IMPORTED_MODULE_1__["escapeUri"])(value); } parts.push(qsEntry); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return parts.join("&"); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUVyRCxNQUFNLFVBQVUsZ0JBQWdCLENBQUMsS0FBd0I7O0lBQ3ZELElBQU0sS0FBSyxHQUFhLEVBQUUsQ0FBQzs7UUFDM0IsS0FBZ0IsSUFBQSxLQUFBLFNBQUEsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxJQUFJLEVBQUUsQ0FBQSxnQkFBQSw0QkFBRTtZQUF0QyxJQUFJLEdBQUcsV0FBQTtZQUNWLElBQU0sS0FBSyxHQUFHLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQztZQUN6QixHQUFHLEdBQUcsU0FBUyxDQUFDLEdBQUcsQ0FBQyxDQUFDO1lBQ3JCLElBQUksS0FBSyxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsRUFBRTtnQkFDeEIsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsSUFBSSxHQUFHLEtBQUssQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLElBQUksRUFBRSxDQUFDLEVBQUUsRUFBRTtvQkFDbEQsS0FBSyxDQUFDLElBQUksQ0FBSSxHQUFHLFNBQUksU0FBUyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBRyxDQUFDLENBQUM7aUJBQzdDO2FBQ0Y7aUJBQU07Z0JBQ0wsSUFBSSxPQUFPLEdBQUcsR0FBRyxDQUFDO2dCQUNsQixJQUFJLEtBQUssSUFBSSxPQUFPLEtBQUssS0FBSyxRQUFRLEVBQUU7b0JBQ3RDLE9BQU8sSUFBSSxNQUFJLFNBQVMsQ0FBQyxLQUFLLENBQUcsQ0FBQztpQkFDbkM7Z0JBQ0QsS0FBSyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQzthQUNyQjtTQUNGOzs7Ozs7Ozs7SUFFRCxPQUFPLEtBQUssQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUM7QUFDekIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFF1ZXJ5UGFyYW1ldGVyQmFnIH0gZnJvbSBcIkBhd3Mtc2RrL3R5cGVzXCI7XG5pbXBvcnQgeyBlc2NhcGVVcmkgfSBmcm9tIFwiQGF3cy1zZGsvdXRpbC11cmktZXNjYXBlXCI7XG5cbmV4cG9ydCBmdW5jdGlvbiBidWlsZFF1ZXJ5U3RyaW5nKHF1ZXJ5OiBRdWVyeVBhcmFtZXRlckJhZyk6IHN0cmluZyB7XG4gIGNvbnN0IHBhcnRzOiBzdHJpbmdbXSA9IFtdO1xuICBmb3IgKGxldCBrZXkgb2YgT2JqZWN0LmtleXMocXVlcnkpLnNvcnQoKSkge1xuICAgIGNvbnN0IHZhbHVlID0gcXVlcnlba2V5XTtcbiAgICBrZXkgPSBlc2NhcGVVcmkoa2V5KTtcbiAgICBpZiAoQXJyYXkuaXNBcnJheSh2YWx1ZSkpIHtcbiAgICAgIGZvciAobGV0IGkgPSAwLCBpTGVuID0gdmFsdWUubGVuZ3RoOyBpIDwgaUxlbjsgaSsrKSB7XG4gICAgICAgIHBhcnRzLnB1c2goYCR7a2V5fT0ke2VzY2FwZVVyaSh2YWx1ZVtpXSl9YCk7XG4gICAgICB9XG4gICAgfSBlbHNlIHtcbiAgICAgIGxldCBxc0VudHJ5ID0ga2V5O1xuICAgICAgaWYgKHZhbHVlIHx8IHR5cGVvZiB2YWx1ZSA9PT0gXCJzdHJpbmdcIikge1xuICAgICAgICBxc0VudHJ5ICs9IGA9JHtlc2NhcGVVcmkodmFsdWUpfWA7XG4gICAgICB9XG4gICAgICBwYXJ0cy5wdXNoKHFzRW50cnkpO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBwYXJ0cy5qb2luKFwiJlwiKTtcbn1cbiJdfQ== /***/ }), /***/ "3wNH": /*!***********************************************************************!*\ !*** ./node_modules/@aws-amplify/analytics/lib-esm/utils/AppUtils.js ***! \***********************************************************************/ /*! exports provided: isAppInForeground */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAppInForeground", function() { return isAppInForeground; }); var isAppInForeground = function () { return true; }; //# sourceMappingURL=AppUtils.js.map /***/ }), /***/ "3wOB": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/DetectTextCommand.js ***! \****************************************************************************************/ /*! exports provided: DetectTextCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectTextCommand", function() { return DetectTextCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DetectTextCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DetectTextCommand, _super); // Start section: command_properties // End section: command_properties function DetectTextCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DetectTextCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DetectTextRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DetectTextResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DetectTextCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DetectTextCommand"])(input, context); }; DetectTextCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DetectTextCommand"])(output, context); }; return DetectTextCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DetectTextCommand.js.map /***/ }), /***/ "3wd1": /*!*************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-firehose/dist/es/commands/DescribeDeliveryStreamCommand.js ***! \*************************************************************************************************/ /*! exports provided: DescribeDeliveryStreamCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamCommand", function() { return DescribeDeliveryStreamCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "qPic"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "IZqD"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DescribeDeliveryStreamCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeDeliveryStreamCommand, _super); // Start section: command_properties // End section: command_properties function DescribeDeliveryStreamCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DescribeDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeDeliveryStreamInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeDeliveryStreamOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DescribeDeliveryStreamCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeDeliveryStreamCommand"])(input, context); }; DescribeDeliveryStreamCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeDeliveryStreamCommand"])(output, context); }; return DescribeDeliveryStreamCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DescribeDeliveryStreamCommand.js.map /***/ }), /***/ "44Ds": /*!****************************************!*\ !*** ./node_modules/lodash/memoize.js ***! \****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var MapCache = __webpack_require__(/*! ./_MapCache */ "e4Nc"); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** * Creates a function that memoizes the result of `func`. If `resolver` is * provided, it determines the cache key for storing the result based on the * arguments provided to the memoized function. By default, the first argument * provided to the memoized function is used as the map cache key. The `func` * is invoked with the `this` binding of the memoized function. * * **Note:** The cache is exposed as the `cache` property on the memoized * function. Its creation may be customized by replacing the `_.memoize.Cache` * constructor with one whose instances implement the * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) * method interface of `clear`, `delete`, `get`, `has`, and `set`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to have its output memoized. * @param {Function} [resolver] The function to resolve the cache key. * @returns {Function} Returns the new memoized function. * @example * * var object = { 'a': 1, 'b': 2 }; * var other = { 'c': 3, 'd': 4 }; * * var values = _.memoize(_.values); * values(object); * // => [1, 2] * * values(other); * // => [3, 4] * * object.a = 2; * values(object); * // => [1, 2] * * // Modify the result cache. * values.cache.set(object, ['a', 'b']); * values(object); * // => ['a', 'b'] * * // Replace `_.memoize.Cache`. * _.memoize.Cache = WeakMap; */ function memoize(func, resolver) { if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { throw new TypeError(FUNC_ERROR_TEXT); } var memoized = function() { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; if (cache.has(key)) { return cache.get(key); } var result = func.apply(this, args); memoized.cache = cache.set(key, result) || cache; return result; }; memoized.cache = new (memoize.Cache || MapCache); return memoized; } // Expose `MapCache`. memoize.Cache = MapCache; module.exports = memoize; /***/ }), /***/ "47v2": /*!*************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/GetOpenIdTokenCommand.js ***! \*************************************************************************************************/ /*! exports provided: GetOpenIdTokenCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetOpenIdTokenCommand", function() { return GetOpenIdTokenCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetOpenIdTokenCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetOpenIdTokenCommand, _super); // Start section: command_properties // End section: command_properties function GetOpenIdTokenCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetOpenIdTokenCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetOpenIdTokenInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetOpenIdTokenResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetOpenIdTokenCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetOpenIdTokenCommand"])(input, context); }; GetOpenIdTokenCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetOpenIdTokenCommand"])(output, context); }; return GetOpenIdTokenCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetOpenIdTokenCommand.js.map /***/ }), /***/ "49sm": /*!***************************************!*\ !*** ./node_modules/isarray/index.js ***! \***************************************/ /*! no static exports found */ /***/ (function(module, exports) { var toString = {}.toString; module.exports = Array.isArray || function (arr) { return toString.call(arr) == '[object Array]'; }; /***/ }), /***/ "4A3s": /*!*************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/ignoreElements.js ***! \*************************************************************************/ /*! exports provided: ignoreElements */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ignoreElements", function() { return ignoreElements; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); function ignoreElements() { return function ignoreElementsOperatorFunction(source) { return source.lift(new IgnoreElementsOperator()); }; } class IgnoreElementsOperator { call(subscriber, source) { return source.subscribe(new IgnoreElementsSubscriber(subscriber)); } } class IgnoreElementsSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { _next(unused) { } } //# sourceMappingURL=ignoreElements.js.map /***/ }), /***/ "4DXh": /*!**************************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-retry/dist/es/configurations.js ***! \**************************************************************************/ /*! exports provided: ENV_MAX_ATTEMPTS, CONFIG_MAX_ATTEMPTS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, ENV_RETRY_MODE, CONFIG_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENV_MAX_ATTEMPTS", function() { return ENV_MAX_ATTEMPTS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONFIG_MAX_ATTEMPTS", function() { return CONFIG_MAX_ATTEMPTS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NODE_MAX_ATTEMPT_CONFIG_OPTIONS", function() { return NODE_MAX_ATTEMPT_CONFIG_OPTIONS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveRetryConfig", function() { return resolveRetryConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENV_RETRY_MODE", function() { return ENV_RETRY_MODE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONFIG_RETRY_MODE", function() { return CONFIG_RETRY_MODE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NODE_RETRY_MODE_CONFIG_OPTIONS", function() { return NODE_RETRY_MODE_CONFIG_OPTIONS; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./defaultStrategy */ "GnFd"); var ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; var CONFIG_MAX_ATTEMPTS = "max_attempts"; var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { environmentVariableSelector: function (env) { var value = env[ENV_MAX_ATTEMPTS]; if (!value) return undefined; var maxAttempt = parseInt(value); if (Number.isNaN(maxAttempt)) { throw new Error("Environment variable " + ENV_MAX_ATTEMPTS + " mast be a number, got \"" + value + "\""); } return maxAttempt; }, configFileSelector: function (profile) { var value = profile[CONFIG_MAX_ATTEMPTS]; if (!value) return undefined; var maxAttempt = parseInt(value); if (Number.isNaN(maxAttempt)) { throw new Error("Shared config file entry " + CONFIG_MAX_ATTEMPTS + " mast be a number, got \"" + value + "\""); } return maxAttempt; }, default: _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_MAX_ATTEMPTS"], }; var resolveRetryConfig = function (input) { var maxAttempts = normalizeMaxAttempts(input.maxAttempts); return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, input), { maxAttempts: maxAttempts, retryStrategy: input.retryStrategy || new _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__["StandardRetryStrategy"](maxAttempts) }); }; var normalizeMaxAttempts = function (maxAttempts) { if (maxAttempts === void 0) { maxAttempts = _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_MAX_ATTEMPTS"]; } if (typeof maxAttempts === "number") { var promisified_1 = Promise.resolve(maxAttempts); return function () { return promisified_1; }; } return maxAttempts; }; var ENV_RETRY_MODE = "AWS_RETRY_MODE"; var CONFIG_RETRY_MODE = "retry_mode"; var NODE_RETRY_MODE_CONFIG_OPTIONS = { environmentVariableSelector: function (env) { return env[ENV_RETRY_MODE]; }, configFileSelector: function (profile) { return profile[CONFIG_RETRY_MODE]; }, default: _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_RETRY_MODE"], }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29uZmlndXJhdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUdBLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxrQkFBa0IsRUFBRSxxQkFBcUIsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBRXBHLE1BQU0sQ0FBQyxJQUFNLGdCQUFnQixHQUFHLGtCQUFrQixDQUFDO0FBQ25ELE1BQU0sQ0FBQyxJQUFNLG1CQUFtQixHQUFHLGNBQWMsQ0FBQztBQUVsRCxNQUFNLENBQUMsSUFBTSwrQkFBK0IsR0FBa0M7SUFDNUUsMkJBQTJCLEVBQUUsVUFBQyxHQUFHO1FBQy9CLElBQU0sS0FBSyxHQUFHLEdBQUcsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO1FBQ3BDLElBQUksQ0FBQyxLQUFLO1lBQUUsT0FBTyxTQUFTLENBQUM7UUFDN0IsSUFBTSxVQUFVLEdBQUcsUUFBUSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ25DLElBQUksTUFBTSxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUMsRUFBRTtZQUM1QixNQUFNLElBQUksS0FBSyxDQUFDLDBCQUF3QixnQkFBZ0IsaUNBQTJCLEtBQUssT0FBRyxDQUFDLENBQUM7U0FDOUY7UUFDRCxPQUFPLFVBQVUsQ0FBQztJQUNwQixDQUFDO0lBQ0Qsa0JBQWtCLEVBQUUsVUFBQyxPQUFPO1FBQzFCLElBQU0sS0FBSyxHQUFHLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDO1FBQzNDLElBQUksQ0FBQyxLQUFLO1lBQUUsT0FBTyxTQUFTLENBQUM7UUFDN0IsSUFBTSxVQUFVLEdBQUcsUUFBUSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ25DLElBQUksTUFBTSxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUMsRUFBRTtZQUM1QixNQUFNLElBQUksS0FBSyxDQUFDLDhCQUE0QixtQkFBbUIsaUNBQTJCLEtBQUssT0FBRyxDQUFDLENBQUM7U0FDckc7UUFDRCxPQUFPLFVBQVUsQ0FBQztJQUNwQixDQUFDO0lBQ0QsT0FBTyxFQUFFLG9CQUFvQjtDQUM5QixDQUFDO0FBbUJGLE1BQU0sQ0FBQyxJQUFNLGtCQUFrQixHQUFHLFVBQUksS0FBZ0Q7SUFDcEYsSUFBTSxXQUFXLEdBQUcsb0JBQW9CLENBQUMsS0FBSyxDQUFDLFdBQVcsQ0FBQyxDQUFDO0lBQzVELDZCQUNLLEtBQUssS0FDUixXQUFXLGFBQUEsRUFDWCxhQUFhLEVBQUUsS0FBSyxDQUFDLGFBQWEsSUFBSSxJQUFJLHFCQUFxQixDQUFDLFdBQVcsQ0FBQyxJQUM1RTtBQUNKLENBQUMsQ0FBQztBQUVGLElBQU0sb0JBQW9CLEdBQUcsVUFBQyxXQUE2RDtJQUE3RCw0QkFBQSxFQUFBLGtDQUE2RDtJQUN6RixJQUFJLE9BQU8sV0FBVyxLQUFLLFFBQVEsRUFBRTtRQUNuQyxJQUFNLGFBQVcsR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLFdBQVcsQ0FBQyxDQUFDO1FBQ2pELE9BQU8sY0FBTSxPQUFBLGFBQVcsRUFBWCxDQUFXLENBQUM7S0FDMUI7SUFDRCxPQUFPLFdBQVcsQ0FBQztBQUNyQixDQUFDLENBQUM7QUFFRixNQUFNLENBQUMsSUFBTSxjQUFjLEdBQUcsZ0JBQWdCLENBQUM7QUFDL0MsTUFBTSxDQUFDLElBQU0saUJBQWlCLEdBQUcsWUFBWSxDQUFDO0FBRTlDLE1BQU0sQ0FBQyxJQUFNLDhCQUE4QixHQUFrQztJQUMzRSwyQkFBMkIsRUFBRSxVQUFDLEdBQUcsSUFBSyxPQUFBLEdBQUcsQ0FBQyxjQUFjLENBQUMsRUFBbkIsQ0FBbUI7SUFDekQsa0JBQWtCLEVBQUUsVUFBQyxPQUFPLElBQUssT0FBQSxPQUFPLENBQUMsaUJBQWlCLENBQUMsRUFBMUIsQ0FBMEI7SUFDM0QsT0FBTyxFQUFFLGtCQUFrQjtDQUM1QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTG9hZGVkQ29uZmlnU2VsZWN0b3JzIH0gZnJvbSBcIkBhd3Mtc2RrL25vZGUtY29uZmlnLXByb3ZpZGVyXCI7XG5pbXBvcnQgeyBQcm92aWRlciwgUmV0cnlTdHJhdGVneSB9IGZyb20gXCJAYXdzLXNkay90eXBlc1wiO1xuXG5pbXBvcnQgeyBERUZBVUxUX01BWF9BVFRFTVBUUywgREVGQVVMVF9SRVRSWV9NT0RFLCBTdGFuZGFyZFJldHJ5U3RyYXRlZ3kgfSBmcm9tIFwiLi9kZWZhdWx0U3RyYXRlZ3lcIjtcblxuZXhwb3J0IGNvbnN0IEVOVl9NQVhfQVRURU1QVFMgPSBcIkFXU19NQVhfQVRURU1QVFNcIjtcbmV4cG9ydCBjb25zdCBDT05GSUdfTUFYX0FUVEVNUFRTID0gXCJtYXhfYXR0ZW1wdHNcIjtcblxuZXhwb3J0IGNvbnN0IE5PREVfTUFYX0FUVEVNUFRfQ09ORklHX09QVElPTlM6IExvYWRlZENvbmZpZ1NlbGVjdG9yczxudW1iZXI+ID0ge1xuICBlbnZpcm9ubWVudFZhcmlhYmxlU2VsZWN0b3I6IChlbnYpID0+IHtcbiAgICBjb25zdCB2YWx1ZSA9IGVudltFTlZfTUFYX0FUVEVNUFRTXTtcbiAgICBpZiAoIXZhbHVlKSByZXR1cm4gdW5kZWZpbmVkO1xuICAgIGNvbnN0IG1heEF0dGVtcHQgPSBwYXJzZUludCh2YWx1ZSk7XG4gICAgaWYgKE51bWJlci5pc05hTihtYXhBdHRlbXB0KSkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKGBFbnZpcm9ubWVudCB2YXJpYWJsZSAke0VOVl9NQVhfQVRURU1QVFN9IG1hc3QgYmUgYSBudW1iZXIsIGdvdCBcIiR7dmFsdWV9XCJgKTtcbiAgICB9XG4gICAgcmV0dXJuIG1heEF0dGVtcHQ7XG4gIH0sXG4gIGNvbmZpZ0ZpbGVTZWxlY3RvcjogKHByb2ZpbGUpID0+IHtcbiAgICBjb25zdCB2YWx1ZSA9IHByb2ZpbGVbQ09ORklHX01BWF9BVFRFTVBUU107XG4gICAgaWYgKCF2YWx1ZSkgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICBjb25zdCBtYXhBdHRlbXB0ID0gcGFyc2VJbnQodmFsdWUpO1xuICAgIGlmIChOdW1iZXIuaXNOYU4obWF4QXR0ZW1wdCkpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihgU2hhcmVkIGNvbmZpZyBmaWxlIGVudHJ5ICR7Q09ORklHX01BWF9BVFRFTVBUU30gbWFzdCBiZSBhIG51bWJlciwgZ290IFwiJHt2YWx1ZX1cImApO1xuICAgIH1cbiAgICByZXR1cm4gbWF4QXR0ZW1wdDtcbiAgfSxcbiAgZGVmYXVsdDogREVGQVVMVF9NQVhfQVRURU1QVFMsXG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIFJldHJ5SW5wdXRDb25maWcge1xuICAvKipcbiAgICogVGhlIG1heGltdW0gbnVtYmVyIG9mIHRpbWVzIHJlcXVlc3RzIHRoYXQgZW5jb3VudGVyIHJldHJ5YWJsZSBmYWlsdXJlcyBzaG91bGQgYmUgYXR0ZW1wdGVkLlxuICAgKi9cbiAgbWF4QXR0ZW1wdHM/OiBudW1iZXIgfCBQcm92aWRlcjxudW1iZXI+O1xuICAvKipcbiAgICogVGhlIHN0cmF0ZWd5IHRvIHJldHJ5IHRoZSByZXF1ZXN0LiBVc2luZyBidWlsdC1pbiBleHBvbmVudGlhbCBiYWNrb2ZmIHN0cmF0ZWd5IGJ5IGRlZmF1bHQuXG4gICAqL1xuICByZXRyeVN0cmF0ZWd5PzogUmV0cnlTdHJhdGVneTtcbn1cblxuaW50ZXJmYWNlIFByZXZpb3VzbHlSZXNvbHZlZCB7fVxuZXhwb3J0IGludGVyZmFjZSBSZXRyeVJlc29sdmVkQ29uZmlnIHtcbiAgbWF4QXR0ZW1wdHM6IFByb3ZpZGVyPG51bWJlcj47XG4gIHJldHJ5U3RyYXRlZ3k6IFJldHJ5U3RyYXRlZ3k7XG59XG5cbmV4cG9ydCBjb25zdCByZXNvbHZlUmV0cnlDb25maWcgPSA8VD4oaW5wdXQ6IFQgJiBQcmV2aW91c2x5UmVzb2x2ZWQgJiBSZXRyeUlucHV0Q29uZmlnKTogVCAmIFJldHJ5UmVzb2x2ZWRDb25maWcgPT4ge1xuICBjb25zdCBtYXhBdHRlbXB0cyA9IG5vcm1hbGl6ZU1heEF0dGVtcHRzKGlucHV0Lm1heEF0dGVtcHRzKTtcbiAgcmV0dXJuIHtcbiAgICAuLi5pbnB1dCxcbiAgICBtYXhBdHRlbXB0cyxcbiAgICByZXRyeVN0cmF0ZWd5OiBpbnB1dC5yZXRyeVN0cmF0ZWd5IHx8IG5ldyBTdGFuZGFyZFJldHJ5U3RyYXRlZ3kobWF4QXR0ZW1wdHMpLFxuICB9O1xufTtcblxuY29uc3Qgbm9ybWFsaXplTWF4QXR0ZW1wdHMgPSAobWF4QXR0ZW1wdHM6IG51bWJlciB8IFByb3ZpZGVyPG51bWJlcj4gPSBERUZBVUxUX01BWF9BVFRFTVBUUyk6IFByb3ZpZGVyPG51bWJlcj4gPT4ge1xuICBpZiAodHlwZW9mIG1heEF0dGVtcHRzID09PSBcIm51bWJlclwiKSB7XG4gICAgY29uc3QgcHJvbWlzaWZpZWQgPSBQcm9taXNlLnJlc29sdmUobWF4QXR0ZW1wdHMpO1xuICAgIHJldHVybiAoKSA9PiBwcm9taXNpZmllZDtcbiAgfVxuICByZXR1cm4gbWF4QXR0ZW1wdHM7XG59O1xuXG5leHBvcnQgY29uc3QgRU5WX1JFVFJZX01PREUgPSBcIkFXU19SRVRSWV9NT0RFXCI7XG5leHBvcnQgY29uc3QgQ09ORklHX1JFVFJZX01PREUgPSBcInJldHJ5X21vZGVcIjtcblxuZXhwb3J0IGNvbnN0IE5PREVfUkVUUllfTU9ERV9DT05GSUdfT1BUSU9OUzogTG9hZGVkQ29uZmlnU2VsZWN0b3JzPHN0cmluZz4gPSB7XG4gIGVudmlyb25tZW50VmFyaWFibGVTZWxlY3RvcjogKGVudikgPT4gZW52W0VOVl9SRVRSWV9NT0RFXSxcbiAgY29uZmlnRmlsZVNlbGVjdG9yOiAocHJvZmlsZSkgPT4gcHJvZmlsZVtDT05GSUdfUkVUUllfTU9ERV0sXG4gIGRlZmF1bHQ6IERFRkFVTFRfUkVUUllfTU9ERSxcbn07XG4iXX0= /***/ }), /***/ "4Hbs": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-crypto/sha256-browser/node_modules/@aws-crypto/sha256-js/build/RawSha256.js ***! \*******************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RawSha256 = void 0; var constants_1 = __webpack_require__(/*! ./constants */ "W5Sr"); /** * @internal */ var RawSha256 = /** @class */ (function () { function RawSha256() { this.state = Int32Array.from(constants_1.INIT); this.temp = new Int32Array(64); this.buffer = new Uint8Array(64); this.bufferLength = 0; this.bytesHashed = 0; /** * @internal */ this.finished = false; } RawSha256.prototype.update = function (data) { if (this.finished) { throw new Error("Attempted to update an already finished hash."); } var position = 0; var byteLength = data.byteLength; this.bytesHashed += byteLength; if (this.bytesHashed * 8 > constants_1.MAX_HASHABLE_LENGTH) { throw new Error("Cannot hash more than 2^53 - 1 bits"); } while (byteLength > 0) { this.buffer[this.bufferLength++] = data[position++]; byteLength--; if (this.bufferLength === constants_1.BLOCK_SIZE) { this.hashBuffer(); this.bufferLength = 0; } } }; RawSha256.prototype.digest = function () { if (!this.finished) { var bitsHashed = this.bytesHashed * 8; var bufferView = new DataView(this.buffer.buffer, this.buffer.byteOffset, this.buffer.byteLength); var undecoratedLength = this.bufferLength; bufferView.setUint8(this.bufferLength++, 0x80); // Ensure the final block has enough room for the hashed length if (undecoratedLength % constants_1.BLOCK_SIZE >= constants_1.BLOCK_SIZE - 8) { for (var i = this.bufferLength; i < constants_1.BLOCK_SIZE; i++) { bufferView.setUint8(i, 0); } this.hashBuffer(); this.bufferLength = 0; } for (var i = this.bufferLength; i < constants_1.BLOCK_SIZE - 8; i++) { bufferView.setUint8(i, 0); } bufferView.setUint32(constants_1.BLOCK_SIZE - 8, Math.floor(bitsHashed / 0x100000000), true); bufferView.setUint32(constants_1.BLOCK_SIZE - 4, bitsHashed); this.hashBuffer(); this.finished = true; } // The value in state is little-endian rather than big-endian, so flip // each word into a new Uint8Array var out = new Uint8Array(constants_1.DIGEST_LENGTH); for (var i = 0; i < 8; i++) { out[i * 4] = (this.state[i] >>> 24) & 0xff; out[i * 4 + 1] = (this.state[i] >>> 16) & 0xff; out[i * 4 + 2] = (this.state[i] >>> 8) & 0xff; out[i * 4 + 3] = (this.state[i] >>> 0) & 0xff; } return out; }; RawSha256.prototype.hashBuffer = function () { var _a = this, buffer = _a.buffer, state = _a.state; var state0 = state[0], state1 = state[1], state2 = state[2], state3 = state[3], state4 = state[4], state5 = state[5], state6 = state[6], state7 = state[7]; for (var i = 0; i < constants_1.BLOCK_SIZE; i++) { if (i < 16) { this.temp[i] = ((buffer[i * 4] & 0xff) << 24) | ((buffer[i * 4 + 1] & 0xff) << 16) | ((buffer[i * 4 + 2] & 0xff) << 8) | (buffer[i * 4 + 3] & 0xff); } else { var u = this.temp[i - 2]; var t1_1 = ((u >>> 17) | (u << 15)) ^ ((u >>> 19) | (u << 13)) ^ (u >>> 10); u = this.temp[i - 15]; var t2_1 = ((u >>> 7) | (u << 25)) ^ ((u >>> 18) | (u << 14)) ^ (u >>> 3); this.temp[i] = ((t1_1 + this.temp[i - 7]) | 0) + ((t2_1 + this.temp[i - 16]) | 0); } var t1 = ((((((state4 >>> 6) | (state4 << 26)) ^ ((state4 >>> 11) | (state4 << 21)) ^ ((state4 >>> 25) | (state4 << 7))) + ((state4 & state5) ^ (~state4 & state6))) | 0) + ((state7 + ((constants_1.KEY[i] + this.temp[i]) | 0)) | 0)) | 0; var t2 = ((((state0 >>> 2) | (state0 << 30)) ^ ((state0 >>> 13) | (state0 << 19)) ^ ((state0 >>> 22) | (state0 << 10))) + ((state0 & state1) ^ (state0 & state2) ^ (state1 & state2))) | 0; state7 = state6; state6 = state5; state5 = state4; state4 = (state3 + t1) | 0; state3 = state2; state2 = state1; state1 = state0; state0 = (t1 + t2) | 0; } state[0] += state0; state[1] += state1; state[2] += state2; state[3] += state3; state[4] += state4; state[5] += state5; state[6] += state6; state[7] += state7; }; return RawSha256; }()); exports.RawSha256 = RawSha256; //# sourceMappingURL=RawSha256.js.map /***/ }), /***/ "4I5i": /*!*****************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/ArgumentOutOfRangeError.js ***! \*****************************************************************************/ /*! exports provided: ArgumentOutOfRangeError */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ArgumentOutOfRangeError", function() { return ArgumentOutOfRangeError; }); const ArgumentOutOfRangeErrorImpl = (() => { function ArgumentOutOfRangeErrorImpl() { Error.call(this); this.message = 'argument out of range'; this.name = 'ArgumentOutOfRangeError'; return this; } ArgumentOutOfRangeErrorImpl.prototype = Object.create(Error.prototype); return ArgumentOutOfRangeErrorImpl; })(); const ArgumentOutOfRangeError = ArgumentOutOfRangeErrorImpl; //# sourceMappingURL=ArgumentOutOfRangeError.js.map /***/ }), /***/ "4MEW": /*!***************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutObjectRetentionCommand.js ***! \***************************************************************************************/ /*! exports provided: PutObjectRetentionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutObjectRetentionCommand", function() { return PutObjectRetentionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutObjectRetentionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutObjectRetentionCommand, _super); // Start section: command_properties // End section: command_properties function PutObjectRetentionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutObjectRetentionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutObjectRetentionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutObjectRetentionOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutObjectRetentionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutObjectRetentionCommand"])(input, context); }; PutObjectRetentionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutObjectRetentionCommand"])(output, context); }; return PutObjectRetentionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=PutObjectRetentionCommand.js.map /***/ }), /***/ "4O5X": /*!****************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/bindNodeCallback.js ***! \****************************************************************************/ /*! exports provided: bindNodeCallback */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bindNodeCallback", function() { return bindNodeCallback; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../AsyncSubject */ "NHP+"); /* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operators/map */ "lJxs"); /* harmony import */ var _util_canReportError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/canReportError */ "8Qeq"); /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro"); /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/isArray */ "DH7j"); function bindNodeCallback(callbackFunc, resultSelector, scheduler) { if (resultSelector) { if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_4__["isScheduler"])(resultSelector)) { scheduler = resultSelector; } else { return (...args) => bindNodeCallback(callbackFunc, scheduler)(...args).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_2__["map"])(args => Object(_util_isArray__WEBPACK_IMPORTED_MODULE_5__["isArray"])(args) ? resultSelector(...args) : resultSelector(args))); } } return function (...args) { const params = { subject: undefined, args, callbackFunc, scheduler, context: this, }; return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => { const { context } = params; let { subject } = params; if (!scheduler) { if (!subject) { subject = params.subject = new _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__["AsyncSubject"](); const handler = (...innerArgs) => { const err = innerArgs.shift(); if (err) { subject.error(err); return; } subject.next(innerArgs.length <= 1 ? innerArgs[0] : innerArgs); subject.complete(); }; try { callbackFunc.apply(context, [...args, handler]); } catch (err) { if (Object(_util_canReportError__WEBPACK_IMPORTED_MODULE_3__["canReportError"])(subject)) { subject.error(err); } else { console.warn(err); } } } return subject.subscribe(subscriber); } else { return scheduler.schedule(dispatch, 0, { params, subscriber, context }); } }); }; } function dispatch(state) { const { params, subscriber, context } = state; const { callbackFunc, args, scheduler } = params; let subject = params.subject; if (!subject) { subject = params.subject = new _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__["AsyncSubject"](); const handler = (...innerArgs) => { const err = innerArgs.shift(); if (err) { this.add(scheduler.schedule(dispatchError, 0, { err, subject })); } else { const value = innerArgs.length <= 1 ? innerArgs[0] : innerArgs; this.add(scheduler.schedule(dispatchNext, 0, { value, subject })); } }; try { callbackFunc.apply(context, [...args, handler]); } catch (err) { this.add(scheduler.schedule(dispatchError, 0, { err, subject })); } } this.add(subject.subscribe(subscriber)); } function dispatchNext(arg) { const { value, subject } = arg; subject.next(value); subject.complete(); } function dispatchError(arg) { const { err, subject } = arg; subject.error(err); } //# sourceMappingURL=bindNodeCallback.js.map /***/ }), /***/ "4RMZ": /*!*****************************************************!*\ !*** ./node_modules/graphql/utilities/TypeInfo.mjs ***! \*****************************************************/ /*! exports provided: TypeInfo */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TypeInfo", function() { return TypeInfo; }); /* harmony import */ var _language_kinds__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../language/kinds */ "/jXB"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../type/definition */ "axIb"); /* harmony import */ var _type_introspection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../type/introspection */ "LViu"); /* harmony import */ var _typeFromAST__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./typeFromAST */ "umOc"); /* harmony import */ var _jsutils_find__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../jsutils/find */ "YQzk"); function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * TypeInfo is a utility class which, given a GraphQL schema, can keep track * of the current field and type definitions at any point in a GraphQL document * AST during a recursive descent by calling `enter(node)` and `leave(node)`. */ var TypeInfo = /*#__PURE__*/ function () { function TypeInfo(schema, // NOTE: this experimental optional second parameter is only needed in order // to support non-spec-compliant codebases. You should never need to use it. getFieldDefFn, // Initial type may be provided in rare cases to facilitate traversals initialType) { _defineProperty(this, "_schema", void 0); _defineProperty(this, "_typeStack", void 0); _defineProperty(this, "_parentTypeStack", void 0); _defineProperty(this, "_inputTypeStack", void 0); _defineProperty(this, "_fieldDefStack", void 0); _defineProperty(this, "_defaultValueStack", void 0); _defineProperty(this, "_directive", void 0); _defineProperty(this, "_argument", void 0); _defineProperty(this, "_enumValue", void 0); _defineProperty(this, "_getFieldDef", void 0); this._schema = schema; this._typeStack = []; this._parentTypeStack = []; this._inputTypeStack = []; this._fieldDefStack = []; this._defaultValueStack = []; this._directive = null; this._argument = null; this._enumValue = null; this._getFieldDef = getFieldDefFn || getFieldDef; if (initialType) { if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isInputType"])(initialType)) { this._inputTypeStack.push(initialType); } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isCompositeType"])(initialType)) { this._parentTypeStack.push(initialType); } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isOutputType"])(initialType)) { this._typeStack.push(initialType); } } } var _proto = TypeInfo.prototype; _proto.getType = function getType() { if (this._typeStack.length > 0) { return this._typeStack[this._typeStack.length - 1]; } }; _proto.getParentType = function getParentType() { if (this._parentTypeStack.length > 0) { return this._parentTypeStack[this._parentTypeStack.length - 1]; } }; _proto.getInputType = function getInputType() { if (this._inputTypeStack.length > 0) { return this._inputTypeStack[this._inputTypeStack.length - 1]; } }; _proto.getParentInputType = function getParentInputType() { if (this._inputTypeStack.length > 1) { return this._inputTypeStack[this._inputTypeStack.length - 2]; } }; _proto.getFieldDef = function getFieldDef() { if (this._fieldDefStack.length > 0) { return this._fieldDefStack[this._fieldDefStack.length - 1]; } }; _proto.getDefaultValue = function getDefaultValue() { if (this._defaultValueStack.length > 0) { return this._defaultValueStack[this._defaultValueStack.length - 1]; } }; _proto.getDirective = function getDirective() { return this._directive; }; _proto.getArgument = function getArgument() { return this._argument; }; _proto.getEnumValue = function getEnumValue() { return this._enumValue; }; _proto.enter = function enter(node) { var schema = this._schema; // Note: many of the types below are explicitly typed as "mixed" to drop // any assumptions of a valid schema to ensure runtime types are properly // checked before continuing since TypeInfo is used as part of validation // which occurs before guarantees of schema and document validity. switch (node.kind) { case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].SELECTION_SET: var namedType = Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["getNamedType"])(this.getType()); this._parentTypeStack.push(Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isCompositeType"])(namedType) ? namedType : undefined); break; case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].FIELD: var parentType = this.getParentType(); var fieldDef; var fieldType; if (parentType) { fieldDef = this._getFieldDef(schema, parentType, node); if (fieldDef) { fieldType = fieldDef.type; } } this._fieldDefStack.push(fieldDef); this._typeStack.push(Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isOutputType"])(fieldType) ? fieldType : undefined); break; case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].DIRECTIVE: this._directive = schema.getDirective(node.name.value); break; case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].OPERATION_DEFINITION: var type; if (node.operation === 'query') { type = schema.getQueryType(); } else if (node.operation === 'mutation') { type = schema.getMutationType(); } else if (node.operation === 'subscription') { type = schema.getSubscriptionType(); } this._typeStack.push(Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isObjectType"])(type) ? type : undefined); break; case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].INLINE_FRAGMENT: case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].FRAGMENT_DEFINITION: var typeConditionAST = node.typeCondition; var outputType = typeConditionAST ? Object(_typeFromAST__WEBPACK_IMPORTED_MODULE_3__["typeFromAST"])(schema, typeConditionAST) : Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["getNamedType"])(this.getType()); this._typeStack.push(Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isOutputType"])(outputType) ? outputType : undefined); break; case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].VARIABLE_DEFINITION: var inputType = Object(_typeFromAST__WEBPACK_IMPORTED_MODULE_3__["typeFromAST"])(schema, node.type); this._inputTypeStack.push(Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isInputType"])(inputType) ? inputType : undefined); break; case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].ARGUMENT: var argDef; var argType; var fieldOrDirective = this.getDirective() || this.getFieldDef(); if (fieldOrDirective) { argDef = Object(_jsutils_find__WEBPACK_IMPORTED_MODULE_4__["default"])(fieldOrDirective.args, function (arg) { return arg.name === node.name.value; }); if (argDef) { argType = argDef.type; } } this._argument = argDef; this._defaultValueStack.push(argDef ? argDef.defaultValue : undefined); this._inputTypeStack.push(Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isInputType"])(argType) ? argType : undefined); break; case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].LIST: var listType = Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["getNullableType"])(this.getInputType()); var itemType = Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isListType"])(listType) ? listType.ofType : listType; // List positions never have a default value. this._defaultValueStack.push(undefined); this._inputTypeStack.push(Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isInputType"])(itemType) ? itemType : undefined); break; case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].OBJECT_FIELD: var objectType = Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["getNamedType"])(this.getInputType()); var inputFieldType; var inputField; if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isInputObjectType"])(objectType)) { inputField = objectType.getFields()[node.name.value]; if (inputField) { inputFieldType = inputField.type; } } this._defaultValueStack.push(inputField ? inputField.defaultValue : undefined); this._inputTypeStack.push(Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isInputType"])(inputFieldType) ? inputFieldType : undefined); break; case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].ENUM: var enumType = Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["getNamedType"])(this.getInputType()); var enumValue; if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isEnumType"])(enumType)) { enumValue = enumType.getValue(node.value); } this._enumValue = enumValue; break; } }; _proto.leave = function leave(node) { switch (node.kind) { case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].SELECTION_SET: this._parentTypeStack.pop(); break; case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].FIELD: this._fieldDefStack.pop(); this._typeStack.pop(); break; case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].DIRECTIVE: this._directive = null; break; case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].OPERATION_DEFINITION: case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].INLINE_FRAGMENT: case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].FRAGMENT_DEFINITION: this._typeStack.pop(); break; case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].VARIABLE_DEFINITION: this._inputTypeStack.pop(); break; case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].ARGUMENT: this._argument = null; this._defaultValueStack.pop(); this._inputTypeStack.pop(); break; case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].LIST: case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].OBJECT_FIELD: this._defaultValueStack.pop(); this._inputTypeStack.pop(); break; case _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].ENUM: this._enumValue = null; break; } }; return TypeInfo; }(); /** * Not exactly the same as the executor's definition of getFieldDef, in this * statically evaluated environment we do not always have an Object type, * and need to handle Interface and Union types. */ function getFieldDef(schema, parentType, fieldNode) { var name = fieldNode.name.value; if (name === _type_introspection__WEBPACK_IMPORTED_MODULE_2__["SchemaMetaFieldDef"].name && schema.getQueryType() === parentType) { return _type_introspection__WEBPACK_IMPORTED_MODULE_2__["SchemaMetaFieldDef"]; } if (name === _type_introspection__WEBPACK_IMPORTED_MODULE_2__["TypeMetaFieldDef"].name && schema.getQueryType() === parentType) { return _type_introspection__WEBPACK_IMPORTED_MODULE_2__["TypeMetaFieldDef"]; } if (name === _type_introspection__WEBPACK_IMPORTED_MODULE_2__["TypeNameMetaFieldDef"].name && Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isCompositeType"])(parentType)) { return _type_introspection__WEBPACK_IMPORTED_MODULE_2__["TypeNameMetaFieldDef"]; } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isObjectType"])(parentType) || Object(_type_definition__WEBPACK_IMPORTED_MODULE_1__["isInterfaceType"])(parentType)) { return parentType.getFields()[name]; } } /***/ }), /***/ "4abu": /*!**************************************************!*\ !*** ./node_modules/fast-xml-parser/src/util.js ***! \**************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const nameStartChar = ':A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD'; const nameChar = nameStartChar + '\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040'; const nameRegexp = '[' + nameStartChar + '][' + nameChar + ']*' const regexName = new RegExp('^' + nameRegexp + '$'); const getAllMatches = function(string, regex) { const matches = []; let match = regex.exec(string); while (match) { const allmatches = []; const len = match.length; for (let index = 0; index < len; index++) { allmatches.push(match[index]); } matches.push(allmatches); match = regex.exec(string); } return matches; }; const isName = function(string) { const match = regexName.exec(string); return !(match === null || typeof match === 'undefined'); }; exports.isExist = function(v) { return typeof v !== 'undefined'; }; exports.isEmptyObject = function(obj) { return Object.keys(obj).length === 0; }; /** * Copy all the properties of a into b. * @param {*} target * @param {*} a */ exports.merge = function(target, a, arrayMode) { if (a) { const keys = Object.keys(a); // will return an array of own properties const len = keys.length; //don't make it inline for (let i = 0; i < len; i++) { if(arrayMode === 'strict'){ target[keys[i]] = [ a[keys[i]] ]; }else{ target[keys[i]] = a[keys[i]]; } } } }; /* exports.merge =function (b,a){ return Object.assign(b,a); } */ exports.getValue = function(v) { if (exports.isExist(v)) { return v; } else { return ''; } }; // const fakeCall = function(a) {return a;}; // const fakeCallNoReturn = function() {}; exports.buildOptions = function(options, defaultOptions, props) { var newOptions = {}; if (!options) { return defaultOptions; //if there are not options } for (let i = 0; i < props.length; i++) { if (options[props[i]] !== undefined) { newOptions[props[i]] = options[props[i]]; } else { newOptions[props[i]] = defaultOptions[props[i]]; } } return newOptions; }; exports.isName = isName; exports.getAllMatches = getAllMatches; exports.nameRegexp = nameRegexp; /***/ }), /***/ "4f8F": /*!***************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/race.js ***! \***************************************************************/ /*! exports provided: race */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "race", function() { return race; }); /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isArray */ "DH7j"); /* harmony import */ var _observable_race__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../observable/race */ "Nv8m"); function race(...observables) { return function raceOperatorFunction(source) { if (observables.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(observables[0])) { observables = observables[0]; } return source.lift.call(Object(_observable_race__WEBPACK_IMPORTED_MODULE_1__["race"])(source, ...observables)); }; } //# sourceMappingURL=race.js.map /***/ }), /***/ "4fRq": /*!**********************************************!*\ !*** ./node_modules/uuid/lib/rng-browser.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports) { // Unique ID creation requires a high quality random # generator. In the // browser this is a little complicated due to unknown quality of Math.random() // and inconsistent support for the `crypto` API. We do the best we can via // feature-detection // getRandomValues needs to be invoked in a context where "this" is a Crypto // implementation. Also, find the complete implementation of crypto on IE11. var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) || (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto)); if (getRandomValues) { // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef module.exports = function whatwgRNG() { getRandomValues(rnds8); return rnds8; }; } else { // Math.random()-based (RNG) // // If all else fails, use Math.random(). It's fast, but is of unspecified // quality. var rnds = new Array(16); module.exports = function mathRNG() { for (var i = 0, r; i < 16; i++) { if ((i & 0x03) === 0) r = Math.random() * 0x100000000; rnds[i] = r >>> ((i & 0x03) << 3) & 0xff; } return rnds; }; } /***/ }), /***/ "4gov": /*!*****************************************************************************!*\ !*** ./node_modules/amazon-cognito-identity-js/es/AuthenticationDetails.js ***! \*****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return AuthenticationDetails; }); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ /** @class */ var AuthenticationDetails = /*#__PURE__*/function () { /** * Constructs a new AuthenticationDetails object * @param {object=} data Creation options. * @param {string} data.Username User being authenticated. * @param {string} data.Password Plain-text password to authenticate with. * @param {(AttributeArg[])?} data.ValidationData Application extra metadata. * @param {(AttributeArg[])?} data.AuthParamaters Authentication paramaters for custom auth. */ function AuthenticationDetails(data) { var _ref = data || {}, ValidationData = _ref.ValidationData, Username = _ref.Username, Password = _ref.Password, AuthParameters = _ref.AuthParameters, ClientMetadata = _ref.ClientMetadata; this.validationData = ValidationData || {}; this.authParameters = AuthParameters || {}; this.clientMetadata = ClientMetadata || {}; this.username = Username; this.password = Password; } /** * @returns {string} the record's username */ var _proto = AuthenticationDetails.prototype; _proto.getUsername = function getUsername() { return this.username; } /** * @returns {string} the record's password */ ; _proto.getPassword = function getPassword() { return this.password; } /** * @returns {Array} the record's validationData */ ; _proto.getValidationData = function getValidationData() { return this.validationData; } /** * @returns {Array} the record's authParameters */ ; _proto.getAuthParameters = function getAuthParameters() { return this.authParameters; } /** * @returns {ClientMetadata} the clientMetadata for a Lambda trigger */ ; _proto.getClientMetadata = function getClientMetadata() { return this.clientMetadata; }; return AuthenticationDetails; }(); /***/ }), /***/ "4hIw": /*!***********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/timeInterval.js ***! \***********************************************************************/ /*! exports provided: timeInterval, TimeInterval */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeInterval", function() { return timeInterval; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeInterval", function() { return TimeInterval; }); /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scheduler/async */ "D0XW"); /* harmony import */ var _scan__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./scan */ "Kqap"); /* harmony import */ var _observable_defer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/defer */ "NXyV"); /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./map */ "lJxs"); function timeInterval(scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"]) { return (source) => Object(_observable_defer__WEBPACK_IMPORTED_MODULE_2__["defer"])(() => { return source.pipe(Object(_scan__WEBPACK_IMPORTED_MODULE_1__["scan"])(({ current }, value) => ({ value, current: scheduler.now(), last: current }), { current: scheduler.now(), value: undefined, last: undefined }), Object(_map__WEBPACK_IMPORTED_MODULE_3__["map"])(({ current, last, value }) => new TimeInterval(value, current - last))); }); } class TimeInterval { constructor(value, interval) { this.value = value; this.interval = interval; } } //# sourceMappingURL=timeInterval.js.map /***/ }), /***/ "4kuk": /*!**************************************!*\ !*** ./node_modules/lodash/_Hash.js ***! \**************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var hashClear = __webpack_require__(/*! ./_hashClear */ "SfRM"), hashDelete = __webpack_require__(/*! ./_hashDelete */ "Hvzi"), hashGet = __webpack_require__(/*! ./_hashGet */ "u8Dt"), hashHas = __webpack_require__(/*! ./_hashHas */ "ekgI"), hashSet = __webpack_require__(/*! ./_hashSet */ "JSQU"); /** * Creates a hash object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Hash(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `Hash`. Hash.prototype.clear = hashClear; Hash.prototype['delete'] = hashDelete; Hash.prototype.get = hashGet; Hash.prototype.has = hashHas; Hash.prototype.set = hashSet; module.exports = Hash; /***/ }), /***/ "4pdS": /*!***************************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-bucket-endpoint/dist/es/index.js ***! \***************************************************************************/ /*! exports provided: bucketEndpointMiddleware, bucketEndpointMiddlewareOptions, getBucketEndpointPlugin, bucketHostname, resolveBucketEndpointConfig, NODE_USE_ARN_REGION_ENV_NAME, NODE_USE_ARN_REGION_INI_NAME, NODE_USE_ARN_REGION_CONFIG_OPTIONS */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _bucketEndpointMiddleware__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bucketEndpointMiddleware */ "LBLv"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bucketEndpointMiddleware", function() { return _bucketEndpointMiddleware__WEBPACK_IMPORTED_MODULE_0__["bucketEndpointMiddleware"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bucketEndpointMiddlewareOptions", function() { return _bucketEndpointMiddleware__WEBPACK_IMPORTED_MODULE_0__["bucketEndpointMiddlewareOptions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getBucketEndpointPlugin", function() { return _bucketEndpointMiddleware__WEBPACK_IMPORTED_MODULE_0__["getBucketEndpointPlugin"]; }); /* harmony import */ var _bucketHostname__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bucketHostname */ "EDEm"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bucketHostname", function() { return _bucketHostname__WEBPACK_IMPORTED_MODULE_1__["bucketHostname"]; }); /* harmony import */ var _configurations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./configurations */ "zRbI"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveBucketEndpointConfig", function() { return _configurations__WEBPACK_IMPORTED_MODULE_2__["resolveBucketEndpointConfig"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NODE_USE_ARN_REGION_ENV_NAME", function() { return _configurations__WEBPACK_IMPORTED_MODULE_2__["NODE_USE_ARN_REGION_ENV_NAME"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NODE_USE_ARN_REGION_INI_NAME", function() { return _configurations__WEBPACK_IMPORTED_MODULE_2__["NODE_USE_ARN_REGION_INI_NAME"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NODE_USE_ARN_REGION_CONFIG_OPTIONS", function() { return _configurations__WEBPACK_IMPORTED_MODULE_2__["NODE_USE_ARN_REGION_CONFIG_OPTIONS"]; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9idWNrZXRFbmRwb2ludE1pZGRsZXdhcmVcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2J1Y2tldEhvc3RuYW1lXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9jb25maWd1cmF0aW9uc1wiO1xuIl19 /***/ }), /***/ "4suF": /*!**************************************************!*\ !*** ./node_modules/graphql/type/directives.mjs ***! \**************************************************/ /*! exports provided: isDirective, GraphQLDirective, GraphQLIncludeDirective, GraphQLSkipDirective, DEFAULT_DEPRECATION_REASON, GraphQLDeprecatedDirective, specifiedDirectives, isSpecifiedDirective */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isDirective", function() { return isDirective; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLDirective", function() { return GraphQLDirective; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLIncludeDirective", function() { return GraphQLIncludeDirective; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLSkipDirective", function() { return GraphQLSkipDirective; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_DEPRECATION_REASON", function() { return DEFAULT_DEPRECATION_REASON; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLDeprecatedDirective", function() { return GraphQLDeprecatedDirective; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "specifiedDirectives", function() { return specifiedDirectives; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSpecifiedDirective", function() { return isSpecifiedDirective; }); /* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./definition */ "axIb"); /* harmony import */ var _scalars__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./scalars */ "19Hc"); /* harmony import */ var _jsutils_defineToStringTag__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../jsutils/defineToStringTag */ "ZZnB"); /* harmony import */ var _jsutils_defineToJSON__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../jsutils/defineToJSON */ "vJkw"); /* harmony import */ var _jsutils_instanceOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../jsutils/instanceOf */ "Mw0p"); /* harmony import */ var _jsutils_invariant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../jsutils/invariant */ "2C6G"); /* harmony import */ var _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../language/directiveLocation */ "F8X2"); function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Test if the given value is a GraphQL directive. */ // eslint-disable-next-line no-redeclare function isDirective(directive) { return Object(_jsutils_instanceOf__WEBPACK_IMPORTED_MODULE_4__["default"])(directive, GraphQLDirective); } /** * Directives are used by the GraphQL runtime as a way of modifying execution * behavior. Type system creators will usually not create these directly. */ var GraphQLDirective = /*#__PURE__*/ function () { function GraphQLDirective(config) { _defineProperty(this, "name", void 0); _defineProperty(this, "description", void 0); _defineProperty(this, "locations", void 0); _defineProperty(this, "args", void 0); _defineProperty(this, "astNode", void 0); this.name = config.name; this.description = config.description; this.locations = config.locations; this.astNode = config.astNode; !config.name ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_5__["default"])(0, 'Directive must be named.') : void 0; !Array.isArray(config.locations) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_5__["default"])(0, 'Must provide locations for directive.') : void 0; var args = config.args; if (!args) { this.args = []; } else { !!Array.isArray(args) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_5__["default"])(0, "@".concat(config.name, " args must be an object with argument names as keys.")) : void 0; this.args = Object.keys(args).map(function (argName) { var arg = args[argName]; return { name: argName, description: arg.description === undefined ? null : arg.description, type: arg.type, defaultValue: arg.defaultValue, astNode: arg.astNode }; }); } } var _proto = GraphQLDirective.prototype; _proto.toString = function toString() { return '@' + this.name; }; return GraphQLDirective; }(); // Conditionally apply `[Symbol.toStringTag]` if `Symbol`s are supported Object(_jsutils_defineToStringTag__WEBPACK_IMPORTED_MODULE_2__["default"])(GraphQLDirective); Object(_jsutils_defineToJSON__WEBPACK_IMPORTED_MODULE_3__["default"])(GraphQLDirective); /** * Used to conditionally include fields or fragments. */ var GraphQLIncludeDirective = new GraphQLDirective({ name: 'include', description: 'Directs the executor to include this field or fragment only when ' + 'the `if` argument is true.', locations: [_language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].FIELD, _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].FRAGMENT_SPREAD, _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].INLINE_FRAGMENT], args: { if: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_0__["GraphQLNonNull"])(_scalars__WEBPACK_IMPORTED_MODULE_1__["GraphQLBoolean"]), description: 'Included when true.' } } }); /** * Used to conditionally skip (exclude) fields or fragments. */ var GraphQLSkipDirective = new GraphQLDirective({ name: 'skip', description: 'Directs the executor to skip this field or fragment when the `if` ' + 'argument is true.', locations: [_language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].FIELD, _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].FRAGMENT_SPREAD, _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].INLINE_FRAGMENT], args: { if: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_0__["GraphQLNonNull"])(_scalars__WEBPACK_IMPORTED_MODULE_1__["GraphQLBoolean"]), description: 'Skipped when true.' } } }); /** * Constant string used for default reason for a deprecation. */ var DEFAULT_DEPRECATION_REASON = 'No longer supported'; /** * Used to declare element of a GraphQL schema as deprecated. */ var GraphQLDeprecatedDirective = new GraphQLDirective({ name: 'deprecated', description: 'Marks an element of a GraphQL schema as no longer supported.', locations: [_language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].FIELD_DEFINITION, _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].ENUM_VALUE], args: { reason: { type: _scalars__WEBPACK_IMPORTED_MODULE_1__["GraphQLString"], description: 'Explains why this element was deprecated, usually also including a ' + 'suggestion for how to access supported similar data. Formatted using ' + 'the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).', defaultValue: DEFAULT_DEPRECATION_REASON } } }); /** * The full list of specified directives. */ var specifiedDirectives = [GraphQLIncludeDirective, GraphQLSkipDirective, GraphQLDeprecatedDirective]; function isSpecifiedDirective(directive) { return specifiedDirectives.some(function (specifiedDirective) { return specifiedDirective.name === directive.name; }); } /***/ }), /***/ "4uTw": /*!******************************************!*\ !*** ./node_modules/lodash/_castPath.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__(/*! ./isArray */ "Z0cm"), isKey = __webpack_require__(/*! ./_isKey */ "9ggG"), stringToPath = __webpack_require__(/*! ./_stringToPath */ "GNiM"), toString = __webpack_require__(/*! ./toString */ "dt0z"); /** * Casts `value` to a path array if it's not one. * * @private * @param {*} value The value to inspect. * @param {Object} [object] The object to query keys on. * @returns {Array} Returns the cast property path array. */ function castPath(value, object) { if (isArray(value)) { return value; } return isKey(value, object) ? [value] : stringToPath(toString(value)); } module.exports = castPath; /***/ }), /***/ "4wFL": /*!***********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/GetLabelDetectionCommand.js ***! \***********************************************************************************************/ /*! exports provided: GetLabelDetectionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetLabelDetectionCommand", function() { return GetLabelDetectionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetLabelDetectionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetLabelDetectionCommand, _super); // Start section: command_properties // End section: command_properties function GetLabelDetectionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetLabelDetectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetLabelDetectionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetLabelDetectionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetLabelDetectionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetLabelDetectionCommand"])(input, context); }; GetLabelDetectionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetLabelDetectionCommand"])(output, context); }; return GetLabelDetectionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetLabelDetectionCommand.js.map /***/ }), /***/ "4wMv": /*!********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionCommand.js ***! \********************************************************************************************/ /*! exports provided: GetSegmentVersionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionCommand", function() { return GetSegmentVersionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetSegmentVersionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSegmentVersionCommand, _super); // Start section: command_properties // End section: command_properties function GetSegmentVersionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetSegmentVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetSegmentVersionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSegmentVersionCommand"])(input, context); }; GetSegmentVersionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSegmentVersionCommand"])(output, context); }; return GetSegmentVersionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetSegmentVersionCommand.js.map /***/ }), /***/ "4yVj": /*!**************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/scheduled/schedulePromise.js ***! \**************************************************************************/ /*! exports provided: schedulePromise */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "schedulePromise", function() { return schedulePromise; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subscription */ "quSY"); function schedulePromise(input, scheduler) { return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => { const sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"](); sub.add(scheduler.schedule(() => input.then(value => { sub.add(scheduler.schedule(() => { subscriber.next(value); sub.add(scheduler.schedule(() => subscriber.complete())); })); }, err => { sub.add(scheduler.schedule(() => subscriber.error(err))); }))); return sub; }); } //# sourceMappingURL=schedulePromise.js.map /***/ }), /***/ "5+tZ": /*!*******************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/mergeMap.js ***! \*******************************************************************/ /*! exports provided: mergeMap, MergeMapOperator, MergeMapSubscriber, flatMap */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeMap", function() { return mergeMap; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeMapOperator", function() { return MergeMapOperator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeMapSubscriber", function() { return MergeMapSubscriber; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flatMap", function() { return flatMap; }); /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./map */ "lJxs"); /* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../observable/from */ "Cfvw"); /* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../innerSubscribe */ "zx2A"); function mergeMap(project, resultSelector, concurrent = Number.POSITIVE_INFINITY) { if (typeof resultSelector === 'function') { return (source) => source.pipe(mergeMap((a, i) => Object(_observable_from__WEBPACK_IMPORTED_MODULE_1__["from"])(project(a, i)).pipe(Object(_map__WEBPACK_IMPORTED_MODULE_0__["map"])((b, ii) => resultSelector(a, b, i, ii))), concurrent)); } else if (typeof resultSelector === 'number') { concurrent = resultSelector; } return (source) => source.lift(new MergeMapOperator(project, concurrent)); } class MergeMapOperator { constructor(project, concurrent = Number.POSITIVE_INFINITY) { this.project = project; this.concurrent = concurrent; } call(observer, source) { return source.subscribe(new MergeMapSubscriber(observer, this.project, this.concurrent)); } } class MergeMapSubscriber extends _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleOuterSubscriber"] { constructor(destination, project, concurrent = Number.POSITIVE_INFINITY) { super(destination); this.project = project; this.concurrent = concurrent; this.hasCompleted = false; this.buffer = []; this.active = 0; this.index = 0; } _next(value) { if (this.active < this.concurrent) { this._tryNext(value); } else { this.buffer.push(value); } } _tryNext(value) { let result; const index = this.index++; try { result = this.project(value, index); } catch (err) { this.destination.error(err); return; } this.active++; this._innerSub(result); } _innerSub(ish) { const innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleInnerSubscriber"](this); const destination = this.destination; destination.add(innerSubscriber); const innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["innerSubscribe"])(ish, innerSubscriber); if (innerSubscription !== innerSubscriber) { destination.add(innerSubscription); } } _complete() { this.hasCompleted = true; if (this.active === 0 && this.buffer.length === 0) { this.destination.complete(); } this.unsubscribe(); } notifyNext(innerValue) { this.destination.next(innerValue); } notifyComplete() { const buffer = this.buffer; this.active--; if (buffer.length > 0) { this._next(buffer.shift()); } else if (this.active === 0 && this.hasCompleted) { this.destination.complete(); } } } const flatMap = mergeMap; //# sourceMappingURL=mergeMap.js.map /***/ }), /***/ "51Bx": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/mergeScan.js ***! \********************************************************************/ /*! exports provided: mergeScan, MergeScanOperator, MergeScanSubscriber */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeScan", function() { return mergeScan; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeScanOperator", function() { return MergeScanOperator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeScanSubscriber", function() { return MergeScanSubscriber; }); /* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../innerSubscribe */ "zx2A"); function mergeScan(accumulator, seed, concurrent = Number.POSITIVE_INFINITY) { return (source) => source.lift(new MergeScanOperator(accumulator, seed, concurrent)); } class MergeScanOperator { constructor(accumulator, seed, concurrent) { this.accumulator = accumulator; this.seed = seed; this.concurrent = concurrent; } call(subscriber, source) { return source.subscribe(new MergeScanSubscriber(subscriber, this.accumulator, this.seed, this.concurrent)); } } class MergeScanSubscriber extends _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"] { constructor(destination, accumulator, acc, concurrent) { super(destination); this.accumulator = accumulator; this.acc = acc; this.concurrent = concurrent; this.hasValue = false; this.hasCompleted = false; this.buffer = []; this.active = 0; this.index = 0; } _next(value) { if (this.active < this.concurrent) { const index = this.index++; const destination = this.destination; let ish; try { const { accumulator } = this; ish = accumulator(this.acc, value, index); } catch (e) { return destination.error(e); } this.active++; this._innerSub(ish); } else { this.buffer.push(value); } } _innerSub(ish) { const innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](this); const destination = this.destination; destination.add(innerSubscriber); const innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(ish, innerSubscriber); if (innerSubscription !== innerSubscriber) { destination.add(innerSubscription); } } _complete() { this.hasCompleted = true; if (this.active === 0 && this.buffer.length === 0) { if (this.hasValue === false) { this.destination.next(this.acc); } this.destination.complete(); } this.unsubscribe(); } notifyNext(innerValue) { const { destination } = this; this.acc = innerValue; this.hasValue = true; destination.next(innerValue); } notifyComplete() { const buffer = this.buffer; this.active--; if (buffer.length > 0) { this._next(buffer.shift()); } else if (this.active === 0 && this.hasCompleted) { if (this.hasValue === false) { this.destination.next(this.acc); } this.destination.complete(); } } } //# sourceMappingURL=mergeScan.js.map /***/ }), /***/ "51Dv": /*!****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/InnerSubscriber.js ***! \****************************************************************/ /*! exports provided: InnerSubscriber */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InnerSubscriber", function() { return InnerSubscriber; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Subscriber */ "7o/Q"); class InnerSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(parent, outerValue, outerIndex) { super(); this.parent = parent; this.outerValue = outerValue; this.outerIndex = outerIndex; this.index = 0; } _next(value) { this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this); } _error(error) { this.parent.notifyError(error, this); this.unsubscribe(); } _complete() { this.parent.notifyComplete(this); this.unsubscribe(); } } //# sourceMappingURL=InnerSubscriber.js.map /***/ }), /***/ "51nL": /*!**********************************************!*\ !*** ./node_modules/graphql/type/schema.mjs ***! \**********************************************/ /*! exports provided: isSchema, GraphQLSchema */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSchema", function() { return isSchema; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLSchema", function() { return GraphQLSchema; }); /* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./definition */ "axIb"); /* harmony import */ var _directives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./directives */ "4suF"); /* harmony import */ var _jsutils_inspect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../jsutils/inspect */ "rWdj"); /* harmony import */ var _introspection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./introspection */ "LViu"); /* harmony import */ var _jsutils_defineToStringTag__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../jsutils/defineToStringTag */ "ZZnB"); /* harmony import */ var _jsutils_find__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../jsutils/find */ "YQzk"); /* harmony import */ var _jsutils_instanceOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../jsutils/instanceOf */ "Mw0p"); /* harmony import */ var _jsutils_invariant__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../jsutils/invariant */ "2C6G"); /* harmony import */ var _jsutils_objectValues__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../jsutils/objectValues */ "S4Ci"); function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ // eslint-disable-next-line no-redeclare function isSchema(schema) { return Object(_jsutils_instanceOf__WEBPACK_IMPORTED_MODULE_6__["default"])(schema, GraphQLSchema); } /** * Schema Definition * * A Schema is created by supplying the root types of each type of operation, * query and mutation (optional). A schema definition is then supplied to the * validator and executor. * * Example: * * const MyAppSchema = new GraphQLSchema({ * query: MyAppQueryRootType, * mutation: MyAppMutationRootType, * }) * * Note: If an array of `directives` are provided to GraphQLSchema, that will be * the exact list of directives represented and allowed. If `directives` is not * provided then a default set of the specified directives (e.g. @include and * @skip) will be used. If you wish to provide *additional* directives to these * specified directives, you must explicitly declare them. Example: * * const MyAppSchema = new GraphQLSchema({ * ... * directives: specifiedDirectives.concat([ myCustomDirective ]), * }) * */ var GraphQLSchema = /*#__PURE__*/ function () { // Used as a cache for validateSchema(). // Referenced by validateSchema(). function GraphQLSchema(config) { _defineProperty(this, "astNode", void 0); _defineProperty(this, "extensionASTNodes", void 0); _defineProperty(this, "_queryType", void 0); _defineProperty(this, "_mutationType", void 0); _defineProperty(this, "_subscriptionType", void 0); _defineProperty(this, "_directives", void 0); _defineProperty(this, "_typeMap", void 0); _defineProperty(this, "_implementations", void 0); _defineProperty(this, "_possibleTypeMap", void 0); _defineProperty(this, "__validationErrors", void 0); _defineProperty(this, "__allowedLegacyNames", void 0); // If this schema was built from a source known to be valid, then it may be // marked with assumeValid to avoid an additional type system validation. if (config && config.assumeValid) { this.__validationErrors = []; } else { // Otherwise check for common mistakes during construction to produce // clear and early error messages. !(_typeof(config) === 'object') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_7__["default"])(0, 'Must provide configuration object.') : void 0; !(!config.types || Array.isArray(config.types)) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_7__["default"])(0, "\"types\" must be Array if provided but got: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_2__["default"])(config.types), ".")) : void 0; !(!config.directives || Array.isArray(config.directives)) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_7__["default"])(0, '"directives" must be Array if provided but got: ' + "".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_2__["default"])(config.directives), ".")) : void 0; !(!config.allowedLegacyNames || Array.isArray(config.allowedLegacyNames)) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_7__["default"])(0, '"allowedLegacyNames" must be Array if provided but got: ' + "".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_2__["default"])(config.allowedLegacyNames), ".")) : void 0; } this.__allowedLegacyNames = config.allowedLegacyNames || []; this._queryType = config.query; this._mutationType = config.mutation; this._subscriptionType = config.subscription; // Provide specified directives (e.g. @include and @skip) by default. this._directives = config.directives || _directives__WEBPACK_IMPORTED_MODULE_1__["specifiedDirectives"]; this.astNode = config.astNode; this.extensionASTNodes = config.extensionASTNodes; // Build type map now to detect any errors within this schema. var initialTypes = [this.getQueryType(), this.getMutationType(), this.getSubscriptionType(), _introspection__WEBPACK_IMPORTED_MODULE_3__["__Schema"]]; var types = config.types; if (types) { initialTypes = initialTypes.concat(types); } // Keep track of all types referenced within the schema. var typeMap = Object.create(null); // First by deeply visiting all initial types. typeMap = initialTypes.reduce(typeMapReducer, typeMap); // Then by deeply visiting all directive types. typeMap = this._directives.reduce(typeMapDirectiveReducer, typeMap); // Storing the resulting map for reference by the schema. this._typeMap = typeMap; // Keep track of all implementations by interface name. this._implementations = Object.create(null); var _arr = Object.keys(this._typeMap); for (var _i = 0; _i < _arr.length; _i++) { var typeName = _arr[_i]; var type = this._typeMap[typeName]; if (Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(type)) { var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = type.getInterfaces()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var iface = _step.value; if (Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isInterfaceType"])(iface)) { var impls = this._implementations[iface.name]; if (impls) { impls.push(type); } else { this._implementations[iface.name] = [type]; } } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } } else if (Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isAbstractType"])(type) && !this._implementations[type.name]) { this._implementations[type.name] = []; } } } var _proto = GraphQLSchema.prototype; _proto.getQueryType = function getQueryType() { return this._queryType; }; _proto.getMutationType = function getMutationType() { return this._mutationType; }; _proto.getSubscriptionType = function getSubscriptionType() { return this._subscriptionType; }; _proto.getTypeMap = function getTypeMap() { return this._typeMap; }; _proto.getType = function getType(name) { return this.getTypeMap()[name]; }; _proto.getPossibleTypes = function getPossibleTypes(abstractType) { if (Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isUnionType"])(abstractType)) { return abstractType.getTypes(); } return this._implementations[abstractType.name]; }; _proto.isPossibleType = function isPossibleType(abstractType, possibleType) { var possibleTypeMap = this._possibleTypeMap; if (!possibleTypeMap) { this._possibleTypeMap = possibleTypeMap = Object.create(null); } if (!possibleTypeMap[abstractType.name]) { var possibleTypes = this.getPossibleTypes(abstractType); possibleTypeMap[abstractType.name] = possibleTypes.reduce(function (map, type) { return map[type.name] = true, map; }, Object.create(null)); } return Boolean(possibleTypeMap[abstractType.name][possibleType.name]); }; _proto.getDirectives = function getDirectives() { return this._directives; }; _proto.getDirective = function getDirective(name) { return Object(_jsutils_find__WEBPACK_IMPORTED_MODULE_5__["default"])(this.getDirectives(), function (directive) { return directive.name === name; }); }; return GraphQLSchema; }(); // Conditionally apply `[Symbol.toStringTag]` if `Symbol`s are supported Object(_jsutils_defineToStringTag__WEBPACK_IMPORTED_MODULE_4__["default"])(GraphQLSchema); function typeMapReducer(map, type) { if (!type) { return map; } if (Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isWrappingType"])(type)) { return typeMapReducer(map, type.ofType); } if (map[type.name]) { !(map[type.name] === type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_7__["default"])(0, 'Schema must contain unique named types but contains multiple ' + "types named \"".concat(type.name, "\".")) : void 0; return map; } map[type.name] = type; var reducedMap = map; if (Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isUnionType"])(type)) { reducedMap = type.getTypes().reduce(typeMapReducer, reducedMap); } if (Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(type)) { reducedMap = type.getInterfaces().reduce(typeMapReducer, reducedMap); } if (Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(type) || Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isInterfaceType"])(type)) { var _iteratorNormalCompletion2 = true; var _didIteratorError2 = false; var _iteratorError2 = undefined; try { for (var _iterator2 = Object(_jsutils_objectValues__WEBPACK_IMPORTED_MODULE_8__["default"])(type.getFields())[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { var field = _step2.value; if (field.args) { var fieldArgTypes = field.args.map(function (arg) { return arg.type; }); reducedMap = fieldArgTypes.reduce(typeMapReducer, reducedMap); } reducedMap = typeMapReducer(reducedMap, field.type); } } catch (err) { _didIteratorError2 = true; _iteratorError2 = err; } finally { try { if (!_iteratorNormalCompletion2 && _iterator2.return != null) { _iterator2.return(); } } finally { if (_didIteratorError2) { throw _iteratorError2; } } } } if (Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isInputObjectType"])(type)) { var _iteratorNormalCompletion3 = true; var _didIteratorError3 = false; var _iteratorError3 = undefined; try { for (var _iterator3 = Object(_jsutils_objectValues__WEBPACK_IMPORTED_MODULE_8__["default"])(type.getFields())[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { var _field = _step3.value; reducedMap = typeMapReducer(reducedMap, _field.type); } } catch (err) { _didIteratorError3 = true; _iteratorError3 = err; } finally { try { if (!_iteratorNormalCompletion3 && _iterator3.return != null) { _iterator3.return(); } } finally { if (_didIteratorError3) { throw _iteratorError3; } } } } return reducedMap; } function typeMapDirectiveReducer(map, directive) { // Directives are not validated until validateSchema() is called. if (!Object(_directives__WEBPACK_IMPORTED_MODULE_1__["isDirective"])(directive)) { return map; } return directive.args.reduce(function (_map, arg) { return typeMapReducer(_map, arg.type); }, map); } /***/ }), /***/ "59Yy": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationsCommand.js ***! \*******************************************************************************************************/ /*! exports provided: GetRecommenderConfigurationsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsCommand", function() { return GetRecommenderConfigurationsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetRecommenderConfigurationsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetRecommenderConfigurationsCommand, _super); // Start section: command_properties // End section: command_properties function GetRecommenderConfigurationsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetRecommenderConfigurationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetRecommenderConfigurationsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetRecommenderConfigurationsCommand"])(input, context); }; GetRecommenderConfigurationsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetRecommenderConfigurationsCommand"])(output, context); }; return GetRecommenderConfigurationsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetRecommenderConfigurationsCommand.js.map /***/ }), /***/ "5AGO": /*!****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/ListDocumentClassifiersCommand.js ***! \****************************************************************************************************/ /*! exports provided: ListDocumentClassifiersCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListDocumentClassifiersCommand", function() { return ListDocumentClassifiersCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListDocumentClassifiersCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListDocumentClassifiersCommand, _super); // Start section: command_properties // End section: command_properties function ListDocumentClassifiersCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListDocumentClassifiersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListDocumentClassifiersRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListDocumentClassifiersResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListDocumentClassifiersCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListDocumentClassifiersCommand"])(input, context); }; ListDocumentClassifiersCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListDocumentClassifiersCommand"])(output, context); }; return ListDocumentClassifiersCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListDocumentClassifiersCommand.js.map /***/ }), /***/ "5AXK": /*!*******************************************************************************!*\ !*** ./node_modules/@aws-sdk/eventstream-serde-universal/dist/es/provider.js ***! \*******************************************************************************/ /*! exports provided: eventStreamSerdeProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eventStreamSerdeProvider", function() { return eventStreamSerdeProvider; }); /* harmony import */ var _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EventStreamMarshaller */ "7IyW"); /** NodeJS event stream utils provider */ var eventStreamSerdeProvider = function (options) { return new _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_0__["EventStreamMarshaller"](options); }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFFaEUseUNBQXlDO0FBQ3pDLE1BQU0sQ0FBQyxJQUFNLHdCQUF3QixHQUE2QixVQUFDLE9BSWxFLElBQUssT0FBQSxJQUFJLHFCQUFxQixDQUFDLE9BQU8sQ0FBQyxFQUFsQyxDQUFrQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRGVjb2RlciwgRW5jb2RlciwgRXZlbnRTaWduZXIsIEV2ZW50U3RyZWFtU2VyZGVQcm92aWRlciwgUHJvdmlkZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuaW1wb3J0IHsgRXZlbnRTdHJlYW1NYXJzaGFsbGVyIH0gZnJvbSBcIi4vRXZlbnRTdHJlYW1NYXJzaGFsbGVyXCI7XG5cbi8qKiBOb2RlSlMgZXZlbnQgc3RyZWFtIHV0aWxzIHByb3ZpZGVyICovXG5leHBvcnQgY29uc3QgZXZlbnRTdHJlYW1TZXJkZVByb3ZpZGVyOiBFdmVudFN0cmVhbVNlcmRlUHJvdmlkZXIgPSAob3B0aW9uczoge1xuICB1dGY4RW5jb2RlcjogRW5jb2RlcjtcbiAgdXRmOERlY29kZXI6IERlY29kZXI7XG4gIGV2ZW50U2lnbmVyOiBFdmVudFNpZ25lciB8IFByb3ZpZGVyPEV2ZW50U2lnbmVyPjtcbn0pID0+IG5ldyBFdmVudFN0cmVhbU1hcnNoYWxsZXIob3B0aW9ucyk7XG4iXX0= /***/ }), /***/ "5B2Y": /*!*****************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/scheduled/scheduleObservable.js ***! \*****************************************************************************/ /*! exports provided: scheduleObservable */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheduleObservable", function() { return scheduleObservable; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subscription */ "quSY"); /* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../symbol/observable */ "kJWO"); function scheduleObservable(input, scheduler) { return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => { const sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"](); sub.add(scheduler.schedule(() => { const observable = input[_symbol_observable__WEBPACK_IMPORTED_MODULE_2__["observable"]](); sub.add(observable.subscribe({ next(value) { sub.add(scheduler.schedule(() => subscriber.next(value))); }, error(err) { sub.add(scheduler.schedule(() => subscriber.error(err))); }, complete() { sub.add(scheduler.schedule(() => subscriber.complete())); }, })); })); return sub; }); } //# sourceMappingURL=scheduleObservable.js.map /***/ }), /***/ "5Etk": /*!****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/ListIdentityPoolsCommand.js ***! \****************************************************************************************************/ /*! exports provided: ListIdentityPoolsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListIdentityPoolsCommand", function() { return ListIdentityPoolsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListIdentityPoolsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListIdentityPoolsCommand, _super); // Start section: command_properties // End section: command_properties function ListIdentityPoolsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListIdentityPoolsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__["getAwsAuthPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListIdentityPoolsInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListIdentityPoolsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListIdentityPoolsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListIdentityPoolsCommand"])(input, context); }; ListIdentityPoolsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListIdentityPoolsCommand"])(output, context); }; return ListIdentityPoolsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=ListIdentityPoolsCommand.js.map /***/ }), /***/ "5PMP": /*!************************************************************!*\ !*** ./node_modules/graphql/utilities/assertValidName.mjs ***! \************************************************************/ /*! exports provided: assertValidName, isValidNameError */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertValidName", function() { return assertValidName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidNameError", function() { return isValidNameError; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../error/GraphQLError */ "dWS+"); /* harmony import */ var _jsutils_invariant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/invariant */ "2C6G"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ var NAME_RX = /^[_a-zA-Z][_a-zA-Z0-9]*$/; /** * Upholds the spec rules about naming. */ function assertValidName(name) { var error = isValidNameError(name); if (error) { throw error; } return name; } /** * Returns an Error if a name is invalid. */ function isValidNameError(name, node) { !(typeof name === 'string') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_1__["default"])(0, 'Expected string') : void 0; if (name.length > 1 && name[0] === '_' && name[1] === '_') { return new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"]("Name \"".concat(name, "\" must not begin with \"__\", which is reserved by ") + 'GraphQL introspection.', node); } if (!NAME_RX.test(name)) { return new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"]("Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but \"".concat(name, "\" does not."), node); } } /***/ }), /***/ "5UNh": /*!*********************************************************************!*\ !*** ./node_modules/@aws-sdk/xml-builder/dist/es/escape-element.js ***! \*********************************************************************/ /*! exports provided: escapeElement */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeElement", function() { return escapeElement; }); /** * Escapes characters that can not be in an XML element. */ function escapeElement(value) { return value.replace(/&/g, "&").replace(//g, ">"); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNjYXBlLWVsZW1lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZXNjYXBlLWVsZW1lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFDSCxNQUFNLFVBQVUsYUFBYSxDQUFDLEtBQWE7SUFDekMsT0FBTyxLQUFLLENBQUMsT0FBTyxDQUFDLElBQUksRUFBRSxPQUFPLENBQUMsQ0FBQyxPQUFPLENBQUMsSUFBSSxFQUFFLE1BQU0sQ0FBQyxDQUFDLE9BQU8sQ0FBQyxJQUFJLEVBQUUsTUFBTSxDQUFDLENBQUM7QUFDbEYsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXNjYXBlcyBjaGFyYWN0ZXJzIHRoYXQgY2FuIG5vdCBiZSBpbiBhbiBYTUwgZWxlbWVudC5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGVzY2FwZUVsZW1lbnQodmFsdWU6IHN0cmluZyk6IHN0cmluZyB7XG4gIHJldHVybiB2YWx1ZS5yZXBsYWNlKC8mL2csIFwiJmFtcDtcIikucmVwbGFjZSgvPC9nLCBcIiZsdDtcIikucmVwbGFjZSgvPi9nLCBcIiZndDtcIik7XG59XG4iXX0= /***/ }), /***/ "5WWr": /*!****************************************************************!*\ !*** ./node_modules/@aws-sdk/client-textract/dist/es/index.js ***! \****************************************************************/ /*! exports provided: TextractClient, Textract, AnalyzeDocumentCommand, DetectDocumentTextCommand, GetDocumentAnalysisCommand, GetDocumentTextDetectionCommand, StartDocumentAnalysisCommand, StartDocumentTextDetectionCommand, AccessDeniedException, AnalyzeDocumentRequest, AnalyzeDocumentResponse, BadDocumentException, Block, BlockType, BoundingBox, ContentClassifier, DetectDocumentTextRequest, DetectDocumentTextResponse, Document, DocumentLocation, DocumentMetadata, DocumentTooLargeException, EntityType, FeatureType, Geometry, GetDocumentAnalysisRequest, GetDocumentAnalysisResponse, GetDocumentTextDetectionRequest, GetDocumentTextDetectionResponse, HumanLoopActivationOutput, HumanLoopConfig, HumanLoopDataAttributes, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, InternalServerError, InvalidJobIdException, InvalidParameterException, InvalidS3ObjectException, JobStatus, LimitExceededException, NotificationChannel, Point, ProvisionedThroughputExceededException, Relationship, RelationshipType, S3Object, SelectionStatus, StartDocumentAnalysisRequest, StartDocumentAnalysisResponse, StartDocumentTextDetectionRequest, StartDocumentTextDetectionResponse, ThrottlingException, UnsupportedDocumentException, Warning */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _TextractClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TextractClient */ "a2T7"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextractClient", function() { return _TextractClient__WEBPACK_IMPORTED_MODULE_0__["TextractClient"]; }); /* harmony import */ var _Textract__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Textract */ "+EvU"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Textract", function() { return _Textract__WEBPACK_IMPORTED_MODULE_1__["Textract"]; }); /* harmony import */ var _commands_AnalyzeDocumentCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/AnalyzeDocumentCommand */ "fwbe"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnalyzeDocumentCommand", function() { return _commands_AnalyzeDocumentCommand__WEBPACK_IMPORTED_MODULE_2__["AnalyzeDocumentCommand"]; }); /* harmony import */ var _commands_DetectDocumentTextCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/DetectDocumentTextCommand */ "ENBt"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectDocumentTextCommand", function() { return _commands_DetectDocumentTextCommand__WEBPACK_IMPORTED_MODULE_3__["DetectDocumentTextCommand"]; }); /* harmony import */ var _commands_GetDocumentAnalysisCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/GetDocumentAnalysisCommand */ "knCa"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetDocumentAnalysisCommand", function() { return _commands_GetDocumentAnalysisCommand__WEBPACK_IMPORTED_MODULE_4__["GetDocumentAnalysisCommand"]; }); /* harmony import */ var _commands_GetDocumentTextDetectionCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/GetDocumentTextDetectionCommand */ "VIrK"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetDocumentTextDetectionCommand", function() { return _commands_GetDocumentTextDetectionCommand__WEBPACK_IMPORTED_MODULE_5__["GetDocumentTextDetectionCommand"]; }); /* harmony import */ var _commands_StartDocumentAnalysisCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/StartDocumentAnalysisCommand */ "v8Ef"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartDocumentAnalysisCommand", function() { return _commands_StartDocumentAnalysisCommand__WEBPACK_IMPORTED_MODULE_6__["StartDocumentAnalysisCommand"]; }); /* harmony import */ var _commands_StartDocumentTextDetectionCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/StartDocumentTextDetectionCommand */ "HsTK"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartDocumentTextDetectionCommand", function() { return _commands_StartDocumentTextDetectionCommand__WEBPACK_IMPORTED_MODULE_7__["StartDocumentTextDetectionCommand"]; }); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./models/index */ "glqB"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AccessDeniedException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["AccessDeniedException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnalyzeDocumentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["AnalyzeDocumentRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnalyzeDocumentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["AnalyzeDocumentResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BadDocumentException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["BadDocumentException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Block", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["Block"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BlockType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["BlockType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BoundingBox", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["BoundingBox"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContentClassifier", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["ContentClassifier"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectDocumentTextRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["DetectDocumentTextRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectDocumentTextResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["DetectDocumentTextResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Document", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["Document"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentLocation", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["DocumentLocation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentMetadata", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["DocumentMetadata"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentTooLargeException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["DocumentTooLargeException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EntityType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["EntityType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FeatureType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["FeatureType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Geometry", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["Geometry"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetDocumentAnalysisRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["GetDocumentAnalysisRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetDocumentAnalysisResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["GetDocumentAnalysisResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetDocumentTextDetectionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["GetDocumentTextDetectionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetDocumentTextDetectionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["GetDocumentTextDetectionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HumanLoopActivationOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["HumanLoopActivationOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HumanLoopConfig", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["HumanLoopConfig"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HumanLoopDataAttributes", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["HumanLoopDataAttributes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HumanLoopQuotaExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["HumanLoopQuotaExceededException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IdempotentParameterMismatchException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["IdempotentParameterMismatchException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InternalServerError", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["InternalServerError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidJobIdException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["InvalidJobIdException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidParameterException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["InvalidParameterException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidS3ObjectException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["InvalidS3ObjectException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JobStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["JobStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["LimitExceededException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationChannel", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["NotificationChannel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Point", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["Point"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProvisionedThroughputExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["ProvisionedThroughputExceededException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Relationship", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["Relationship"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RelationshipType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["RelationshipType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3Object", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["S3Object"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["SelectionStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartDocumentAnalysisRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["StartDocumentAnalysisRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartDocumentAnalysisResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["StartDocumentAnalysisResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartDocumentTextDetectionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["StartDocumentTextDetectionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartDocumentTextDetectionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["StartDocumentTextDetectionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThrottlingException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["ThrottlingException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UnsupportedDocumentException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["UnsupportedDocumentException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Warning", function() { return _models_index__WEBPACK_IMPORTED_MODULE_8__["Warning"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "5XLS": /*!***************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsSandboxChannelCommand.js ***! \***************************************************************************************************/ /*! exports provided: UpdateApnsSandboxChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelCommand", function() { return UpdateApnsSandboxChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UpdateApnsSandboxChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateApnsSandboxChannelCommand, _super); // Start section: command_properties // End section: command_properties function UpdateApnsSandboxChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UpdateApnsSandboxChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsSandboxChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsSandboxChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UpdateApnsSandboxChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateApnsSandboxChannelCommand"])(input, context); }; UpdateApnsSandboxChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateApnsSandboxChannelCommand"])(output, context); }; return UpdateApnsSandboxChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=UpdateApnsSandboxChannelCommand.js.map /***/ }), /***/ "5XwX": /*!***************************************************!*\ !*** ./node_modules/graphql/execution/values.mjs ***! \***************************************************/ /*! exports provided: getVariableValues, getArgumentValues, getDirectiveValues */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getVariableValues", function() { return getVariableValues; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getArgumentValues", function() { return getArgumentValues; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDirectiveValues", function() { return getDirectiveValues; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../error/GraphQLError */ "dWS+"); /* harmony import */ var _jsutils_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/find */ "YQzk"); /* harmony import */ var _jsutils_inspect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../jsutils/inspect */ "rWdj"); /* harmony import */ var _jsutils_invariant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../jsutils/invariant */ "2C6G"); /* harmony import */ var _jsutils_keyMap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../jsutils/keyMap */ "kBjl"); /* harmony import */ var _utilities_coerceValue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utilities/coerceValue */ "1MZE"); /* harmony import */ var _utilities_typeFromAST__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utilities/typeFromAST */ "umOc"); /* harmony import */ var _utilities_valueFromAST__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utilities/valueFromAST */ "Mbdf"); /* harmony import */ var _language_kinds__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../language/kinds */ "/jXB"); /* harmony import */ var _language_printer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../language/printer */ "dQau"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../type/definition */ "axIb"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Prepares an object map of variableValues of the correct type based on the * provided variable definitions and arbitrary input. If the input cannot be * parsed to match the variable definitions, a GraphQLError will be thrown. * * Note: The returned value is a plain Object with a prototype, since it is * exposed to user code. Care should be taken to not pull values from the * Object prototype. */ function getVariableValues(schema, varDefNodes, inputs) { var errors = []; var coercedValues = {}; for (var i = 0; i < varDefNodes.length; i++) { var varDefNode = varDefNodes[i]; var varName = varDefNode.variable.name.value; var varType = Object(_utilities_typeFromAST__WEBPACK_IMPORTED_MODULE_6__["typeFromAST"])(schema, varDefNode.type); if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["isInputType"])(varType)) { // Must use input types for variables. This should be caught during // validation, however is checked again here for safety. errors.push(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"]("Variable \"$".concat(varName, "\" expected value of type ") + "\"".concat(Object(_language_printer__WEBPACK_IMPORTED_MODULE_9__["print"])(varDefNode.type), "\" which cannot be used as an input type."), [varDefNode.type])); } else { var hasValue = hasOwnProperty(inputs, varName); var value = hasValue ? inputs[varName] : undefined; if (!hasValue && varDefNode.defaultValue) { // If no value was provided to a variable with a default value, // use the default value. coercedValues[varName] = Object(_utilities_valueFromAST__WEBPACK_IMPORTED_MODULE_7__["valueFromAST"])(varDefNode.defaultValue, varType); } else if ((!hasValue || value === null) && Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["isNonNullType"])(varType)) { // If no value or a nullish value was provided to a variable with a // non-null type (required), produce an error. errors.push(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](hasValue ? "Variable \"$".concat(varName, "\" of non-null type ") + "\"".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_2__["default"])(varType), "\" must not be null.") : "Variable \"$".concat(varName, "\" of required type ") + "\"".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_2__["default"])(varType), "\" was not provided."), [varDefNode])); } else if (hasValue) { if (value === null) { // If the explicit value `null` was provided, an entry in the coerced // values must exist as the value `null`. coercedValues[varName] = null; } else { // Otherwise, a non-null value was provided, coerce it to the expected // type or report an error if coercion fails. var coerced = Object(_utilities_coerceValue__WEBPACK_IMPORTED_MODULE_5__["coerceValue"])(value, varType, varDefNode); var coercionErrors = coerced.errors; if (coercionErrors) { var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = coercionErrors[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var error = _step.value; error.message = "Variable \"$".concat(varName, "\" got invalid ") + "value ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_2__["default"])(value), "; ").concat(error.message); } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } errors.push.apply(errors, coercionErrors); } else { coercedValues[varName] = coerced.value; } } } } } return errors.length === 0 ? { errors: undefined, coerced: coercedValues } : { errors: errors, coerced: undefined }; } /** * Prepares an object map of argument values given a list of argument * definitions and list of argument AST nodes. * * Note: The returned value is a plain Object with a prototype, since it is * exposed to user code. Care should be taken to not pull values from the * Object prototype. */ function getArgumentValues(def, node, variableValues) { var coercedValues = {}; var argDefs = def.args; var argNodes = node.arguments; if (!argDefs || !argNodes) { return coercedValues; } var argNodeMap = Object(_jsutils_keyMap__WEBPACK_IMPORTED_MODULE_4__["default"])(argNodes, function (arg) { return arg.name.value; }); for (var i = 0; i < argDefs.length; i++) { var argDef = argDefs[i]; var name = argDef.name; var argType = argDef.type; var argumentNode = argNodeMap[name]; var hasValue = void 0; var isNull = void 0; if (argumentNode && argumentNode.value.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_8__["Kind"].VARIABLE) { var variableName = argumentNode.value.name.value; hasValue = variableValues && hasOwnProperty(variableValues, variableName); isNull = variableValues && variableValues[variableName] === null; } else { hasValue = argumentNode != null; isNull = argumentNode && argumentNode.value.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_8__["Kind"].NULL; } if (!hasValue && argDef.defaultValue !== undefined) { // If no argument was provided where the definition has a default value, // use the default value. coercedValues[name] = argDef.defaultValue; } else if ((!hasValue || isNull) && Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["isNonNullType"])(argType)) { // If no argument or a null value was provided to an argument with a // non-null type (required), produce a field error. if (isNull) { throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"]("Argument \"".concat(name, "\" of non-null type \"").concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_2__["default"])(argType), "\" ") + 'must not be null.', [argumentNode.value]); } else if (argumentNode && argumentNode.value.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_8__["Kind"].VARIABLE) { var _variableName = argumentNode.value.name.value; throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"]("Argument \"".concat(name, "\" of required type \"").concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_2__["default"])(argType), "\" ") + "was provided the variable \"$".concat(_variableName, "\" ") + 'which was not provided a runtime value.', [argumentNode.value]); } else { throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"]("Argument \"".concat(name, "\" of required type \"").concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_2__["default"])(argType), "\" ") + 'was not provided.', [node]); } } else if (hasValue) { if (argumentNode.value.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_8__["Kind"].NULL) { // If the explicit value `null` was provided, an entry in the coerced // values must exist as the value `null`. coercedValues[name] = null; } else if (argumentNode.value.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_8__["Kind"].VARIABLE) { var _variableName2 = argumentNode.value.name.value; !variableValues ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_3__["default"])(0, 'Must exist for hasValue to be true.') : void 0; // Note: This does no further checking that this variable is correct. // This assumes that this query has been validated and the variable // usage here is of the correct type. coercedValues[name] = variableValues[_variableName2]; } else { var valueNode = argumentNode.value; var coercedValue = Object(_utilities_valueFromAST__WEBPACK_IMPORTED_MODULE_7__["valueFromAST"])(valueNode, argType, variableValues); if (coercedValue === undefined) { // Note: ValuesOfCorrectType validation should catch this before // execution. This is a runtime check to ensure execution does not // continue with an invalid argument value. throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"]("Argument \"".concat(name, "\" has invalid value ").concat(Object(_language_printer__WEBPACK_IMPORTED_MODULE_9__["print"])(valueNode), "."), [argumentNode.value]); } coercedValues[name] = coercedValue; } } } return coercedValues; } /** * Prepares an object map of argument values given a directive definition * and a AST node which may contain directives. Optionally also accepts a map * of variable values. * * If the directive does not exist on the node, returns undefined. * * Note: The returned value is a plain Object with a prototype, since it is * exposed to user code. Care should be taken to not pull values from the * Object prototype. */ function getDirectiveValues(directiveDef, node, variableValues) { var directiveNode = node.directives && Object(_jsutils_find__WEBPACK_IMPORTED_MODULE_1__["default"])(node.directives, function (directive) { return directive.name.value === directiveDef.name; }); if (directiveNode) { return getArgumentValues(directiveDef, directiveNode, variableValues); } } function hasOwnProperty(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } /***/ }), /***/ "5b7z": /*!***************************************************************!*\ !*** ./node_modules/@aws-amplify/auth/lib/OAuth/urlOpener.js ***! \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); var SELF = '_self'; exports.launchUri = function (url) { var windowProxy = window.open(url, SELF); if (windowProxy) { return Promise.resolve(windowProxy); } else { return Promise.reject(); } }; //# sourceMappingURL=urlOpener.js.map /***/ }), /***/ "5hen": /*!***************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/DescribeIdentityCommand.js ***! \***************************************************************************************************/ /*! exports provided: DescribeIdentityCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeIdentityCommand", function() { return DescribeIdentityCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DescribeIdentityCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeIdentityCommand, _super); // Start section: command_properties // End section: command_properties function DescribeIdentityCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DescribeIdentityCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__["getAwsAuthPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeIdentityInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["IdentityDescription"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DescribeIdentityCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeIdentityCommand"])(input, context); }; DescribeIdentityCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeIdentityCommand"])(output, context); }; return DescribeIdentityCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=DescribeIdentityCommand.js.map /***/ }), /***/ "5oMp": /*!*******************************************************!*\ !*** ./node_modules/axios/lib/helpers/combineURLs.js ***! \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Creates a new URL by combining the specified URLs * * @param {string} baseURL The base URL * @param {string} relativeURL The relative URL * @returns {string} The combined URL */ module.exports = function combineURLs(baseURL, relativeURL) { return relativeURL ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL; }; /***/ }), /***/ "5tOo": /*!******************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-sdk-s3/dist/es/index.js ***! \******************************************************************/ /*! exports provided: validateBucketNameMiddleware, validateBucketNameMiddlewareOptions, getValidateBucketNamePlugin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _validate_bucket_name__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate-bucket-name */ "WIb/"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "validateBucketNameMiddleware", function() { return _validate_bucket_name__WEBPACK_IMPORTED_MODULE_0__["validateBucketNameMiddleware"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "validateBucketNameMiddlewareOptions", function() { return _validate_bucket_name__WEBPACK_IMPORTED_MODULE_0__["validateBucketNameMiddlewareOptions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getValidateBucketNamePlugin", function() { return _validate_bucket_name__WEBPACK_IMPORTED_MODULE_0__["getValidateBucketNamePlugin"]; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3QkFBd0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL3ZhbGlkYXRlLWJ1Y2tldC1uYW1lXCI7XG4iXX0= /***/ }), /***/ "5uxN": /*!******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-lex-runtime-service/dist/es/runtimeConfig.shared.js ***! \******************************************************************************************/ /*! exports provided: ClientSharedValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientSharedValues", function() { return ClientSharedValues; }); /* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "xcqa"); var ClientSharedValues = { apiVersion: "2016-11-28", disableHostPrefix: false, regionInfoProvider: _endpoints__WEBPACK_IMPORTED_MODULE_0__["defaultRegionInfoProvider"], signingName: "lex", }; //# sourceMappingURL=runtimeConfig.shared.js.map /***/ }), /***/ "5xG3": /*!*********************************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/lib-esm/sync/processors/mutation.js ***! \*********************************************************************************/ /*! exports provided: MutationProcessor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MutationProcessor", function() { return MutationProcessor; }); /* harmony import */ var _aws_amplify_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/api */ "Gyle"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var zen_observable_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zen-observable-ts */ "b0dj"); /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../types */ "+eag"); /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util */ "wr5y"); /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils */ "U1Cx"); var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __rest = (undefined && undefined.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var MAX_ATTEMPTS = 10; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('DataStore'); var MutationProcessor = /** @class */ (function () { function MutationProcessor(schema, storage, userClasses, outbox, modelInstanceCreator, MutationEvent, conflictHandler, errorHandler) { this.schema = schema; this.storage = storage; this.userClasses = userClasses; this.outbox = outbox; this.modelInstanceCreator = modelInstanceCreator; this.MutationEvent = MutationEvent; this.conflictHandler = conflictHandler; this.errorHandler = errorHandler; this.typeQuery = new WeakMap(); this.processing = false; this.generateQueries(); } MutationProcessor.prototype.generateQueries = function () { var _this = this; Object.values(this.schema.namespaces).forEach(function (namespace) { Object.values(namespace.models) .filter(function (_a) { var syncable = _a.syncable; return syncable; }) .forEach(function (model) { var _a = __read(Object(_utils__WEBPACK_IMPORTED_MODULE_5__["buildGraphQLOperation"])(namespace, model, 'CREATE'), 1), createMutation = _a[0]; var _b = __read(Object(_utils__WEBPACK_IMPORTED_MODULE_5__["buildGraphQLOperation"])(namespace, model, 'UPDATE'), 1), updateMutation = _b[0]; var _c = __read(Object(_utils__WEBPACK_IMPORTED_MODULE_5__["buildGraphQLOperation"])(namespace, model, 'DELETE'), 1), deleteMutation = _c[0]; _this.typeQuery.set(model, [ createMutation, updateMutation, deleteMutation, ]); }); }); }; MutationProcessor.prototype.isReady = function () { return this.observer !== undefined; }; MutationProcessor.prototype.start = function () { var _this = this; var observable = new zen_observable_ts__WEBPACK_IMPORTED_MODULE_2__["default"](function (observer) { _this.observer = observer; _this.resume(); return function () { _this.pause(); }; }); return observable; }; MutationProcessor.prototype.resume = function () { return __awaiter(this, void 0, void 0, function () { var head, namespaceName, _a, model, operation, data, condition, modelConstructor, result, opName, modelDefinition, error_1, record, hasMore; var _b; return __generator(this, function (_c) { switch (_c.label) { case 0: if (this.processing || !this.isReady()) { return [2 /*return*/]; } this.processing = true; namespaceName = _util__WEBPACK_IMPORTED_MODULE_4__["USER"]; _c.label = 1; case 1: _a = this.processing; if (!_a) return [3 /*break*/, 3]; return [4 /*yield*/, this.outbox.peek(this.storage)]; case 2: _a = (head = _c.sent()) !== undefined; _c.label = 3; case 3: if (!_a) return [3 /*break*/, 12]; model = head.model, operation = head.operation, data = head.data, condition = head.condition; modelConstructor = this.userClasses[model]; result = void 0; opName = void 0; modelDefinition = void 0; _c.label = 4; case 4: _c.trys.push([4, 6, , 7]); return [4 /*yield*/, this.jitteredRetry(namespaceName, model, operation, data, condition, modelConstructor, this.MutationEvent, head)]; case 5: _b = __read.apply(void 0, [_c.sent(), 3]), result = _b[0], opName = _b[1], modelDefinition = _b[2]; return [3 /*break*/, 7]; case 6: error_1 = _c.sent(); if (error_1.message === 'Offline' || error_1.message === 'RetryMutation') { return [3 /*break*/, 1]; } return [3 /*break*/, 7]; case 7: if (!(result === undefined)) return [3 /*break*/, 9]; logger.debug('done retrying'); return [4 /*yield*/, this.outbox.dequeue(this.storage)]; case 8: _c.sent(); return [3 /*break*/, 1]; case 9: record = result.data[opName]; return [4 /*yield*/, this.outbox.dequeue(this.storage)]; case 10: _c.sent(); return [4 /*yield*/, this.outbox.peek(this.storage)]; case 11: hasMore = (_c.sent()) !== undefined; this.observer.next({ operation: operation, modelDefinition: modelDefinition, model: record, hasMore: hasMore, }); return [3 /*break*/, 1]; case 12: // pauses itself this.pause(); return [2 /*return*/]; } }); }); }; MutationProcessor.prototype.jitteredRetry = function (namespaceName, model, operation, data, condition, modelConstructor, MutationEvent, mutationEvent) { return __awaiter(this, void 0, void 0, function () { var _this = this; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["jitteredExponentialRetry"])(function (model, operation, data, condition, modelConstructor, MutationEvent, mutationEvent) { return __awaiter(_this, void 0, void 0, function () { var _a, query, variables, graphQLCondition, opName, modelDefinition, tryWith, attempt, opType, result, err_1, _b, error, retryWith, err_2, _c, _d, opName_1, query_1, serverData, namespace, updatedMutation; var _e; return __generator(this, function (_f) { switch (_f.label) { case 0: _a = __read(this.createQueryVariables(namespaceName, model, operation, data, condition), 5), query = _a[0], variables = _a[1], graphQLCondition = _a[2], opName = _a[3], modelDefinition = _a[4]; tryWith = { query: query, variables: variables }; attempt = 0; opType = this.opTypeFromTransformerOperation(operation); _f.label = 1; case 1: _f.trys.push([1, 3, , 13]); return [4 /*yield*/, _aws_amplify_api__WEBPACK_IMPORTED_MODULE_0__["default"].graphql(tryWith)]; case 2: result = (_f.sent()); return [2 /*return*/, [result, opName, modelDefinition]]; case 3: err_1 = _f.sent(); if (!(err_1.errors && err_1.errors.length > 0)) return [3 /*break*/, 12]; _b = __read(err_1.errors, 1), error = _b[0]; if (error.message === 'Network Error') { if (!this.processing) { throw new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["NonRetryableError"]('Offline'); } // TODO: Check errors on different env (react-native or other browsers) throw new Error('Network Error'); } if (!(error.errorType === 'ConflictUnhandled')) return [3 /*break*/, 11]; attempt++; retryWith = void 0; if (!(attempt > MAX_ATTEMPTS)) return [3 /*break*/, 4]; retryWith = _types__WEBPACK_IMPORTED_MODULE_3__["DISCARD"]; return [3 /*break*/, 7]; case 4: _f.trys.push([4, 6, , 7]); return [4 /*yield*/, this.conflictHandler({ modelConstructor: modelConstructor, localModel: this.modelInstanceCreator(modelConstructor, variables.input), remoteModel: this.modelInstanceCreator(modelConstructor, error.data), operation: opType, attempts: attempt, })]; case 5: retryWith = _f.sent(); return [3 /*break*/, 7]; case 6: err_2 = _f.sent(); logger.warn('conflict trycatch', err_2); return [3 /*break*/, 13]; case 7: if (!(retryWith === _types__WEBPACK_IMPORTED_MODULE_3__["DISCARD"])) return [3 /*break*/, 9]; _c = __read(Object(_utils__WEBPACK_IMPORTED_MODULE_5__["buildGraphQLOperation"])(this.schema.namespaces[namespaceName], modelDefinition, 'GET'), 1), _d = __read(_c[0], 3), opName_1 = _d[1], query_1 = _d[2]; return [4 /*yield*/, _aws_amplify_api__WEBPACK_IMPORTED_MODULE_0__["default"].graphql({ query: query_1, variables: { id: variables.input.id }, })]; case 8: serverData = _f.sent(); return [2 /*return*/, [serverData, opName_1, modelDefinition]]; case 9: namespace = this.schema.namespaces[namespaceName]; updatedMutation = Object(_utils__WEBPACK_IMPORTED_MODULE_5__["createMutationInstanceFromModelOperation"])(namespace.relationships, modelDefinition, opType, modelConstructor, retryWith, graphQLCondition, MutationEvent, this.modelInstanceCreator, mutationEvent.id); return [4 /*yield*/, this.storage.save(updatedMutation)]; case 10: _f.sent(); throw new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["NonRetryableError"]('RetryMutation'); case 11: try { this.errorHandler({ localModel: this.modelInstanceCreator(modelConstructor, variables.input), message: error.message, operation: operation, errorType: error.errorType, errorInfo: error.errorInfo, remoteModel: error.data ? this.modelInstanceCreator(modelConstructor, error.data) : null, }); } catch (err) { logger.warn('failed to execute errorHandler', err); } finally { // Return empty tuple, dequeues the mutation return [2 /*return*/, error.data ? [ { data: (_e = {}, _e[opName] = error.data, _e) }, opName, modelDefinition, ] : []]; } _f.label = 12; case 12: return [3 /*break*/, 13]; case 13: if (tryWith) return [3 /*break*/, 1]; _f.label = 14; case 14: return [2 /*return*/]; } }); }); }, [ model, operation, data, condition, modelConstructor, MutationEvent, mutationEvent, ])]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; MutationProcessor.prototype.createQueryVariables = function (namespaceName, model, operation, data, condition) { var modelDefinition = this.schema.namespaces[namespaceName].models[model]; var queriesTuples = this.typeQuery.get(modelDefinition); var _a = __read(queriesTuples.find(function (_a) { var _b = __read(_a, 1), transformerMutationType = _b[0]; return transformerMutationType === operation; }), 3), opName = _a[1], query = _a[2]; var _b = JSON.parse(data), _version = _b._version, parsedData = __rest(_b, ["_version"]); var filteredData = operation === _utils__WEBPACK_IMPORTED_MODULE_5__["TransformerMutationType"].DELETE ? { id: parsedData.id } // For DELETE mutations, only ID is sent : Object.values(modelDefinition.fields) .filter(function (_a) { var type = _a.type, association = _a.association; // connections if (Object(_types__WEBPACK_IMPORTED_MODULE_3__["isModelFieldType"])(type)) { // BELONGS_TO if (Object(_types__WEBPACK_IMPORTED_MODULE_3__["isTargetNameAssociation"])(association) && association.connectionType === 'BELONGS_TO') { return true; } // All other connections return false; } // scalars and non-model types return true; }) .map(function (_a) { var name = _a.name, type = _a.type, association = _a.association; var fieldName = name; var val = parsedData[name]; if (Object(_types__WEBPACK_IMPORTED_MODULE_3__["isModelFieldType"])(type) && Object(_types__WEBPACK_IMPORTED_MODULE_3__["isTargetNameAssociation"])(association)) { fieldName = association.targetName; val = parsedData[fieldName]; } return [fieldName, val]; }) .reduce(function (acc, _a) { var _b = __read(_a, 2), k = _b[0], v = _b[1]; acc[k] = v; return acc; }, {}); // Build mutation variables input object var input = __assign(__assign({}, filteredData), { _version: _version }); var graphQLCondition = JSON.parse(condition); var variables = __assign({ input: input }, (operation === _utils__WEBPACK_IMPORTED_MODULE_5__["TransformerMutationType"].CREATE ? {} : { condition: Object.keys(graphQLCondition).length > 0 ? graphQLCondition : null, })); return [query, variables, graphQLCondition, opName, modelDefinition]; }; MutationProcessor.prototype.opTypeFromTransformerOperation = function (operation) { switch (operation) { case _utils__WEBPACK_IMPORTED_MODULE_5__["TransformerMutationType"].CREATE: return _types__WEBPACK_IMPORTED_MODULE_3__["OpType"].INSERT; case _utils__WEBPACK_IMPORTED_MODULE_5__["TransformerMutationType"].DELETE: return _types__WEBPACK_IMPORTED_MODULE_3__["OpType"].DELETE; case _utils__WEBPACK_IMPORTED_MODULE_5__["TransformerMutationType"].UPDATE: return _types__WEBPACK_IMPORTED_MODULE_3__["OpType"].UPDATE; case _utils__WEBPACK_IMPORTED_MODULE_5__["TransformerMutationType"].GET: // Intentionally blank break; default: Object(_util__WEBPACK_IMPORTED_MODULE_4__["exhaustiveCheck"])(operation); } }; MutationProcessor.prototype.pause = function () { this.processing = false; }; return MutationProcessor; }()); //# sourceMappingURL=mutation.js.map /***/ }), /***/ "5yfJ": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/never.js ***! \*****************************************************************/ /*! exports provided: NEVER, never */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NEVER", function() { return NEVER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "never", function() { return never; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _util_noop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/noop */ "KqfI"); const NEVER = new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](_util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"]); function never() { return NEVER; } //# sourceMappingURL=never.js.map /***/ }), /***/ "5zwH": /*!********************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/Util/StringUtils.js ***! \********************************************************************/ /*! exports provided: urlSafeEncode, urlSafeDecode */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "urlSafeEncode", function() { return urlSafeEncode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "urlSafeDecode", function() { return urlSafeDecode; }); function urlSafeEncode(str) { return str .split('') .map(function (char) { return char .charCodeAt(0) .toString(16) .padStart(2, '0'); }) .join(''); } function urlSafeDecode(hex) { return hex .match(/.{2}/g) .map(function (char) { return String.fromCharCode(parseInt(char, 16)); }) .join(''); } //# sourceMappingURL=StringUtils.js.map /***/ }), /***/ "60r2": /*!***************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-lex-runtime-service/dist/es/commands/DeleteSessionCommand.js ***! \***************************************************************************************************/ /*! exports provided: DeleteSessionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSessionCommand", function() { return DeleteSessionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "Vu3y"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "3fs/"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteSessionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteSessionCommand, _super); // Start section: command_properties // End section: command_properties function DeleteSessionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteSessionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteSessionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteSessionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteSessionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteSessionCommand"])(input, context); }; DeleteSessionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteSessionCommand"])(output, context); }; return DeleteSessionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteSessionCommand.js.map /***/ }), /***/ "6B53": /*!*****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteCampaignCommand.js ***! \*****************************************************************************************/ /*! exports provided: DeleteCampaignCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignCommand", function() { return DeleteCampaignCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteCampaignCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteCampaignCommand, _super); // Start section: command_properties // End section: command_properties function DeleteCampaignCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteCampaignRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteCampaignResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteCampaignCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteCampaignCommand"])(input, context); }; DeleteCampaignCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteCampaignCommand"])(output, context); }; return DeleteCampaignCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteCampaignCommand.js.map /***/ }), /***/ "6D83": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetBucketCorsCommand.js ***! \**********************************************************************************/ /*! exports provided: GetBucketCorsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBucketCorsCommand", function() { return GetBucketCorsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetBucketCorsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetBucketCorsCommand, _super); // Start section: command_properties // End section: command_properties function GetBucketCorsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetBucketCorsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketCorsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketCorsOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetBucketCorsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetBucketCorsCommand"])(input, context); }; GetBucketCorsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetBucketCorsCommand"])(output, context); }; return GetBucketCorsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetBucketCorsCommand.js.map /***/ }), /***/ "6HaD": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/IncreaseStreamRetentionPeriodCommand.js ***! \*******************************************************************************************************/ /*! exports provided: IncreaseStreamRetentionPeriodCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IncreaseStreamRetentionPeriodCommand", function() { return IncreaseStreamRetentionPeriodCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var IncreaseStreamRetentionPeriodCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(IncreaseStreamRetentionPeriodCommand, _super); // Start section: command_properties // End section: command_properties function IncreaseStreamRetentionPeriodCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } IncreaseStreamRetentionPeriodCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["IncreaseStreamRetentionPeriodInput"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; IncreaseStreamRetentionPeriodCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1IncreaseStreamRetentionPeriodCommand"])(input, context); }; IncreaseStreamRetentionPeriodCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand"])(output, context); }; return IncreaseStreamRetentionPeriodCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=IncreaseStreamRetentionPeriodCommand.js.map /***/ }), /***/ "6MUB": /*!********************************************!*\ !*** ./node_modules/querystring/encode.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. var stringifyPrimitive = function(v) { switch (typeof v) { case 'string': return v; case 'boolean': return v ? 'true' : 'false'; case 'number': return isFinite(v) ? v : ''; default: return ''; } }; module.exports = function(obj, sep, eq, name) { sep = sep || '&'; eq = eq || '='; if (obj === null) { obj = undefined; } if (typeof obj === 'object') { return Object.keys(obj).map(function(k) { var ks = encodeURIComponent(stringifyPrimitive(k)) + eq; if (Array.isArray(obj[k])) { return obj[k].map(function(v) { return ks + encodeURIComponent(stringifyPrimitive(v)); }).join(sep); } else { return ks + encodeURIComponent(stringifyPrimitive(obj[k])); } }).join(sep); } if (!name) return ''; return encodeURIComponent(stringifyPrimitive(name)) + eq + encodeURIComponent(stringifyPrimitive(obj)); }; /***/ }), /***/ "6Q44": /*!***********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/pagination/ListSentimentDetectionJobsPaginator.js ***! \***********************************************************************************************************/ /*! exports provided: listSentimentDetectionJobsPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "listSentimentDetectionJobsPaginate", function() { return listSentimentDetectionJobsPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Comprehend__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Comprehend */ "KcXj"); /* harmony import */ var _ComprehendClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ComprehendClient */ "8JFw"); /* harmony import */ var _commands_ListSentimentDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/ListSentimentDetectionJobsCommand */ "svW9"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_ListSentimentDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_3__["ListSentimentDetectionJobsCommand"].bind.apply(_commands_ListSentimentDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_3__["ListSentimentDetectionJobsCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.listSentimentDetectionJobs.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function listSentimentDetectionJobsPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function listSentimentDetectionJobsPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Comprehend__WEBPACK_IMPORTED_MODULE_1__["Comprehend"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _ComprehendClient__WEBPACK_IMPORTED_MODULE_2__["ComprehendClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Comprehend | ComprehendClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=ListSentimentDetectionJobsPaginator.js.map /***/ }), /***/ "6T2O": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/StartTextDetectionCommand.js ***! \************************************************************************************************/ /*! exports provided: StartTextDetectionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartTextDetectionCommand", function() { return StartTextDetectionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StartTextDetectionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartTextDetectionCommand, _super); // Start section: command_properties // End section: command_properties function StartTextDetectionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StartTextDetectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartTextDetectionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartTextDetectionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StartTextDetectionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartTextDetectionCommand"])(input, context); }; StartTextDetectionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartTextDetectionCommand"])(output, context); }; return StartTextDetectionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StartTextDetectionCommand.js.map /***/ }), /***/ "6eBy": /*!*******************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/debounce.js ***! \*******************************************************************/ /*! exports provided: debounce */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "debounce", function() { return debounce; }); /* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../innerSubscribe */ "zx2A"); function debounce(durationSelector) { return (source) => source.lift(new DebounceOperator(durationSelector)); } class DebounceOperator { constructor(durationSelector) { this.durationSelector = durationSelector; } call(subscriber, source) { return source.subscribe(new DebounceSubscriber(subscriber, this.durationSelector)); } } class DebounceSubscriber extends _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"] { constructor(destination, durationSelector) { super(destination); this.durationSelector = durationSelector; this.hasValue = false; } _next(value) { try { const result = this.durationSelector.call(this, value); if (result) { this._tryNext(value, result); } } catch (err) { this.destination.error(err); } } _complete() { this.emitValue(); this.destination.complete(); } _tryNext(value, duration) { let subscription = this.durationSubscription; this.value = value; this.hasValue = true; if (subscription) { subscription.unsubscribe(); this.remove(subscription); } subscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(duration, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](this)); if (subscription && !subscription.closed) { this.add(this.durationSubscription = subscription); } } notifyNext() { this.emitValue(); } notifyComplete() { this.emitValue(); } emitValue() { if (this.hasValue) { const value = this.value; const subscription = this.durationSubscription; if (subscription) { this.durationSubscription = undefined; subscription.unsubscribe(); this.remove(subscription); } this.value = undefined; this.hasValue = false; super._next(value); } } } //# sourceMappingURL=debounce.js.map /***/ }), /***/ "6eNC": /*!***********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/StopTrainingDocumentClassifierCommand.js ***! \***********************************************************************************************************/ /*! exports provided: StopTrainingDocumentClassifierCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopTrainingDocumentClassifierCommand", function() { return StopTrainingDocumentClassifierCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StopTrainingDocumentClassifierCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StopTrainingDocumentClassifierCommand, _super); // Start section: command_properties // End section: command_properties function StopTrainingDocumentClassifierCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StopTrainingDocumentClassifierCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StopTrainingDocumentClassifierRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StopTrainingDocumentClassifierResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StopTrainingDocumentClassifierCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StopTrainingDocumentClassifierCommand"])(input, context); }; StopTrainingDocumentClassifierCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StopTrainingDocumentClassifierCommand"])(output, context); }; return StopTrainingDocumentClassifierCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StopTrainingDocumentClassifierCommand.js.map /***/ }), /***/ "6sVZ": /*!*********************************************!*\ !*** ./node_modules/lodash/_isPrototype.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Checks if `value` is likely a prototype object. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. */ function isPrototype(value) { var Ctor = value && value.constructor, proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; return value === proto; } module.exports = isPrototype; /***/ }), /***/ "6zvP": /*!******************************************************************!*\ !*** ./node_modules/amazon-cognito-identity-js/es/BigInteger.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); // A small implementation of BigInteger based on http://www-cs-students.stanford.edu/~tjw/jsbn/ // // All public methods have been removed except the following: // new BigInteger(a, b) (only radix 2, 4, 8, 16 and 32 supported) // toString (only radix 2, 4, 8, 16 and 32 supported) // negate // abs // compareTo // bitLength // mod // equals // add // subtract // multiply // divide // modPow /* harmony default export */ __webpack_exports__["default"] = (BigInteger); /* * Copyright (c) 2003-2005 Tom Wu * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. * * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL, * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * * In addition, the following condition applies: * * All redistributions must retain an intact copy of this copyright notice * and disclaimer. */ // (public) Constructor function BigInteger(a, b) { if (a != null) this.fromString(a, b); } // return new, unset BigInteger function nbi() { return new BigInteger(null); } // Bits per digit var dbits; // JavaScript engine analysis var canary = 0xdeadbeefcafe; var j_lm = (canary & 0xffffff) == 0xefcafe; // am: Compute w_j += (x*this_i), propagate carries, // c is initial carry, returns final carry. // c < 3*dvalue, x < 2*dvalue, this_i < dvalue // We need to select the fastest one that works in this environment. // am1: use a single mult and divide to get the high bits, // max digit bits should be 26 because // max internal value = 2*dvalue^2-2*dvalue (< 2^53) function am1(i, x, w, j, c, n) { while (--n >= 0) { var v = x * this[i++] + w[j] + c; c = Math.floor(v / 0x4000000); w[j++] = v & 0x3ffffff; } return c; } // am2 avoids a big mult-and-extract completely. // Max digit bits should be <= 30 because we do bitwise ops // on values up to 2*hdvalue^2-hdvalue-1 (< 2^31) function am2(i, x, w, j, c, n) { var xl = x & 0x7fff, xh = x >> 15; while (--n >= 0) { var l = this[i] & 0x7fff; var h = this[i++] >> 15; var m = xh * l + h * xl; l = xl * l + ((m & 0x7fff) << 15) + w[j] + (c & 0x3fffffff); c = (l >>> 30) + (m >>> 15) + xh * h + (c >>> 30); w[j++] = l & 0x3fffffff; } return c; } // Alternately, set max digit bits to 28 since some // browsers slow down when dealing with 32-bit numbers. function am3(i, x, w, j, c, n) { var xl = x & 0x3fff, xh = x >> 14; while (--n >= 0) { var l = this[i] & 0x3fff; var h = this[i++] >> 14; var m = xh * l + h * xl; l = xl * l + ((m & 0x3fff) << 14) + w[j] + c; c = (l >> 28) + (m >> 14) + xh * h; w[j++] = l & 0xfffffff; } return c; } var inBrowser = typeof navigator !== 'undefined'; if (inBrowser && j_lm && navigator.appName == 'Microsoft Internet Explorer') { BigInteger.prototype.am = am2; dbits = 30; } else if (inBrowser && j_lm && navigator.appName != 'Netscape') { BigInteger.prototype.am = am1; dbits = 26; } else { // Mozilla/Netscape seems to prefer am3 BigInteger.prototype.am = am3; dbits = 28; } BigInteger.prototype.DB = dbits; BigInteger.prototype.DM = (1 << dbits) - 1; BigInteger.prototype.DV = 1 << dbits; var BI_FP = 52; BigInteger.prototype.FV = Math.pow(2, BI_FP); BigInteger.prototype.F1 = BI_FP - dbits; BigInteger.prototype.F2 = 2 * dbits - BI_FP; // Digit conversions var BI_RM = '0123456789abcdefghijklmnopqrstuvwxyz'; var BI_RC = new Array(); var rr, vv; rr = '0'.charCodeAt(0); for (vv = 0; vv <= 9; ++vv) { BI_RC[rr++] = vv; } rr = 'a'.charCodeAt(0); for (vv = 10; vv < 36; ++vv) { BI_RC[rr++] = vv; } rr = 'A'.charCodeAt(0); for (vv = 10; vv < 36; ++vv) { BI_RC[rr++] = vv; } function int2char(n) { return BI_RM.charAt(n); } function intAt(s, i) { var c = BI_RC[s.charCodeAt(i)]; return c == null ? -1 : c; } // (protected) copy this to r function bnpCopyTo(r) { for (var i = this.t - 1; i >= 0; --i) { r[i] = this[i]; } r.t = this.t; r.s = this.s; } // (protected) set from integer value x, -DV <= x < DV function bnpFromInt(x) { this.t = 1; this.s = x < 0 ? -1 : 0; if (x > 0) this[0] = x;else if (x < -1) this[0] = x + this.DV;else this.t = 0; } // return bigint initialized to value function nbv(i) { var r = nbi(); r.fromInt(i); return r; } // (protected) set from string and radix function bnpFromString(s, b) { var k; if (b == 16) k = 4;else if (b == 8) k = 3;else if (b == 2) k = 1;else if (b == 32) k = 5;else if (b == 4) k = 2;else throw new Error('Only radix 2, 4, 8, 16, 32 are supported'); this.t = 0; this.s = 0; var i = s.length, mi = false, sh = 0; while (--i >= 0) { var x = intAt(s, i); if (x < 0) { if (s.charAt(i) == '-') mi = true; continue; } mi = false; if (sh == 0) this[this.t++] = x;else if (sh + k > this.DB) { this[this.t - 1] |= (x & (1 << this.DB - sh) - 1) << sh; this[this.t++] = x >> this.DB - sh; } else this[this.t - 1] |= x << sh; sh += k; if (sh >= this.DB) sh -= this.DB; } this.clamp(); if (mi) BigInteger.ZERO.subTo(this, this); } // (protected) clamp off excess high words function bnpClamp() { var c = this.s & this.DM; while (this.t > 0 && this[this.t - 1] == c) { --this.t; } } // (public) return string representation in given radix function bnToString(b) { if (this.s < 0) return '-' + this.negate().toString(b); var k; if (b == 16) k = 4;else if (b == 8) k = 3;else if (b == 2) k = 1;else if (b == 32) k = 5;else if (b == 4) k = 2;else throw new Error('Only radix 2, 4, 8, 16, 32 are supported'); var km = (1 << k) - 1, d, m = false, r = '', i = this.t; var p = this.DB - i * this.DB % k; if (i-- > 0) { if (p < this.DB && (d = this[i] >> p) > 0) { m = true; r = int2char(d); } while (i >= 0) { if (p < k) { d = (this[i] & (1 << p) - 1) << k - p; d |= this[--i] >> (p += this.DB - k); } else { d = this[i] >> (p -= k) & km; if (p <= 0) { p += this.DB; --i; } } if (d > 0) m = true; if (m) r += int2char(d); } } return m ? r : '0'; } // (public) -this function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this, r); return r; } // (public) |this| function bnAbs() { return this.s < 0 ? this.negate() : this; } // (public) return + if this > a, - if this < a, 0 if equal function bnCompareTo(a) { var r = this.s - a.s; if (r != 0) return r; var i = this.t; r = i - a.t; if (r != 0) return this.s < 0 ? -r : r; while (--i >= 0) { if ((r = this[i] - a[i]) != 0) return r; } return 0; } // returns bit length of the integer x function nbits(x) { var r = 1, t; if ((t = x >>> 16) != 0) { x = t; r += 16; } if ((t = x >> 8) != 0) { x = t; r += 8; } if ((t = x >> 4) != 0) { x = t; r += 4; } if ((t = x >> 2) != 0) { x = t; r += 2; } if ((t = x >> 1) != 0) { x = t; r += 1; } return r; } // (public) return the number of bits in "this" function bnBitLength() { if (this.t <= 0) return 0; return this.DB * (this.t - 1) + nbits(this[this.t - 1] ^ this.s & this.DM); } // (protected) r = this << n*DB function bnpDLShiftTo(n, r) { var i; for (i = this.t - 1; i >= 0; --i) { r[i + n] = this[i]; } for (i = n - 1; i >= 0; --i) { r[i] = 0; } r.t = this.t + n; r.s = this.s; } // (protected) r = this >> n*DB function bnpDRShiftTo(n, r) { for (var i = n; i < this.t; ++i) { r[i - n] = this[i]; } r.t = Math.max(this.t - n, 0); r.s = this.s; } // (protected) r = this << n function bnpLShiftTo(n, r) { var bs = n % this.DB; var cbs = this.DB - bs; var bm = (1 << cbs) - 1; var ds = Math.floor(n / this.DB), c = this.s << bs & this.DM, i; for (i = this.t - 1; i >= 0; --i) { r[i + ds + 1] = this[i] >> cbs | c; c = (this[i] & bm) << bs; } for (i = ds - 1; i >= 0; --i) { r[i] = 0; } r[ds] = c; r.t = this.t + ds + 1; r.s = this.s; r.clamp(); } // (protected) r = this >> n function bnpRShiftTo(n, r) { r.s = this.s; var ds = Math.floor(n / this.DB); if (ds >= this.t) { r.t = 0; return; } var bs = n % this.DB; var cbs = this.DB - bs; var bm = (1 << bs) - 1; r[0] = this[ds] >> bs; for (var i = ds + 1; i < this.t; ++i) { r[i - ds - 1] |= (this[i] & bm) << cbs; r[i - ds] = this[i] >> bs; } if (bs > 0) r[this.t - ds - 1] |= (this.s & bm) << cbs; r.t = this.t - ds; r.clamp(); } // (protected) r = this - a function bnpSubTo(a, r) { var i = 0, c = 0, m = Math.min(a.t, this.t); while (i < m) { c += this[i] - a[i]; r[i++] = c & this.DM; c >>= this.DB; } if (a.t < this.t) { c -= a.s; while (i < this.t) { c += this[i]; r[i++] = c & this.DM; c >>= this.DB; } c += this.s; } else { c += this.s; while (i < a.t) { c -= a[i]; r[i++] = c & this.DM; c >>= this.DB; } c -= a.s; } r.s = c < 0 ? -1 : 0; if (c < -1) r[i++] = this.DV + c;else if (c > 0) r[i++] = c; r.t = i; r.clamp(); } // (protected) r = this * a, r != this,a (HAC 14.12) // "this" should be the larger one if appropriate. function bnpMultiplyTo(a, r) { var x = this.abs(), y = a.abs(); var i = x.t; r.t = i + y.t; while (--i >= 0) { r[i] = 0; } for (i = 0; i < y.t; ++i) { r[i + x.t] = x.am(0, y[i], r, i, 0, x.t); } r.s = 0; r.clamp(); if (this.s != a.s) BigInteger.ZERO.subTo(r, r); } // (protected) r = this^2, r != this (HAC 14.16) function bnpSquareTo(r) { var x = this.abs(); var i = r.t = 2 * x.t; while (--i >= 0) { r[i] = 0; } for (i = 0; i < x.t - 1; ++i) { var c = x.am(i, x[i], r, 2 * i, 0, 1); if ((r[i + x.t] += x.am(i + 1, 2 * x[i], r, 2 * i + 1, c, x.t - i - 1)) >= x.DV) { r[i + x.t] -= x.DV; r[i + x.t + 1] = 1; } } if (r.t > 0) r[r.t - 1] += x.am(i, x[i], r, 2 * i, 0, 1); r.s = 0; r.clamp(); } // (protected) divide this by m, quotient and remainder to q, r (HAC 14.20) // r != q, this != m. q or r may be null. function bnpDivRemTo(m, q, r) { var pm = m.abs(); if (pm.t <= 0) return; var pt = this.abs(); if (pt.t < pm.t) { if (q != null) q.fromInt(0); if (r != null) this.copyTo(r); return; } if (r == null) r = nbi(); var y = nbi(), ts = this.s, ms = m.s; var nsh = this.DB - nbits(pm[pm.t - 1]); // normalize modulus if (nsh > 0) { pm.lShiftTo(nsh, y); pt.lShiftTo(nsh, r); } else { pm.copyTo(y); pt.copyTo(r); } var ys = y.t; var y0 = y[ys - 1]; if (y0 == 0) return; var yt = y0 * (1 << this.F1) + (ys > 1 ? y[ys - 2] >> this.F2 : 0); var d1 = this.FV / yt, d2 = (1 << this.F1) / yt, e = 1 << this.F2; var i = r.t, j = i - ys, t = q == null ? nbi() : q; y.dlShiftTo(j, t); if (r.compareTo(t) >= 0) { r[r.t++] = 1; r.subTo(t, r); } BigInteger.ONE.dlShiftTo(ys, t); t.subTo(y, y); // "negative" y so we can replace sub with am later while (y.t < ys) { y[y.t++] = 0; } while (--j >= 0) { // Estimate quotient digit var qd = r[--i] == y0 ? this.DM : Math.floor(r[i] * d1 + (r[i - 1] + e) * d2); if ((r[i] += y.am(0, qd, r, j, 0, ys)) < qd) { // Try it out y.dlShiftTo(j, t); r.subTo(t, r); while (r[i] < --qd) { r.subTo(t, r); } } } if (q != null) { r.drShiftTo(ys, q); if (ts != ms) BigInteger.ZERO.subTo(q, q); } r.t = ys; r.clamp(); if (nsh > 0) r.rShiftTo(nsh, r); // Denormalize remainder if (ts < 0) BigInteger.ZERO.subTo(r, r); } // (public) this mod a function bnMod(a) { var r = nbi(); this.abs().divRemTo(a, null, r); if (this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r, r); return r; } // (protected) return "-1/this % 2^DB"; useful for Mont. reduction // justification: // xy == 1 (mod m) // xy = 1+km // xy(2-xy) = (1+km)(1-km) // x[y(2-xy)] = 1-k^2m^2 // x[y(2-xy)] == 1 (mod m^2) // if y is 1/x mod m, then y(2-xy) is 1/x mod m^2 // should reduce x and y(2-xy) by m^2 at each step to keep size bounded. // JS multiply "overflows" differently from C/C++, so care is needed here. function bnpInvDigit() { if (this.t < 1) return 0; var x = this[0]; if ((x & 1) == 0) return 0; var y = x & 3; // y == 1/x mod 2^2 y = y * (2 - (x & 0xf) * y) & 0xf; // y == 1/x mod 2^4 y = y * (2 - (x & 0xff) * y) & 0xff; // y == 1/x mod 2^8 y = y * (2 - ((x & 0xffff) * y & 0xffff)) & 0xffff; // y == 1/x mod 2^16 // last step - calculate inverse mod DV directly; // assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints y = y * (2 - x * y % this.DV) % this.DV; // y == 1/x mod 2^dbits // we really want the negative inverse, and -DV < y < DV return y > 0 ? this.DV - y : -y; } function bnEquals(a) { return this.compareTo(a) == 0; } // (protected) r = this + a function bnpAddTo(a, r) { var i = 0, c = 0, m = Math.min(a.t, this.t); while (i < m) { c += this[i] + a[i]; r[i++] = c & this.DM; c >>= this.DB; } if (a.t < this.t) { c += a.s; while (i < this.t) { c += this[i]; r[i++] = c & this.DM; c >>= this.DB; } c += this.s; } else { c += this.s; while (i < a.t) { c += a[i]; r[i++] = c & this.DM; c >>= this.DB; } c += a.s; } r.s = c < 0 ? -1 : 0; if (c > 0) r[i++] = c;else if (c < -1) r[i++] = this.DV + c; r.t = i; r.clamp(); } // (public) this + a function bnAdd(a) { var r = nbi(); this.addTo(a, r); return r; } // (public) this - a function bnSubtract(a) { var r = nbi(); this.subTo(a, r); return r; } // (public) this * a function bnMultiply(a) { var r = nbi(); this.multiplyTo(a, r); return r; } // (public) this / a function bnDivide(a) { var r = nbi(); this.divRemTo(a, r, null); return r; } // Montgomery reduction function Montgomery(m) { this.m = m; this.mp = m.invDigit(); this.mpl = this.mp & 0x7fff; this.mph = this.mp >> 15; this.um = (1 << m.DB - 15) - 1; this.mt2 = 2 * m.t; } // xR mod m function montConvert(x) { var r = nbi(); x.abs().dlShiftTo(this.m.t, r); r.divRemTo(this.m, null, r); if (x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) this.m.subTo(r, r); return r; } // x/R mod m function montRevert(x) { var r = nbi(); x.copyTo(r); this.reduce(r); return r; } // x = x/R mod m (HAC 14.32) function montReduce(x) { while (x.t <= this.mt2) { // pad x so am has enough room later x[x.t++] = 0; } for (var i = 0; i < this.m.t; ++i) { // faster way of calculating u0 = x[i]*mp mod DV var j = x[i] & 0x7fff; var u0 = j * this.mpl + ((j * this.mph + (x[i] >> 15) * this.mpl & this.um) << 15) & x.DM; // use am to combine the multiply-shift-add into one call j = i + this.m.t; x[j] += this.m.am(0, u0, x, i, 0, this.m.t); // propagate carry while (x[j] >= x.DV) { x[j] -= x.DV; x[++j]++; } } x.clamp(); x.drShiftTo(this.m.t, x); if (x.compareTo(this.m) >= 0) x.subTo(this.m, x); } // r = "x^2/R mod m"; x != r function montSqrTo(x, r) { x.squareTo(r); this.reduce(r); } // r = "xy/R mod m"; x,y != r function montMulTo(x, y, r) { x.multiplyTo(y, r); this.reduce(r); } Montgomery.prototype.convert = montConvert; Montgomery.prototype.revert = montRevert; Montgomery.prototype.reduce = montReduce; Montgomery.prototype.mulTo = montMulTo; Montgomery.prototype.sqrTo = montSqrTo; // (public) this^e % m (HAC 14.85) function bnModPow(e, m, callback) { var i = e.bitLength(), k, r = nbv(1), z = new Montgomery(m); if (i <= 0) return r;else if (i < 18) k = 1;else if (i < 48) k = 3;else if (i < 144) k = 4;else if (i < 768) k = 5;else k = 6; // precomputation var g = new Array(), n = 3, k1 = k - 1, km = (1 << k) - 1; g[1] = z.convert(this); if (k > 1) { var g2 = nbi(); z.sqrTo(g[1], g2); while (n <= km) { g[n] = nbi(); z.mulTo(g2, g[n - 2], g[n]); n += 2; } } var j = e.t - 1, w, is1 = true, r2 = nbi(), t; i = nbits(e[j]) - 1; while (j >= 0) { if (i >= k1) w = e[j] >> i - k1 & km;else { w = (e[j] & (1 << i + 1) - 1) << k1 - i; if (j > 0) w |= e[j - 1] >> this.DB + i - k1; } n = k; while ((w & 1) == 0) { w >>= 1; --n; } if ((i -= n) < 0) { i += this.DB; --j; } if (is1) { // ret == 1, don't bother squaring or multiplying it g[w].copyTo(r); is1 = false; } else { while (n > 1) { z.sqrTo(r, r2); z.sqrTo(r2, r); n -= 2; } if (n > 0) z.sqrTo(r, r2);else { t = r; r = r2; r2 = t; } z.mulTo(r2, g[w], r); } while (j >= 0 && (e[j] & 1 << i) == 0) { z.sqrTo(r, r2); t = r; r = r2; r2 = t; if (--i < 0) { i = this.DB - 1; --j; } } } var result = z.revert(r); callback(null, result); return result; } // protected BigInteger.prototype.copyTo = bnpCopyTo; BigInteger.prototype.fromInt = bnpFromInt; BigInteger.prototype.fromString = bnpFromString; BigInteger.prototype.clamp = bnpClamp; BigInteger.prototype.dlShiftTo = bnpDLShiftTo; BigInteger.prototype.drShiftTo = bnpDRShiftTo; BigInteger.prototype.lShiftTo = bnpLShiftTo; BigInteger.prototype.rShiftTo = bnpRShiftTo; BigInteger.prototype.subTo = bnpSubTo; BigInteger.prototype.multiplyTo = bnpMultiplyTo; BigInteger.prototype.squareTo = bnpSquareTo; BigInteger.prototype.divRemTo = bnpDivRemTo; BigInteger.prototype.invDigit = bnpInvDigit; BigInteger.prototype.addTo = bnpAddTo; // public BigInteger.prototype.toString = bnToString; BigInteger.prototype.negate = bnNegate; BigInteger.prototype.abs = bnAbs; BigInteger.prototype.compareTo = bnCompareTo; BigInteger.prototype.bitLength = bnBitLength; BigInteger.prototype.mod = bnMod; BigInteger.prototype.equals = bnEquals; BigInteger.prototype.add = bnAdd; BigInteger.prototype.subtract = bnSubtract; BigInteger.prototype.multiply = bnMultiply; BigInteger.prototype.divide = bnDivide; BigInteger.prototype.modPow = bnModPow; // "constants" BigInteger.ZERO = nbv(0); BigInteger.ONE = nbv(1); /***/ }), /***/ "7+OI": /*!******************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/isObservable.js ***! \******************************************************************/ /*! exports provided: isObservable */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isObservable", function() { return isObservable; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); function isObservable(obj) { return !!obj && (obj instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"] || (typeof obj.lift === 'function' && typeof obj.subscribe === 'function')); } //# sourceMappingURL=isObservable.js.map /***/ }), /***/ "76Ts": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutBucketCorsCommand.js ***! \**********************************************************************************/ /*! exports provided: PutBucketCorsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutBucketCorsCommand", function() { return PutBucketCorsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_apply_body_checksum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-apply-body-checksum */ "x9pl"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutBucketCorsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutBucketCorsCommand, _super); // Start section: command_properties // End section: command_properties function PutBucketCorsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutBucketCorsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_5__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_4__["getBucketEndpointPlugin"])(configuration)); this.middlewareStack.use(Object(_aws_sdk_middleware_apply_body_checksum__WEBPACK_IMPORTED_MODULE_3__["getApplyMd5BodyChecksumPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutBucketCorsRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutBucketCorsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutBucketCorsCommand"])(input, context); }; PutBucketCorsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutBucketCorsCommand"])(output, context); }; return PutBucketCorsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__["Command"])); //# sourceMappingURL=PutBucketCorsCommand.js.map /***/ }), /***/ "77Zs": /*!********************************************!*\ !*** ./node_modules/lodash/_stackClear.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__(/*! ./_ListCache */ "Xi7e"); /** * Removes all key-value entries from the stack. * * @private * @name clear * @memberOf Stack */ function stackClear() { this.__data__ = new ListCache; this.size = 0; } module.exports = stackClear; /***/ }), /***/ "7AeT": /*!*************************************************!*\ !*** ./node_modules/graphql/jsutils/orList.mjs ***! \*************************************************/ /*! exports provided: default */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return orList; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ var MAX_LENGTH = 5; /** * Given [ A, B, C ] return 'A, B, or C'. */ function orList(items) { var selected = items.slice(0, MAX_LENGTH); return selected.reduce(function (list, quoted, index) { return list + (selected.length > 2 ? ', ' : ' ') + (index === selected.length - 1 ? 'or ' : '') + quoted; }); } /***/ }), /***/ "7Axf": /*!*******************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/lib-esm/sync/index.js ***! \*******************************************************************/ /*! exports provided: ControlMessage, SyncEngine */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ControlMessage", function() { return ControlMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SyncEngine", function() { return SyncEngine; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/pubsub */ "VHNH"); /* harmony import */ var zen_observable_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zen-observable-ts */ "b0dj"); /* harmony import */ var _predicates__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../predicates */ "0VOl"); /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../types */ "+eag"); /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "wr5y"); /* harmony import */ var _datastoreConnectivity__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./datastoreConnectivity */ "sl0F"); /* harmony import */ var _merger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./merger */ "vPy4"); /* harmony import */ var _outbox__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./outbox */ "Sv+X"); /* harmony import */ var _processors_mutation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./processors/mutation */ "5xG3"); /* harmony import */ var _processors_subscription__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./processors/subscription */ "M2ma"); /* harmony import */ var _processors_sync__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./processors/sync */ "07OR"); /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utils */ "U1Cx"); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (undefined && undefined.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __spread = (undefined && undefined.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var isNode = Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["browserOrNode"])().isNode; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('DataStore'); var ownSymbol = Symbol('sync'); var ControlMessage; (function (ControlMessage) { ControlMessage["SYNC_ENGINE_STORAGE_SUBSCRIBED"] = "storageSubscribed"; ControlMessage["SYNC_ENGINE_SUBSCRIPTIONS_ESTABLISHED"] = "subscriptionsEstablished"; ControlMessage["SYNC_ENGINE_SYNC_QUERIES_STARTED"] = "syncQueriesStarted"; ControlMessage["SYNC_ENGINE_SYNC_QUERIES_READY"] = "syncQueriesReady"; ControlMessage["SYNC_ENGINE_MODEL_SYNCED"] = "modelSynced"; ControlMessage["SYNC_ENGINE_OUTBOX_MUTATION_ENQUEUED"] = "outboxMutationEnqueued"; ControlMessage["SYNC_ENGINE_OUTBOX_MUTATION_PROCESSED"] = "outboxMutationProcessed"; ControlMessage["SYNC_ENGINE_OUTBOX_STATUS"] = "outboxStatus"; ControlMessage["SYNC_ENGINE_NETWORK_STATUS"] = "networkStatus"; ControlMessage["SYNC_ENGINE_READY"] = "ready"; })(ControlMessage || (ControlMessage = {})); var SyncEngine = /** @class */ (function () { function SyncEngine(schema, namespaceResolver, modelClasses, userModelClasses, storage, modelInstanceCreator, maxRecordsToSync, syncPageSize, conflictHandler, errorHandler) { this.schema = schema; this.namespaceResolver = namespaceResolver; this.modelClasses = modelClasses; this.userModelClasses = userModelClasses; this.storage = storage; this.modelInstanceCreator = modelInstanceCreator; this.maxRecordsToSync = maxRecordsToSync; this.syncPageSize = syncPageSize; this.online = false; var MutationEvent = this.modelClasses['MutationEvent']; this.outbox = new _outbox__WEBPACK_IMPORTED_MODULE_8__["MutationEventOutbox"](this.schema, this.namespaceResolver, MutationEvent, ownSymbol); this.modelMerger = new _merger__WEBPACK_IMPORTED_MODULE_7__["ModelMerger"](this.outbox, ownSymbol); this.syncQueriesProcessor = new _processors_sync__WEBPACK_IMPORTED_MODULE_11__["SyncProcessor"](this.schema, this.maxRecordsToSync, this.syncPageSize); this.subscriptionsProcessor = new _processors_subscription__WEBPACK_IMPORTED_MODULE_10__["SubscriptionProcessor"](this.schema); this.mutationsProcessor = new _processors_mutation__WEBPACK_IMPORTED_MODULE_9__["MutationProcessor"](this.schema, this.storage, this.userModelClasses, this.outbox, this.modelInstanceCreator, MutationEvent, conflictHandler, errorHandler); } SyncEngine.prototype.start = function (params) { var _this = this; return new zen_observable_ts__WEBPACK_IMPORTED_MODULE_2__["default"](function (observer) { logger.log('starting sync engine...'); var subscriptions = []; (function () { return __awaiter(_this, void 0, void 0, function () { var err_1, datastoreConnectivity, startPromise, hasMutationsInOutbox; var _this = this; return __generator(this, function (_a) { switch (_a.label) { case 0: _a.trys.push([0, 2, , 3]); return [4 /*yield*/, this.setupModels(params)]; case 1: _a.sent(); return [3 /*break*/, 3]; case 2: err_1 = _a.sent(); observer.error(err_1); return [2 /*return*/]; case 3: datastoreConnectivity = new _datastoreConnectivity__WEBPACK_IMPORTED_MODULE_6__["default"](); startPromise = new Promise(function (resolve) { datastoreConnectivity.status().subscribe(function (_a) { var online = _a.online; return __awaiter(_this, void 0, void 0, function () { var ctlSubsObservable, dataSubsObservable, _b, _c, err_2, error_1; var _d; var _this = this; return __generator(this, function (_e) { switch (_e.label) { case 0: if (!(online && !this.online)) return [3 /*break*/, 10]; this.online = online; observer.next({ type: ControlMessage.SYNC_ENGINE_NETWORK_STATUS, data: { active: this.online, }, }); ctlSubsObservable = void 0; dataSubsObservable = void 0; if (!isNode) return [3 /*break*/, 1]; logger.warn('Realtime disabled when in a server-side environment'); return [3 /*break*/, 6]; case 1: //#region GraphQL Subscriptions _d = __read(this.subscriptionsProcessor.start(), 2), // const ctlObservable: Observable ctlSubsObservable = _d[0], // const dataObservable: Observable<[TransformerMutationType, SchemaModel, Readonly<{ // id: string; // } & Record>]> dataSubsObservable = _d[1]; _e.label = 2; case 2: _e.trys.push([2, 4, , 5]); _c = (_b = subscriptions).push; return [4 /*yield*/, this.waitForSubscriptionsReady(ctlSubsObservable, datastoreConnectivity)]; case 3: _c.apply(_b, [_e.sent()]); return [3 /*break*/, 5]; case 4: err_2 = _e.sent(); observer.error(err_2); return [2 /*return*/]; case 5: logger.log('Realtime ready'); observer.next({ type: ControlMessage.SYNC_ENGINE_SUBSCRIPTIONS_ESTABLISHED, }); _e.label = 6; case 6: _e.trys.push([6, 8, , 9]); return [4 /*yield*/, new Promise(function (resolve, reject) { var syncQuerySubscription = _this.syncQueriesObservable().subscribe({ next: function (message) { var type = message.type; if (type === ControlMessage.SYNC_ENGINE_SYNC_QUERIES_READY) { resolve(); } observer.next(message); }, complete: function () { resolve(); }, error: function (error) { reject(error); }, }); if (syncQuerySubscription) { subscriptions.push(syncQuerySubscription); } })]; case 7: _e.sent(); return [3 /*break*/, 9]; case 8: error_1 = _e.sent(); observer.error(error_1); return [2 /*return*/]; case 9: //#endregion //#region process mutations subscriptions.push(this.mutationsProcessor .start() .subscribe(function (_a) { var modelDefinition = _a.modelDefinition, item = _a.model, hasMore = _a.hasMore; var modelConstructor = _this.userModelClasses[modelDefinition.name]; var model = _this.modelInstanceCreator(modelConstructor, item); _this.storage.runExclusive(function (storage) { return _this.modelMerger.merge(storage, model); }); observer.next({ type: ControlMessage.SYNC_ENGINE_OUTBOX_MUTATION_PROCESSED, data: { model: modelConstructor, element: model, }, }); observer.next({ type: ControlMessage.SYNC_ENGINE_OUTBOX_STATUS, data: { isEmpty: !hasMore, }, }); })); //#endregion //#region Merge subscriptions buffer // TODO: extract to function if (!isNode) { subscriptions.push(dataSubsObservable.subscribe(function (_a) { var _b = __read(_a, 3), _transformerMutationType = _b[0], modelDefinition = _b[1], item = _b[2]; var modelConstructor = _this.userModelClasses[modelDefinition.name]; var model = _this.modelInstanceCreator(modelConstructor, item); _this.storage.runExclusive(function (storage) { return _this.modelMerger.merge(storage, model); }); })); } return [3 /*break*/, 11]; case 10: if (!online) { this.online = online; observer.next({ type: ControlMessage.SYNC_ENGINE_NETWORK_STATUS, data: { active: this.online, }, }); subscriptions.forEach(function (sub) { return sub.unsubscribe(); }); subscriptions = []; } _e.label = 11; case 11: resolve(); return [2 /*return*/]; } }); }); }); }); this.storage .observe(null, null, ownSymbol) .filter(function (_a) { var model = _a.model; var modelDefinition = _this.getModelDefinition(model); return modelDefinition.syncable === true; }) .subscribe({ next: function (_a) { var opType = _a.opType, model = _a.model, element = _a.element, condition = _a.condition; return __awaiter(_this, void 0, void 0, function () { var namespace, MutationEventConstructor, graphQLCondition, mutationEvent; return __generator(this, function (_b) { switch (_b.label) { case 0: namespace = this.schema.namespaces[this.namespaceResolver(model)]; MutationEventConstructor = this.modelClasses['MutationEvent']; graphQLCondition = Object(_utils__WEBPACK_IMPORTED_MODULE_12__["predicateToGraphQLCondition"])(condition); mutationEvent = Object(_utils__WEBPACK_IMPORTED_MODULE_12__["createMutationInstanceFromModelOperation"])(namespace.relationships, this.getModelDefinition(model), opType, model, element, graphQLCondition, MutationEventConstructor, this.modelInstanceCreator); return [4 /*yield*/, this.outbox.enqueue(this.storage, mutationEvent)]; case 1: _b.sent(); observer.next({ type: ControlMessage.SYNC_ENGINE_OUTBOX_MUTATION_ENQUEUED, data: { model: model, element: element, }, }); observer.next({ type: ControlMessage.SYNC_ENGINE_OUTBOX_STATUS, data: { isEmpty: false, }, }); return [4 /*yield*/, startPromise]; case 2: _b.sent(); if (this.online) { this.mutationsProcessor.resume(); } return [2 /*return*/]; } }); }); }, }); observer.next({ type: ControlMessage.SYNC_ENGINE_STORAGE_SUBSCRIBED, }); return [4 /*yield*/, this.outbox.peek(this.storage)]; case 4: hasMutationsInOutbox = (_a.sent()) === undefined; observer.next({ type: ControlMessage.SYNC_ENGINE_OUTBOX_STATUS, data: { isEmpty: hasMutationsInOutbox, }, }); return [4 /*yield*/, startPromise]; case 5: _a.sent(); observer.next({ type: ControlMessage.SYNC_ENGINE_READY, }); return [2 /*return*/]; } }); }); })(); return function () { subscriptions.forEach(function (sub) { return sub.unsubscribe(); }); }; }); }; SyncEngine.prototype.getModelsMetadataWithNextFullSync = function (currentTimeStamp) { return __awaiter(this, void 0, void 0, function () { var modelLastSync, _a; var _this = this; return __generator(this, function (_b) { switch (_b.label) { case 0: _a = Map.bind; return [4 /*yield*/, this.getModelsMetadata()]; case 1: modelLastSync = new (_a.apply(Map, [void 0, (_b.sent()).map(function (_a) { var namespace = _a.namespace, model = _a.model, lastSync = _a.lastSync, lastFullSync = _a.lastFullSync, fullSyncInterval = _a.fullSyncInterval; var nextFullSync = lastFullSync + fullSyncInterval; var syncFrom = !lastFullSync || nextFullSync < currentTimeStamp ? 0 // perform full sync if expired : lastSync; // perform delta sync return [ _this.schema.namespaces[namespace].models[model], [namespace, syncFrom], ]; })]))(); return [2 /*return*/, modelLastSync]; } }); }); }; SyncEngine.prototype.syncQueriesObservable = function () { var _this = this; if (!this.online) { return zen_observable_ts__WEBPACK_IMPORTED_MODULE_2__["default"].of(); } return new zen_observable_ts__WEBPACK_IMPORTED_MODULE_2__["default"](function (observer) { var syncQueriesSubscription; var waitTimeoutId; (function () { return __awaiter(_this, void 0, void 0, function () { var _loop_1, this_1; var _this = this; return __generator(this, function (_a) { switch (_a.label) { case 0: _loop_1 = function () { var count, modelLastSync, paginatingModels, newestFullSyncStartedAt, theInterval, start, duration, newestStartedAt, msNextFullSync; return __generator(this, function (_a) { switch (_a.label) { case 0: count = new WeakMap(); return [4 /*yield*/, this_1.getModelsMetadataWithNextFullSync(Date.now())]; case 1: modelLastSync = _a.sent(); paginatingModels = new Set(modelLastSync.keys()); return [4 /*yield*/, new Promise(function (resolve) { syncQueriesSubscription = _this.syncQueriesProcessor .start(modelLastSync) .subscribe({ next: function (_a) { var namespace = _a.namespace, modelDefinition = _a.modelDefinition, items = _a.items, done = _a.done, startedAt = _a.startedAt, isFullSync = _a.isFullSync; return __awaiter(_this, void 0, void 0, function () { var modelConstructor, modelName, modelMetadata_1, lastFullSync, fullSyncInterval, counts; var _this = this; return __generator(this, function (_b) { switch (_b.label) { case 0: modelConstructor = this.userModelClasses[modelDefinition.name]; if (!count.has(modelConstructor)) { count.set(modelConstructor, { new: 0, updated: 0, deleted: 0, }); start = Object(_util__WEBPACK_IMPORTED_MODULE_5__["getNow"])(); newestStartedAt = newestStartedAt === undefined ? startedAt : Math.max(newestStartedAt, startedAt); } /** * If there are mutations in the outbox for a given id, those need to be * merged individually. Otherwise, we can merge them in batches. */ return [4 /*yield*/, this.storage.runExclusive(function (storage) { return __awaiter(_this, void 0, void 0, function () { var idsInOutbox, oneByOne, page, opTypeCount, oneByOne_1, oneByOne_1_1, item, opType, e_1_1, _a, _b, _c, counts; var e_1, _d; return __generator(this, function (_e) { switch (_e.label) { case 0: return [4 /*yield*/, this.outbox.getModelIds(storage)]; case 1: idsInOutbox = _e.sent(); oneByOne = []; page = items.filter(function (item) { if (!idsInOutbox.has(item.id)) { return true; } oneByOne.push(item); return false; }); opTypeCount = []; _e.label = 2; case 2: _e.trys.push([2, 7, 8, 9]); oneByOne_1 = __values(oneByOne), oneByOne_1_1 = oneByOne_1.next(); _e.label = 3; case 3: if (!!oneByOne_1_1.done) return [3 /*break*/, 6]; item = oneByOne_1_1.value; return [4 /*yield*/, this.modelMerger.merge(storage, item)]; case 4: opType = _e.sent(); if (opType !== undefined) { opTypeCount.push([item, opType]); } _e.label = 5; case 5: oneByOne_1_1 = oneByOne_1.next(); return [3 /*break*/, 3]; case 6: return [3 /*break*/, 9]; case 7: e_1_1 = _e.sent(); e_1 = { error: e_1_1 }; return [3 /*break*/, 9]; case 8: try { if (oneByOne_1_1 && !oneByOne_1_1.done && (_d = oneByOne_1.return)) _d.call(oneByOne_1); } finally { if (e_1) throw e_1.error; } return [7 /*endfinally*/]; case 9: _b = (_a = opTypeCount.push).apply; _c = [opTypeCount]; return [4 /*yield*/, this.modelMerger.mergePage(storage, modelConstructor, page)]; case 10: _b.apply(_a, _c.concat([__spread.apply(void 0, [(_e.sent())])])); counts = count.get(modelConstructor); opTypeCount.forEach(function (_a) { var _b = __read(_a, 2), opType = _b[1]; switch (opType) { case _types__WEBPACK_IMPORTED_MODULE_4__["OpType"].INSERT: counts.new++; break; case _types__WEBPACK_IMPORTED_MODULE_4__["OpType"].UPDATE: counts.updated++; break; case _types__WEBPACK_IMPORTED_MODULE_4__["OpType"].DELETE: counts.deleted++; break; default: Object(_util__WEBPACK_IMPORTED_MODULE_5__["exhaustiveCheck"])(opType); } }); return [2 /*return*/]; } }); }); })]; case 1: /** * If there are mutations in the outbox for a given id, those need to be * merged individually. Otherwise, we can merge them in batches. */ _b.sent(); if (!done) return [3 /*break*/, 4]; modelName = modelDefinition.name; return [4 /*yield*/, this.getModelMetadata(namespace, modelName)]; case 2: modelMetadata_1 = _b.sent(); lastFullSync = modelMetadata_1.lastFullSync, fullSyncInterval = modelMetadata_1.fullSyncInterval; theInterval = fullSyncInterval; newestFullSyncStartedAt = newestFullSyncStartedAt === undefined ? lastFullSync : Math.max(newestFullSyncStartedAt, isFullSync ? startedAt : lastFullSync); modelMetadata_1 = this.modelClasses .ModelMetadata.copyOf(modelMetadata_1, function (draft) { draft.lastSync = startedAt; draft.lastFullSync = isFullSync ? startedAt : modelMetadata_1.lastFullSync; }); return [4 /*yield*/, this.storage.save(modelMetadata_1, undefined, ownSymbol)]; case 3: _b.sent(); counts = count.get(modelConstructor); observer.next({ type: ControlMessage.SYNC_ENGINE_MODEL_SYNCED, data: { model: modelConstructor, isFullSync: isFullSync, isDeltaSync: !isFullSync, counts: counts, }, }); paginatingModels.delete(modelDefinition); if (paginatingModels.size === 0) { duration = Object(_util__WEBPACK_IMPORTED_MODULE_5__["getNow"])() - start; resolve(); observer.next({ type: ControlMessage.SYNC_ENGINE_SYNC_QUERIES_READY, }); syncQueriesSubscription.unsubscribe(); } _b.label = 4; case 4: return [2 /*return*/]; } }); }); }, error: function (error) { observer.error(error); }, }); observer.next({ type: ControlMessage.SYNC_ENGINE_SYNC_QUERIES_STARTED, data: { models: Array.from(paginatingModels).map(function (_a) { var name = _a.name; return name; }), }, }); })]; case 2: _a.sent(); msNextFullSync = newestFullSyncStartedAt + theInterval - (newestStartedAt + duration); logger.debug("Next fullSync in " + msNextFullSync / 1000 + " seconds. (" + new Date(Date.now() + msNextFullSync) + ")"); return [4 /*yield*/, new Promise(function (res) { waitTimeoutId = setTimeout(res, msNextFullSync); })]; case 3: _a.sent(); return [2 /*return*/]; } }); }; this_1 = this; _a.label = 1; case 1: if (!!observer.closed) return [3 /*break*/, 3]; return [5 /*yield**/, _loop_1()]; case 2: _a.sent(); return [3 /*break*/, 1]; case 3: return [2 /*return*/]; } }); }); })(); return function () { if (syncQueriesSubscription) { syncQueriesSubscription.unsubscribe(); } if (waitTimeoutId) { clearTimeout(waitTimeoutId); } }; }); }; SyncEngine.prototype.disconnectionHandler = function (datastoreConnectivity) { return function (msg) { // This implementation is tight to AWSAppSyncRealTimeProvider 'Connection closed', 'Timeout disconnect' msg if (_aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_1__["CONTROL_MSG"].CONNECTION_CLOSED === msg || _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_1__["CONTROL_MSG"].TIMEOUT_DISCONNECT === msg) { datastoreConnectivity.socketDisconnected(); } }; }; SyncEngine.prototype.waitForSubscriptionsReady = function (ctlSubsObservable, datastoreConnectivity) { return __awaiter(this, void 0, void 0, function () { var _this = this; return __generator(this, function (_a) { return [2 /*return*/, new Promise(function (resolve, reject) { var subscription = ctlSubsObservable.subscribe({ next: function (msg) { if (msg === _processors_subscription__WEBPACK_IMPORTED_MODULE_10__["CONTROL_MSG"].CONNECTED) { resolve(subscription); } }, error: function (err) { reject(err); var handleDisconnect = _this.disconnectionHandler(datastoreConnectivity); handleDisconnect(err); }, }); })]; }); }); }; SyncEngine.prototype.setupModels = function (params) { return __awaiter(this, void 0, void 0, function () { var fullSyncInterval, ModelMetadata, models, promises, result, _a, _b, modelMetadata, modelName, e_2_1; var e_2, _c; var _this = this; return __generator(this, function (_d) { switch (_d.label) { case 0: fullSyncInterval = params.fullSyncInterval; ModelMetadata = this.modelClasses .ModelMetadata; models = []; Object.values(this.schema.namespaces).forEach(function (namespace) { Object.values(namespace.models) .filter(function (_a) { var syncable = _a.syncable; return syncable; }) .forEach(function (model) { models.push([namespace.name, model.name]); }); }); promises = models.map(function (_a) { var _b = __read(_a, 2), namespace = _b[0], model = _b[1]; return __awaiter(_this, void 0, void 0, function () { var modelMetadata, savedModel; var _c, _d, _e, _f; return __generator(this, function (_g) { switch (_g.label) { case 0: return [4 /*yield*/, this.getModelMetadata(namespace, model)]; case 1: modelMetadata = _g.sent(); if (!(modelMetadata === undefined)) return [3 /*break*/, 3]; return [4 /*yield*/, this.storage.save(this.modelInstanceCreator(ModelMetadata, { model: model, namespace: namespace, lastSync: null, fullSyncInterval: fullSyncInterval, lastFullSync: null, }), undefined, ownSymbol)]; case 2: _c = __read.apply(void 0, [_g.sent(), 1]), _d = __read(_c[0], 1), savedModel = _d[0]; return [3 /*break*/, 5]; case 3: return [4 /*yield*/, this.storage.save(this.modelClasses.ModelMetadata.copyOf(modelMetadata, function (draft) { draft.fullSyncInterval = fullSyncInterval; }))]; case 4: _e = __read.apply(void 0, [_g.sent(), 1]), _f = __read(_e[0], 1), savedModel = _f[0]; _g.label = 5; case 5: return [2 /*return*/, savedModel]; } }); }); }); result = {}; _d.label = 1; case 1: _d.trys.push([1, 6, 7, 8]); return [4 /*yield*/, Promise.all(promises)]; case 2: _a = __values.apply(void 0, [_d.sent()]), _b = _a.next(); _d.label = 3; case 3: if (!!_b.done) return [3 /*break*/, 5]; modelMetadata = _b.value; modelName = modelMetadata.model; result[modelName] = modelMetadata; _d.label = 4; case 4: _b = _a.next(); return [3 /*break*/, 3]; case 5: return [3 /*break*/, 8]; case 6: e_2_1 = _d.sent(); e_2 = { error: e_2_1 }; return [3 /*break*/, 8]; case 7: try { if (_b && !_b.done && (_c = _a.return)) _c.call(_a); } finally { if (e_2) throw e_2.error; } return [7 /*endfinally*/]; case 8: return [2 /*return*/, result]; } }); }); }; SyncEngine.prototype.getModelsMetadata = function () { return __awaiter(this, void 0, void 0, function () { var ModelMetadata, modelsMetadata; return __generator(this, function (_a) { switch (_a.label) { case 0: ModelMetadata = this.modelClasses .ModelMetadata; return [4 /*yield*/, this.storage.query(ModelMetadata)]; case 1: modelsMetadata = _a.sent(); return [2 /*return*/, modelsMetadata]; } }); }); }; SyncEngine.prototype.getModelMetadata = function (namespace, model) { return __awaiter(this, void 0, void 0, function () { var ModelMetadata, predicate, _a, modelMetadata; return __generator(this, function (_b) { switch (_b.label) { case 0: ModelMetadata = this.modelClasses .ModelMetadata; predicate = _predicates__WEBPACK_IMPORTED_MODULE_3__["ModelPredicateCreator"].createFromExisting(this.schema.namespaces[_util__WEBPACK_IMPORTED_MODULE_5__["SYNC"]].models[ModelMetadata.name], function (c) { return c.namespace('eq', namespace).model('eq', model); }); return [4 /*yield*/, this.storage.query(ModelMetadata, predicate, { page: 0, limit: 1, })]; case 1: _a = __read.apply(void 0, [_b.sent(), 1]), modelMetadata = _a[0]; return [2 /*return*/, modelMetadata]; } }); }); }; SyncEngine.prototype.getModelDefinition = function (modelConstructor) { var namespaceName = this.namespaceResolver(modelConstructor); var modelDefinition = this.schema.namespaces[namespaceName].models[modelConstructor.name]; return modelDefinition; }; SyncEngine.getNamespace = function () { var namespace = { name: _util__WEBPACK_IMPORTED_MODULE_5__["SYNC"], relationships: {}, enums: { OperationType: { name: 'OperationType', values: ['CREATE', 'UPDATE', 'DELETE'], }, }, nonModels: {}, models: { MutationEvent: { name: 'MutationEvent', pluralName: 'MutationEvents', syncable: false, fields: { id: { name: 'id', type: 'ID', isRequired: true, isArray: false, }, model: { name: 'model', type: 'String', isRequired: true, isArray: false, }, data: { name: 'data', type: 'String', isRequired: true, isArray: false, }, modelId: { name: 'modelId', type: 'String', isRequired: true, isArray: false, }, operation: { name: 'operation', type: { enum: 'Operationtype', }, isArray: false, isRequired: true, }, condition: { name: 'condition', type: 'String', isArray: false, isRequired: true, }, }, }, ModelMetadata: { name: 'ModelMetadata', pluralName: 'ModelsMetadata', syncable: false, fields: { id: { name: 'id', type: 'ID', isRequired: true, isArray: false, }, namespace: { name: 'namespace', type: 'String', isRequired: true, isArray: false, }, model: { name: 'model', type: 'String', isRequired: true, isArray: false, }, lastSync: { name: 'lastSync', type: 'Int', isRequired: false, isArray: false, }, lastFullSync: { name: 'lastFullSync', type: 'Int', isRequired: false, isArray: false, }, fullSyncInterval: { name: 'fullSyncInterval', type: 'Int', isRequired: true, isArray: false, }, }, }, }, }; return namespace; }; return SyncEngine; }()); //# sourceMappingURL=index.js.map /***/ }), /***/ "7Cir": /*!*********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetBucketAclCommand.js ***! \*********************************************************************************/ /*! exports provided: GetBucketAclCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBucketAclCommand", function() { return GetBucketAclCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetBucketAclCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetBucketAclCommand, _super); // Start section: command_properties // End section: command_properties function GetBucketAclCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetBucketAclCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketAclRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketAclOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetBucketAclCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetBucketAclCommand"])(input, context); }; GetBucketAclCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetBucketAclCommand"])(output, context); }; return GetBucketAclCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetBucketAclCommand.js.map /***/ }), /***/ "7DD1": /*!****************************************************************************!*\ !*** ./node_modules/amazon-cognito-identity-js/es/AuthenticationHelper.js ***! \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return AuthenticationHelper; }); /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! buffer */ "r0jy"); /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var crypto_js_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! crypto-js/core */ "Ib8C"); /* harmony import */ var crypto_js_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(crypto_js_core__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var crypto_js_lib_typedarrays__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! crypto-js/lib-typedarrays */ "F+F2"); /* harmony import */ var crypto_js_lib_typedarrays__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(crypto_js_lib_typedarrays__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var crypto_js_sha256__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! crypto-js/sha256 */ "lPiR"); /* harmony import */ var crypto_js_sha256__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(crypto_js_sha256__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var crypto_js_hmac_sha256__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! crypto-js/hmac-sha256 */ "7VPu"); /* harmony import */ var crypto_js_hmac_sha256__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(crypto_js_hmac_sha256__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _BigInteger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./BigInteger */ "6zvP"); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ // necessary for crypto js var randomBytes = function randomBytes(nBytes) { return buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(crypto_js_core__WEBPACK_IMPORTED_MODULE_1___default.a.lib.WordArray.random(nBytes).toString(), 'hex'); }; var initN = 'FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1' + '29024E088A67CC74020BBEA63B139B22514A08798E3404DD' + 'EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245' + 'E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED' + 'EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D' + 'C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F' + '83655D23DCA3AD961C62F356208552BB9ED529077096966D' + '670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B' + 'E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9' + 'DE2BCBF6955817183995497CEA956AE515D2261898FA0510' + '15728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64' + 'ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7' + 'ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6B' + 'F12FFA06D98A0864D87602733EC86A64521F2B18177B200C' + 'BBE117577A615D6C770988C0BAD946E208E24FA074E5AB31' + '43DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF'; var newPasswordRequiredChallengeUserAttributePrefix = 'userAttributes.'; /** @class */ var AuthenticationHelper = /*#__PURE__*/function () { /** * Constructs a new AuthenticationHelper object * @param {string} PoolName Cognito user pool name. */ function AuthenticationHelper(PoolName) { this.N = new _BigInteger__WEBPACK_IMPORTED_MODULE_5__["default"](initN, 16); this.g = new _BigInteger__WEBPACK_IMPORTED_MODULE_5__["default"]('2', 16); this.k = new _BigInteger__WEBPACK_IMPORTED_MODULE_5__["default"](this.hexHash("00" + this.N.toString(16) + "0" + this.g.toString(16)), 16); this.smallAValue = this.generateRandomSmallA(); this.getLargeAValue(function () {}); this.infoBits = buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from('Caldera Derived Key', 'utf8'); this.poolName = PoolName; } /** * @returns {BigInteger} small A, a random number */ var _proto = AuthenticationHelper.prototype; _proto.getSmallAValue = function getSmallAValue() { return this.smallAValue; } /** * @param {nodeCallback} callback Called with (err, largeAValue) * @returns {void} */ ; _proto.getLargeAValue = function getLargeAValue(callback) { var _this = this; if (this.largeAValue) { callback(null, this.largeAValue); } else { this.calculateA(this.smallAValue, function (err, largeAValue) { if (err) { callback(err, null); } _this.largeAValue = largeAValue; callback(null, _this.largeAValue); }); } } /** * helper function to generate a random big integer * @returns {BigInteger} a random value. * @private */ ; _proto.generateRandomSmallA = function generateRandomSmallA() { var hexRandom = randomBytes(128).toString('hex'); var randomBigInt = new _BigInteger__WEBPACK_IMPORTED_MODULE_5__["default"](hexRandom, 16); var smallABigInt = randomBigInt.mod(this.N); return smallABigInt; } /** * helper function to generate a random string * @returns {string} a random value. * @private */ ; _proto.generateRandomString = function generateRandomString() { return randomBytes(40).toString('base64'); } /** * @returns {string} Generated random value included in password hash. */ ; _proto.getRandomPassword = function getRandomPassword() { return this.randomPassword; } /** * @returns {string} Generated random value included in devices hash. */ ; _proto.getSaltDevices = function getSaltDevices() { return this.SaltToHashDevices; } /** * @returns {string} Value used to verify devices. */ ; _proto.getVerifierDevices = function getVerifierDevices() { return this.verifierDevices; } /** * Generate salts and compute verifier. * @param {string} deviceGroupKey Devices to generate verifier for. * @param {string} username User to generate verifier for. * @param {nodeCallback} callback Called with (err, null) * @returns {void} */ ; _proto.generateHashDevice = function generateHashDevice(deviceGroupKey, username, callback) { var _this2 = this; this.randomPassword = this.generateRandomString(); var combinedString = "" + deviceGroupKey + username + ":" + this.randomPassword; var hashedString = this.hash(combinedString); var hexRandom = randomBytes(16).toString('hex'); this.SaltToHashDevices = this.padHex(new _BigInteger__WEBPACK_IMPORTED_MODULE_5__["default"](hexRandom, 16)); this.g.modPow(new _BigInteger__WEBPACK_IMPORTED_MODULE_5__["default"](this.hexHash(this.SaltToHashDevices + hashedString), 16), this.N, function (err, verifierDevicesNotPadded) { if (err) { callback(err, null); } _this2.verifierDevices = _this2.padHex(verifierDevicesNotPadded); callback(null, null); }); } /** * Calculate the client's public value A = g^a%N * with the generated random number a * @param {BigInteger} a Randomly generated small A. * @param {nodeCallback} callback Called with (err, largeAValue) * @returns {void} * @private */ ; _proto.calculateA = function calculateA(a, callback) { var _this3 = this; this.g.modPow(a, this.N, function (err, A) { if (err) { callback(err, null); } if (A.mod(_this3.N).equals(_BigInteger__WEBPACK_IMPORTED_MODULE_5__["default"].ZERO)) { callback(new Error('Illegal paramater. A mod N cannot be 0.'), null); } callback(null, A); }); } /** * Calculate the client's value U which is the hash of A and B * @param {BigInteger} A Large A value. * @param {BigInteger} B Server B value. * @returns {BigInteger} Computed U value. * @private */ ; _proto.calculateU = function calculateU(A, B) { this.UHexHash = this.hexHash(this.padHex(A) + this.padHex(B)); var finalU = new _BigInteger__WEBPACK_IMPORTED_MODULE_5__["default"](this.UHexHash, 16); return finalU; } /** * Calculate a hash from a bitArray * @param {Buffer} buf Value to hash. * @returns {String} Hex-encoded hash. * @private */ ; _proto.hash = function hash(buf) { var str = buf instanceof buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"] ? crypto_js_core__WEBPACK_IMPORTED_MODULE_1___default.a.lib.WordArray.create(buf) : buf; var hashHex = crypto_js_sha256__WEBPACK_IMPORTED_MODULE_3___default()(str).toString(); return new Array(64 - hashHex.length).join('0') + hashHex; } /** * Calculate a hash from a hex string * @param {String} hexStr Value to hash. * @returns {String} Hex-encoded hash. * @private */ ; _proto.hexHash = function hexHash(hexStr) { return this.hash(buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(hexStr, 'hex')); } /** * Standard hkdf algorithm * @param {Buffer} ikm Input key material. * @param {Buffer} salt Salt value. * @returns {Buffer} Strong key material. * @private */ ; _proto.computehkdf = function computehkdf(ikm, salt) { var infoBitsWordArray = crypto_js_core__WEBPACK_IMPORTED_MODULE_1___default.a.lib.WordArray.create(buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].concat([this.infoBits, buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(String.fromCharCode(1), 'utf8')])); var ikmWordArray = ikm instanceof buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"] ? crypto_js_core__WEBPACK_IMPORTED_MODULE_1___default.a.lib.WordArray.create(ikm) : ikm; var saltWordArray = salt instanceof buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"] ? crypto_js_core__WEBPACK_IMPORTED_MODULE_1___default.a.lib.WordArray.create(salt) : salt; var prk = crypto_js_hmac_sha256__WEBPACK_IMPORTED_MODULE_4___default()(ikmWordArray, saltWordArray); var hmac = crypto_js_hmac_sha256__WEBPACK_IMPORTED_MODULE_4___default()(infoBitsWordArray, prk); return buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(hmac.toString(), 'hex').slice(0, 16); } /** * Calculates the final hkdf based on computed S value, and computed U value and the key * @param {String} username Username. * @param {String} password Password. * @param {BigInteger} serverBValue Server B value. * @param {BigInteger} salt Generated salt. * @param {nodeCallback} callback Called with (err, hkdfValue) * @returns {void} */ ; _proto.getPasswordAuthenticationKey = function getPasswordAuthenticationKey(username, password, serverBValue, salt, callback) { var _this4 = this; if (serverBValue.mod(this.N).equals(_BigInteger__WEBPACK_IMPORTED_MODULE_5__["default"].ZERO)) { throw new Error('B cannot be zero.'); } this.UValue = this.calculateU(this.largeAValue, serverBValue); if (this.UValue.equals(_BigInteger__WEBPACK_IMPORTED_MODULE_5__["default"].ZERO)) { throw new Error('U cannot be zero.'); } var usernamePassword = "" + this.poolName + username + ":" + password; var usernamePasswordHash = this.hash(usernamePassword); var xValue = new _BigInteger__WEBPACK_IMPORTED_MODULE_5__["default"](this.hexHash(this.padHex(salt) + usernamePasswordHash), 16); this.calculateS(xValue, serverBValue, function (err, sValue) { if (err) { callback(err, null); } var hkdf = _this4.computehkdf(buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(_this4.padHex(sValue), 'hex'), buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(_this4.padHex(_this4.UValue.toString(16)), 'hex')); callback(null, hkdf); }); } /** * Calculates the S value used in getPasswordAuthenticationKey * @param {BigInteger} xValue Salted password hash value. * @param {BigInteger} serverBValue Server B value. * @param {nodeCallback} callback Called on success or error. * @returns {void} */ ; _proto.calculateS = function calculateS(xValue, serverBValue, callback) { var _this5 = this; this.g.modPow(xValue, this.N, function (err, gModPowXN) { if (err) { callback(err, null); } var intValue2 = serverBValue.subtract(_this5.k.multiply(gModPowXN)); intValue2.modPow(_this5.smallAValue.add(_this5.UValue.multiply(xValue)), _this5.N, function (err2, result) { if (err2) { callback(err2, null); } callback(null, result.mod(_this5.N)); }); }); } /** * Return constant newPasswordRequiredChallengeUserAttributePrefix * @return {newPasswordRequiredChallengeUserAttributePrefix} constant prefix value */ ; _proto.getNewPasswordRequiredChallengeUserAttributePrefix = function getNewPasswordRequiredChallengeUserAttributePrefix() { return newPasswordRequiredChallengeUserAttributePrefix; } /** * Converts a BigInteger (or hex string) to hex format padded with zeroes for hashing * @param {BigInteger|String} bigInt Number or string to pad. * @returns {String} Padded hex string. */ ; _proto.padHex = function padHex(bigInt) { var hashStr = bigInt.toString(16); if (hashStr.length % 2 === 1) { hashStr = "0" + hashStr; } else if ('89ABCDEFabcdef'.indexOf(hashStr[0]) !== -1) { hashStr = "00" + hashStr; } return hashStr; }; return AuthenticationHelper; }(); /***/ }), /***/ "7GkX": /*!*************************************!*\ !*** ./node_modules/lodash/keys.js ***! \*************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "b80T"), baseKeys = __webpack_require__(/*! ./_baseKeys */ "A90E"), isArrayLike = __webpack_require__(/*! ./isArrayLike */ "MMmD"); /** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * for more details. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keys(new Foo); * // => ['a', 'b'] (iteration order is not guaranteed) * * _.keys('hi'); * // => ['0', '1'] */ function keys(object) { return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); } module.exports = keys; /***/ }), /***/ "7GqI": /*!******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/pagination/GetContentModerationPaginator.js ***! \******************************************************************************************************/ /*! exports provided: getContentModerationPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getContentModerationPaginate", function() { return getContentModerationPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Rekognition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Rekognition */ "MjkZ"); /* harmony import */ var _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../RekognitionClient */ "YOij"); /* harmony import */ var _commands_GetContentModerationCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/GetContentModerationCommand */ "jQbL"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_GetContentModerationCommand__WEBPACK_IMPORTED_MODULE_3__["GetContentModerationCommand"].bind.apply(_commands_GetContentModerationCommand__WEBPACK_IMPORTED_MODULE_3__["GetContentModerationCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.getContentModeration.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function getContentModerationPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function getContentModerationPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Rekognition__WEBPACK_IMPORTED_MODULE_1__["Rekognition"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__["RekognitionClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Rekognition | RekognitionClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=GetContentModerationPaginator.js.map /***/ }), /***/ "7HRe": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/scheduled/scheduled.js ***! \********************************************************************/ /*! exports provided: scheduled */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheduled", function() { return scheduled; }); /* harmony import */ var _scheduleObservable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./scheduleObservable */ "5B2Y"); /* harmony import */ var _schedulePromise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./schedulePromise */ "4yVj"); /* harmony import */ var _scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./scheduleArray */ "jZKg"); /* harmony import */ var _scheduleIterable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./scheduleIterable */ "MBAA"); /* harmony import */ var _util_isInteropObservable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/isInteropObservable */ "QIAL"); /* harmony import */ var _util_isPromise__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/isPromise */ "c2HN"); /* harmony import */ var _util_isArrayLike__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util/isArrayLike */ "I55L"); /* harmony import */ var _util_isIterable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../util/isIterable */ "CMyj"); function scheduled(input, scheduler) { if (input != null) { if (Object(_util_isInteropObservable__WEBPACK_IMPORTED_MODULE_4__["isInteropObservable"])(input)) { return Object(_scheduleObservable__WEBPACK_IMPORTED_MODULE_0__["scheduleObservable"])(input, scheduler); } else if (Object(_util_isPromise__WEBPACK_IMPORTED_MODULE_5__["isPromise"])(input)) { return Object(_schedulePromise__WEBPACK_IMPORTED_MODULE_1__["schedulePromise"])(input, scheduler); } else if (Object(_util_isArrayLike__WEBPACK_IMPORTED_MODULE_6__["isArrayLike"])(input)) { return Object(_scheduleArray__WEBPACK_IMPORTED_MODULE_2__["scheduleArray"])(input, scheduler); } else if (Object(_util_isIterable__WEBPACK_IMPORTED_MODULE_7__["isIterable"])(input) || typeof input === 'string') { return Object(_scheduleIterable__WEBPACK_IMPORTED_MODULE_3__["scheduleIterable"])(input, scheduler); } } throw new TypeError((input !== null && typeof input || input) + ' is not observable'); } //# sourceMappingURL=scheduled.js.map /***/ }), /***/ "7Hc7": /*!***************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/scheduler/asap.js ***! \***************************************************************/ /*! exports provided: asapScheduler, asap */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asapScheduler", function() { return asapScheduler; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asap", function() { return asap; }); /* harmony import */ var _AsapAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsapAction */ "Pz8W"); /* harmony import */ var _AsapScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AsapScheduler */ "RUbi"); const asapScheduler = new _AsapScheduler__WEBPACK_IMPORTED_MODULE_1__["AsapScheduler"](_AsapAction__WEBPACK_IMPORTED_MODULE_0__["AsapAction"]); const asap = asapScheduler; //# sourceMappingURL=asap.js.map /***/ }), /***/ "7IyW": /*!********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/eventstream-serde-universal/dist/es/EventStreamMarshaller.js ***! \********************************************************************************************/ /*! exports provided: EventStreamMarshaller */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return EventStreamMarshaller; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_eventstream_marshaller__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/eventstream-marshaller */ "GuSx"); /* harmony import */ var _getChunkedStream__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getChunkedStream */ "OFUB"); /* harmony import */ var _getUnmarshalledStream__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getUnmarshalledStream */ "/yzG"); var EventStreamMarshaller = /** @class */ (function () { function EventStreamMarshaller(_a) { var utf8Encoder = _a.utf8Encoder, utf8Decoder = _a.utf8Decoder; this.eventMarshaller = new _aws_sdk_eventstream_marshaller__WEBPACK_IMPORTED_MODULE_1__["EventStreamMarshaller"](utf8Encoder, utf8Decoder); this.utfEncoder = utf8Encoder; } EventStreamMarshaller.prototype.deserialize = function (body, deserializer) { var chunkedStream = Object(_getChunkedStream__WEBPACK_IMPORTED_MODULE_2__["getChunkedStream"])(body); var unmarshalledStream = Object(_getUnmarshalledStream__WEBPACK_IMPORTED_MODULE_3__["getUnmarshalledStream"])(chunkedStream, { eventMarshaller: this.eventMarshaller, deserializer: deserializer, toUtf8: this.utfEncoder, }); return unmarshalledStream; }; EventStreamMarshaller.prototype.serialize = function (input, serializer) { var _a; // eslint-disable-next-line @typescript-eslint/no-this-alias var self = this; var serializedIterator = function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function () { var input_1, input_1_1, chunk, payloadBuf, e_1_1; var e_1, _a; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: _b.trys.push([0, 7, 8, 13]); input_1 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncValues"])(input); _b.label = 1; case 1: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(input_1.next())]; case 2: if (!(input_1_1 = _b.sent(), !input_1_1.done)) return [3 /*break*/, 6]; chunk = input_1_1.value; payloadBuf = self.eventMarshaller.marshall(serializer(chunk)); return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(payloadBuf)]; case 3: return [4 /*yield*/, _b.sent()]; case 4: _b.sent(); _b.label = 5; case 5: return [3 /*break*/, 1]; case 6: return [3 /*break*/, 13]; case 7: e_1_1 = _b.sent(); e_1 = { error: e_1_1 }; return [3 /*break*/, 13]; case 8: _b.trys.push([8, , 11, 12]); if (!(input_1_1 && !input_1_1.done && (_a = input_1.return))) return [3 /*break*/, 10]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(_a.call(input_1))]; case 9: _b.sent(); _b.label = 10; case 10: return [3 /*break*/, 12]; case 11: if (e_1) throw e_1.error; return [7 /*endfinally*/]; case 12: return [7 /*endfinally*/]; case 13: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(new Uint8Array(0))]; case 14: // Ending frame return [4 /*yield*/, _b.sent()]; case 15: // Ending frame _b.sent(); return [2 /*return*/]; } }); }); }; return _a = {}, _a[Symbol.asyncIterator] = serializedIterator, _a; }; return EventStreamMarshaller; }()); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRTdHJlYW1NYXJzaGFsbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL0V2ZW50U3RyZWFtTWFyc2hhbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLHFCQUFxQixJQUFJLGVBQWUsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBRzNGLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ3RELE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBU2hFO0lBR0UsK0JBQVksRUFBMEQ7WUFBeEQsV0FBVyxpQkFBQSxFQUFFLFdBQVcsaUJBQUE7UUFDcEMsSUFBSSxDQUFDLGVBQWUsR0FBRyxJQUFJLGVBQWUsQ0FBQyxXQUFXLEVBQUUsV0FBVyxDQUFDLENBQUM7UUFDckUsSUFBSSxDQUFDLFVBQVUsR0FBRyxXQUFXLENBQUM7SUFDaEMsQ0FBQztJQUVELDJDQUFXLEdBQVgsVUFDRSxJQUErQixFQUMvQixZQUFpRTtRQUVqRSxJQUFNLGFBQWEsR0FBRyxnQkFBZ0IsQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUM3QyxJQUFNLGtCQUFrQixHQUFHLHFCQUFxQixDQUFDLGFBQWEsRUFBRTtZQUM5RCxlQUFlLEVBQUUsSUFBSSxDQUFDLGVBQWU7WUFDckMsWUFBWSxjQUFBO1lBQ1osTUFBTSxFQUFFLElBQUksQ0FBQyxVQUFVO1NBQ3hCLENBQUMsQ0FBQztRQUNILE9BQU8sa0JBQWtCLENBQUM7SUFDNUIsQ0FBQztJQUVELHlDQUFTLEdBQVQsVUFBYSxLQUF1QixFQUFFLFVBQWlDOztRQUNyRSw0REFBNEQ7UUFDNUQsSUFBTSxJQUFJLEdBQUcsSUFBSSxDQUFDO1FBQ2xCLElBQU0sa0JBQWtCLEdBQUc7Ozs7Ozs7OzRCQUNDLFVBQUEsY0FBQSxLQUFLLENBQUE7Ozs7OzRCQUFkLEtBQUssa0JBQUEsQ0FBQTs0QkFDZCxVQUFVLEdBQUcsSUFBSSxDQUFDLGVBQWUsQ0FBQyxRQUFRLENBQUMsVUFBVSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUM7eURBQzlELFVBQVU7Z0NBQWhCLGdDQUFnQjs7NEJBQWhCLFNBQWdCLENBQUM7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzhEQUdiLElBQUksVUFBVSxDQUFDLENBQUMsQ0FBQzs7d0JBRHZCLGVBQWU7d0JBQ2YsZ0NBQXVCOzs0QkFEdkIsZUFBZTs0QkFDZixTQUF1QixDQUFDOzs7OztTQUN6QixDQUFDO1FBQ0Y7WUFDRSxHQUFDLE1BQU0sQ0FBQyxhQUFhLElBQUcsa0JBQWtCO2VBQzFDO0lBQ0osQ0FBQztJQUNILDRCQUFDO0FBQUQsQ0FBQyxBQXBDRCxJQW9DQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEV2ZW50U3RyZWFtTWFyc2hhbGxlciBhcyBFdmVudE1hcnNoYWxsZXIgfSBmcm9tIFwiQGF3cy1zZGsvZXZlbnRzdHJlYW0tbWFyc2hhbGxlclwiO1xuaW1wb3J0IHsgRGVjb2RlciwgRW5jb2RlciwgRXZlbnRTdHJlYW1NYXJzaGFsbGVyIGFzIElFdmVudFN0cmVhbU1hcnNoYWxsZXIsIE1lc3NhZ2UgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuaW1wb3J0IHsgZ2V0Q2h1bmtlZFN0cmVhbSB9IGZyb20gXCIuL2dldENodW5rZWRTdHJlYW1cIjtcbmltcG9ydCB7IGdldFVubWFyc2hhbGxlZFN0cmVhbSB9IGZyb20gXCIuL2dldFVubWFyc2hhbGxlZFN0cmVhbVwiO1xuXG5leHBvcnQgaW50ZXJmYWNlIEV2ZW50U3RyZWFtTWFyc2hhbGxlciBleHRlbmRzIElFdmVudFN0cmVhbU1hcnNoYWxsZXIge31cblxuZXhwb3J0IGludGVyZmFjZSBFdmVudFN0cmVhbU1hcnNoYWxsZXJPcHRpb25zIHtcbiAgdXRmOEVuY29kZXI6IEVuY29kZXI7XG4gIHV0ZjhEZWNvZGVyOiBEZWNvZGVyO1xufVxuXG5leHBvcnQgY2xhc3MgRXZlbnRTdHJlYW1NYXJzaGFsbGVyIHtcbiAgcHJpdmF0ZSByZWFkb25seSBldmVudE1hcnNoYWxsZXI6IEV2ZW50TWFyc2hhbGxlcjtcbiAgcHJpdmF0ZSByZWFkb25seSB1dGZFbmNvZGVyOiBFbmNvZGVyO1xuICBjb25zdHJ1Y3Rvcih7IHV0ZjhFbmNvZGVyLCB1dGY4RGVjb2RlciB9OiBFdmVudFN0cmVhbU1hcnNoYWxsZXJPcHRpb25zKSB7XG4gICAgdGhpcy5ldmVudE1hcnNoYWxsZXIgPSBuZXcgRXZlbnRNYXJzaGFsbGVyKHV0ZjhFbmNvZGVyLCB1dGY4RGVjb2Rlcik7XG4gICAgdGhpcy51dGZFbmNvZGVyID0gdXRmOEVuY29kZXI7XG4gIH1cblxuICBkZXNlcmlhbGl6ZTxUPihcbiAgICBib2R5OiBBc3luY0l0ZXJhYmxlPFVpbnQ4QXJyYXk+LFxuICAgIGRlc2VyaWFsaXplcjogKGlucHV0OiB7IFtldmVudDogc3RyaW5nXTogTWVzc2FnZSB9KSA9PiBQcm9taXNlPFQ+XG4gICk6IEFzeW5jSXRlcmFibGU8VD4ge1xuICAgIGNvbnN0IGNodW5rZWRTdHJlYW0gPSBnZXRDaHVua2VkU3RyZWFtKGJvZHkpO1xuICAgIGNvbnN0IHVubWFyc2hhbGxlZFN0cmVhbSA9IGdldFVubWFyc2hhbGxlZFN0cmVhbShjaHVua2VkU3RyZWFtLCB7XG4gICAgICBldmVudE1hcnNoYWxsZXI6IHRoaXMuZXZlbnRNYXJzaGFsbGVyLFxuICAgICAgZGVzZXJpYWxpemVyLFxuICAgICAgdG9VdGY4OiB0aGlzLnV0ZkVuY29kZXIsXG4gICAgfSk7XG4gICAgcmV0dXJuIHVubWFyc2hhbGxlZFN0cmVhbTtcbiAgfVxuXG4gIHNlcmlhbGl6ZTxUPihpbnB1dDogQXN5bmNJdGVyYWJsZTxUPiwgc2VyaWFsaXplcjogKGV2ZW50OiBUKSA9PiBNZXNzYWdlKTogQXN5bmNJdGVyYWJsZTxVaW50OEFycmF5PiB7XG4gICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby10aGlzLWFsaWFzXG4gICAgY29uc3Qgc2VsZiA9IHRoaXM7XG4gICAgY29uc3Qgc2VyaWFsaXplZEl0ZXJhdG9yID0gYXN5bmMgZnVuY3Rpb24qICgpIHtcbiAgICAgIGZvciBhd2FpdCAoY29uc3QgY2h1bmsgb2YgaW5wdXQpIHtcbiAgICAgICAgY29uc3QgcGF5bG9hZEJ1ZiA9IHNlbGYuZXZlbnRNYXJzaGFsbGVyLm1hcnNoYWxsKHNlcmlhbGl6ZXIoY2h1bmspKTtcbiAgICAgICAgeWllbGQgcGF5bG9hZEJ1ZjtcbiAgICAgIH1cbiAgICAgIC8vIEVuZGluZyBmcmFtZVxuICAgICAgeWllbGQgbmV3IFVpbnQ4QXJyYXkoMCk7XG4gICAgfTtcbiAgICByZXR1cm4ge1xuICAgICAgW1N5bWJvbC5hc3luY0l0ZXJhdG9yXTogc2VyaWFsaXplZEl0ZXJhdG9yLFxuICAgIH07XG4gIH1cbn1cbiJdfQ== /***/ }), /***/ "7JaV": /*!****************************************************************************!*\ !*** ./node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.es6.js ***! \****************************************************************************/ /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; }); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ /* global Reflect, Promise */ var extendStatics = function(d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; function __extends(d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); } var __assign = function() { __assign = Object.assign || function __assign(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; } return __assign.apply(this, arguments); } function __rest(s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; } function __decorate(decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); 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; return c > 3 && r && Object.defineProperty(target, key, r), r; } function __param(paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } } function __metadata(metadataKey, metadataValue) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); } function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); } function __generator(thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } } function __createBinding(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; } function __exportStar(m, exports) { for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; } function __values(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); } function __read(o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; } function __spread() { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; } function __spreadArrays() { for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j]; return r; }; function __await(v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } function __asyncGenerator(thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; 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); }); }; } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } } function __asyncDelegator(o) { var i, p; return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; 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; } } function __asyncValues(o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m = o[Symbol.asyncIterator], i; 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); 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); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } } function __makeTemplateObject(cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; function __importStar(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result.default = mod; return result; } function __importDefault(mod) { return (mod && mod.__esModule) ? mod : { default: mod }; } function __classPrivateFieldGet(receiver, privateMap) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return privateMap.get(receiver); } function __classPrivateFieldSet(receiver, privateMap, value) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to set private field on non-instance"); } privateMap.set(receiver, value); return value; } /***/ }), /***/ "7QQ4": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/protocols/Aws_json1_1.js ***! \****************************************************************************************/ /*! exports provided: serializeAws_json1_1CreateIdentityPoolCommand, serializeAws_json1_1DeleteIdentitiesCommand, serializeAws_json1_1DeleteIdentityPoolCommand, serializeAws_json1_1DescribeIdentityCommand, serializeAws_json1_1DescribeIdentityPoolCommand, serializeAws_json1_1GetCredentialsForIdentityCommand, serializeAws_json1_1GetIdCommand, serializeAws_json1_1GetIdentityPoolRolesCommand, serializeAws_json1_1GetOpenIdTokenCommand, serializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommand, serializeAws_json1_1ListIdentitiesCommand, serializeAws_json1_1ListIdentityPoolsCommand, serializeAws_json1_1ListTagsForResourceCommand, serializeAws_json1_1LookupDeveloperIdentityCommand, serializeAws_json1_1MergeDeveloperIdentitiesCommand, serializeAws_json1_1SetIdentityPoolRolesCommand, serializeAws_json1_1TagResourceCommand, serializeAws_json1_1UnlinkDeveloperIdentityCommand, serializeAws_json1_1UnlinkIdentityCommand, serializeAws_json1_1UntagResourceCommand, serializeAws_json1_1UpdateIdentityPoolCommand, deserializeAws_json1_1CreateIdentityPoolCommand, deserializeAws_json1_1DeleteIdentitiesCommand, deserializeAws_json1_1DeleteIdentityPoolCommand, deserializeAws_json1_1DescribeIdentityCommand, deserializeAws_json1_1DescribeIdentityPoolCommand, deserializeAws_json1_1GetCredentialsForIdentityCommand, deserializeAws_json1_1GetIdCommand, deserializeAws_json1_1GetIdentityPoolRolesCommand, deserializeAws_json1_1GetOpenIdTokenCommand, deserializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommand, deserializeAws_json1_1ListIdentitiesCommand, deserializeAws_json1_1ListIdentityPoolsCommand, deserializeAws_json1_1ListTagsForResourceCommand, deserializeAws_json1_1LookupDeveloperIdentityCommand, deserializeAws_json1_1MergeDeveloperIdentitiesCommand, deserializeAws_json1_1SetIdentityPoolRolesCommand, deserializeAws_json1_1TagResourceCommand, deserializeAws_json1_1UnlinkDeveloperIdentityCommand, deserializeAws_json1_1UnlinkIdentityCommand, deserializeAws_json1_1UntagResourceCommand, deserializeAws_json1_1UpdateIdentityPoolCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1CreateIdentityPoolCommand", function() { return serializeAws_json1_1CreateIdentityPoolCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeleteIdentitiesCommand", function() { return serializeAws_json1_1DeleteIdentitiesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeleteIdentityPoolCommand", function() { return serializeAws_json1_1DeleteIdentityPoolCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeIdentityCommand", function() { return serializeAws_json1_1DescribeIdentityCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeIdentityPoolCommand", function() { return serializeAws_json1_1DescribeIdentityPoolCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetCredentialsForIdentityCommand", function() { return serializeAws_json1_1GetCredentialsForIdentityCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetIdCommand", function() { return serializeAws_json1_1GetIdCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetIdentityPoolRolesCommand", function() { return serializeAws_json1_1GetIdentityPoolRolesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetOpenIdTokenCommand", function() { return serializeAws_json1_1GetOpenIdTokenCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommand", function() { return serializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListIdentitiesCommand", function() { return serializeAws_json1_1ListIdentitiesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListIdentityPoolsCommand", function() { return serializeAws_json1_1ListIdentityPoolsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListTagsForResourceCommand", function() { return serializeAws_json1_1ListTagsForResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1LookupDeveloperIdentityCommand", function() { return serializeAws_json1_1LookupDeveloperIdentityCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1MergeDeveloperIdentitiesCommand", function() { return serializeAws_json1_1MergeDeveloperIdentitiesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1SetIdentityPoolRolesCommand", function() { return serializeAws_json1_1SetIdentityPoolRolesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1TagResourceCommand", function() { return serializeAws_json1_1TagResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1UnlinkDeveloperIdentityCommand", function() { return serializeAws_json1_1UnlinkDeveloperIdentityCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1UnlinkIdentityCommand", function() { return serializeAws_json1_1UnlinkIdentityCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1UntagResourceCommand", function() { return serializeAws_json1_1UntagResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1UpdateIdentityPoolCommand", function() { return serializeAws_json1_1UpdateIdentityPoolCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1CreateIdentityPoolCommand", function() { return deserializeAws_json1_1CreateIdentityPoolCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeleteIdentitiesCommand", function() { return deserializeAws_json1_1DeleteIdentitiesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeleteIdentityPoolCommand", function() { return deserializeAws_json1_1DeleteIdentityPoolCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeIdentityCommand", function() { return deserializeAws_json1_1DescribeIdentityCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeIdentityPoolCommand", function() { return deserializeAws_json1_1DescribeIdentityPoolCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetCredentialsForIdentityCommand", function() { return deserializeAws_json1_1GetCredentialsForIdentityCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetIdCommand", function() { return deserializeAws_json1_1GetIdCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetIdentityPoolRolesCommand", function() { return deserializeAws_json1_1GetIdentityPoolRolesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetOpenIdTokenCommand", function() { return deserializeAws_json1_1GetOpenIdTokenCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommand", function() { return deserializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListIdentitiesCommand", function() { return deserializeAws_json1_1ListIdentitiesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListIdentityPoolsCommand", function() { return deserializeAws_json1_1ListIdentityPoolsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListTagsForResourceCommand", function() { return deserializeAws_json1_1ListTagsForResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1LookupDeveloperIdentityCommand", function() { return deserializeAws_json1_1LookupDeveloperIdentityCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1MergeDeveloperIdentitiesCommand", function() { return deserializeAws_json1_1MergeDeveloperIdentitiesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1SetIdentityPoolRolesCommand", function() { return deserializeAws_json1_1SetIdentityPoolRolesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1TagResourceCommand", function() { return deserializeAws_json1_1TagResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1UnlinkDeveloperIdentityCommand", function() { return deserializeAws_json1_1UnlinkDeveloperIdentityCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1UnlinkIdentityCommand", function() { return deserializeAws_json1_1UnlinkIdentityCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1UntagResourceCommand", function() { return deserializeAws_json1_1UntagResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1UpdateIdentityPoolCommand", function() { return deserializeAws_json1_1UpdateIdentityPoolCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "Enk7"); var serializeAws_json1_1CreateIdentityPoolCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.CreateIdentityPool", }; body = JSON.stringify(serializeAws_json1_1CreateIdentityPoolInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DeleteIdentitiesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.DeleteIdentities", }; body = JSON.stringify(serializeAws_json1_1DeleteIdentitiesInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DeleteIdentityPoolCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.DeleteIdentityPool", }; body = JSON.stringify(serializeAws_json1_1DeleteIdentityPoolInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeIdentityCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.DescribeIdentity", }; body = JSON.stringify(serializeAws_json1_1DescribeIdentityInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeIdentityPoolCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.DescribeIdentityPool", }; body = JSON.stringify(serializeAws_json1_1DescribeIdentityPoolInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetCredentialsForIdentityCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.GetCredentialsForIdentity", }; body = JSON.stringify(serializeAws_json1_1GetCredentialsForIdentityInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetIdCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.GetId", }; body = JSON.stringify(serializeAws_json1_1GetIdInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetIdentityPoolRolesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.GetIdentityPoolRoles", }; body = JSON.stringify(serializeAws_json1_1GetIdentityPoolRolesInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetOpenIdTokenCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.GetOpenIdToken", }; body = JSON.stringify(serializeAws_json1_1GetOpenIdTokenInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.GetOpenIdTokenForDeveloperIdentity", }; body = JSON.stringify(serializeAws_json1_1GetOpenIdTokenForDeveloperIdentityInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListIdentitiesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.ListIdentities", }; body = JSON.stringify(serializeAws_json1_1ListIdentitiesInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListIdentityPoolsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.ListIdentityPools", }; body = JSON.stringify(serializeAws_json1_1ListIdentityPoolsInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.ListTagsForResource", }; body = JSON.stringify(serializeAws_json1_1ListTagsForResourceInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1LookupDeveloperIdentityCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.LookupDeveloperIdentity", }; body = JSON.stringify(serializeAws_json1_1LookupDeveloperIdentityInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1MergeDeveloperIdentitiesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.MergeDeveloperIdentities", }; body = JSON.stringify(serializeAws_json1_1MergeDeveloperIdentitiesInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1SetIdentityPoolRolesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.SetIdentityPoolRoles", }; body = JSON.stringify(serializeAws_json1_1SetIdentityPoolRolesInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1TagResourceCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.TagResource", }; body = JSON.stringify(serializeAws_json1_1TagResourceInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1UnlinkDeveloperIdentityCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.UnlinkDeveloperIdentity", }; body = JSON.stringify(serializeAws_json1_1UnlinkDeveloperIdentityInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1UnlinkIdentityCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.UnlinkIdentity", }; body = JSON.stringify(serializeAws_json1_1UnlinkIdentityInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1UntagResourceCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.UntagResource", }; body = JSON.stringify(serializeAws_json1_1UntagResourceInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1UpdateIdentityPoolCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSCognitoIdentityService.UpdateIdentityPool", }; body = JSON.stringify(serializeAws_json1_1IdentityPool(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var deserializeAws_json1_1CreateIdentityPoolCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1CreateIdentityPoolCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1IdentityPool(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "IdentityPool" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1CreateIdentityPoolCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalErrorException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 2]; case "InvalidParameterException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 4]; case "LimitExceededException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#LimitExceededException": return [3 /*break*/, 6]; case "NotAuthorizedException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 8]; case "ResourceConflictException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3 /*break*/, 10]; case "TooManyRequestsException": return [3 /*break*/, 12]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DeleteIdentitiesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DeleteIdentitiesCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DeleteIdentitiesResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DeleteIdentitiesResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DeleteIdentitiesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, parsedBody, message; var _f; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _f = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalErrorException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 2]; case "InvalidParameterException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 4]; case "TooManyRequestsException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 6]; } return [3 /*break*/, 8]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 8: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _g.label = 9; case 9: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DeleteIdentityPoolCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DeleteIdentityPoolCommandError(output, context)]; } return [4 /*yield*/, collectBody(output.body, context)]; case 1: _a.sent(); response = { $metadata: deserializeMetadata(output), }; return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DeleteIdentityPoolCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalErrorException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 2]; case "InvalidParameterException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 4]; case "NotAuthorizedException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 8]; case "TooManyRequestsException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeIdentityCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeIdentityCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1IdentityDescription(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "IdentityDescription" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeIdentityCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalErrorException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 2]; case "InvalidParameterException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 4]; case "NotAuthorizedException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 8]; case "TooManyRequestsException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeIdentityPoolCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeIdentityPoolCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1IdentityPool(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "IdentityPool" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeIdentityPoolCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalErrorException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 2]; case "InvalidParameterException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 4]; case "NotAuthorizedException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 8]; case "TooManyRequestsException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetCredentialsForIdentityCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetCredentialsForIdentityCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetCredentialsForIdentityResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetCredentialsForIdentityResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetCredentialsForIdentityCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; var _l; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) { switch (_m.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _l = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "ExternalServiceException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#ExternalServiceException": return [3 /*break*/, 2]; case "InternalErrorException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 4]; case "InvalidIdentityPoolConfigurationException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 8]; case "NotAuthorizedException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 10]; case "ResourceConflictException": return [3 /*break*/, 12]; case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3 /*break*/, 12]; case "ResourceNotFoundException": return [3 /*break*/, 14]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 14]; case "TooManyRequestsException": return [3 /*break*/, 16]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 16]; } return [3 /*break*/, 18]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1ExternalServiceExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidIdentityPoolConfigurationExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 18: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _m.label = 19; case 19: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetIdCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetIdCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetIdResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetIdResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetIdCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; var _l; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) { switch (_m.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _l = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "ExternalServiceException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#ExternalServiceException": return [3 /*break*/, 2]; case "InternalErrorException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 6]; case "LimitExceededException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#LimitExceededException": return [3 /*break*/, 8]; case "NotAuthorizedException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 10]; case "ResourceConflictException": return [3 /*break*/, 12]; case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3 /*break*/, 12]; case "ResourceNotFoundException": return [3 /*break*/, 14]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 14]; case "TooManyRequestsException": return [3 /*break*/, 16]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 16]; } return [3 /*break*/, 18]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1ExternalServiceExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 18: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _m.label = 19; case 19: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetIdentityPoolRolesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetIdentityPoolRolesCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetIdentityPoolRolesResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetIdentityPoolRolesResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetIdentityPoolRolesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalErrorException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 2]; case "InvalidParameterException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 4]; case "NotAuthorizedException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 6]; case "ResourceConflictException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3 /*break*/, 8]; case "ResourceNotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 10]; case "TooManyRequestsException": return [3 /*break*/, 12]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetOpenIdTokenCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetOpenIdTokenCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetOpenIdTokenResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetOpenIdTokenResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetOpenIdTokenCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "ExternalServiceException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#ExternalServiceException": return [3 /*break*/, 2]; case "InternalErrorException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 6]; case "NotAuthorizedException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 8]; case "ResourceConflictException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1ExternalServiceExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetOpenIdTokenForDeveloperIdentityResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetOpenIdTokenForDeveloperIdentityResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "DeveloperUserAlreadyRegisteredException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#DeveloperUserAlreadyRegisteredException": return [3 /*break*/, 2]; case "InternalErrorException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 6]; case "NotAuthorizedException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 8]; case "ResourceConflictException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1DeveloperUserAlreadyRegisteredExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListIdentitiesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListIdentitiesCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListIdentitiesResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListIdentitiesResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListIdentitiesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalErrorException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 2]; case "InvalidParameterException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 4]; case "NotAuthorizedException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 8]; case "TooManyRequestsException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListIdentityPoolsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListIdentityPoolsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListIdentityPoolsResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListIdentityPoolsResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListIdentityPoolsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalErrorException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 2]; case "InvalidParameterException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 4]; case "NotAuthorizedException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 8]; case "TooManyRequestsException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListTagsForResourceCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListTagsForResourceResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalErrorException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 2]; case "InvalidParameterException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 4]; case "NotAuthorizedException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 8]; case "TooManyRequestsException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1LookupDeveloperIdentityCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1LookupDeveloperIdentityCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1LookupDeveloperIdentityResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "LookupDeveloperIdentityResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1LookupDeveloperIdentityCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalErrorException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 2]; case "InvalidParameterException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 4]; case "NotAuthorizedException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 6]; case "ResourceConflictException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3 /*break*/, 8]; case "ResourceNotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 10]; case "TooManyRequestsException": return [3 /*break*/, 12]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1MergeDeveloperIdentitiesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1MergeDeveloperIdentitiesCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1MergeDeveloperIdentitiesResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "MergeDeveloperIdentitiesResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1MergeDeveloperIdentitiesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalErrorException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 2]; case "InvalidParameterException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 4]; case "NotAuthorizedException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 6]; case "ResourceConflictException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3 /*break*/, 8]; case "ResourceNotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 10]; case "TooManyRequestsException": return [3 /*break*/, 12]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1SetIdentityPoolRolesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1SetIdentityPoolRolesCommandError(output, context)]; } return [4 /*yield*/, collectBody(output.body, context)]; case 1: _a.sent(); response = { $metadata: deserializeMetadata(output), }; return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1SetIdentityPoolRolesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "ConcurrentModificationException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#ConcurrentModificationException": return [3 /*break*/, 2]; case "InternalErrorException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 6]; case "NotAuthorizedException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 8]; case "ResourceConflictException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1TagResourceCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1TagResourceCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1TagResourceResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "TagResourceResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalErrorException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 2]; case "InvalidParameterException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 4]; case "NotAuthorizedException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 8]; case "TooManyRequestsException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1UnlinkDeveloperIdentityCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1UnlinkDeveloperIdentityCommandError(output, context)]; } return [4 /*yield*/, collectBody(output.body, context)]; case 1: _a.sent(); response = { $metadata: deserializeMetadata(output), }; return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1UnlinkDeveloperIdentityCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalErrorException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 2]; case "InvalidParameterException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 4]; case "NotAuthorizedException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 6]; case "ResourceConflictException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3 /*break*/, 8]; case "ResourceNotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 10]; case "TooManyRequestsException": return [3 /*break*/, 12]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1UnlinkIdentityCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1UnlinkIdentityCommandError(output, context)]; } return [4 /*yield*/, collectBody(output.body, context)]; case 1: _a.sent(); response = { $metadata: deserializeMetadata(output), }; return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1UnlinkIdentityCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "ExternalServiceException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#ExternalServiceException": return [3 /*break*/, 2]; case "InternalErrorException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 6]; case "NotAuthorizedException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 8]; case "ResourceConflictException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1ExternalServiceExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1UntagResourceCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1UntagResourceCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1UntagResourceResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "UntagResourceResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalErrorException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 2]; case "InvalidParameterException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 4]; case "NotAuthorizedException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 8]; case "TooManyRequestsException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1UpdateIdentityPoolCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1UpdateIdentityPoolCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1IdentityPool(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "IdentityPool" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1UpdateIdentityPoolCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; var _l; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) { switch (_m.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _l = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "ConcurrentModificationException": return [3 /*break*/, 2]; case "com.amazonaws.cognitoidentity#ConcurrentModificationException": return [3 /*break*/, 2]; case "InternalErrorException": return [3 /*break*/, 4]; case "com.amazonaws.cognitoidentity#InternalErrorException": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3 /*break*/, 6]; case "LimitExceededException": return [3 /*break*/, 8]; case "com.amazonaws.cognitoidentity#LimitExceededException": return [3 /*break*/, 8]; case "NotAuthorizedException": return [3 /*break*/, 10]; case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3 /*break*/, 10]; case "ResourceConflictException": return [3 /*break*/, 12]; case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3 /*break*/, 12]; case "ResourceNotFoundException": return [3 /*break*/, 14]; case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3 /*break*/, 14]; case "TooManyRequestsException": return [3 /*break*/, 16]; case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3 /*break*/, 16]; } return [3 /*break*/, 18]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 18: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _m.label = 19; case 19: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ConcurrentModificationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1DeveloperUserAlreadyRegisteredExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1DeveloperUserAlreadyRegisteredException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "DeveloperUserAlreadyRegisteredException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ExternalServiceExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ExternalServiceException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ExternalServiceException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InternalErrorExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InternalErrorException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InternalErrorException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InvalidIdentityPoolConfigurationExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InvalidIdentityPoolConfigurationException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidIdentityPoolConfigurationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InvalidParameterException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidParameterException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1LimitExceededException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1NotAuthorizedExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1NotAuthorizedException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "NotAuthorizedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ResourceConflictExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ResourceConflictException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceConflictException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1TooManyRequestsException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "TooManyRequestsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var serializeAws_json1_1CognitoIdentityProvider = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ClientId !== undefined && { ClientId: input.ClientId })), (input.ProviderName !== undefined && { ProviderName: input.ProviderName })), (input.ServerSideTokenCheck !== undefined && { ServerSideTokenCheck: input.ServerSideTokenCheck })); }; var serializeAws_json1_1CognitoIdentityProviderList = function (input, context) { return input.map(function (entry) { return serializeAws_json1_1CognitoIdentityProvider(entry, context); }); }; var serializeAws_json1_1CreateIdentityPoolInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AllowClassicFlow !== undefined && { AllowClassicFlow: input.AllowClassicFlow })), (input.AllowUnauthenticatedIdentities !== undefined && { AllowUnauthenticatedIdentities: input.AllowUnauthenticatedIdentities, })), (input.CognitoIdentityProviders !== undefined && { CognitoIdentityProviders: serializeAws_json1_1CognitoIdentityProviderList(input.CognitoIdentityProviders, context), })), (input.DeveloperProviderName !== undefined && { DeveloperProviderName: input.DeveloperProviderName })), (input.IdentityPoolName !== undefined && { IdentityPoolName: input.IdentityPoolName })), (input.IdentityPoolTags !== undefined && { IdentityPoolTags: serializeAws_json1_1IdentityPoolTagsType(input.IdentityPoolTags, context), })), (input.OpenIdConnectProviderARNs !== undefined && { OpenIdConnectProviderARNs: serializeAws_json1_1OIDCProviderList(input.OpenIdConnectProviderARNs, context), })), (input.SamlProviderARNs !== undefined && { SamlProviderARNs: serializeAws_json1_1SAMLProviderList(input.SamlProviderARNs, context), })), (input.SupportedLoginProviders !== undefined && { SupportedLoginProviders: serializeAws_json1_1IdentityProviders(input.SupportedLoginProviders, context), })); }; var serializeAws_json1_1DeleteIdentitiesInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IdentityIdsToDelete !== undefined && { IdentityIdsToDelete: serializeAws_json1_1IdentityIdList(input.IdentityIdsToDelete, context), })); }; var serializeAws_json1_1DeleteIdentityPoolInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IdentityPoolId !== undefined && { IdentityPoolId: input.IdentityPoolId })); }; var serializeAws_json1_1DescribeIdentityInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IdentityId !== undefined && { IdentityId: input.IdentityId })); }; var serializeAws_json1_1DescribeIdentityPoolInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IdentityPoolId !== undefined && { IdentityPoolId: input.IdentityPoolId })); }; var serializeAws_json1_1GetCredentialsForIdentityInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CustomRoleArn !== undefined && { CustomRoleArn: input.CustomRoleArn })), (input.IdentityId !== undefined && { IdentityId: input.IdentityId })), (input.Logins !== undefined && { Logins: serializeAws_json1_1LoginsMap(input.Logins, context) })); }; var serializeAws_json1_1GetIdentityPoolRolesInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IdentityPoolId !== undefined && { IdentityPoolId: input.IdentityPoolId })); }; var serializeAws_json1_1GetIdInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AccountId !== undefined && { AccountId: input.AccountId })), (input.IdentityPoolId !== undefined && { IdentityPoolId: input.IdentityPoolId })), (input.Logins !== undefined && { Logins: serializeAws_json1_1LoginsMap(input.Logins, context) })); }; var serializeAws_json1_1GetOpenIdTokenForDeveloperIdentityInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IdentityId !== undefined && { IdentityId: input.IdentityId })), (input.IdentityPoolId !== undefined && { IdentityPoolId: input.IdentityPoolId })), (input.Logins !== undefined && { Logins: serializeAws_json1_1LoginsMap(input.Logins, context) })), (input.TokenDuration !== undefined && { TokenDuration: input.TokenDuration })); }; var serializeAws_json1_1GetOpenIdTokenInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IdentityId !== undefined && { IdentityId: input.IdentityId })), (input.Logins !== undefined && { Logins: serializeAws_json1_1LoginsMap(input.Logins, context) })); }; var serializeAws_json1_1IdentityIdList = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1IdentityPool = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AllowClassicFlow !== undefined && { AllowClassicFlow: input.AllowClassicFlow })), (input.AllowUnauthenticatedIdentities !== undefined && { AllowUnauthenticatedIdentities: input.AllowUnauthenticatedIdentities, })), (input.CognitoIdentityProviders !== undefined && { CognitoIdentityProviders: serializeAws_json1_1CognitoIdentityProviderList(input.CognitoIdentityProviders, context), })), (input.DeveloperProviderName !== undefined && { DeveloperProviderName: input.DeveloperProviderName })), (input.IdentityPoolId !== undefined && { IdentityPoolId: input.IdentityPoolId })), (input.IdentityPoolName !== undefined && { IdentityPoolName: input.IdentityPoolName })), (input.IdentityPoolTags !== undefined && { IdentityPoolTags: serializeAws_json1_1IdentityPoolTagsType(input.IdentityPoolTags, context), })), (input.OpenIdConnectProviderARNs !== undefined && { OpenIdConnectProviderARNs: serializeAws_json1_1OIDCProviderList(input.OpenIdConnectProviderARNs, context), })), (input.SamlProviderARNs !== undefined && { SamlProviderARNs: serializeAws_json1_1SAMLProviderList(input.SamlProviderARNs, context), })), (input.SupportedLoginProviders !== undefined && { SupportedLoginProviders: serializeAws_json1_1IdentityProviders(input.SupportedLoginProviders, context), })); }; var serializeAws_json1_1IdentityPoolTagsListType = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1IdentityPoolTagsType = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b))); }, {}); }; var serializeAws_json1_1IdentityProviders = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b))); }, {}); }; var serializeAws_json1_1ListIdentitiesInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.HideDisabled !== undefined && { HideDisabled: input.HideDisabled })), (input.IdentityPoolId !== undefined && { IdentityPoolId: input.IdentityPoolId })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1ListIdentityPoolsInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1ListTagsForResourceInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ResourceArn !== undefined && { ResourceArn: input.ResourceArn })); }; var serializeAws_json1_1LoginsList = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1LoginsMap = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b))); }, {}); }; var serializeAws_json1_1LookupDeveloperIdentityInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeveloperUserIdentifier !== undefined && { DeveloperUserIdentifier: input.DeveloperUserIdentifier })), (input.IdentityId !== undefined && { IdentityId: input.IdentityId })), (input.IdentityPoolId !== undefined && { IdentityPoolId: input.IdentityPoolId })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1MappingRule = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Claim !== undefined && { Claim: input.Claim })), (input.MatchType !== undefined && { MatchType: input.MatchType })), (input.RoleARN !== undefined && { RoleARN: input.RoleARN })), (input.Value !== undefined && { Value: input.Value })); }; var serializeAws_json1_1MappingRulesList = function (input, context) { return input.map(function (entry) { return serializeAws_json1_1MappingRule(entry, context); }); }; var serializeAws_json1_1MergeDeveloperIdentitiesInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DestinationUserIdentifier !== undefined && { DestinationUserIdentifier: input.DestinationUserIdentifier, })), (input.DeveloperProviderName !== undefined && { DeveloperProviderName: input.DeveloperProviderName })), (input.IdentityPoolId !== undefined && { IdentityPoolId: input.IdentityPoolId })), (input.SourceUserIdentifier !== undefined && { SourceUserIdentifier: input.SourceUserIdentifier })); }; var serializeAws_json1_1OIDCProviderList = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1RoleMapping = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AmbiguousRoleResolution !== undefined && { AmbiguousRoleResolution: input.AmbiguousRoleResolution })), (input.RulesConfiguration !== undefined && { RulesConfiguration: serializeAws_json1_1RulesConfigurationType(input.RulesConfiguration, context), })), (input.Type !== undefined && { Type: input.Type })); }; var serializeAws_json1_1RoleMappingMap = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_json1_1RoleMapping(value, context), _b))); }, {}); }; var serializeAws_json1_1RolesMap = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b))); }, {}); }; var serializeAws_json1_1RulesConfigurationType = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Rules !== undefined && { Rules: serializeAws_json1_1MappingRulesList(input.Rules, context) })); }; var serializeAws_json1_1SAMLProviderList = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1SetIdentityPoolRolesInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IdentityPoolId !== undefined && { IdentityPoolId: input.IdentityPoolId })), (input.RoleMappings !== undefined && { RoleMappings: serializeAws_json1_1RoleMappingMap(input.RoleMappings, context), })), (input.Roles !== undefined && { Roles: serializeAws_json1_1RolesMap(input.Roles, context) })); }; var serializeAws_json1_1TagResourceInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ResourceArn !== undefined && { ResourceArn: input.ResourceArn })), (input.Tags !== undefined && { Tags: serializeAws_json1_1IdentityPoolTagsType(input.Tags, context) })); }; var serializeAws_json1_1UnlinkDeveloperIdentityInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeveloperProviderName !== undefined && { DeveloperProviderName: input.DeveloperProviderName })), (input.DeveloperUserIdentifier !== undefined && { DeveloperUserIdentifier: input.DeveloperUserIdentifier })), (input.IdentityId !== undefined && { IdentityId: input.IdentityId })), (input.IdentityPoolId !== undefined && { IdentityPoolId: input.IdentityPoolId })); }; var serializeAws_json1_1UnlinkIdentityInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IdentityId !== undefined && { IdentityId: input.IdentityId })), (input.Logins !== undefined && { Logins: serializeAws_json1_1LoginsMap(input.Logins, context) })), (input.LoginsToRemove !== undefined && { LoginsToRemove: serializeAws_json1_1LoginsList(input.LoginsToRemove, context), })); }; var serializeAws_json1_1UntagResourceInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ResourceArn !== undefined && { ResourceArn: input.ResourceArn })), (input.TagKeys !== undefined && { TagKeys: serializeAws_json1_1IdentityPoolTagsListType(input.TagKeys, context), })); }; var deserializeAws_json1_1CognitoIdentityProvider = function (output, context) { return { __type: "CognitoIdentityProvider", ClientId: output.ClientId !== undefined && output.ClientId !== null ? output.ClientId : undefined, ProviderName: output.ProviderName !== undefined && output.ProviderName !== null ? output.ProviderName : undefined, ServerSideTokenCheck: output.ServerSideTokenCheck !== undefined && output.ServerSideTokenCheck !== null ? output.ServerSideTokenCheck : undefined, }; }; var deserializeAws_json1_1CognitoIdentityProviderList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1CognitoIdentityProvider(entry, context); }); }; var deserializeAws_json1_1ConcurrentModificationException = function (output, context) { return { __type: "ConcurrentModificationException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1Credentials = function (output, context) { return { __type: "Credentials", AccessKeyId: output.AccessKeyId !== undefined && output.AccessKeyId !== null ? output.AccessKeyId : undefined, Expiration: output.Expiration !== undefined && output.Expiration !== null ? new Date(Math.round(output.Expiration * 1000)) : undefined, SecretKey: output.SecretKey !== undefined && output.SecretKey !== null ? output.SecretKey : undefined, SessionToken: output.SessionToken !== undefined && output.SessionToken !== null ? output.SessionToken : undefined, }; }; var deserializeAws_json1_1DeleteIdentitiesResponse = function (output, context) { return { __type: "DeleteIdentitiesResponse", UnprocessedIdentityIds: output.UnprocessedIdentityIds !== undefined && output.UnprocessedIdentityIds !== null ? deserializeAws_json1_1UnprocessedIdentityIdList(output.UnprocessedIdentityIds, context) : undefined, }; }; var deserializeAws_json1_1DeveloperUserAlreadyRegisteredException = function (output, context) { return { __type: "DeveloperUserAlreadyRegisteredException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1DeveloperUserIdentifierList = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1ExternalServiceException = function (output, context) { return { __type: "ExternalServiceException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1GetCredentialsForIdentityResponse = function (output, context) { return { __type: "GetCredentialsForIdentityResponse", Credentials: output.Credentials !== undefined && output.Credentials !== null ? deserializeAws_json1_1Credentials(output.Credentials, context) : undefined, IdentityId: output.IdentityId !== undefined && output.IdentityId !== null ? output.IdentityId : undefined, }; }; var deserializeAws_json1_1GetIdentityPoolRolesResponse = function (output, context) { return { __type: "GetIdentityPoolRolesResponse", IdentityPoolId: output.IdentityPoolId !== undefined && output.IdentityPoolId !== null ? output.IdentityPoolId : undefined, RoleMappings: output.RoleMappings !== undefined && output.RoleMappings !== null ? deserializeAws_json1_1RoleMappingMap(output.RoleMappings, context) : undefined, Roles: output.Roles !== undefined && output.Roles !== null ? deserializeAws_json1_1RolesMap(output.Roles, context) : undefined, }; }; var deserializeAws_json1_1GetIdResponse = function (output, context) { return { __type: "GetIdResponse", IdentityId: output.IdentityId !== undefined && output.IdentityId !== null ? output.IdentityId : undefined, }; }; var deserializeAws_json1_1GetOpenIdTokenForDeveloperIdentityResponse = function (output, context) { return { __type: "GetOpenIdTokenForDeveloperIdentityResponse", IdentityId: output.IdentityId !== undefined && output.IdentityId !== null ? output.IdentityId : undefined, Token: output.Token !== undefined && output.Token !== null ? output.Token : undefined, }; }; var deserializeAws_json1_1GetOpenIdTokenResponse = function (output, context) { return { __type: "GetOpenIdTokenResponse", IdentityId: output.IdentityId !== undefined && output.IdentityId !== null ? output.IdentityId : undefined, Token: output.Token !== undefined && output.Token !== null ? output.Token : undefined, }; }; var deserializeAws_json1_1IdentitiesList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1IdentityDescription(entry, context); }); }; var deserializeAws_json1_1IdentityDescription = function (output, context) { return { __type: "IdentityDescription", CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? new Date(Math.round(output.CreationDate * 1000)) : undefined, IdentityId: output.IdentityId !== undefined && output.IdentityId !== null ? output.IdentityId : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? new Date(Math.round(output.LastModifiedDate * 1000)) : undefined, Logins: output.Logins !== undefined && output.Logins !== null ? deserializeAws_json1_1LoginsList(output.Logins, context) : undefined, }; }; var deserializeAws_json1_1IdentityPool = function (output, context) { return { __type: "IdentityPool", AllowClassicFlow: output.AllowClassicFlow !== undefined && output.AllowClassicFlow !== null ? output.AllowClassicFlow : undefined, AllowUnauthenticatedIdentities: output.AllowUnauthenticatedIdentities !== undefined && output.AllowUnauthenticatedIdentities !== null ? output.AllowUnauthenticatedIdentities : undefined, CognitoIdentityProviders: output.CognitoIdentityProviders !== undefined && output.CognitoIdentityProviders !== null ? deserializeAws_json1_1CognitoIdentityProviderList(output.CognitoIdentityProviders, context) : undefined, DeveloperProviderName: output.DeveloperProviderName !== undefined && output.DeveloperProviderName !== null ? output.DeveloperProviderName : undefined, IdentityPoolId: output.IdentityPoolId !== undefined && output.IdentityPoolId !== null ? output.IdentityPoolId : undefined, IdentityPoolName: output.IdentityPoolName !== undefined && output.IdentityPoolName !== null ? output.IdentityPoolName : undefined, IdentityPoolTags: output.IdentityPoolTags !== undefined && output.IdentityPoolTags !== null ? deserializeAws_json1_1IdentityPoolTagsType(output.IdentityPoolTags, context) : undefined, OpenIdConnectProviderARNs: output.OpenIdConnectProviderARNs !== undefined && output.OpenIdConnectProviderARNs !== null ? deserializeAws_json1_1OIDCProviderList(output.OpenIdConnectProviderARNs, context) : undefined, SamlProviderARNs: output.SamlProviderARNs !== undefined && output.SamlProviderARNs !== null ? deserializeAws_json1_1SAMLProviderList(output.SamlProviderARNs, context) : undefined, SupportedLoginProviders: output.SupportedLoginProviders !== undefined && output.SupportedLoginProviders !== null ? deserializeAws_json1_1IdentityProviders(output.SupportedLoginProviders, context) : undefined, }; }; var deserializeAws_json1_1IdentityPoolShortDescription = function (output, context) { return { __type: "IdentityPoolShortDescription", IdentityPoolId: output.IdentityPoolId !== undefined && output.IdentityPoolId !== null ? output.IdentityPoolId : undefined, IdentityPoolName: output.IdentityPoolName !== undefined && output.IdentityPoolName !== null ? output.IdentityPoolName : undefined, }; }; var deserializeAws_json1_1IdentityPoolsList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1IdentityPoolShortDescription(entry, context); }); }; var deserializeAws_json1_1IdentityPoolTagsType = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b))); }, {}); }; var deserializeAws_json1_1IdentityProviders = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b))); }, {}); }; var deserializeAws_json1_1InternalErrorException = function (output, context) { return { __type: "InternalErrorException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1InvalidIdentityPoolConfigurationException = function (output, context) { return { __type: "InvalidIdentityPoolConfigurationException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1InvalidParameterException = function (output, context) { return { __type: "InvalidParameterException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1LimitExceededException = function (output, context) { return { __type: "LimitExceededException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1ListIdentitiesResponse = function (output, context) { return { __type: "ListIdentitiesResponse", Identities: output.Identities !== undefined && output.Identities !== null ? deserializeAws_json1_1IdentitiesList(output.Identities, context) : undefined, IdentityPoolId: output.IdentityPoolId !== undefined && output.IdentityPoolId !== null ? output.IdentityPoolId : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_json1_1ListIdentityPoolsResponse = function (output, context) { return { __type: "ListIdentityPoolsResponse", IdentityPools: output.IdentityPools !== undefined && output.IdentityPools !== null ? deserializeAws_json1_1IdentityPoolsList(output.IdentityPools, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) { return { __type: "ListTagsForResourceResponse", Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1IdentityPoolTagsType(output.Tags, context) : undefined, }; }; var deserializeAws_json1_1LoginsList = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1LookupDeveloperIdentityResponse = function (output, context) { return { __type: "LookupDeveloperIdentityResponse", DeveloperUserIdentifierList: output.DeveloperUserIdentifierList !== undefined && output.DeveloperUserIdentifierList !== null ? deserializeAws_json1_1DeveloperUserIdentifierList(output.DeveloperUserIdentifierList, context) : undefined, IdentityId: output.IdentityId !== undefined && output.IdentityId !== null ? output.IdentityId : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_json1_1MappingRule = function (output, context) { return { __type: "MappingRule", Claim: output.Claim !== undefined && output.Claim !== null ? output.Claim : undefined, MatchType: output.MatchType !== undefined && output.MatchType !== null ? output.MatchType : undefined, RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined, Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined, }; }; var deserializeAws_json1_1MappingRulesList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1MappingRule(entry, context); }); }; var deserializeAws_json1_1MergeDeveloperIdentitiesResponse = function (output, context) { return { __type: "MergeDeveloperIdentitiesResponse", IdentityId: output.IdentityId !== undefined && output.IdentityId !== null ? output.IdentityId : undefined, }; }; var deserializeAws_json1_1NotAuthorizedException = function (output, context) { return { __type: "NotAuthorizedException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1OIDCProviderList = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1ResourceConflictException = function (output, context) { return { __type: "ResourceConflictException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1ResourceNotFoundException = function (output, context) { return { __type: "ResourceNotFoundException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1RoleMapping = function (output, context) { return { __type: "RoleMapping", AmbiguousRoleResolution: output.AmbiguousRoleResolution !== undefined && output.AmbiguousRoleResolution !== null ? output.AmbiguousRoleResolution : undefined, RulesConfiguration: output.RulesConfiguration !== undefined && output.RulesConfiguration !== null ? deserializeAws_json1_1RulesConfigurationType(output.RulesConfiguration, context) : undefined, Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, }; }; var deserializeAws_json1_1RoleMappingMap = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_json1_1RoleMapping(value, context), _b))); }, {}); }; var deserializeAws_json1_1RolesMap = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b))); }, {}); }; var deserializeAws_json1_1RulesConfigurationType = function (output, context) { return { __type: "RulesConfigurationType", Rules: output.Rules !== undefined && output.Rules !== null ? deserializeAws_json1_1MappingRulesList(output.Rules, context) : undefined, }; }; var deserializeAws_json1_1SAMLProviderList = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1TagResourceResponse = function (output, context) { return { __type: "TagResourceResponse", }; }; var deserializeAws_json1_1TooManyRequestsException = function (output, context) { return { __type: "TooManyRequestsException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1UnprocessedIdentityId = function (output, context) { return { __type: "UnprocessedIdentityId", ErrorCode: output.ErrorCode !== undefined && output.ErrorCode !== null ? output.ErrorCode : undefined, IdentityId: output.IdentityId !== undefined && output.IdentityId !== null ? output.IdentityId : undefined, }; }; var deserializeAws_json1_1UnprocessedIdentityIdList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1UnprocessedIdentityId(entry, context); }); }; var deserializeAws_json1_1UntagResourceResponse = function (output, context) { return { __type: "UntagResourceResponse", }; }; var deserializeMetadata = function (output) { return ({ httpStatusCode: output.statusCode, httpHeaders: output.headers, requestId: output.headers["x-amzn-requestid"], }); }; // Collect low-level response body stream to Uint8Array. var collectBody = function (streamBody, context) { if (streamBody === void 0) { streamBody = new Uint8Array(); } if (streamBody instanceof Uint8Array) { return Promise.resolve(streamBody); } return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); }; // Encode Uint8Array data into string with utf-8. var collectBodyString = function (streamBody, context) { return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); }); }; var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var _a, hostname, _b, protocol, port, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; contents = { protocol: protocol, hostname: hostname, port: port, method: "POST", path: path, headers: headers, }; if (resolvedHostname !== undefined) { contents.hostname = resolvedHostname; } if (body !== undefined) { contents.body = body; } return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"](contents)]; } }); }); }; var parseBody = function (streamBody, context) { return collectBodyString(streamBody, context).then(function (encoded) { if (encoded.length) { return JSON.parse(encoded); } return {}; }); }; //# sourceMappingURL=Aws_json1_1.js.map /***/ }), /***/ "7TU6": /*!******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/eventstream-serde-browser/dist/es/EventStreamMarshaller.js ***! \******************************************************************************************/ /*! exports provided: EventStreamMarshaller */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return EventStreamMarshaller; }); /* harmony import */ var _aws_sdk_eventstream_marshaller__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-sdk/eventstream-marshaller */ "GuSx"); /* harmony import */ var _aws_sdk_eventstream_serde_universal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/eventstream-serde-universal */ "Yxzl"); /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "nwlK"); /** * Utility class used to serialize and deserialize event streams in * browsers and ReactNative. * * In browsers where ReadableStream API is available: * * deserialize from ReadableStream to an async iterable of output structure * * serialize from async iterable of input structure to ReadableStream * In ReactNative where only async iterable API is available: * * deserialize from async iterable of binaries to async iterable of output structure * * serialize from async iterable of input structure to async iterable of binaries * * We use ReadableStream API in browsers because of the consistency with other * streaming operations, where ReadableStream API is used to denote streaming data. * Whereas in ReactNative, ReadableStream API is not available, we use async iterable * for streaming data although it has lower throughput. */ var EventStreamMarshaller = /** @class */ (function () { function EventStreamMarshaller(_a) { var utf8Encoder = _a.utf8Encoder, utf8Decoder = _a.utf8Decoder; this.eventMarshaller = new _aws_sdk_eventstream_marshaller__WEBPACK_IMPORTED_MODULE_0__["EventStreamMarshaller"](utf8Encoder, utf8Decoder); this.universalMarshaller = new _aws_sdk_eventstream_serde_universal__WEBPACK_IMPORTED_MODULE_1__["EventStreamMarshaller"]({ utf8Decoder: utf8Decoder, utf8Encoder: utf8Encoder, }); } EventStreamMarshaller.prototype.deserialize = function (body, deserializer) { var bodyIterable = isReadableStream(body) ? Object(_utils__WEBPACK_IMPORTED_MODULE_2__["readableStreamtoIterable"])(body) : body; return this.universalMarshaller.deserialize(bodyIterable, deserializer); }; /** * Generate a stream that serialize events into stream of binary chunks; * * Caveat is that streaming request payload doesn't work on browser with native * xhr or fetch handler currently because they don't support upload streaming. * reference: * * https://bugs.chromium.org/p/chromium/issues/detail?id=688906 * * https://bugzilla.mozilla.org/show_bug.cgi?id=1387483 * */ EventStreamMarshaller.prototype.serialize = function (input, serializer) { var serialziedIterable = this.universalMarshaller.serialize(input, serializer); return typeof ReadableStream === "function" ? Object(_utils__WEBPACK_IMPORTED_MODULE_2__["iterableToReadableStream"])(serialziedIterable) : serialziedIterable; }; return EventStreamMarshaller; }()); var isReadableStream = function (body) { return typeof ReadableStream === "function" && body instanceof ReadableStream; }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRTdHJlYW1NYXJzaGFsbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL0V2ZW50U3RyZWFtTWFyc2hhbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUscUJBQXFCLElBQUksZUFBZSxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFDM0YsT0FBTyxFQUFFLHFCQUFxQixJQUFJLDhCQUE4QixFQUFFLE1BQU0sc0NBQXNDLENBQUM7QUFHL0csT0FBTyxFQUFFLHdCQUF3QixFQUFFLHdCQUF3QixFQUFFLE1BQU0sU0FBUyxDQUFDO0FBUzdFOzs7Ozs7Ozs7Ozs7Ozs7R0FlRztBQUNIO0lBR0UsK0JBQVksRUFBMEQ7WUFBeEQsV0FBVyxpQkFBQSxFQUFFLFdBQVcsaUJBQUE7UUFDcEMsSUFBSSxDQUFDLGVBQWUsR0FBRyxJQUFJLGVBQWUsQ0FBQyxXQUFXLEVBQUUsV0FBVyxDQUFDLENBQUM7UUFDckUsSUFBSSxDQUFDLG1CQUFtQixHQUFHLElBQUksOEJBQThCLENBQUM7WUFDNUQsV0FBVyxhQUFBO1lBQ1gsV0FBVyxhQUFBO1NBQ1osQ0FBQyxDQUFDO0lBQ0wsQ0FBQztJQUVELDJDQUFXLEdBQVgsVUFDRSxJQUE0RCxFQUM1RCxZQUFpRTtRQUVqRSxJQUFNLFlBQVksR0FBRyxnQkFBZ0IsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsd0JBQXdCLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztRQUNwRixPQUFPLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxXQUFXLENBQUMsWUFBWSxFQUFFLFlBQVksQ0FBQyxDQUFDO0lBQzFFLENBQUM7SUFFRDs7Ozs7Ozs7O09BU0c7SUFDSCx5Q0FBUyxHQUFULFVBQWEsS0FBdUIsRUFBRSxVQUFpQztRQUNyRSxJQUFNLGtCQUFrQixHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxTQUFTLENBQUMsS0FBSyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQ2pGLE9BQU8sT0FBTyxjQUFjLEtBQUssVUFBVSxDQUFDLENBQUMsQ0FBQyx3QkFBd0IsQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDLENBQUMsQ0FBQyxrQkFBa0IsQ0FBQztJQUNsSCxDQUFDO0lBQ0gsNEJBQUM7QUFBRCxDQUFDLEFBakNELElBaUNDOztBQUVELElBQU0sZ0JBQWdCLEdBQUcsVUFBQyxJQUFTO0lBQ2pDLE9BQUEsT0FBTyxjQUFjLEtBQUssVUFBVSxJQUFJLElBQUksWUFBWSxjQUFjO0FBQXRFLENBQXNFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFdmVudFN0cmVhbU1hcnNoYWxsZXIgYXMgRXZlbnRNYXJzaGFsbGVyIH0gZnJvbSBcIkBhd3Mtc2RrL2V2ZW50c3RyZWFtLW1hcnNoYWxsZXJcIjtcbmltcG9ydCB7IEV2ZW50U3RyZWFtTWFyc2hhbGxlciBhcyBVbml2ZXJzYWxFdmVudFN0cmVhbU1hcnNoYWxsZXIgfSBmcm9tIFwiQGF3cy1zZGsvZXZlbnRzdHJlYW0tc2VyZGUtdW5pdmVyc2FsXCI7XG5pbXBvcnQgeyBEZWNvZGVyLCBFbmNvZGVyLCBFdmVudFN0cmVhbU1hcnNoYWxsZXIgYXMgSUV2ZW50U3RyZWFtTWFyc2hhbGxlciwgTWVzc2FnZSB9IGZyb20gXCJAYXdzLXNkay90eXBlc1wiO1xuXG5pbXBvcnQgeyBpdGVyYWJsZVRvUmVhZGFibGVTdHJlYW0sIHJlYWRhYmxlU3RyZWFtdG9JdGVyYWJsZSB9IGZyb20gXCIuL3V0aWxzXCI7XG5cbmV4cG9ydCBpbnRlcmZhY2UgRXZlbnRTdHJlYW1NYXJzaGFsbGVyIGV4dGVuZHMgSUV2ZW50U3RyZWFtTWFyc2hhbGxlciB7fVxuXG5leHBvcnQgaW50ZXJmYWNlIEV2ZW50U3RyZWFtTWFyc2hhbGxlck9wdGlvbnMge1xuICB1dGY4RW5jb2RlcjogRW5jb2RlcjtcbiAgdXRmOERlY29kZXI6IERlY29kZXI7XG59XG5cbi8qKlxuICogVXRpbGl0eSBjbGFzcyB1c2VkIHRvIHNlcmlhbGl6ZSBhbmQgZGVzZXJpYWxpemUgZXZlbnQgc3RyZWFtcyBpblxuICogYnJvd3NlcnMgYW5kIFJlYWN0TmF0aXZlLlxuICpcbiAqIEluIGJyb3dzZXJzIHdoZXJlIFJlYWRhYmxlU3RyZWFtIEFQSSBpcyBhdmFpbGFibGU6XG4gKiAqIGRlc2VyaWFsaXplIGZyb20gUmVhZGFibGVTdHJlYW0gdG8gYW4gYXN5bmMgaXRlcmFibGUgb2Ygb3V0cHV0IHN0cnVjdHVyZVxuICogKiBzZXJpYWxpemUgZnJvbSBhc3luYyBpdGVyYWJsZSBvZiBpbnB1dCBzdHJ1Y3R1cmUgdG8gUmVhZGFibGVTdHJlYW1cbiAqIEluIFJlYWN0TmF0aXZlIHdoZXJlIG9ubHkgYXN5bmMgaXRlcmFibGUgQVBJIGlzIGF2YWlsYWJsZTpcbiAqICogZGVzZXJpYWxpemUgZnJvbSBhc3luYyBpdGVyYWJsZSBvZiBiaW5hcmllcyB0byBhc3luYyBpdGVyYWJsZSBvZiBvdXRwdXQgc3RydWN0dXJlXG4gKiAqIHNlcmlhbGl6ZSBmcm9tIGFzeW5jIGl0ZXJhYmxlIG9mIGlucHV0IHN0cnVjdHVyZSB0byBhc3luYyBpdGVyYWJsZSBvZiBiaW5hcmllc1xuICpcbiAqIFdlIHVzZSBSZWFkYWJsZVN0cmVhbSBBUEkgaW4gYnJvd3NlcnMgYmVjYXVzZSBvZiB0aGUgY29uc2lzdGVuY3kgd2l0aCBvdGhlclxuICogc3RyZWFtaW5nIG9wZXJhdGlvbnMsIHdoZXJlIFJlYWRhYmxlU3RyZWFtIEFQSSBpcyB1c2VkIHRvIGRlbm90ZSBzdHJlYW1pbmcgZGF0YS5cbiAqIFdoZXJlYXMgaW4gUmVhY3ROYXRpdmUsIFJlYWRhYmxlU3RyZWFtIEFQSSBpcyBub3QgYXZhaWxhYmxlLCB3ZSB1c2UgYXN5bmMgaXRlcmFibGVcbiAqIGZvciBzdHJlYW1pbmcgZGF0YSBhbHRob3VnaCBpdCBoYXMgbG93ZXIgdGhyb3VnaHB1dC5cbiAqL1xuZXhwb3J0IGNsYXNzIEV2ZW50U3RyZWFtTWFyc2hhbGxlciB7XG4gIHByaXZhdGUgcmVhZG9ubHkgZXZlbnRNYXJzaGFsbGVyOiBFdmVudE1hcnNoYWxsZXI7XG4gIHByaXZhdGUgcmVhZG9ubHkgdW5pdmVyc2FsTWFyc2hhbGxlcjogVW5pdmVyc2FsRXZlbnRTdHJlYW1NYXJzaGFsbGVyO1xuICBjb25zdHJ1Y3Rvcih7IHV0ZjhFbmNvZGVyLCB1dGY4RGVjb2RlciB9OiBFdmVudFN0cmVhbU1hcnNoYWxsZXJPcHRpb25zKSB7XG4gICAgdGhpcy5ldmVudE1hcnNoYWxsZXIgPSBuZXcgRXZlbnRNYXJzaGFsbGVyKHV0ZjhFbmNvZGVyLCB1dGY4RGVjb2Rlcik7XG4gICAgdGhpcy51bml2ZXJzYWxNYXJzaGFsbGVyID0gbmV3IFVuaXZlcnNhbEV2ZW50U3RyZWFtTWFyc2hhbGxlcih7XG4gICAgICB1dGY4RGVjb2RlcixcbiAgICAgIHV0ZjhFbmNvZGVyLFxuICAgIH0pO1xuICB9XG5cbiAgZGVzZXJpYWxpemU8VD4oXG4gICAgYm9keTogUmVhZGFibGVTdHJlYW08VWludDhBcnJheT4gfCBBc3luY0l0ZXJhYmxlPFVpbnQ4QXJyYXk+LFxuICAgIGRlc2VyaWFsaXplcjogKGlucHV0OiB7IFtldmVudDogc3RyaW5nXTogTWVzc2FnZSB9KSA9PiBQcm9taXNlPFQ+XG4gICk6IEFzeW5jSXRlcmFibGU8VD4ge1xuICAgIGNvbnN0IGJvZHlJdGVyYWJsZSA9IGlzUmVhZGFibGVTdHJlYW0oYm9keSkgPyByZWFkYWJsZVN0cmVhbXRvSXRlcmFibGUoYm9keSkgOiBib2R5O1xuICAgIHJldHVybiB0aGlzLnVuaXZlcnNhbE1hcnNoYWxsZXIuZGVzZXJpYWxpemUoYm9keUl0ZXJhYmxlLCBkZXNlcmlhbGl6ZXIpO1xuICB9XG5cbiAgLyoqXG4gICAqIEdlbmVyYXRlIGEgc3RyZWFtIHRoYXQgc2VyaWFsaXplIGV2ZW50cyBpbnRvIHN0cmVhbSBvZiBiaW5hcnkgY2h1bmtzO1xuICAgKlxuICAgKiBDYXZlYXQgaXMgdGhhdCBzdHJlYW1pbmcgcmVxdWVzdCBwYXlsb2FkIGRvZXNuJ3Qgd29yayBvbiBicm93c2VyIHdpdGggbmF0aXZlXG4gICAqIHhociBvciBmZXRjaCBoYW5kbGVyIGN1cnJlbnRseSBiZWNhdXNlIHRoZXkgZG9uJ3Qgc3VwcG9ydCB1cGxvYWQgc3RyZWFtaW5nLlxuICAgKiByZWZlcmVuY2U6XG4gICAqICogaHR0cHM6Ly9idWdzLmNocm9taXVtLm9yZy9wL2Nocm9taXVtL2lzc3Vlcy9kZXRhaWw/aWQ9Njg4OTA2XG4gICAqICogaHR0cHM6Ly9idWd6aWxsYS5tb3ppbGxhLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTM4NzQ4M1xuICAgKlxuICAgKi9cbiAgc2VyaWFsaXplPFQ+KGlucHV0OiBBc3luY0l0ZXJhYmxlPFQ+LCBzZXJpYWxpemVyOiAoZXZlbnQ6IFQpID0+IE1lc3NhZ2UpOiBSZWFkYWJsZVN0cmVhbSB8IEFzeW5jSXRlcmFibGU8VWludDhBcnJheT4ge1xuICAgIGNvbnN0IHNlcmlhbHppZWRJdGVyYWJsZSA9IHRoaXMudW5pdmVyc2FsTWFyc2hhbGxlci5zZXJpYWxpemUoaW5wdXQsIHNlcmlhbGl6ZXIpO1xuICAgIHJldHVybiB0eXBlb2YgUmVhZGFibGVTdHJlYW0gPT09IFwiZnVuY3Rpb25cIiA/IGl0ZXJhYmxlVG9SZWFkYWJsZVN0cmVhbShzZXJpYWx6aWVkSXRlcmFibGUpIDogc2VyaWFsemllZEl0ZXJhYmxlO1xuICB9XG59XG5cbmNvbnN0IGlzUmVhZGFibGVTdHJlYW0gPSAoYm9keTogYW55KTogYm9keSBpcyBSZWFkYWJsZVN0cmVhbSA9PlxuICB0eXBlb2YgUmVhZGFibGVTdHJlYW0gPT09IFwiZnVuY3Rpb25cIiAmJiBib2R5IGluc3RhbmNlb2YgUmVhZGFibGVTdHJlYW07XG4iXX0= /***/ }), /***/ "7V7Z": /*!******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/UntagResourceCommand.js ***! \******************************************************************************************/ /*! exports provided: UntagResourceCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UntagResourceCommand", function() { return UntagResourceCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UntagResourceCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UntagResourceCommand, _super); // Start section: command_properties // End section: command_properties function UntagResourceCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UntagResourceRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UntagResourceResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UntagResourceCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1UntagResourceCommand"])(input, context); }; UntagResourceCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1UntagResourceCommand"])(output, context); }; return UntagResourceCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=UntagResourceCommand.js.map /***/ }), /***/ "7VPu": /*!***********************************************!*\ !*** ./node_modules/crypto-js/hmac-sha256.js ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { ;(function (root, factory, undef) { if (true) { // CommonJS module.exports = exports = factory(__webpack_require__(/*! ./core */ "Ib8C"), __webpack_require__(/*! ./sha256 */ "lPiR"), __webpack_require__(/*! ./hmac */ "WYAk")); } else {} }(this, function (CryptoJS) { return CryptoJS.HmacSHA256; })); /***/ }), /***/ "7Z+r": /*!******************************************************************!*\ !*** ./node_modules/@aws-sdk/util-hex-encoding/dist/es/index.js ***! \******************************************************************/ /*! exports provided: fromHex, toHex */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromHex", function() { return fromHex; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toHex", function() { return toHex; }); var SHORT_TO_HEX = {}; var HEX_TO_SHORT = {}; for (var i = 0; i < 256; i++) { var encodedByte = i.toString(16).toLowerCase(); if (encodedByte.length === 1) { encodedByte = "0" + encodedByte; } SHORT_TO_HEX[i] = encodedByte; HEX_TO_SHORT[encodedByte] = i; } /** * Converts a hexadecimal encoded string to a Uint8Array of bytes. * * @param encoded The hexadecimal encoded string */ function fromHex(encoded) { if (encoded.length % 2 !== 0) { throw new Error("Hex encoded strings must have an even number length"); } var out = new Uint8Array(encoded.length / 2); for (var i = 0; i < encoded.length; i += 2) { var encodedByte = encoded.substr(i, 2).toLowerCase(); if (encodedByte in HEX_TO_SHORT) { out[i / 2] = HEX_TO_SHORT[encodedByte]; } else { throw new Error("Cannot decode unrecognized sequence " + encodedByte + " as hexadecimal"); } } return out; } /** * Converts a Uint8Array of binary data to a hexadecimal encoded string. * * @param bytes The binary data to encode */ function toHex(bytes) { var out = ""; for (var i = 0; i < bytes.byteLength; i++) { out += SHORT_TO_HEX[bytes[i]]; } return out; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiLi9zcmMvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxJQUFNLFlBQVksR0FBOEIsRUFBRSxDQUFDO0FBQ25ELElBQU0sWUFBWSxHQUE4QixFQUFFLENBQUM7QUFFbkQsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLEdBQUcsRUFBRSxDQUFDLEVBQUUsRUFBRTtJQUM1QixJQUFJLFdBQVcsR0FBRyxDQUFDLENBQUMsUUFBUSxDQUFDLEVBQUUsQ0FBQyxDQUFDLFdBQVcsRUFBRSxDQUFDO0lBQy9DLElBQUksV0FBVyxDQUFDLE1BQU0sS0FBSyxDQUFDLEVBQUU7UUFDNUIsV0FBVyxHQUFHLE1BQUksV0FBYSxDQUFDO0tBQ2pDO0lBRUQsWUFBWSxDQUFDLENBQUMsQ0FBQyxHQUFHLFdBQVcsQ0FBQztJQUM5QixZQUFZLENBQUMsV0FBVyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0NBQy9CO0FBRUQ7Ozs7R0FJRztBQUNILE1BQU0sVUFBVSxPQUFPLENBQUMsT0FBZTtJQUNyQyxJQUFJLE9BQU8sQ0FBQyxNQUFNLEdBQUcsQ0FBQyxLQUFLLENBQUMsRUFBRTtRQUM1QixNQUFNLElBQUksS0FBSyxDQUFDLHFEQUFxRCxDQUFDLENBQUM7S0FDeEU7SUFFRCxJQUFNLEdBQUcsR0FBRyxJQUFJLFVBQVUsQ0FBQyxPQUFPLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQyxDQUFDO0lBQy9DLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxPQUFPLENBQUMsTUFBTSxFQUFFLENBQUMsSUFBSSxDQUFDLEVBQUU7UUFDMUMsSUFBTSxXQUFXLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsV0FBVyxFQUFFLENBQUM7UUFDdkQsSUFBSSxXQUFXLElBQUksWUFBWSxFQUFFO1lBQy9CLEdBQUcsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEdBQUcsWUFBWSxDQUFDLFdBQVcsQ0FBQyxDQUFDO1NBQ3hDO2FBQU07WUFDTCxNQUFNLElBQUksS0FBSyxDQUFDLHlDQUF1QyxXQUFXLG9CQUFpQixDQUFDLENBQUM7U0FDdEY7S0FDRjtJQUVELE9BQU8sR0FBRyxDQUFDO0FBQ2IsQ0FBQztBQUVEOzs7O0dBSUc7QUFDSCxNQUFNLFVBQVUsS0FBSyxDQUFDLEtBQWlCO0lBQ3JDLElBQUksR0FBRyxHQUFHLEVBQUUsQ0FBQztJQUNiLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxLQUFLLENBQUMsVUFBVSxFQUFFLENBQUMsRUFBRSxFQUFFO1FBQ3pDLEdBQUcsSUFBSSxZQUFZLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7S0FDL0I7SUFFRCxPQUFPLEdBQUcsQ0FBQztBQUNiLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJjb25zdCBTSE9SVF9UT19IRVg6IHsgW2tleTogbnVtYmVyXTogc3RyaW5nIH0gPSB7fTtcbmNvbnN0IEhFWF9UT19TSE9SVDogeyBba2V5OiBzdHJpbmddOiBudW1iZXIgfSA9IHt9O1xuXG5mb3IgKGxldCBpID0gMDsgaSA8IDI1NjsgaSsrKSB7XG4gIGxldCBlbmNvZGVkQnl0ZSA9IGkudG9TdHJpbmcoMTYpLnRvTG93ZXJDYXNlKCk7XG4gIGlmIChlbmNvZGVkQnl0ZS5sZW5ndGggPT09IDEpIHtcbiAgICBlbmNvZGVkQnl0ZSA9IGAwJHtlbmNvZGVkQnl0ZX1gO1xuICB9XG5cbiAgU0hPUlRfVE9fSEVYW2ldID0gZW5jb2RlZEJ5dGU7XG4gIEhFWF9UT19TSE9SVFtlbmNvZGVkQnl0ZV0gPSBpO1xufVxuXG4vKipcbiAqIENvbnZlcnRzIGEgaGV4YWRlY2ltYWwgZW5jb2RlZCBzdHJpbmcgdG8gYSBVaW50OEFycmF5IG9mIGJ5dGVzLlxuICpcbiAqIEBwYXJhbSBlbmNvZGVkIFRoZSBoZXhhZGVjaW1hbCBlbmNvZGVkIHN0cmluZ1xuICovXG5leHBvcnQgZnVuY3Rpb24gZnJvbUhleChlbmNvZGVkOiBzdHJpbmcpOiBVaW50OEFycmF5IHtcbiAgaWYgKGVuY29kZWQubGVuZ3RoICUgMiAhPT0gMCkge1xuICAgIHRocm93IG5ldyBFcnJvcihcIkhleCBlbmNvZGVkIHN0cmluZ3MgbXVzdCBoYXZlIGFuIGV2ZW4gbnVtYmVyIGxlbmd0aFwiKTtcbiAgfVxuXG4gIGNvbnN0IG91dCA9IG5ldyBVaW50OEFycmF5KGVuY29kZWQubGVuZ3RoIC8gMik7XG4gIGZvciAobGV0IGkgPSAwOyBpIDwgZW5jb2RlZC5sZW5ndGg7IGkgKz0gMikge1xuICAgIGNvbnN0IGVuY29kZWRCeXRlID0gZW5jb2RlZC5zdWJzdHIoaSwgMikudG9Mb3dlckNhc2UoKTtcbiAgICBpZiAoZW5jb2RlZEJ5dGUgaW4gSEVYX1RPX1NIT1JUKSB7XG4gICAgICBvdXRbaSAvIDJdID0gSEVYX1RPX1NIT1JUW2VuY29kZWRCeXRlXTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKGBDYW5ub3QgZGVjb2RlIHVucmVjb2duaXplZCBzZXF1ZW5jZSAke2VuY29kZWRCeXRlfSBhcyBoZXhhZGVjaW1hbGApO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBvdXQ7XG59XG5cbi8qKlxuICogQ29udmVydHMgYSBVaW50OEFycmF5IG9mIGJpbmFyeSBkYXRhIHRvIGEgaGV4YWRlY2ltYWwgZW5jb2RlZCBzdHJpbmcuXG4gKlxuICogQHBhcmFtIGJ5dGVzIFRoZSBiaW5hcnkgZGF0YSB0byBlbmNvZGVcbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIHRvSGV4KGJ5dGVzOiBVaW50OEFycmF5KTogc3RyaW5nIHtcbiAgbGV0IG91dCA9IFwiXCI7XG4gIGZvciAobGV0IGkgPSAwOyBpIDwgYnl0ZXMuYnl0ZUxlbmd0aDsgaSsrKSB7XG4gICAgb3V0ICs9IFNIT1JUX1RPX0hFWFtieXRlc1tpXV07XG4gIH1cblxuICByZXR1cm4gb3V0O1xufVxuIl19 /***/ }), /***/ "7fqy": /*!********************************************!*\ !*** ./node_modules/lodash/_mapToArray.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Converts `map` to its key-value pairs. * * @private * @param {Object} map The map to convert. * @returns {Array} Returns the key-value pairs. */ function mapToArray(map) { var index = -1, result = Array(map.size); map.forEach(function(value, key) { result[++index] = [key, value]; }); return result; } module.exports = mapToArray; /***/ }), /***/ "7fx8": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/StartCelebrityRecognitionCommand.js ***! \*******************************************************************************************************/ /*! exports provided: StartCelebrityRecognitionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartCelebrityRecognitionCommand", function() { return StartCelebrityRecognitionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StartCelebrityRecognitionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartCelebrityRecognitionCommand, _super); // Start section: command_properties // End section: command_properties function StartCelebrityRecognitionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StartCelebrityRecognitionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartCelebrityRecognitionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartCelebrityRecognitionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StartCelebrityRecognitionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartCelebrityRecognitionCommand"])(input, context); }; StartCelebrityRecognitionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartCelebrityRecognitionCommand"])(output, context); }; return StartCelebrityRecognitionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StartCelebrityRecognitionCommand.js.map /***/ }), /***/ "7hq1": /*!************************************************************!*\ !*** ./node_modules/@aws-sdk/xml-builder/dist/es/index.js ***! \************************************************************/ /*! exports provided: XmlNode, XmlText */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _XmlNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./XmlNode */ "kTYL"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "XmlNode", function() { return _XmlNode__WEBPACK_IMPORTED_MODULE_0__["XmlNode"]; }); /* harmony import */ var _XmlText__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./XmlText */ "ZdkY"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "XmlText", function() { return _XmlText__WEBPACK_IMPORTED_MODULE_1__["XmlText"]; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxXQUFXLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9YbWxOb2RlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9YbWxUZXh0XCI7XG4iXX0= /***/ }), /***/ "7o/Q": /*!***********************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/Subscriber.js ***! \***********************************************************/ /*! exports provided: Subscriber, SafeSubscriber */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Subscriber", function() { return Subscriber; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SafeSubscriber", function() { return SafeSubscriber; }); /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util/isFunction */ "n6bG"); /* harmony import */ var _Observer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Observer */ "gRHU"); /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Subscription */ "quSY"); /* harmony import */ var _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../internal/symbol/rxSubscriber */ "2QA8"); /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./config */ "2fFW"); /* harmony import */ var _util_hostReportError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util/hostReportError */ "NJ4a"); class Subscriber extends _Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"] { constructor(destinationOrNext, error, complete) { super(); this.syncErrorValue = null; this.syncErrorThrown = false; this.syncErrorThrowable = false; this.isStopped = false; switch (arguments.length) { case 0: this.destination = _Observer__WEBPACK_IMPORTED_MODULE_1__["empty"]; break; case 1: if (!destinationOrNext) { this.destination = _Observer__WEBPACK_IMPORTED_MODULE_1__["empty"]; break; } if (typeof destinationOrNext === 'object') { if (destinationOrNext instanceof Subscriber) { this.syncErrorThrowable = destinationOrNext.syncErrorThrowable; this.destination = destinationOrNext; destinationOrNext.add(this); } else { this.syncErrorThrowable = true; this.destination = new SafeSubscriber(this, destinationOrNext); } break; } default: this.syncErrorThrowable = true; this.destination = new SafeSubscriber(this, destinationOrNext, error, complete); break; } } [_internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_3__["rxSubscriber"]]() { return this; } static create(next, error, complete) { const subscriber = new Subscriber(next, error, complete); subscriber.syncErrorThrowable = false; return subscriber; } next(value) { if (!this.isStopped) { this._next(value); } } error(err) { if (!this.isStopped) { this.isStopped = true; this._error(err); } } complete() { if (!this.isStopped) { this.isStopped = true; this._complete(); } } unsubscribe() { if (this.closed) { return; } this.isStopped = true; super.unsubscribe(); } _next(value) { this.destination.next(value); } _error(err) { this.destination.error(err); this.unsubscribe(); } _complete() { this.destination.complete(); this.unsubscribe(); } _unsubscribeAndRecycle() { const { _parentOrParents } = this; this._parentOrParents = null; this.unsubscribe(); this.closed = false; this.isStopped = false; this._parentOrParents = _parentOrParents; return this; } } class SafeSubscriber extends Subscriber { constructor(_parentSubscriber, observerOrNext, error, complete) { super(); this._parentSubscriber = _parentSubscriber; let next; let context = this; if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(observerOrNext)) { next = observerOrNext; } else if (observerOrNext) { next = observerOrNext.next; error = observerOrNext.error; complete = observerOrNext.complete; if (observerOrNext !== _Observer__WEBPACK_IMPORTED_MODULE_1__["empty"]) { context = Object.create(observerOrNext); if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(context.unsubscribe)) { this.add(context.unsubscribe.bind(context)); } context.unsubscribe = this.unsubscribe.bind(this); } } this._context = context; this._next = next; this._error = error; this._complete = complete; } next(value) { if (!this.isStopped && this._next) { const { _parentSubscriber } = this; if (!_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) { this.__tryOrUnsub(this._next, value); } else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) { this.unsubscribe(); } } } error(err) { if (!this.isStopped) { const { _parentSubscriber } = this; const { useDeprecatedSynchronousErrorHandling } = _config__WEBPACK_IMPORTED_MODULE_4__["config"]; if (this._error) { if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) { this.__tryOrUnsub(this._error, err); this.unsubscribe(); } else { this.__tryOrSetError(_parentSubscriber, this._error, err); this.unsubscribe(); } } else if (!_parentSubscriber.syncErrorThrowable) { this.unsubscribe(); if (useDeprecatedSynchronousErrorHandling) { throw err; } Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__["hostReportError"])(err); } else { if (useDeprecatedSynchronousErrorHandling) { _parentSubscriber.syncErrorValue = err; _parentSubscriber.syncErrorThrown = true; } else { Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__["hostReportError"])(err); } this.unsubscribe(); } } } complete() { if (!this.isStopped) { const { _parentSubscriber } = this; if (this._complete) { const wrappedComplete = () => this._complete.call(this._context); if (!_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) { this.__tryOrUnsub(wrappedComplete); this.unsubscribe(); } else { this.__tryOrSetError(_parentSubscriber, wrappedComplete); this.unsubscribe(); } } else { this.unsubscribe(); } } } __tryOrUnsub(fn, value) { try { fn.call(this._context, value); } catch (err) { this.unsubscribe(); if (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) { throw err; } else { Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__["hostReportError"])(err); } } } __tryOrSetError(parent, fn, value) { if (!_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) { throw new Error('bad call'); } try { fn.call(this._context, value); } catch (err) { if (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) { parent.syncErrorValue = err; parent.syncErrorThrown = true; return true; } else { Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__["hostReportError"])(err); return true; } } return false; } _unsubscribe() { const { _parentSubscriber } = this; this._context = null; this._parentSubscriber = null; _parentSubscriber.unsubscribe(); } } //# sourceMappingURL=Subscriber.js.map /***/ }), /***/ "7slb": /*!********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsTemplateCommand.js ***! \********************************************************************************************/ /*! exports provided: UpdateSmsTemplateCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateCommand", function() { return UpdateSmsTemplateCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UpdateSmsTemplateCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateSmsTemplateCommand, _super); // Start section: command_properties // End section: command_properties function UpdateSmsTemplateCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UpdateSmsTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsTemplateRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsTemplateResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UpdateSmsTemplateCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateSmsTemplateCommand"])(input, context); }; UpdateSmsTemplateCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateSmsTemplateCommand"])(output, context); }; return UpdateSmsTemplateCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=UpdateSmsTemplateCommand.js.map /***/ }), /***/ "7ve7": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/scheduler/Action.js ***! \*****************************************************************/ /*! exports provided: Action */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Action", function() { return Action; }); /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscription */ "quSY"); class Action extends _Subscription__WEBPACK_IMPORTED_MODULE_0__["Subscription"] { constructor(scheduler, work) { super(); } schedule(state, delay = 0) { return this; } } //# sourceMappingURL=Action.js.map /***/ }), /***/ "7wxJ": /*!*********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/combineAll.js ***! \*********************************************************************/ /*! exports provided: combineAll */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "combineAll", function() { return combineAll; }); /* harmony import */ var _observable_combineLatest__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/combineLatest */ "itXk"); function combineAll(project) { return (source) => source.lift(new _observable_combineLatest__WEBPACK_IMPORTED_MODULE_0__["CombineLatestOperator"](project)); } //# sourceMappingURL=combineAll.js.map /***/ }), /***/ "8/pm": /*!*********************************************************************!*\ !*** ./node_modules/amazon-cognito-identity-js/es/StorageHelper.js ***! \*********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return StorageHelper; }); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ var dataMemory = {}; /** @class */ var MemoryStorage = /*#__PURE__*/function () { function MemoryStorage() {} /** * This is used to set a specific item in storage * @param {string} key - the key for the item * @param {object} value - the value * @returns {string} value that was set */ MemoryStorage.setItem = function setItem(key, value) { dataMemory[key] = value; return dataMemory[key]; } /** * This is used to get a specific key from storage * @param {string} key - the key for the item * This is used to clear the storage * @returns {string} the data item */ ; MemoryStorage.getItem = function getItem(key) { return Object.prototype.hasOwnProperty.call(dataMemory, key) ? dataMemory[key] : undefined; } /** * This is used to remove an item from storage * @param {string} key - the key being set * @returns {string} value - value that was deleted */ ; MemoryStorage.removeItem = function removeItem(key) { return delete dataMemory[key]; } /** * This is used to clear the storage * @returns {string} nothing */ ; MemoryStorage.clear = function clear() { dataMemory = {}; return dataMemory; }; return MemoryStorage; }(); /** @class */ var StorageHelper = /*#__PURE__*/function () { /** * This is used to get a storage object * @returns {object} the storage */ function StorageHelper() { try { this.storageWindow = window.localStorage; this.storageWindow.setItem('aws.cognito.test-ls', 1); this.storageWindow.removeItem('aws.cognito.test-ls'); } catch (exception) { this.storageWindow = MemoryStorage; } } /** * This is used to return the storage * @returns {object} the storage */ var _proto = StorageHelper.prototype; _proto.getStorage = function getStorage() { return this.storageWindow; }; return StorageHelper; }(); /***/ }), /***/ "81uo": /*!***************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListJourneysCommand.js ***! \***************************************************************************************/ /*! exports provided: ListJourneysCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListJourneysCommand", function() { return ListJourneysCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListJourneysCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListJourneysCommand, _super); // Start section: command_properties // End section: command_properties function ListJourneysCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListJourneysCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListJourneysRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListJourneysResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListJourneysCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1ListJourneysCommand"])(input, context); }; ListJourneysCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1ListJourneysCommand"])(output, context); }; return ListJourneysCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListJourneysCommand.js.map /***/ }), /***/ "83Xd": /*!*************************************************!*\ !*** ./node_modules/graphql/language/index.mjs ***! \*************************************************/ /*! exports provided: getLocation, Kind, createLexer, TokenKind, parse, parseValue, parseType, print, Source, visit, visitInParallel, visitWithTypeInfo, getVisitFn, BREAK, isDefinitionNode, isExecutableDefinitionNode, isSelectionNode, isValueNode, isTypeNode, isTypeSystemDefinitionNode, isTypeDefinitionNode, isTypeSystemExtensionNode, isTypeExtensionNode, DirectiveLocation */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _location__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./location */ "y4cC"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLocation", function() { return _location__WEBPACK_IMPORTED_MODULE_0__["getLocation"]; }); /* harmony import */ var _kinds__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./kinds */ "/jXB"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Kind", function() { return _kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"]; }); /* harmony import */ var _lexer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lexer */ "CbW8"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createLexer", function() { return _lexer__WEBPACK_IMPORTED_MODULE_2__["createLexer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TokenKind", function() { return _lexer__WEBPACK_IMPORTED_MODULE_2__["TokenKind"]; }); /* harmony import */ var _parser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./parser */ "EMzn"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return _parser__WEBPACK_IMPORTED_MODULE_3__["parse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseValue", function() { return _parser__WEBPACK_IMPORTED_MODULE_3__["parseValue"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseType", function() { return _parser__WEBPACK_IMPORTED_MODULE_3__["parseType"]; }); /* harmony import */ var _printer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./printer */ "dQau"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "print", function() { return _printer__WEBPACK_IMPORTED_MODULE_4__["print"]; }); /* harmony import */ var _source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./source */ "neE4"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Source", function() { return _source__WEBPACK_IMPORTED_MODULE_5__["Source"]; }); /* harmony import */ var _visitor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./visitor */ "L2ys"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "visit", function() { return _visitor__WEBPACK_IMPORTED_MODULE_6__["visit"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "visitInParallel", function() { return _visitor__WEBPACK_IMPORTED_MODULE_6__["visitInParallel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "visitWithTypeInfo", function() { return _visitor__WEBPACK_IMPORTED_MODULE_6__["visitWithTypeInfo"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getVisitFn", function() { return _visitor__WEBPACK_IMPORTED_MODULE_6__["getVisitFn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BREAK", function() { return _visitor__WEBPACK_IMPORTED_MODULE_6__["BREAK"]; }); /* harmony import */ var _predicates__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./predicates */ "Xizt"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isDefinitionNode", function() { return _predicates__WEBPACK_IMPORTED_MODULE_7__["isDefinitionNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isExecutableDefinitionNode", function() { return _predicates__WEBPACK_IMPORTED_MODULE_7__["isExecutableDefinitionNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isSelectionNode", function() { return _predicates__WEBPACK_IMPORTED_MODULE_7__["isSelectionNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isValueNode", function() { return _predicates__WEBPACK_IMPORTED_MODULE_7__["isValueNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isTypeNode", function() { return _predicates__WEBPACK_IMPORTED_MODULE_7__["isTypeNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isTypeSystemDefinitionNode", function() { return _predicates__WEBPACK_IMPORTED_MODULE_7__["isTypeSystemDefinitionNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isTypeDefinitionNode", function() { return _predicates__WEBPACK_IMPORTED_MODULE_7__["isTypeDefinitionNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isTypeSystemExtensionNode", function() { return _predicates__WEBPACK_IMPORTED_MODULE_7__["isTypeSystemExtensionNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isTypeExtensionNode", function() { return _predicates__WEBPACK_IMPORTED_MODULE_7__["isTypeExtensionNode"]; }); /* harmony import */ var _directiveLocation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./directiveLocation */ "F8X2"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DirectiveLocation", function() { return _directiveLocation__WEBPACK_IMPORTED_MODULE_8__["DirectiveLocation"]; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /***/ }), /***/ "87YT": /*!**********************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-user-agent/dist/es/index.js ***! \**********************************************************************/ /*! exports provided: resolveUserAgentConfig, userAgentMiddleware, getUserAgentMiddlewareOptions, getUserAgentPlugin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _configurations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./configurations */ "DBKc"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveUserAgentConfig", function() { return _configurations__WEBPACK_IMPORTED_MODULE_0__["resolveUserAgentConfig"]; }); /* harmony import */ var _middleware__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./middleware */ "agZC"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "userAgentMiddleware", function() { return _middleware__WEBPACK_IMPORTED_MODULE_1__["userAgentMiddleware"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getUserAgentMiddlewareOptions", function() { return _middleware__WEBPACK_IMPORTED_MODULE_1__["getUserAgentMiddlewareOptions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getUserAgentPlugin", function() { return _middleware__WEBPACK_IMPORTED_MODULE_1__["getUserAgentPlugin"]; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2NvbmZpZ3VyYXRpb25zXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9taWRkbGV3YXJlXCI7XG4iXX0= /***/ }), /***/ "88cP": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeletePushTemplateCommand.js ***! \*********************************************************************************************/ /*! exports provided: DeletePushTemplateCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateCommand", function() { return DeletePushTemplateCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeletePushTemplateCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeletePushTemplateCommand, _super); // Start section: command_properties // End section: command_properties function DeletePushTemplateCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeletePushTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeletePushTemplateRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeletePushTemplateResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeletePushTemplateCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeletePushTemplateCommand"])(input, context); }; DeletePushTemplateCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeletePushTemplateCommand"])(output, context); }; return DeletePushTemplateCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeletePushTemplateCommand.js.map /***/ }), /***/ "89JE": /*!*****************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/Kinesis.js ***! \*****************************************************************/ /*! exports provided: Kinesis */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kinesis", function() { return Kinesis; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _KinesisClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./KinesisClient */ "zDFU"); /* harmony import */ var _commands_AddTagsToStreamCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/AddTagsToStreamCommand */ "nNfj"); /* harmony import */ var _commands_CreateStreamCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/CreateStreamCommand */ "ETva"); /* harmony import */ var _commands_DecreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/DecreaseStreamRetentionPeriodCommand */ "sYVI"); /* harmony import */ var _commands_DeleteStreamCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/DeleteStreamCommand */ "hM2z"); /* harmony import */ var _commands_DeregisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/DeregisterStreamConsumerCommand */ "T0KU"); /* harmony import */ var _commands_DescribeLimitsCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/DescribeLimitsCommand */ "mfpG"); /* harmony import */ var _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/DescribeStreamCommand */ "1F7f"); /* harmony import */ var _commands_DescribeStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/DescribeStreamConsumerCommand */ "IkNI"); /* harmony import */ var _commands_DescribeStreamSummaryCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/DescribeStreamSummaryCommand */ "jIBd"); /* harmony import */ var _commands_DisableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/DisableEnhancedMonitoringCommand */ "axPF"); /* harmony import */ var _commands_EnableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/EnableEnhancedMonitoringCommand */ "TRML"); /* harmony import */ var _commands_GetRecordsCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/GetRecordsCommand */ "0PI4"); /* harmony import */ var _commands_GetShardIteratorCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/GetShardIteratorCommand */ "IqeB"); /* harmony import */ var _commands_IncreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/IncreaseStreamRetentionPeriodCommand */ "6HaD"); /* harmony import */ var _commands_ListShardsCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/ListShardsCommand */ "YzBE"); /* harmony import */ var _commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/ListStreamConsumersCommand */ "VtXw"); /* harmony import */ var _commands_ListStreamsCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/ListStreamsCommand */ "L8QR"); /* harmony import */ var _commands_ListTagsForStreamCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/ListTagsForStreamCommand */ "u4xJ"); /* harmony import */ var _commands_MergeShardsCommand__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./commands/MergeShardsCommand */ "3OOI"); /* harmony import */ var _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/PutRecordCommand */ "Rzw5"); /* harmony import */ var _commands_PutRecordsCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/PutRecordsCommand */ "/wK6"); /* harmony import */ var _commands_RegisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./commands/RegisterStreamConsumerCommand */ "0lYC"); /* harmony import */ var _commands_RemoveTagsFromStreamCommand__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./commands/RemoveTagsFromStreamCommand */ "heFw"); /* harmony import */ var _commands_SplitShardCommand__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./commands/SplitShardCommand */ "CoaD"); /* harmony import */ var _commands_StartStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./commands/StartStreamEncryptionCommand */ "fW1I"); /* harmony import */ var _commands_StopStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./commands/StopStreamEncryptionCommand */ "eBKz"); /* harmony import */ var _commands_SubscribeToShardCommand__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./commands/SubscribeToShardCommand */ "8iDP"); /* harmony import */ var _commands_UpdateShardCountCommand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./commands/UpdateShardCountCommand */ "wlME"); /** * Amazon Kinesis Data Streams Service API Reference *

Amazon Kinesis Data Streams is a managed service that scales elastically for * real-time processing of streaming big data.

*/ var Kinesis = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Kinesis, _super); function Kinesis() { return _super !== null && _super.apply(this, arguments) || this; } Kinesis.prototype.addTagsToStream = function (args, optionsOrCb, cb) { var command = new _commands_AddTagsToStreamCommand__WEBPACK_IMPORTED_MODULE_2__["AddTagsToStreamCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.createStream = function (args, optionsOrCb, cb) { var command = new _commands_CreateStreamCommand__WEBPACK_IMPORTED_MODULE_3__["CreateStreamCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.decreaseStreamRetentionPeriod = function (args, optionsOrCb, cb) { var command = new _commands_DecreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_4__["DecreaseStreamRetentionPeriodCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.deleteStream = function (args, optionsOrCb, cb) { var command = new _commands_DeleteStreamCommand__WEBPACK_IMPORTED_MODULE_5__["DeleteStreamCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.deregisterStreamConsumer = function (args, optionsOrCb, cb) { var command = new _commands_DeregisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_6__["DeregisterStreamConsumerCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.describeLimits = function (args, optionsOrCb, cb) { var command = new _commands_DescribeLimitsCommand__WEBPACK_IMPORTED_MODULE_7__["DescribeLimitsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.describeStream = function (args, optionsOrCb, cb) { var command = new _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_8__["DescribeStreamCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.describeStreamConsumer = function (args, optionsOrCb, cb) { var command = new _commands_DescribeStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_9__["DescribeStreamConsumerCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.describeStreamSummary = function (args, optionsOrCb, cb) { var command = new _commands_DescribeStreamSummaryCommand__WEBPACK_IMPORTED_MODULE_10__["DescribeStreamSummaryCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.disableEnhancedMonitoring = function (args, optionsOrCb, cb) { var command = new _commands_DisableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_11__["DisableEnhancedMonitoringCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.enableEnhancedMonitoring = function (args, optionsOrCb, cb) { var command = new _commands_EnableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_12__["EnableEnhancedMonitoringCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.getRecords = function (args, optionsOrCb, cb) { var command = new _commands_GetRecordsCommand__WEBPACK_IMPORTED_MODULE_13__["GetRecordsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.getShardIterator = function (args, optionsOrCb, cb) { var command = new _commands_GetShardIteratorCommand__WEBPACK_IMPORTED_MODULE_14__["GetShardIteratorCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.increaseStreamRetentionPeriod = function (args, optionsOrCb, cb) { var command = new _commands_IncreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_15__["IncreaseStreamRetentionPeriodCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.listShards = function (args, optionsOrCb, cb) { var command = new _commands_ListShardsCommand__WEBPACK_IMPORTED_MODULE_16__["ListShardsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.listStreamConsumers = function (args, optionsOrCb, cb) { var command = new _commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_17__["ListStreamConsumersCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.listStreams = function (args, optionsOrCb, cb) { var command = new _commands_ListStreamsCommand__WEBPACK_IMPORTED_MODULE_18__["ListStreamsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.listTagsForStream = function (args, optionsOrCb, cb) { var command = new _commands_ListTagsForStreamCommand__WEBPACK_IMPORTED_MODULE_19__["ListTagsForStreamCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.mergeShards = function (args, optionsOrCb, cb) { var command = new _commands_MergeShardsCommand__WEBPACK_IMPORTED_MODULE_20__["MergeShardsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.putRecord = function (args, optionsOrCb, cb) { var command = new _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_21__["PutRecordCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.putRecords = function (args, optionsOrCb, cb) { var command = new _commands_PutRecordsCommand__WEBPACK_IMPORTED_MODULE_22__["PutRecordsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.registerStreamConsumer = function (args, optionsOrCb, cb) { var command = new _commands_RegisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_23__["RegisterStreamConsumerCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.removeTagsFromStream = function (args, optionsOrCb, cb) { var command = new _commands_RemoveTagsFromStreamCommand__WEBPACK_IMPORTED_MODULE_24__["RemoveTagsFromStreamCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.splitShard = function (args, optionsOrCb, cb) { var command = new _commands_SplitShardCommand__WEBPACK_IMPORTED_MODULE_25__["SplitShardCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.startStreamEncryption = function (args, optionsOrCb, cb) { var command = new _commands_StartStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_26__["StartStreamEncryptionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.stopStreamEncryption = function (args, optionsOrCb, cb) { var command = new _commands_StopStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_27__["StopStreamEncryptionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.subscribeToShard = function (args, optionsOrCb, cb) { var command = new _commands_SubscribeToShardCommand__WEBPACK_IMPORTED_MODULE_28__["SubscribeToShardCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Kinesis.prototype.updateShardCount = function (args, optionsOrCb, cb) { var command = new _commands_UpdateShardCountCommand__WEBPACK_IMPORTED_MODULE_29__["UpdateShardCountCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; return Kinesis; }(_KinesisClient__WEBPACK_IMPORTED_MODULE_1__["KinesisClient"])); //# sourceMappingURL=Kinesis.js.map /***/ }), /***/ "8HHK": /*!*************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/S3Client.js ***! \*************************************************************/ /*! exports provided: S3Client */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S3Client", function() { return S3Client; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./runtimeConfig */ "xpCs"); /* harmony import */ var _aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/config-resolver */ "NtRE"); /* harmony import */ var _aws_sdk_eventstream_serde_config_resolver__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/eventstream-serde-config-resolver */ "BC0r"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-content-length */ "naxo"); /* harmony import */ var _aws_sdk_middleware_expect_continue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/middleware-expect-continue */ "x/fj"); /* harmony import */ var _aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/middleware-host-header */ "Nl9j"); /* harmony import */ var _aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/middleware-logger */ "+tRG"); /* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "UMev"); /* harmony import */ var _aws_sdk_middleware_sdk_s3__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @aws-sdk/middleware-sdk-s3 */ "5tOo"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @aws-sdk/middleware-user-agent */ "87YT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); /** *

*/ var S3Client = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(S3Client, _super); function S3Client(configuration) { var _this = this; var _config_0 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__["ClientDefaultValues"]), configuration); var _config_1 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveRegionConfig"])(_config_0); var _config_2 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveEndpointsConfig"])(_config_1); var _config_3 = Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_11__["resolveAwsAuthConfig"])(_config_2); var _config_4 = Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_9__["resolveRetryConfig"])(_config_3); var _config_5 = Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_12__["resolveUserAgentConfig"])(_config_4); var _config_6 = Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_4__["resolveBucketEndpointConfig"])(_config_5); var _config_7 = Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_7__["resolveHostHeaderConfig"])(_config_6); var _config_8 = Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_8__["resolveLoggerConfig"])(_config_7); var _config_9 = Object(_aws_sdk_eventstream_serde_config_resolver__WEBPACK_IMPORTED_MODULE_3__["resolveEventStreamSerdeConfig"])(_config_8); _this = _super.call(this, _config_9) || this; _this.config = _config_9; _this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_11__["getAwsAuthPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_9__["getRetryPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_12__["getUserAgentPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_5__["getContentLengthPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_sdk_s3__WEBPACK_IMPORTED_MODULE_10__["getValidateBucketNamePlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_expect_continue__WEBPACK_IMPORTED_MODULE_6__["getAddExpectContinuePlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_7__["getHostHeaderPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_8__["getLoggerPlugin"])(_this.config)); return _this; } S3Client.prototype.destroy = function () { _super.prototype.destroy.call(this); }; return S3Client; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_13__["Client"])); //# sourceMappingURL=S3Client.js.map /***/ }), /***/ "8ImK": /*!***********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/pagination/Interfaces.js ***! \***********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Interfaces.js.map /***/ }), /***/ "8JFw": /*!*****************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/ComprehendClient.js ***! \*****************************************************************************/ /*! exports provided: ComprehendClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComprehendClient", function() { return ComprehendClient; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./runtimeConfig */ "VP/o"); /* harmony import */ var _aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/config-resolver */ "NtRE"); /* harmony import */ var _aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-content-length */ "naxo"); /* harmony import */ var _aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-host-header */ "Nl9j"); /* harmony import */ var _aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-logger */ "+tRG"); /* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "UMev"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/middleware-user-agent */ "87YT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); /** *

Amazon Comprehend is an AWS service for gaining insight into the content of documents. Use these * actions to determine the topics contained in your documents, the topics they discuss, the * predominant sentiment expressed in them, the predominant language used, and more.

*/ var ComprehendClient = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ComprehendClient, _super); function ComprehendClient(configuration) { var _this = this; var _config_0 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__["ClientDefaultValues"]), configuration); var _config_1 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveRegionConfig"])(_config_0); var _config_2 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveEndpointsConfig"])(_config_1); var _config_3 = Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["resolveAwsAuthConfig"])(_config_2); var _config_4 = Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["resolveRetryConfig"])(_config_3); var _config_5 = Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["resolveUserAgentConfig"])(_config_4); var _config_6 = Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["resolveHostHeaderConfig"])(_config_5); var _config_7 = Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__["resolveLoggerConfig"])(_config_6); _this = _super.call(this, _config_7) || this; _this.config = _config_7; _this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["getAwsAuthPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["getRetryPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["getUserAgentPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__["getContentLengthPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["getHostHeaderPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__["getLoggerPlugin"])(_this.config)); return _this; } ComprehendClient.prototype.destroy = function () { _super.prototype.destroy.call(this); }; return ComprehendClient; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__["Client"])); //# sourceMappingURL=ComprehendClient.js.map /***/ }), /***/ "8LHb": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSegmentCommand.js ***! \****************************************************************************************/ /*! exports provided: CreateSegmentCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentCommand", function() { return CreateSegmentCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CreateSegmentCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateSegmentCommand, _super); // Start section: command_properties // End section: command_properties function CreateSegmentCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CreateSegmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateSegmentRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateSegmentResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CreateSegmentCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateSegmentCommand"])(input, context); }; CreateSegmentCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateSegmentCommand"])(output, context); }; return CreateSegmentCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=CreateSegmentCommand.js.map /***/ }), /***/ "8LU1": /*!********************************************************!*\ !*** ./node_modules/@angular/cdk/fesm2015/coercion.js ***! \********************************************************/ /*! exports provided: _isNumberValue, coerceArray, coerceBooleanProperty, coerceCssPixelValue, coerceElement, coerceNumberProperty */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_isNumberValue", function() { return _isNumberValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "coerceArray", function() { return coerceArray; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "coerceBooleanProperty", function() { return coerceBooleanProperty; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "coerceCssPixelValue", function() { return coerceCssPixelValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "coerceElement", function() { return coerceElement; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "coerceNumberProperty", function() { return coerceNumberProperty; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** Coerces a data-bound value (typically a string) to a boolean. */ function coerceBooleanProperty(value) { return value != null && `${value}` !== 'false'; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function coerceNumberProperty(value, fallbackValue = 0) { return _isNumberValue(value) ? Number(value) : fallbackValue; } /** * Whether the provided value is considered a number. * @docs-private */ function _isNumberValue(value) { // parseFloat(value) handles most of the cases we're interested in (it treats null, empty string, // and other non-number values as NaN, where Number just uses 0) but it considers the string // '123hello' to be a valid number. Therefore we also check if Number(value) is NaN. return !isNaN(parseFloat(value)) && !isNaN(Number(value)); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function coerceArray(value) { return Array.isArray(value) ? value : [value]; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** Coerces a value to a CSS pixel value. */ function coerceCssPixelValue(value) { if (value == null) { return ''; } return typeof value === 'string' ? value : `${value}px`; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Coerces an ElementRef or an Element into an element. * Useful for APIs that can accept either a ref or the native element itself. */ function coerceElement(elementOrRef) { return elementOrRef instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] ? elementOrRef.nativeElement : elementOrRef; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ //# sourceMappingURL=coercion.js.map /***/ }), /***/ "8Otq": /*!**************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/BatchDetectKeyPhrasesCommand.js ***! \**************************************************************************************************/ /*! exports provided: BatchDetectKeyPhrasesCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectKeyPhrasesCommand", function() { return BatchDetectKeyPhrasesCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var BatchDetectKeyPhrasesCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BatchDetectKeyPhrasesCommand, _super); // Start section: command_properties // End section: command_properties function BatchDetectKeyPhrasesCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } BatchDetectKeyPhrasesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["BatchDetectKeyPhrasesRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["BatchDetectKeyPhrasesResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; BatchDetectKeyPhrasesCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1BatchDetectKeyPhrasesCommand"])(input, context); }; BatchDetectKeyPhrasesCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1BatchDetectKeyPhrasesCommand"])(output, context); }; return BatchDetectKeyPhrasesCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=BatchDetectKeyPhrasesCommand.js.map /***/ }), /***/ "8Qeq": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/canReportError.js ***! \********************************************************************/ /*! exports provided: canReportError */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "canReportError", function() { return canReportError; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); function canReportError(observer) { while (observer) { const { closed, destination, isStopped } = observer; if (closed || isStopped) { return false; } else if (destination && destination instanceof _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]) { observer = destination; } else { observer = null; } } return true; } //# sourceMappingURL=canReportError.js.map /***/ }), /***/ "8bjZ": /*!***********************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/endpoints.js ***! \***********************************************************************/ /*! exports provided: defaultRegionInfoProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRegionInfoProvider", function() { return defaultRegionInfoProvider; }); // Partition default templates var AWS_TEMPLATE = "rekognition.{region}.amazonaws.com"; var AWS_CN_TEMPLATE = "rekognition.{region}.amazonaws.com.cn"; var AWS_ISO_TEMPLATE = "rekognition.{region}.c2s.ic.gov"; var AWS_ISO_B_TEMPLATE = "rekognition.{region}.sc2s.sgov.gov"; var AWS_US_GOV_TEMPLATE = "rekognition.{region}.amazonaws.com"; // Partition regions var AWS_REGIONS = new Set([ "ap-east-1", "ap-northeast-1", "ap-northeast-2", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "eu-central-1", "eu-north-1", "eu-west-1", "eu-west-2", "eu-west-3", "me-south-1", "sa-east-1", "us-east-1", "us-east-2", "us-west-1", "us-west-2", ]); var AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]); var AWS_ISO_REGIONS = new Set(["us-iso-east-1"]); var AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]); var AWS_US_GOV_REGIONS = new Set(["us-gov-east-1", "us-gov-west-1"]); var defaultRegionInfoProvider = function (region, options) { var regionInfo = undefined; switch (region) { // First, try to match exact region names. case "ap-northeast-1": regionInfo = { hostname: "rekognition.ap-northeast-1.amazonaws.com", partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "rekognition.ap-northeast-2.amazonaws.com", partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "rekognition.ap-south-1.amazonaws.com", partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "rekognition.ap-southeast-1.amazonaws.com", partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "rekognition.ap-southeast-2.amazonaws.com", partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "rekognition.eu-central-1.amazonaws.com", partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "rekognition.eu-west-1.amazonaws.com", partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "rekognition.eu-west-2.amazonaws.com", partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "rekognition.us-east-1.amazonaws.com", partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "rekognition.us-east-2.amazonaws.com", partition: "aws", }; break; case "us-gov-west-1": regionInfo = { hostname: "rekognition.us-gov-west-1.amazonaws.com", partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "rekognition.us-west-1.amazonaws.com", partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "rekognition.us-west-2.amazonaws.com", partition: "aws", }; break; // Next, try to match partition endpoints. default: if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), partition: "aws", }; } } return Promise.resolve(regionInfo); }; //# sourceMappingURL=endpoints.js.map /***/ }), /***/ "8iDP": /*!******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/SubscribeToShardCommand.js ***! \******************************************************************************************/ /*! exports provided: SubscribeToShardCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardCommand", function() { return SubscribeToShardCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var SubscribeToShardCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SubscribeToShardCommand, _super); // Start section: command_properties // End section: command_properties function SubscribeToShardCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } SubscribeToShardCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["SubscribeToShardInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["SubscribeToShardOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; SubscribeToShardCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1SubscribeToShardCommand"])(input, context); }; SubscribeToShardCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1SubscribeToShardCommand"])(output, context); }; return SubscribeToShardCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=SubscribeToShardCommand.js.map /***/ }), /***/ "8iP/": /*!*************************************************************************!*\ !*** ./node_modules/@aws-sdk/s3-request-presigner/dist/es/presigner.js ***! \*************************************************************************/ /*! exports provided: S3RequestPresigner */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S3RequestPresigner", function() { return S3RequestPresigner; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_signature_v4__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/signature-v4 */ "ko+D"); /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "MDZc"); var S3RequestPresigner = /** @class */ (function () { function S3RequestPresigner(options) { var resolvedOptions = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ // Allow `signingName` because we want to support usecase of supply client's resolved config // directly. Where service equals signingName. service: options.signingName || options.service || "s3", uriEscapePath: options.uriEscapePath || false }, options); this.signer = new _aws_sdk_signature_v4__WEBPACK_IMPORTED_MODULE_1__["SignatureV4"](resolvedOptions); } S3RequestPresigner.prototype.presign = function (requestToSign, _a) { if (_a === void 0) { _a = {}; } var _b = _a.unsignableHeaders, unsignableHeaders = _b === void 0 ? new Set() : _b, options = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["unsignableHeaders"]); return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { unsignableHeaders.add("content-type"); requestToSign.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["SHA256_HEADER"]] = _constants__WEBPACK_IMPORTED_MODULE_2__["UNSIGNED_PAYLOAD"]; return [2 /*return*/, this.signer.presign(requestToSign, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ expiresIn: 900, unsignableHeaders: unsignableHeaders }, options))]; }); }); }; return S3RequestPresigner; }()); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJlc2lnbmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3ByZXNpZ25lci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFdBQVcsRUFBMEMsTUFBTSx1QkFBdUIsQ0FBQztBQUk1RixPQUFPLEVBQUUsYUFBYSxFQUFFLGdCQUFnQixFQUFFLE1BQU0sYUFBYSxDQUFDO0FBYzlEO0lBRUUsNEJBQVksT0FBa0M7UUFDNUMsSUFBTSxlQUFlO1lBQ25CLDRGQUE0RjtZQUM1Riw4Q0FBOEM7WUFDOUMsT0FBTyxFQUFFLE9BQU8sQ0FBQyxXQUFXLElBQUksT0FBTyxDQUFDLE9BQU8sSUFBSSxJQUFJLEVBQ3ZELGFBQWEsRUFBRSxPQUFPLENBQUMsYUFBYSxJQUFJLEtBQUssSUFDMUMsT0FBTyxDQUNYLENBQUM7UUFDRixJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksV0FBVyxDQUFDLGVBQWUsQ0FBQyxDQUFDO0lBQ2pELENBQUM7SUFFWSxvQ0FBTyxHQUFwQixVQUNFLGFBQTJCLEVBQzNCLEVBQThFO1FBQTlFLG1CQUFBLEVBQUEsT0FBOEU7UUFBNUUsSUFBQSx5QkFBNkIsRUFBN0IsaUJBQWlCLG1CQUFHLElBQUksR0FBRyxFQUFFLEtBQUEsRUFBSyxPQUFPLGNBQTNDLHFCQUE2QyxDQUFGOzs7Z0JBRTNDLGlCQUFpQixDQUFDLEdBQUcsQ0FBQyxjQUFjLENBQUMsQ0FBQztnQkFDdEMsYUFBYSxDQUFDLE9BQU8sQ0FBQyxhQUFhLENBQUMsR0FBRyxnQkFBZ0IsQ0FBQztnQkFDeEQsc0JBQU8sSUFBSSxDQUFDLE1BQU0sQ0FBQyxPQUFPLENBQUMsYUFBYSxhQUN0QyxTQUFTLEVBQUUsR0FBRyxFQUNkLGlCQUFpQixtQkFBQSxJQUNkLE9BQU8sRUFDVixFQUFDOzs7S0FDSjtJQUNILHlCQUFDO0FBQUQsQ0FBQyxBQXpCRCxJQXlCQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFNpZ25hdHVyZVY0LCBTaWduYXR1cmVWNENyeXB0b0luaXQsIFNpZ25hdHVyZVY0SW5pdCB9IGZyb20gXCJAYXdzLXNkay9zaWduYXR1cmUtdjRcIjtcbmltcG9ydCB7IFJlcXVlc3RQcmVzaWduZXIsIFJlcXVlc3RQcmVzaWduaW5nQXJndW1lbnRzIH0gZnJvbSBcIkBhd3Mtc2RrL3R5cGVzXCI7XG5pbXBvcnQgeyBIdHRwUmVxdWVzdCBhcyBJSHR0cFJlcXVlc3QgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuaW1wb3J0IHsgU0hBMjU2X0hFQURFUiwgVU5TSUdORURfUEFZTE9BRCB9IGZyb20gXCIuL2NvbnN0YW50c1wiO1xuXG4vKipcbiAqIFBhcnRpYWxCeTxULCBLPiBtYWtlcyBwcm9wZXJ0aWVzIHNwZWNpZmllZCBpbiBLIG9wdGlvbmFsIGluIGludGVyZmFjZSBUXG4gKiBzZWU6IGh0dHBzOi8vc3RhY2tvdmVyZmxvdy5jb20vcXVlc3Rpb25zLzQzMTU5ODg3L21ha2UtYS1zaW5nbGUtcHJvcGVydHktb3B0aW9uYWwtaW4tdHlwZXNjcmlwdFxuICogKi9cbnR5cGUgT21pdDxULCBLIGV4dGVuZHMga2V5b2YgVD4gPSBQaWNrPFQsIEV4Y2x1ZGU8a2V5b2YgVCwgSz4+O1xudHlwZSBQYXJ0aWFsQnk8VCwgSyBleHRlbmRzIGtleW9mIFQ+ID0gT21pdDxULCBLPiAmIFBhcnRpYWw8UGljazxULCBLPj47XG5cbmV4cG9ydCB0eXBlIFMzUmVxdWVzdFByZXNpZ25lck9wdGlvbnMgPSBQYXJ0aWFsQnk8XG4gIFNpZ25hdHVyZVY0SW5pdCAmIFNpZ25hdHVyZVY0Q3J5cHRvSW5pdCxcbiAgXCJzZXJ2aWNlXCIgfCBcInVyaUVzY2FwZVBhdGhcIlxuPiAmIHsgc2lnbmluZ05hbWU/OiBzdHJpbmcgfTtcblxuZXhwb3J0IGNsYXNzIFMzUmVxdWVzdFByZXNpZ25lciBpbXBsZW1lbnRzIFJlcXVlc3RQcmVzaWduZXIge1xuICBwcml2YXRlIHJlYWRvbmx5IHNpZ25lcjogU2lnbmF0dXJlVjQ7XG4gIGNvbnN0cnVjdG9yKG9wdGlvbnM6IFMzUmVxdWVzdFByZXNpZ25lck9wdGlvbnMpIHtcbiAgICBjb25zdCByZXNvbHZlZE9wdGlvbnMgPSB7XG4gICAgICAvLyBBbGxvdyBgc2lnbmluZ05hbWVgIGJlY2F1c2Ugd2Ugd2FudCB0byBzdXBwb3J0IHVzZWNhc2Ugb2Ygc3VwcGx5IGNsaWVudCdzIHJlc29sdmVkIGNvbmZpZ1xuICAgICAgLy8gZGlyZWN0bHkuIFdoZXJlIHNlcnZpY2UgZXF1YWxzIHNpZ25pbmdOYW1lLlxuICAgICAgc2VydmljZTogb3B0aW9ucy5zaWduaW5nTmFtZSB8fCBvcHRpb25zLnNlcnZpY2UgfHwgXCJzM1wiLFxuICAgICAgdXJpRXNjYXBlUGF0aDogb3B0aW9ucy51cmlFc2NhcGVQYXRoIHx8IGZhbHNlLFxuICAgICAgLi4ub3B0aW9ucyxcbiAgICB9O1xuICAgIHRoaXMuc2lnbmVyID0gbmV3IFNpZ25hdHVyZVY0KHJlc29sdmVkT3B0aW9ucyk7XG4gIH1cblxuICBwdWJsaWMgYXN5bmMgcHJlc2lnbihcbiAgICByZXF1ZXN0VG9TaWduOiBJSHR0cFJlcXVlc3QsXG4gICAgeyB1bnNpZ25hYmxlSGVhZGVycyA9IG5ldyBTZXQoKSwgLi4ub3B0aW9ucyB9OiBSZXF1ZXN0UHJlc2lnbmluZ0FyZ3VtZW50cyA9IHt9XG4gICk6IFByb21pc2U8SUh0dHBSZXF1ZXN0PiB7XG4gICAgdW5zaWduYWJsZUhlYWRlcnMuYWRkKFwiY29udGVudC10eXBlXCIpO1xuICAgIHJlcXVlc3RUb1NpZ24uaGVhZGVyc1tTSEEyNTZfSEVBREVSXSA9IFVOU0lHTkVEX1BBWUxPQUQ7XG4gICAgcmV0dXJuIHRoaXMuc2lnbmVyLnByZXNpZ24ocmVxdWVzdFRvU2lnbiwge1xuICAgICAgZXhwaXJlc0luOiA5MDAsXG4gICAgICB1bnNpZ25hYmxlSGVhZGVycyxcbiAgICAgIC4uLm9wdGlvbnMsXG4gICAgfSk7XG4gIH1cbn1cbiJdfQ== /***/ }), /***/ "8l2q": /*!***********************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/Credentials.js ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; Object.defineProperty(exports, "__esModule", { value: true }); var Logger_1 = __webpack_require__(/*! ./Logger */ "t5A6"); var StorageHelper_1 = __webpack_require__(/*! ./StorageHelper */ "iaL4"); var JS_1 = __webpack_require__(/*! ./JS */ "eIkY"); var OAuthHelper_1 = __webpack_require__(/*! ./OAuthHelper */ "/xGt"); var Util_1 = __webpack_require__(/*! ./Util */ "HGW4"); var Platform_1 = __webpack_require__(/*! ./Platform */ "UyRJ"); var Amplify_1 = __webpack_require__(/*! ./Amplify */ "pUHq"); var credential_provider_cognito_identity_1 = __webpack_require__(/*! @aws-sdk/credential-provider-cognito-identity */ "LnMm"); var client_cognito_identity_1 = __webpack_require__(/*! @aws-sdk/client-cognito-identity */ "f1ex"); var logger = new Logger_1.ConsoleLogger('Credentials'); var CREDENTIALS_TTL = 50 * 60 * 1000; // 50 min, can be modified on config if required in the future var CredentialsClass = /** @class */ (function () { function CredentialsClass(config) { this._gettingCredPromise = null; this._refreshHandlers = {}; // Allow `Auth` to be injected for SSR, but Auth isn't a required dependency for Credentials this.Auth = undefined; this.configure(config); this._refreshHandlers['google'] = OAuthHelper_1.GoogleOAuth.refreshGoogleToken; this._refreshHandlers['facebook'] = OAuthHelper_1.FacebookOAuth.refreshFacebookToken; } CredentialsClass.prototype.getModuleName = function () { return 'Credentials'; }; CredentialsClass.prototype.getCredSource = function () { return this._credentials_source; }; CredentialsClass.prototype.configure = function (config) { if (!config) return this._config || {}; this._config = Object.assign({}, this._config, config); var refreshHandlers = this._config.refreshHandlers; // If the developer has provided an object of refresh handlers, // then we can merge the provided handlers with the current handlers. if (refreshHandlers) { this._refreshHandlers = __assign(__assign({}, this._refreshHandlers), refreshHandlers); } this._storage = this._config.storage; if (!this._storage) { this._storage = new StorageHelper_1.StorageHelper().getStorage(); } this._storageSync = Promise.resolve(); if (typeof this._storage['sync'] === 'function') { this._storageSync = this._storage['sync'](); } return this._config; }; CredentialsClass.prototype.get = function () { logger.debug('getting credentials'); return this._pickupCredentials(); }; CredentialsClass.prototype._pickupCredentials = function () { logger.debug('picking up credentials'); if (!this._gettingCredPromise || !this._gettingCredPromise.isPending()) { logger.debug('getting new cred promise'); this._gettingCredPromise = JS_1.makeQuerablePromise(this._keepAlive()); } else { logger.debug('getting old cred promise'); } return this._gettingCredPromise; }; CredentialsClass.prototype._keepAlive = function () { logger.debug('checking if credentials exists and not expired'); var cred = this._credentials; if (cred && !this._isExpired(cred)) { logger.debug('credentials not changed and not expired, directly return'); return Promise.resolve(cred); } logger.debug('need to get a new credential or refresh the existing one'); // Some use-cases don't require Auth for signing in, but use Credentials for guest users (e.g. Analytics) // Prefer locally scoped `Auth`, but fallback to registered `Amplify.Auth` global otherwise. var _a = this.Auth, Auth = _a === void 0 ? Amplify_1.Amplify.Auth : _a; if (Auth && typeof Auth.currentUserCredentials === 'function') { return Auth.currentUserCredentials(); } else { return Promise.reject('No Auth module registered in Amplify'); } }; CredentialsClass.prototype.refreshFederatedToken = function (federatedInfo) { logger.debug('Getting federated credentials'); var provider = federatedInfo.provider, user = federatedInfo.user, token = federatedInfo.token, identity_id = federatedInfo.identity_id; var expires_at = federatedInfo.expires_at; // Make sure expires_at is in millis expires_at = new Date(expires_at).getFullYear() === 1970 ? expires_at * 1000 : expires_at; var that = this; logger.debug('checking if federated jwt token expired'); if (expires_at > new Date().getTime()) { // if not expired logger.debug('token not expired'); return this._setCredentialsFromFederation({ provider: provider, token: token, user: user, identity_id: identity_id, expires_at: expires_at, }); } else { // if refresh handler exists if (that._refreshHandlers[provider] && typeof that._refreshHandlers[provider] === 'function') { logger.debug('getting refreshed jwt token from federation provider'); return this._providerRefreshWithRetry({ refreshHandler: that._refreshHandlers[provider], provider: provider, user: user, }); } else { logger.debug('no refresh handler for provider:', provider); this.clear(); return Promise.reject('no refresh handler for provider'); } } }; CredentialsClass.prototype._providerRefreshWithRetry = function (_a) { var _this = this; var refreshHandler = _a.refreshHandler, provider = _a.provider, user = _a.user; var MAX_DELAY_MS = 10 * 1000; // refreshHandler will retry network errors, otherwise it will // return NonRetryableError to break out of jitteredExponentialRetry return Util_1.jitteredExponentialRetry(refreshHandler, [], MAX_DELAY_MS) .then(function (data) { logger.debug('refresh federated token sucessfully', data); return _this._setCredentialsFromFederation({ provider: provider, token: data.token, user: user, identity_id: data.identity_id, expires_at: data.expires_at, }); }) .catch(function (e) { var isNetworkError = typeof e === 'string' && e.toLowerCase().lastIndexOf('network error', e.length) === 0; if (!isNetworkError) { _this.clear(); } logger.debug('refresh federated token failed', e); return Promise.reject('refreshing federation token failed: ' + e); }); }; CredentialsClass.prototype._isExpired = function (credentials) { if (!credentials) { logger.debug('no credentials for expiration check'); return true; } logger.debug('are these credentials expired?', credentials); var ts = Date.now(); var delta = 10 * 60 * 1000; // 10 minutes in milli seconds /* returns date object. https://github.com/aws/aws-sdk-js-v3/blob/v1.0.0-beta.1/packages/types/src/credentials.ts#L26 */ var expiration = credentials.expiration; if (expiration.getTime() > ts + delta && ts < this._nextCredentialsRefresh) { return false; } return true; }; CredentialsClass.prototype._setCredentialsForGuest = function () { return __awaiter(this, void 0, void 0, function () { var _a, identityPoolId, region, mandatorySignIn, identityId, e_1, cognitoClient, credentials, cognitoIdentityParams, credentialsProvider; var _this = this; return __generator(this, function (_b) { switch (_b.label) { case 0: logger.debug('setting credentials for guest'); _a = this._config, identityPoolId = _a.identityPoolId, region = _a.region, mandatorySignIn = _a.mandatorySignIn; if (mandatorySignIn) { return [2 /*return*/, Promise.reject('cannot get guest credentials when mandatory signin enabled')]; } if (!identityPoolId) { logger.debug('No Cognito Identity pool provided for unauthenticated access'); return [2 /*return*/, Promise.reject('No Cognito Identity pool provided for unauthenticated access')]; } if (!region) { logger.debug('region is not configured for getting the credentials'); return [2 /*return*/, Promise.reject('region is not configured for getting the credentials')]; } identityId = undefined; _b.label = 1; case 1: _b.trys.push([1, 3, , 4]); return [4 /*yield*/, this._storageSync]; case 2: _b.sent(); identityId = this._storage.getItem('CognitoIdentityId-' + identityPoolId); this._identityId = identityId; return [3 /*break*/, 4]; case 3: e_1 = _b.sent(); logger.debug('Failed to get the cached identityId', e_1); return [3 /*break*/, 4]; case 4: cognitoClient = new client_cognito_identity_1.CognitoIdentityClient({ region: region, customUserAgent: Platform_1.getAmplifyUserAgent(), }); credentials = undefined; if (identityId) { cognitoIdentityParams = { identityId: identityId, client: cognitoClient, }; credentials = credential_provider_cognito_identity_1.fromCognitoIdentity(cognitoIdentityParams)(); } else { credentialsProvider = function () { return __awaiter(_this, void 0, void 0, function () { var IdentityId, cognitoIdentityParams, credentialsFromCognitoIdentity; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, cognitoClient.send(new client_cognito_identity_1.GetIdCommand({ IdentityPoolId: identityPoolId, }))]; case 1: IdentityId = (_a.sent()).IdentityId; this._identityId = IdentityId; cognitoIdentityParams = { client: cognitoClient, identityId: IdentityId, }; credentialsFromCognitoIdentity = credential_provider_cognito_identity_1.fromCognitoIdentity(cognitoIdentityParams); return [2 /*return*/, credentialsFromCognitoIdentity()]; } }); }); }; credentials = credentialsProvider().catch(function (err) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { throw err; }); }); }); } return [2 /*return*/, this._loadCredentials(credentials, 'guest', false, null) .then(function (res) { return res; }) .catch(function (e) { return __awaiter(_this, void 0, void 0, function () { var credentialsProvider; var _this = this; return __generator(this, function (_a) { // If identity id is deleted in the console, we make one attempt to recreate it // and remove existing id from cache. if (e.name === 'ResourceNotFoundException' && e.message === "Identity '" + identityId + "' not found.") { logger.debug('Failed to load guest credentials'); this._storage.removeItem('CognitoIdentityId-' + identityPoolId); credentialsProvider = function () { return __awaiter(_this, void 0, void 0, function () { var IdentityId, cognitoIdentityParams, credentialsFromCognitoIdentity; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, cognitoClient.send(new client_cognito_identity_1.GetIdCommand({ IdentityPoolId: identityPoolId, }))]; case 1: IdentityId = (_a.sent()).IdentityId; this._identityId = IdentityId; cognitoIdentityParams = { client: cognitoClient, identityId: IdentityId, }; credentialsFromCognitoIdentity = credential_provider_cognito_identity_1.fromCognitoIdentity(cognitoIdentityParams); return [2 /*return*/, credentialsFromCognitoIdentity()]; } }); }); }; credentials = credentialsProvider().catch(function (err) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { throw err; }); }); }); return [2 /*return*/, this._loadCredentials(credentials, 'guest', false, null)]; } else { return [2 /*return*/, e]; } return [2 /*return*/]; }); }); })]; } }); }); }; CredentialsClass.prototype._setCredentialsFromFederation = function (params) { var provider = params.provider, token = params.token, identity_id = params.identity_id; var domains = { google: 'accounts.google.com', facebook: 'graph.facebook.com', amazon: 'www.amazon.com', developer: 'cognito-identity.amazonaws.com', }; // Use custom provider url instead of the predefined ones var domain = domains[provider] || provider; if (!domain) { return Promise.reject('You must specify a federated provider'); } var logins = {}; logins[domain] = token; var _a = this._config, identityPoolId = _a.identityPoolId, region = _a.region; if (!identityPoolId) { logger.debug('No Cognito Federated Identity pool provided'); return Promise.reject('No Cognito Federated Identity pool provided'); } if (!region) { logger.debug('region is not configured for getting the credentials'); return Promise.reject('region is not configured for getting the credentials'); } var cognitoClient = new client_cognito_identity_1.CognitoIdentityClient({ region: region, customUserAgent: Platform_1.getAmplifyUserAgent(), }); var credentials = undefined; if (identity_id) { var cognitoIdentityParams = { identityId: identity_id, logins: logins, client: cognitoClient, }; credentials = credential_provider_cognito_identity_1.fromCognitoIdentity(cognitoIdentityParams)(); } else { var cognitoIdentityParams = { logins: logins, identityPoolId: identityPoolId, client: cognitoClient, }; credentials = credential_provider_cognito_identity_1.fromCognitoIdentityPool(cognitoIdentityParams)(); } return this._loadCredentials(credentials, 'federated', true, params); }; CredentialsClass.prototype._setCredentialsFromSession = function (session) { var _this = this; logger.debug('set credentials from session'); var idToken = session.getIdToken().getJwtToken(); var _a = this._config, region = _a.region, userPoolId = _a.userPoolId, identityPoolId = _a.identityPoolId; if (!identityPoolId) { logger.debug('No Cognito Federated Identity pool provided'); return Promise.reject('No Cognito Federated Identity pool provided'); } if (!region) { logger.debug('region is not configured for getting the credentials'); return Promise.reject('region is not configured for getting the credentials'); } var key = 'cognito-idp.' + region + '.amazonaws.com/' + userPoolId; var logins = {}; logins[key] = idToken; var cognitoClient = new client_cognito_identity_1.CognitoIdentityClient({ region: region, customUserAgent: Platform_1.getAmplifyUserAgent(), }); /* Retreiving identityId with GetIdCommand to mimic the behavior in the following code in aws-sdk-v3: https://git.io/JeDxU Note: Retreive identityId from CredentialsProvider once aws-sdk-js v3 supports this. */ var credentialsProvider = function () { return __awaiter(_this, void 0, void 0, function () { var IdentityId, cognitoIdentityParams, credentialsFromCognitoIdentity; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, cognitoClient.send(new client_cognito_identity_1.GetIdCommand({ IdentityPoolId: identityPoolId, Logins: logins, }))]; case 1: IdentityId = (_a.sent()).IdentityId; this._identityId = IdentityId; cognitoIdentityParams = { client: cognitoClient, logins: logins, identityId: IdentityId, }; credentialsFromCognitoIdentity = credential_provider_cognito_identity_1.fromCognitoIdentity(cognitoIdentityParams); return [2 /*return*/, credentialsFromCognitoIdentity()]; } }); }); }; var credentials = credentialsProvider().catch(function (err) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { throw err; }); }); }); return this._loadCredentials(credentials, 'userPool', true, null); }; CredentialsClass.prototype._loadCredentials = function (credentials, source, authenticated, info) { var _this = this; var that = this; var identityPoolId = this._config.identityPoolId; return new Promise(function (res, rej) { credentials .then(function (credentials) { return __awaiter(_this, void 0, void 0, function () { var user, provider, token, expires_at, identity_id, e_2; return __generator(this, function (_a) { switch (_a.label) { case 0: logger.debug('Load credentials successfully', credentials); if (this._identityId && !credentials.identityId) { credentials['identityId'] = this._identityId; } that._credentials = credentials; that._credentials.authenticated = authenticated; that._credentials_source = source; that._nextCredentialsRefresh = new Date().getTime() + CREDENTIALS_TTL; if (source === 'federated') { user = Object.assign({ id: this._credentials.identityId }, info.user); provider = info.provider, token = info.token, expires_at = info.expires_at, identity_id = info.identity_id; try { this._storage.setItem('aws-amplify-federatedInfo', JSON.stringify({ provider: provider, token: token, user: user, expires_at: expires_at, identity_id: identity_id, })); } catch (e) { logger.debug('Failed to put federated info into auth storage', e); } } if (!(source === 'guest')) return [3 /*break*/, 4]; _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); return [4 /*yield*/, this._storageSync]; case 2: _a.sent(); this._storage.setItem('CognitoIdentityId-' + identityPoolId, credentials.identityId // TODO: IdentityId is currently not returned by fromCognitoIdentityPool() ); return [3 /*break*/, 4]; case 3: e_2 = _a.sent(); logger.debug('Failed to cache identityId', e_2); return [3 /*break*/, 4]; case 4: res(that._credentials); return [2 /*return*/]; } }); }); }) .catch(function (err) { if (err) { logger.debug('Failed to load credentials', credentials); logger.debug('Error loading credentials', err); rej(err); return; } }); }); }; CredentialsClass.prototype.set = function (params, source) { if (source === 'session') { return this._setCredentialsFromSession(params); } else if (source === 'federation') { return this._setCredentialsFromFederation(params); } else if (source === 'guest') { return this._setCredentialsForGuest(); } else { logger.debug('no source specified for setting credentials'); return Promise.reject('invalid source'); } }; CredentialsClass.prototype.clear = function () { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { this._credentials = null; this._credentials_source = null; logger.debug('removing aws-amplify-federatedInfo from storage'); this._storage.removeItem('aws-amplify-federatedInfo'); return [2 /*return*/]; }); }); }; /** * Compact version of credentials * @param {Object} credentials * @return {Object} - Credentials */ CredentialsClass.prototype.shear = function (credentials) { return { accessKeyId: credentials.accessKeyId, sessionToken: credentials.sessionToken, secretAccessKey: credentials.secretAccessKey, identityId: credentials.identityId, authenticated: credentials.authenticated, }; }; return CredentialsClass; }()); exports.CredentialsClass = CredentialsClass; exports.Credentials = new CredentialsClass(null); Amplify_1.Amplify.register(exports.Credentials); /** * @deprecated use named import */ exports.default = exports.Credentials; //# sourceMappingURL=Credentials.js.map /***/ }), /***/ "8pxE": /*!**********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/UnlinkDeveloperIdentityCommand.js ***! \**********************************************************************************************************/ /*! exports provided: UnlinkDeveloperIdentityCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnlinkDeveloperIdentityCommand", function() { return UnlinkDeveloperIdentityCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UnlinkDeveloperIdentityCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UnlinkDeveloperIdentityCommand, _super); // Start section: command_properties // End section: command_properties function UnlinkDeveloperIdentityCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UnlinkDeveloperIdentityCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__["getAwsAuthPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UnlinkDeveloperIdentityInput"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UnlinkDeveloperIdentityCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1UnlinkDeveloperIdentityCommand"])(input, context); }; UnlinkDeveloperIdentityCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1UnlinkDeveloperIdentityCommand"])(output, context); }; return UnlinkDeveloperIdentityCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=UnlinkDeveloperIdentityCommand.js.map /***/ }), /***/ "9+74": /*!*********************************************************!*\ !*** ./node_modules/graphql/subscription/subscribe.mjs ***! \*********************************************************/ /*! exports provided: subscribe, createSourceEventStream */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribe", function() { return subscribe; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSourceEventStream", function() { return createSourceEventStream; }); /* harmony import */ var iterall__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! iterall */ "EkS5"); /* harmony import */ var _jsutils_inspect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/inspect */ "rWdj"); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error/GraphQLError */ "dWS+"); /* harmony import */ var _error_locatedError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../error/locatedError */ "jI7m"); /* harmony import */ var _execution_execute__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../execution/execute */ "yRpE"); /* harmony import */ var _mapAsyncIterator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./mapAsyncIterator */ "zwl9"); /* harmony import */ var _utilities_getOperationRootType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utilities/getOperationRootType */ "gXYT"); /** * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Implements the "Subscribe" algorithm described in the GraphQL specification. * * Returns a Promise which resolves to either an AsyncIterator (if successful) * or an ExecutionResult (client error). The promise will be rejected if a * server error occurs. * * If the client-provided arguments to this function do not result in a * compliant subscription, a GraphQL Response (ExecutionResult) with * descriptive errors and no data will be returned. * * If the the source stream could not be created due to faulty subscription * resolver logic or underlying systems, the promise will resolve to a single * ExecutionResult containing `errors` and no `data`. * * If the operation succeeded, the promise resolves to an AsyncIterator, which * yields a stream of ExecutionResults representing the response stream. * * Accepts either an object with named arguments, or individual arguments. */ function subscribe(argsOrSchema, document, rootValue, contextValue, variableValues, operationName, fieldResolver, subscribeFieldResolver) { /* eslint-enable no-redeclare */ // Extract arguments from object args if provided. return arguments.length === 1 ? subscribeImpl(argsOrSchema.schema, argsOrSchema.document, argsOrSchema.rootValue, argsOrSchema.contextValue, argsOrSchema.variableValues, argsOrSchema.operationName, argsOrSchema.fieldResolver, argsOrSchema.subscribeFieldResolver) : subscribeImpl(argsOrSchema, document, rootValue, contextValue, variableValues, operationName, fieldResolver, subscribeFieldResolver); } /** * This function checks if the error is a GraphQLError. If it is, report it as * an ExecutionResult, containing only errors and no data. Otherwise treat the * error as a system-class error and re-throw it. */ function reportGraphQLError(error) { if (error instanceof _error_GraphQLError__WEBPACK_IMPORTED_MODULE_2__["GraphQLError"]) { return { errors: [error] }; } throw error; } function subscribeImpl(schema, document, rootValue, contextValue, variableValues, operationName, fieldResolver, subscribeFieldResolver) { var sourcePromise = createSourceEventStream(schema, document, rootValue, contextValue, variableValues, operationName, subscribeFieldResolver); // For each payload yielded from a subscription, map it over the normal // GraphQL `execute` function, with `payload` as the rootValue. // This implements the "MapSourceToResponseEvent" algorithm described in // the GraphQL specification. The `execute` function provides the // "ExecuteSubscriptionEvent" algorithm, as it is nearly identical to the // "ExecuteQuery" algorithm, for which `execute` is also used. var mapSourceToResponse = function mapSourceToResponse(payload) { return Object(_execution_execute__WEBPACK_IMPORTED_MODULE_4__["execute"])(schema, document, payload, contextValue, variableValues, operationName, fieldResolver); }; // Resolve the Source Stream, then map every source value to a // ExecutionResult value as described above. return sourcePromise.then(function (resultOrStream) { return (// Note: Flow can't refine isAsyncIterable, so explicit casts are used. Object(iterall__WEBPACK_IMPORTED_MODULE_0__["isAsyncIterable"])(resultOrStream) ? Object(_mapAsyncIterator__WEBPACK_IMPORTED_MODULE_5__["default"])(resultOrStream, mapSourceToResponse, reportGraphQLError) : resultOrStream ); }, reportGraphQLError); } /** * Implements the "CreateSourceEventStream" algorithm described in the * GraphQL specification, resolving the subscription source event stream. * * Returns a Promise. * * If the client-provided invalid arguments, the source stream could not be * created, or the resolver did not return an AsyncIterable, this function will * will throw an error, which should be caught and handled by the caller. * * A Source Event Stream represents a sequence of events, each of which triggers * a GraphQL execution for that event. * * This may be useful when hosting the stateful subscription service in a * different process or machine than the stateless GraphQL execution engine, * or otherwise separating these two steps. For more on this, see the * "Supporting Subscriptions at Scale" information in the GraphQL specification. */ function createSourceEventStream(schema, document, rootValue, contextValue, variableValues, operationName, fieldResolver) { // If arguments are missing or incorrectly typed, this is an internal // developer mistake which should throw an early error. Object(_execution_execute__WEBPACK_IMPORTED_MODULE_4__["assertValidExecutionArguments"])(schema, document, variableValues); try { // If a valid context cannot be created due to incorrect arguments, // this will throw an error. var exeContext = Object(_execution_execute__WEBPACK_IMPORTED_MODULE_4__["buildExecutionContext"])(schema, document, rootValue, contextValue, variableValues, operationName, fieldResolver); // Return early errors if execution context failed. if (Array.isArray(exeContext)) { return Promise.resolve({ errors: exeContext }); } var type = Object(_utilities_getOperationRootType__WEBPACK_IMPORTED_MODULE_6__["getOperationRootType"])(schema, exeContext.operation); var fields = Object(_execution_execute__WEBPACK_IMPORTED_MODULE_4__["collectFields"])(exeContext, type, exeContext.operation.selectionSet, Object.create(null), Object.create(null)); var responseNames = Object.keys(fields); var responseName = responseNames[0]; var fieldNodes = fields[responseName]; var fieldNode = fieldNodes[0]; var fieldName = fieldNode.name.value; var fieldDef = Object(_execution_execute__WEBPACK_IMPORTED_MODULE_4__["getFieldDef"])(schema, type, fieldName); if (!fieldDef) { throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_2__["GraphQLError"]("The subscription field \"".concat(fieldName, "\" is not defined."), fieldNodes); } // Call the `subscribe()` resolver or the default resolver to produce an // AsyncIterable yielding raw payloads. var resolveFn = fieldDef.subscribe || exeContext.fieldResolver; var path = Object(_execution_execute__WEBPACK_IMPORTED_MODULE_4__["addPath"])(undefined, responseName); var info = Object(_execution_execute__WEBPACK_IMPORTED_MODULE_4__["buildResolveInfo"])(exeContext, fieldDef, fieldNodes, type, path); // resolveFieldValueOrError implements the "ResolveFieldEventStream" // algorithm from GraphQL specification. It differs from // "ResolveFieldValue" due to providing a different `resolveFn`. var result = Object(_execution_execute__WEBPACK_IMPORTED_MODULE_4__["resolveFieldValueOrError"])(exeContext, fieldDef, fieldNodes, resolveFn, rootValue, info); // Coerce to Promise for easier error handling and consistent return type. return Promise.resolve(result).then(function (eventStream) { // If eventStream is an Error, rethrow a located error. if (eventStream instanceof Error) { throw Object(_error_locatedError__WEBPACK_IMPORTED_MODULE_3__["locatedError"])(eventStream, fieldNodes, Object(_execution_execute__WEBPACK_IMPORTED_MODULE_4__["responsePathAsArray"])(path)); } // Assert field returned an event stream, otherwise yield an error. if (Object(iterall__WEBPACK_IMPORTED_MODULE_0__["isAsyncIterable"])(eventStream)) { // Note: isAsyncIterable above ensures this will be correct. return eventStream; } throw new Error('Subscription field must return Async Iterable. Received: ' + Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_1__["default"])(eventStream)); }); } catch (error) { return Promise.reject(error); } } /***/ }), /***/ "91X0": /*!**********************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/Util/Retry.js ***! \**********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); var ConsoleLogger_1 = __webpack_require__(/*! ../Logger/ConsoleLogger */ "vxDe"); var logger = new ConsoleLogger_1.ConsoleLogger('Util'); var NonRetryableError = /** @class */ (function (_super) { __extends(NonRetryableError, _super); function NonRetryableError(message) { var _this = _super.call(this, message) || this; _this.nonRetryable = true; return _this; } return NonRetryableError; }(Error)); exports.NonRetryableError = NonRetryableError; var isNonRetryableError = function (obj) { var key = 'nonRetryable'; return obj && obj[key]; }; /** * @private * Internal use of Amplify only */ function retry(functionToRetry, args, delayFn, attempt) { if (attempt === void 0) { attempt = 1; } return __awaiter(this, void 0, void 0, function () { var err_1, retryIn_1; return __generator(this, function (_a) { switch (_a.label) { case 0: if (typeof functionToRetry !== 'function') { throw Error('functionToRetry must be a function'); } logger.debug(functionToRetry.name + " attempt #" + attempt + " with this vars: " + JSON.stringify(args)); _a.label = 1; case 1: _a.trys.push([1, 3, , 8]); return [4 /*yield*/, functionToRetry.apply(void 0, __spread(args))]; case 2: return [2 /*return*/, _a.sent()]; case 3: err_1 = _a.sent(); logger.debug("error on " + functionToRetry.name, err_1); if (isNonRetryableError(err_1)) { logger.debug(functionToRetry.name + " non retryable error", err_1); throw err_1; } retryIn_1 = delayFn(attempt, args, err_1); logger.debug(functionToRetry.name + " retrying in " + retryIn_1 + " ms"); if (!(retryIn_1 !== false)) return [3 /*break*/, 6]; return [4 /*yield*/, new Promise(function (res) { return setTimeout(res, retryIn_1); })]; case 4: _a.sent(); return [4 /*yield*/, retry(functionToRetry, args, delayFn, attempt + 1)]; case 5: return [2 /*return*/, _a.sent()]; case 6: throw err_1; case 7: return [3 /*break*/, 8]; case 8: return [2 /*return*/]; } }); }); } exports.retry = retry; var MAX_DELAY_MS = 5 * 60 * 1000; function jitteredBackoff(maxDelayMs) { var BASE_TIME_MS = 100; var JITTER_FACTOR = 100; return function (attempt) { var delay = Math.pow(2, attempt) * BASE_TIME_MS + JITTER_FACTOR * Math.random(); return delay > maxDelayMs ? false : delay; }; } /** * @private * Internal use of Amplify only */ exports.jitteredExponentialRetry = function (functionToRetry, args, maxDelayMs) { if (maxDelayMs === void 0) { maxDelayMs = MAX_DELAY_MS; } return retry(functionToRetry, args, jitteredBackoff(maxDelayMs)); }; //# sourceMappingURL=Retry.js.map /***/ }), /***/ "93gR": /*!************************************************!*\ !*** ./node_modules/graphql/type/validate.mjs ***! \************************************************/ /*! exports provided: validateSchema, assertValidSchema */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateSchema", function() { return validateSchema; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertValidSchema", function() { return assertValidSchema; }); /* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./definition */ "axIb"); /* harmony import */ var _directives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./directives */ "4suF"); /* harmony import */ var _introspection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./introspection */ "LViu"); /* harmony import */ var _schema__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./schema */ "51nL"); /* harmony import */ var _jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../jsutils/inspect */ "rWdj"); /* harmony import */ var _jsutils_find__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../jsutils/find */ "YQzk"); /* harmony import */ var _jsutils_invariant__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../jsutils/invariant */ "2C6G"); /* harmony import */ var _jsutils_objectValues__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../jsutils/objectValues */ "S4Ci"); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../error/GraphQLError */ "dWS+"); /* harmony import */ var _utilities_assertValidName__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utilities/assertValidName */ "5PMP"); /* harmony import */ var _utilities_typeComparators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utilities/typeComparators */ "sJV+"); function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Implements the "Type Validation" sub-sections of the specification's * "Type System" section. * * Validation runs synchronously, returning an array of encountered errors, or * an empty array if no errors were encountered and the Schema is valid. */ function validateSchema(schema) { // First check to ensure the provided value is in fact a GraphQLSchema. !Object(_schema__WEBPACK_IMPORTED_MODULE_3__["isSchema"])(schema) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_6__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(schema), " to be a GraphQL schema.")) : void 0; // If this Schema has already been validated, return the previous results. if (schema.__validationErrors) { return schema.__validationErrors; } // Validate the schema, producing a list of errors. var context = new SchemaValidationContext(schema); validateRootTypes(context); validateDirectives(context); validateTypes(context); // Persist the results of validation before returning to ensure validation // does not run multiple times for this schema. var errors = context.getErrors(); schema.__validationErrors = errors; return errors; } /** * Utility function which asserts a schema is valid by throwing an error if * it is invalid. */ function assertValidSchema(schema) { var errors = validateSchema(schema); if (errors.length !== 0) { throw new Error(errors.map(function (error) { return error.message; }).join('\n\n')); } } var SchemaValidationContext = /*#__PURE__*/ function () { function SchemaValidationContext(schema) { _defineProperty(this, "_errors", void 0); _defineProperty(this, "schema", void 0); this._errors = []; this.schema = schema; } var _proto = SchemaValidationContext.prototype; _proto.reportError = function reportError(message, nodes) { var _nodes = (Array.isArray(nodes) ? nodes : [nodes]).filter(Boolean); this.addError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_8__["GraphQLError"](message, _nodes)); }; _proto.addError = function addError(error) { this._errors.push(error); }; _proto.getErrors = function getErrors() { return this._errors; }; return SchemaValidationContext; }(); function validateRootTypes(context) { var schema = context.schema; var queryType = schema.getQueryType(); if (!queryType) { context.reportError("Query root type must be provided.", schema.astNode); } else if (!Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(queryType)) { context.reportError("Query root type must be Object type, it cannot be ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(queryType), "."), getOperationTypeNode(schema, queryType, 'query')); } var mutationType = schema.getMutationType(); if (mutationType && !Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(mutationType)) { context.reportError('Mutation root type must be Object type if provided, it cannot be ' + "".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(mutationType), "."), getOperationTypeNode(schema, mutationType, 'mutation')); } var subscriptionType = schema.getSubscriptionType(); if (subscriptionType && !Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(subscriptionType)) { context.reportError('Subscription root type must be Object type if provided, it cannot be ' + "".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(subscriptionType), "."), getOperationTypeNode(schema, subscriptionType, 'subscription')); } } function getOperationTypeNode(schema, type, operation) { var operationNodes = getAllSubNodes(schema, function (node) { return node.operationTypes; }); var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = operationNodes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var node = _step.value; if (node.operation === operation) { return node.type; } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } return type.astNode; } function validateDirectives(context) { var _iteratorNormalCompletion2 = true; var _didIteratorError2 = false; var _iteratorError2 = undefined; try { for (var _iterator2 = context.schema.getDirectives()[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { var directive = _step2.value; // Ensure all directives are in fact GraphQL directives. if (!Object(_directives__WEBPACK_IMPORTED_MODULE_1__["isDirective"])(directive)) { context.reportError("Expected directive but got: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(directive), "."), directive && directive.astNode); continue; } // Ensure they are named correctly. validateName(context, directive); // TODO: Ensure proper locations. // Ensure the arguments are valid. var argNames = Object.create(null); var _iteratorNormalCompletion3 = true; var _didIteratorError3 = false; var _iteratorError3 = undefined; try { for (var _iterator3 = directive.args[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { var arg = _step3.value; var argName = arg.name; // Ensure they are named correctly. validateName(context, arg); // Ensure they are unique per directive. if (argNames[argName]) { context.reportError("Argument @".concat(directive.name, "(").concat(argName, ":) can only be defined once."), getAllDirectiveArgNodes(directive, argName)); continue; } argNames[argName] = true; // Ensure the type is an input type. if (!Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isInputType"])(arg.type)) { context.reportError("The type of @".concat(directive.name, "(").concat(argName, ":) must be Input Type ") + "but got: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(arg.type), "."), getDirectiveArgTypeNode(directive, argName)); } } } catch (err) { _didIteratorError3 = true; _iteratorError3 = err; } finally { try { if (!_iteratorNormalCompletion3 && _iterator3.return != null) { _iterator3.return(); } } finally { if (_didIteratorError3) { throw _iteratorError3; } } } } } catch (err) { _didIteratorError2 = true; _iteratorError2 = err; } finally { try { if (!_iteratorNormalCompletion2 && _iterator2.return != null) { _iterator2.return(); } } finally { if (_didIteratorError2) { throw _iteratorError2; } } } } function validateName(context, node) { // If a schema explicitly allows some legacy name which is no longer valid, // allow it to be assumed valid. if (context.schema.__allowedLegacyNames.indexOf(node.name) !== -1) { return; } // Ensure names are valid, however introspection types opt out. var error = Object(_utilities_assertValidName__WEBPACK_IMPORTED_MODULE_9__["isValidNameError"])(node.name, node.astNode || undefined); if (error) { context.addError(error); } } function validateTypes(context) { var typeMap = context.schema.getTypeMap(); var _iteratorNormalCompletion4 = true; var _didIteratorError4 = false; var _iteratorError4 = undefined; try { for (var _iterator4 = Object(_jsutils_objectValues__WEBPACK_IMPORTED_MODULE_7__["default"])(typeMap)[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) { var type = _step4.value; // Ensure all provided types are in fact GraphQL type. if (!Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isNamedType"])(type)) { context.reportError("Expected GraphQL named type but got: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(type), "."), type && type.astNode); continue; } // Ensure it is named correctly (excluding introspection types). if (!Object(_introspection__WEBPACK_IMPORTED_MODULE_2__["isIntrospectionType"])(type)) { validateName(context, type); } if (Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(type)) { // Ensure fields are valid validateFields(context, type); // Ensure objects implement the interfaces they claim to. validateObjectInterfaces(context, type); } else if (Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isInterfaceType"])(type)) { // Ensure fields are valid. validateFields(context, type); } else if (Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isUnionType"])(type)) { // Ensure Unions include valid member types. validateUnionMembers(context, type); } else if (Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isEnumType"])(type)) { // Ensure Enums have valid values. validateEnumValues(context, type); } else if (Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isInputObjectType"])(type)) { // Ensure Input Object fields are valid. validateInputFields(context, type); } } } catch (err) { _didIteratorError4 = true; _iteratorError4 = err; } finally { try { if (!_iteratorNormalCompletion4 && _iterator4.return != null) { _iterator4.return(); } } finally { if (_didIteratorError4) { throw _iteratorError4; } } } } function validateFields(context, type) { var fields = Object(_jsutils_objectValues__WEBPACK_IMPORTED_MODULE_7__["default"])(type.getFields()); // Objects and Interfaces both must define one or more fields. if (fields.length === 0) { context.reportError("Type ".concat(type.name, " must define one or more fields."), getAllNodes(type)); } var _iteratorNormalCompletion5 = true; var _didIteratorError5 = false; var _iteratorError5 = undefined; try { for (var _iterator5 = fields[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) { var field = _step5.value; // Ensure they are named correctly. validateName(context, field); // Ensure they were defined at most once. var fieldNodes = getAllFieldNodes(type, field.name); if (fieldNodes.length > 1) { context.reportError("Field ".concat(type.name, ".").concat(field.name, " can only be defined once."), fieldNodes); continue; } // Ensure the type is an output type if (!Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isOutputType"])(field.type)) { context.reportError("The type of ".concat(type.name, ".").concat(field.name, " must be Output Type ") + "but got: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(field.type), "."), getFieldTypeNode(type, field.name)); } // Ensure the arguments are valid var argNames = Object.create(null); var _iteratorNormalCompletion6 = true; var _didIteratorError6 = false; var _iteratorError6 = undefined; try { for (var _iterator6 = field.args[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) { var arg = _step6.value; var argName = arg.name; // Ensure they are named correctly. validateName(context, arg); // Ensure they are unique per field. if (argNames[argName]) { context.reportError("Field argument ".concat(type.name, ".").concat(field.name, "(").concat(argName, ":) can only ") + 'be defined once.', getAllFieldArgNodes(type, field.name, argName)); } argNames[argName] = true; // Ensure the type is an input type if (!Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isInputType"])(arg.type)) { context.reportError("The type of ".concat(type.name, ".").concat(field.name, "(").concat(argName, ":) must be Input ") + "Type but got: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(arg.type), "."), getFieldArgTypeNode(type, field.name, argName)); } } } catch (err) { _didIteratorError6 = true; _iteratorError6 = err; } finally { try { if (!_iteratorNormalCompletion6 && _iterator6.return != null) { _iterator6.return(); } } finally { if (_didIteratorError6) { throw _iteratorError6; } } } } } catch (err) { _didIteratorError5 = true; _iteratorError5 = err; } finally { try { if (!_iteratorNormalCompletion5 && _iterator5.return != null) { _iterator5.return(); } } finally { if (_didIteratorError5) { throw _iteratorError5; } } } } function validateObjectInterfaces(context, object) { var implementedTypeNames = Object.create(null); var _iteratorNormalCompletion7 = true; var _didIteratorError7 = false; var _iteratorError7 = undefined; try { for (var _iterator7 = object.getInterfaces()[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) { var iface = _step7.value; if (!Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isInterfaceType"])(iface)) { context.reportError("Type ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(object), " must only implement Interface types, ") + "it cannot implement ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(iface), "."), getImplementsInterfaceNode(object, iface)); continue; } if (implementedTypeNames[iface.name]) { context.reportError("Type ".concat(object.name, " can only implement ").concat(iface.name, " once."), getAllImplementsInterfaceNodes(object, iface)); continue; } implementedTypeNames[iface.name] = true; validateObjectImplementsInterface(context, object, iface); } } catch (err) { _didIteratorError7 = true; _iteratorError7 = err; } finally { try { if (!_iteratorNormalCompletion7 && _iterator7.return != null) { _iterator7.return(); } } finally { if (_didIteratorError7) { throw _iteratorError7; } } } } function validateObjectImplementsInterface(context, object, iface) { var objectFieldMap = object.getFields(); var ifaceFieldMap = iface.getFields(); // Assert each interface field is implemented. var _arr = Object.keys(ifaceFieldMap); for (var _i = 0; _i < _arr.length; _i++) { var fieldName = _arr[_i]; var objectField = objectFieldMap[fieldName]; var ifaceField = ifaceFieldMap[fieldName]; // Assert interface field exists on object. if (!objectField) { context.reportError("Interface field ".concat(iface.name, ".").concat(fieldName, " expected but ") + "".concat(object.name, " does not provide it."), [getFieldNode(iface, fieldName)].concat(getAllNodes(object))); continue; } // Assert interface field type is satisfied by object field type, by being // a valid subtype. (covariant) if (!Object(_utilities_typeComparators__WEBPACK_IMPORTED_MODULE_10__["isTypeSubTypeOf"])(context.schema, objectField.type, ifaceField.type)) { context.reportError("Interface field ".concat(iface.name, ".").concat(fieldName, " expects type ") + "".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(ifaceField.type), " but ").concat(object.name, ".").concat(fieldName, " ") + "is type ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(objectField.type), "."), [getFieldTypeNode(iface, fieldName), getFieldTypeNode(object, fieldName)]); } // Assert each interface field arg is implemented. var _iteratorNormalCompletion8 = true; var _didIteratorError8 = false; var _iteratorError8 = undefined; try { var _loop = function _loop() { var ifaceArg = _step8.value; var argName = ifaceArg.name; var objectArg = Object(_jsutils_find__WEBPACK_IMPORTED_MODULE_5__["default"])(objectField.args, function (arg) { return arg.name === argName; }); // Assert interface field arg exists on object field. if (!objectArg) { context.reportError("Interface field argument ".concat(iface.name, ".").concat(fieldName, "(").concat(argName, ":) ") + "expected but ".concat(object.name, ".").concat(fieldName, " does not provide it."), [getFieldArgNode(iface, fieldName, argName), getFieldNode(object, fieldName)]); return "continue"; } // Assert interface field arg type matches object field arg type. // (invariant) // TODO: change to contravariant? if (!Object(_utilities_typeComparators__WEBPACK_IMPORTED_MODULE_10__["isEqualType"])(ifaceArg.type, objectArg.type)) { context.reportError("Interface field argument ".concat(iface.name, ".").concat(fieldName, "(").concat(argName, ":) ") + "expects type ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(ifaceArg.type), " but ") + "".concat(object.name, ".").concat(fieldName, "(").concat(argName, ":) is type ") + "".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(objectArg.type), "."), [getFieldArgTypeNode(iface, fieldName, argName), getFieldArgTypeNode(object, fieldName, argName)]); } // TODO: validate default values? }; for (var _iterator8 = ifaceField.args[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) { var _ret = _loop(); if (_ret === "continue") continue; } // Assert additional arguments must not be required. } catch (err) { _didIteratorError8 = true; _iteratorError8 = err; } finally { try { if (!_iteratorNormalCompletion8 && _iterator8.return != null) { _iterator8.return(); } } finally { if (_didIteratorError8) { throw _iteratorError8; } } } var _iteratorNormalCompletion9 = true; var _didIteratorError9 = false; var _iteratorError9 = undefined; try { var _loop2 = function _loop2() { var objectArg = _step9.value; var argName = objectArg.name; var ifaceArg = Object(_jsutils_find__WEBPACK_IMPORTED_MODULE_5__["default"])(ifaceField.args, function (arg) { return arg.name === argName; }); if (!ifaceArg && Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isRequiredArgument"])(objectArg)) { context.reportError("Object field ".concat(object.name, ".").concat(fieldName, " includes required ") + "argument ".concat(argName, " that is missing from the Interface field ") + "".concat(iface.name, ".").concat(fieldName, "."), [getFieldArgNode(object, fieldName, argName), getFieldNode(iface, fieldName)]); } }; for (var _iterator9 = objectField.args[Symbol.iterator](), _step9; !(_iteratorNormalCompletion9 = (_step9 = _iterator9.next()).done); _iteratorNormalCompletion9 = true) { _loop2(); } } catch (err) { _didIteratorError9 = true; _iteratorError9 = err; } finally { try { if (!_iteratorNormalCompletion9 && _iterator9.return != null) { _iterator9.return(); } } finally { if (_didIteratorError9) { throw _iteratorError9; } } } } } function validateUnionMembers(context, union) { var memberTypes = union.getTypes(); if (memberTypes.length === 0) { context.reportError("Union type ".concat(union.name, " must define one or more member types."), getAllNodes(union)); } var includedTypeNames = Object.create(null); var _iteratorNormalCompletion10 = true; var _didIteratorError10 = false; var _iteratorError10 = undefined; try { for (var _iterator10 = memberTypes[Symbol.iterator](), _step10; !(_iteratorNormalCompletion10 = (_step10 = _iterator10.next()).done); _iteratorNormalCompletion10 = true) { var memberType = _step10.value; if (includedTypeNames[memberType.name]) { context.reportError("Union type ".concat(union.name, " can only include type ") + "".concat(memberType.name, " once."), getUnionMemberTypeNodes(union, memberType.name)); continue; } includedTypeNames[memberType.name] = true; if (!Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(memberType)) { context.reportError("Union type ".concat(union.name, " can only include Object types, ") + "it cannot include ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(memberType), "."), getUnionMemberTypeNodes(union, String(memberType))); } } } catch (err) { _didIteratorError10 = true; _iteratorError10 = err; } finally { try { if (!_iteratorNormalCompletion10 && _iterator10.return != null) { _iterator10.return(); } } finally { if (_didIteratorError10) { throw _iteratorError10; } } } } function validateEnumValues(context, enumType) { var enumValues = enumType.getValues(); if (enumValues.length === 0) { context.reportError("Enum type ".concat(enumType.name, " must define one or more values."), getAllNodes(enumType)); } var _iteratorNormalCompletion11 = true; var _didIteratorError11 = false; var _iteratorError11 = undefined; try { for (var _iterator11 = enumValues[Symbol.iterator](), _step11; !(_iteratorNormalCompletion11 = (_step11 = _iterator11.next()).done); _iteratorNormalCompletion11 = true) { var enumValue = _step11.value; var valueName = enumValue.name; // Ensure no duplicates. var allNodes = getEnumValueNodes(enumType, valueName); if (allNodes && allNodes.length > 1) { context.reportError("Enum type ".concat(enumType.name, " can include value ").concat(valueName, " only once."), allNodes); } // Ensure valid name. validateName(context, enumValue); if (valueName === 'true' || valueName === 'false' || valueName === 'null') { context.reportError("Enum type ".concat(enumType.name, " cannot include value: ").concat(valueName, "."), enumValue.astNode); } } } catch (err) { _didIteratorError11 = true; _iteratorError11 = err; } finally { try { if (!_iteratorNormalCompletion11 && _iterator11.return != null) { _iterator11.return(); } } finally { if (_didIteratorError11) { throw _iteratorError11; } } } } function validateInputFields(context, inputObj) { var fields = Object(_jsutils_objectValues__WEBPACK_IMPORTED_MODULE_7__["default"])(inputObj.getFields()); if (fields.length === 0) { context.reportError("Input Object type ".concat(inputObj.name, " must define one or more fields."), getAllNodes(inputObj)); } // Ensure the arguments are valid var _iteratorNormalCompletion12 = true; var _didIteratorError12 = false; var _iteratorError12 = undefined; try { for (var _iterator12 = fields[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) { var field = _step12.value; // Ensure they are named correctly. validateName(context, field); // TODO: Ensure they are unique per field. // Ensure the type is an input type if (!Object(_definition__WEBPACK_IMPORTED_MODULE_0__["isInputType"])(field.type)) { context.reportError("The type of ".concat(inputObj.name, ".").concat(field.name, " must be Input Type ") + "but got: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_4__["default"])(field.type), "."), field.astNode && field.astNode.type); } } } catch (err) { _didIteratorError12 = true; _iteratorError12 = err; } finally { try { if (!_iteratorNormalCompletion12 && _iterator12.return != null) { _iterator12.return(); } } finally { if (_didIteratorError12) { throw _iteratorError12; } } } } function getAllNodes(object) { var astNode = object.astNode, extensionASTNodes = object.extensionASTNodes; return astNode ? extensionASTNodes ? [astNode].concat(extensionASTNodes) : [astNode] : extensionASTNodes || []; } function getAllSubNodes(object, getter) { var result = []; var _iteratorNormalCompletion13 = true; var _didIteratorError13 = false; var _iteratorError13 = undefined; try { for (var _iterator13 = getAllNodes(object)[Symbol.iterator](), _step13; !(_iteratorNormalCompletion13 = (_step13 = _iterator13.next()).done); _iteratorNormalCompletion13 = true) { var astNode = _step13.value; if (astNode) { var subNodes = getter(astNode); if (subNodes) { result = result.concat(subNodes); } } } } catch (err) { _didIteratorError13 = true; _iteratorError13 = err; } finally { try { if (!_iteratorNormalCompletion13 && _iterator13.return != null) { _iterator13.return(); } } finally { if (_didIteratorError13) { throw _iteratorError13; } } } return result; } function getImplementsInterfaceNode(type, iface) { return getAllImplementsInterfaceNodes(type, iface)[0]; } function getAllImplementsInterfaceNodes(type, iface) { return getAllSubNodes(type, function (typeNode) { return typeNode.interfaces; }).filter(function (ifaceNode) { return ifaceNode.name.value === iface.name; }); } function getFieldNode(type, fieldName) { return getAllFieldNodes(type, fieldName)[0]; } function getAllFieldNodes(type, fieldName) { return getAllSubNodes(type, function (typeNode) { return typeNode.fields; }).filter(function (fieldNode) { return fieldNode.name.value === fieldName; }); } function getFieldTypeNode(type, fieldName) { var fieldNode = getFieldNode(type, fieldName); return fieldNode && fieldNode.type; } function getFieldArgNode(type, fieldName, argName) { return getAllFieldArgNodes(type, fieldName, argName)[0]; } function getAllFieldArgNodes(type, fieldName, argName) { var argNodes = []; var fieldNode = getFieldNode(type, fieldName); if (fieldNode && fieldNode.arguments) { var _iteratorNormalCompletion14 = true; var _didIteratorError14 = false; var _iteratorError14 = undefined; try { for (var _iterator14 = fieldNode.arguments[Symbol.iterator](), _step14; !(_iteratorNormalCompletion14 = (_step14 = _iterator14.next()).done); _iteratorNormalCompletion14 = true) { var node = _step14.value; if (node.name.value === argName) { argNodes.push(node); } } } catch (err) { _didIteratorError14 = true; _iteratorError14 = err; } finally { try { if (!_iteratorNormalCompletion14 && _iterator14.return != null) { _iterator14.return(); } } finally { if (_didIteratorError14) { throw _iteratorError14; } } } } return argNodes; } function getFieldArgTypeNode(type, fieldName, argName) { var fieldArgNode = getFieldArgNode(type, fieldName, argName); return fieldArgNode && fieldArgNode.type; } function getAllDirectiveArgNodes(directive, argName) { return getAllSubNodes(directive, function (directiveNode) { return directiveNode.arguments; }).filter(function (argNode) { return argNode.name.value === argName; }); } function getDirectiveArgTypeNode(directive, argName) { var argNode = getAllDirectiveArgNodes(directive, argName)[0]; return argNode && argNode.type; } function getUnionMemberTypeNodes(union, typeName) { return getAllSubNodes(union, function (unionNode) { return unionNode.types; }).filter(function (typeNode) { return typeNode.name.value === typeName; }); } function getEnumValueNodes(enumType, valueName) { return getAllSubNodes(enumType, function (enumNode) { return enumNode.values; }).filter(function (valueNode) { return valueNode.name.value === valueName; }); } /***/ }), /***/ "96Y9": /*!**********************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/models/index.js ***! \**********************************************************************/ /*! exports provided: AddTagsToStreamInput, Consumer, ConsumerDescription, ConsumerStatus, CreateStreamInput, DecreaseStreamRetentionPeriodInput, DeleteStreamInput, DeregisterStreamConsumerInput, DescribeLimitsInput, DescribeLimitsOutput, DescribeStreamConsumerInput, DescribeStreamConsumerOutput, DescribeStreamInput, DescribeStreamOutput, DescribeStreamSummaryInput, DescribeStreamSummaryOutput, DisableEnhancedMonitoringInput, EnableEnhancedMonitoringInput, EncryptionType, EnhancedMetrics, EnhancedMonitoringOutput, ExpiredIteratorException, ExpiredNextTokenException, GetRecordsInput, GetRecordsOutput, GetShardIteratorInput, GetShardIteratorOutput, HashKeyRange, IncreaseStreamRetentionPeriodInput, InternalFailureException, InvalidArgumentException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, LimitExceededException, ListShardsInput, ListShardsOutput, ListStreamConsumersInput, ListStreamConsumersOutput, ListStreamsInput, ListStreamsOutput, ListTagsForStreamInput, ListTagsForStreamOutput, MergeShardsInput, MetricsName, ProvisionedThroughputExceededException, PutRecordInput, PutRecordOutput, PutRecordsInput, PutRecordsOutput, PutRecordsRequestEntry, PutRecordsResultEntry, _Record, RegisterStreamConsumerInput, RegisterStreamConsumerOutput, RemoveTagsFromStreamInput, ResourceInUseException, ResourceNotFoundException, ScalingType, SequenceNumberRange, Shard, ShardIteratorType, SplitShardInput, StartingPosition, StartStreamEncryptionInput, StopStreamEncryptionInput, StreamDescription, StreamDescriptionSummary, StreamStatus, SubscribeToShardEvent, SubscribeToShardEventStream, SubscribeToShardInput, SubscribeToShardOutput, Tag, UpdateShardCountInput, UpdateShardCountOutput */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddTagsToStreamInput", function() { return AddTagsToStreamInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Consumer", function() { return Consumer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsumerDescription", function() { return ConsumerDescription; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsumerStatus", function() { return ConsumerStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateStreamInput", function() { return CreateStreamInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DecreaseStreamRetentionPeriodInput", function() { return DecreaseStreamRetentionPeriodInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamInput", function() { return DeleteStreamInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeregisterStreamConsumerInput", function() { return DeregisterStreamConsumerInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsInput", function() { return DescribeLimitsInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsOutput", function() { return DescribeLimitsOutput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerInput", function() { return DescribeStreamConsumerInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerOutput", function() { return DescribeStreamConsumerOutput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamInput", function() { return DescribeStreamInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamOutput", function() { return DescribeStreamOutput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryInput", function() { return DescribeStreamSummaryInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryOutput", function() { return DescribeStreamSummaryOutput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DisableEnhancedMonitoringInput", function() { return DisableEnhancedMonitoringInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnableEnhancedMonitoringInput", function() { return EnableEnhancedMonitoringInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncryptionType", function() { return EncryptionType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnhancedMetrics", function() { return EnhancedMetrics; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnhancedMonitoringOutput", function() { return EnhancedMonitoringOutput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpiredIteratorException", function() { return ExpiredIteratorException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpiredNextTokenException", function() { return ExpiredNextTokenException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecordsInput", function() { return GetRecordsInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecordsOutput", function() { return GetRecordsOutput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorInput", function() { return GetShardIteratorInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorOutput", function() { return GetShardIteratorOutput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HashKeyRange", function() { return HashKeyRange; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IncreaseStreamRetentionPeriodInput", function() { return IncreaseStreamRetentionPeriodInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InternalFailureException", function() { return InternalFailureException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InvalidArgumentException", function() { return InvalidArgumentException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSAccessDeniedException", function() { return KMSAccessDeniedException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSDisabledException", function() { return KMSDisabledException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSInvalidStateException", function() { return KMSInvalidStateException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSNotFoundException", function() { return KMSNotFoundException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSOptInRequired", function() { return KMSOptInRequired; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSThrottlingException", function() { return KMSThrottlingException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return LimitExceededException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListShardsInput", function() { return ListShardsInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListShardsOutput", function() { return ListShardsOutput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersInput", function() { return ListStreamConsumersInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersOutput", function() { return ListStreamConsumersOutput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamsInput", function() { return ListStreamsInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamsOutput", function() { return ListStreamsOutput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamInput", function() { return ListTagsForStreamInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamOutput", function() { return ListTagsForStreamOutput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeShardsInput", function() { return MergeShardsInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MetricsName", function() { return MetricsName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProvisionedThroughputExceededException", function() { return ProvisionedThroughputExceededException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordInput", function() { return PutRecordInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordOutput", function() { return PutRecordOutput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordsInput", function() { return PutRecordsInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordsOutput", function() { return PutRecordsOutput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordsRequestEntry", function() { return PutRecordsRequestEntry; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordsResultEntry", function() { return PutRecordsResultEntry; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_Record", function() { return _Record; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerInput", function() { return RegisterStreamConsumerInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerOutput", function() { return RegisterStreamConsumerOutput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemoveTagsFromStreamInput", function() { return RemoveTagsFromStreamInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceInUseException", function() { return ResourceInUseException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return ResourceNotFoundException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScalingType", function() { return ScalingType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SequenceNumberRange", function() { return SequenceNumberRange; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Shard", function() { return Shard; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShardIteratorType", function() { return ShardIteratorType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SplitShardInput", function() { return SplitShardInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartingPosition", function() { return StartingPosition; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartStreamEncryptionInput", function() { return StartStreamEncryptionInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopStreamEncryptionInput", function() { return StopStreamEncryptionInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StreamDescription", function() { return StreamDescription; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StreamDescriptionSummary", function() { return StreamDescriptionSummary; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StreamStatus", function() { return StreamStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardEvent", function() { return SubscribeToShardEvent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardEventStream", function() { return SubscribeToShardEventStream; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardInput", function() { return SubscribeToShardInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardOutput", function() { return SubscribeToShardOutput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return Tag; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountInput", function() { return UpdateShardCountInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountOutput", function() { return UpdateShardCountOutput; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var AddTagsToStreamInput; (function (AddTagsToStreamInput) { AddTagsToStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; AddTagsToStreamInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "AddTagsToStreamInput"); }; })(AddTagsToStreamInput || (AddTagsToStreamInput = {})); var Consumer; (function (Consumer) { Consumer.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; Consumer.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "Consumer"); }; })(Consumer || (Consumer = {})); var ConsumerDescription; (function (ConsumerDescription) { ConsumerDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ConsumerDescription.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ConsumerDescription"); }; })(ConsumerDescription || (ConsumerDescription = {})); var ConsumerStatus; (function (ConsumerStatus) { ConsumerStatus["ACTIVE"] = "ACTIVE"; ConsumerStatus["CREATING"] = "CREATING"; ConsumerStatus["DELETING"] = "DELETING"; })(ConsumerStatus || (ConsumerStatus = {})); var CreateStreamInput; (function (CreateStreamInput) { CreateStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; CreateStreamInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "CreateStreamInput"); }; })(CreateStreamInput || (CreateStreamInput = {})); var DecreaseStreamRetentionPeriodInput; (function (DecreaseStreamRetentionPeriodInput) { DecreaseStreamRetentionPeriodInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DecreaseStreamRetentionPeriodInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DecreaseStreamRetentionPeriodInput"); }; })(DecreaseStreamRetentionPeriodInput || (DecreaseStreamRetentionPeriodInput = {})); var DeleteStreamInput; (function (DeleteStreamInput) { DeleteStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DeleteStreamInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DeleteStreamInput"); }; })(DeleteStreamInput || (DeleteStreamInput = {})); var DeregisterStreamConsumerInput; (function (DeregisterStreamConsumerInput) { DeregisterStreamConsumerInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DeregisterStreamConsumerInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DeregisterStreamConsumerInput"); }; })(DeregisterStreamConsumerInput || (DeregisterStreamConsumerInput = {})); var DescribeLimitsInput; (function (DescribeLimitsInput) { DescribeLimitsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeLimitsInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeLimitsInput"); }; })(DescribeLimitsInput || (DescribeLimitsInput = {})); var DescribeLimitsOutput; (function (DescribeLimitsOutput) { DescribeLimitsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeLimitsOutput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeLimitsOutput"); }; })(DescribeLimitsOutput || (DescribeLimitsOutput = {})); var DescribeStreamConsumerInput; (function (DescribeStreamConsumerInput) { DescribeStreamConsumerInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeStreamConsumerInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeStreamConsumerInput"); }; })(DescribeStreamConsumerInput || (DescribeStreamConsumerInput = {})); var DescribeStreamConsumerOutput; (function (DescribeStreamConsumerOutput) { DescribeStreamConsumerOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeStreamConsumerOutput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeStreamConsumerOutput"); }; })(DescribeStreamConsumerOutput || (DescribeStreamConsumerOutput = {})); var DescribeStreamInput; (function (DescribeStreamInput) { DescribeStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeStreamInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeStreamInput"); }; })(DescribeStreamInput || (DescribeStreamInput = {})); var DescribeStreamOutput; (function (DescribeStreamOutput) { DescribeStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeStreamOutput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeStreamOutput"); }; })(DescribeStreamOutput || (DescribeStreamOutput = {})); var DescribeStreamSummaryInput; (function (DescribeStreamSummaryInput) { DescribeStreamSummaryInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeStreamSummaryInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeStreamSummaryInput"); }; })(DescribeStreamSummaryInput || (DescribeStreamSummaryInput = {})); var DescribeStreamSummaryOutput; (function (DescribeStreamSummaryOutput) { DescribeStreamSummaryOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeStreamSummaryOutput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeStreamSummaryOutput"); }; })(DescribeStreamSummaryOutput || (DescribeStreamSummaryOutput = {})); var DisableEnhancedMonitoringInput; (function (DisableEnhancedMonitoringInput) { DisableEnhancedMonitoringInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DisableEnhancedMonitoringInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DisableEnhancedMonitoringInput"); }; })(DisableEnhancedMonitoringInput || (DisableEnhancedMonitoringInput = {})); var EnableEnhancedMonitoringInput; (function (EnableEnhancedMonitoringInput) { EnableEnhancedMonitoringInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EnableEnhancedMonitoringInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EnableEnhancedMonitoringInput"); }; })(EnableEnhancedMonitoringInput || (EnableEnhancedMonitoringInput = {})); var EncryptionType; (function (EncryptionType) { EncryptionType["KMS"] = "KMS"; EncryptionType["NONE"] = "NONE"; })(EncryptionType || (EncryptionType = {})); var EnhancedMetrics; (function (EnhancedMetrics) { EnhancedMetrics.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EnhancedMetrics.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EnhancedMetrics"); }; })(EnhancedMetrics || (EnhancedMetrics = {})); var EnhancedMonitoringOutput; (function (EnhancedMonitoringOutput) { EnhancedMonitoringOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EnhancedMonitoringOutput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EnhancedMonitoringOutput"); }; })(EnhancedMonitoringOutput || (EnhancedMonitoringOutput = {})); var ExpiredIteratorException; (function (ExpiredIteratorException) { ExpiredIteratorException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ExpiredIteratorException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ExpiredIteratorException"); }; })(ExpiredIteratorException || (ExpiredIteratorException = {})); var ExpiredNextTokenException; (function (ExpiredNextTokenException) { ExpiredNextTokenException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ExpiredNextTokenException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ExpiredNextTokenException"); }; })(ExpiredNextTokenException || (ExpiredNextTokenException = {})); var GetRecordsInput; (function (GetRecordsInput) { GetRecordsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; GetRecordsInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "GetRecordsInput"); }; })(GetRecordsInput || (GetRecordsInput = {})); var GetRecordsOutput; (function (GetRecordsOutput) { GetRecordsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; GetRecordsOutput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "GetRecordsOutput"); }; })(GetRecordsOutput || (GetRecordsOutput = {})); var GetShardIteratorInput; (function (GetShardIteratorInput) { GetShardIteratorInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; GetShardIteratorInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "GetShardIteratorInput"); }; })(GetShardIteratorInput || (GetShardIteratorInput = {})); var GetShardIteratorOutput; (function (GetShardIteratorOutput) { GetShardIteratorOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; GetShardIteratorOutput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "GetShardIteratorOutput"); }; })(GetShardIteratorOutput || (GetShardIteratorOutput = {})); var HashKeyRange; (function (HashKeyRange) { HashKeyRange.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; HashKeyRange.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "HashKeyRange"); }; })(HashKeyRange || (HashKeyRange = {})); var IncreaseStreamRetentionPeriodInput; (function (IncreaseStreamRetentionPeriodInput) { IncreaseStreamRetentionPeriodInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; IncreaseStreamRetentionPeriodInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "IncreaseStreamRetentionPeriodInput"); }; })(IncreaseStreamRetentionPeriodInput || (IncreaseStreamRetentionPeriodInput = {})); var InternalFailureException; (function (InternalFailureException) { InternalFailureException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; InternalFailureException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "InternalFailureException"); }; })(InternalFailureException || (InternalFailureException = {})); var InvalidArgumentException; (function (InvalidArgumentException) { InvalidArgumentException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; InvalidArgumentException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "InvalidArgumentException"); }; })(InvalidArgumentException || (InvalidArgumentException = {})); var KMSAccessDeniedException; (function (KMSAccessDeniedException) { KMSAccessDeniedException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; KMSAccessDeniedException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "KMSAccessDeniedException"); }; })(KMSAccessDeniedException || (KMSAccessDeniedException = {})); var KMSDisabledException; (function (KMSDisabledException) { KMSDisabledException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; KMSDisabledException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "KMSDisabledException"); }; })(KMSDisabledException || (KMSDisabledException = {})); var KMSInvalidStateException; (function (KMSInvalidStateException) { KMSInvalidStateException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; KMSInvalidStateException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "KMSInvalidStateException"); }; })(KMSInvalidStateException || (KMSInvalidStateException = {})); var KMSNotFoundException; (function (KMSNotFoundException) { KMSNotFoundException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; KMSNotFoundException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "KMSNotFoundException"); }; })(KMSNotFoundException || (KMSNotFoundException = {})); var KMSOptInRequired; (function (KMSOptInRequired) { KMSOptInRequired.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; KMSOptInRequired.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "KMSOptInRequired"); }; })(KMSOptInRequired || (KMSOptInRequired = {})); var KMSThrottlingException; (function (KMSThrottlingException) { KMSThrottlingException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; KMSThrottlingException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "KMSThrottlingException"); }; })(KMSThrottlingException || (KMSThrottlingException = {})); var LimitExceededException; (function (LimitExceededException) { LimitExceededException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; LimitExceededException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "LimitExceededException"); }; })(LimitExceededException || (LimitExceededException = {})); var ListShardsInput; (function (ListShardsInput) { ListShardsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListShardsInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListShardsInput"); }; })(ListShardsInput || (ListShardsInput = {})); var ListShardsOutput; (function (ListShardsOutput) { ListShardsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListShardsOutput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListShardsOutput"); }; })(ListShardsOutput || (ListShardsOutput = {})); var ListStreamConsumersInput; (function (ListStreamConsumersInput) { ListStreamConsumersInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListStreamConsumersInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListStreamConsumersInput"); }; })(ListStreamConsumersInput || (ListStreamConsumersInput = {})); var ListStreamConsumersOutput; (function (ListStreamConsumersOutput) { ListStreamConsumersOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListStreamConsumersOutput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListStreamConsumersOutput"); }; })(ListStreamConsumersOutput || (ListStreamConsumersOutput = {})); var ListStreamsInput; (function (ListStreamsInput) { ListStreamsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListStreamsInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListStreamsInput"); }; })(ListStreamsInput || (ListStreamsInput = {})); var ListStreamsOutput; (function (ListStreamsOutput) { ListStreamsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListStreamsOutput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListStreamsOutput"); }; })(ListStreamsOutput || (ListStreamsOutput = {})); var ListTagsForStreamInput; (function (ListTagsForStreamInput) { ListTagsForStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListTagsForStreamInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListTagsForStreamInput"); }; })(ListTagsForStreamInput || (ListTagsForStreamInput = {})); var ListTagsForStreamOutput; (function (ListTagsForStreamOutput) { ListTagsForStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListTagsForStreamOutput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListTagsForStreamOutput"); }; })(ListTagsForStreamOutput || (ListTagsForStreamOutput = {})); var MergeShardsInput; (function (MergeShardsInput) { MergeShardsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; MergeShardsInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "MergeShardsInput"); }; })(MergeShardsInput || (MergeShardsInput = {})); var MetricsName; (function (MetricsName) { MetricsName["ALL"] = "ALL"; MetricsName["INCOMING_BYTES"] = "IncomingBytes"; MetricsName["INCOMING_RECORDS"] = "IncomingRecords"; MetricsName["ITERATOR_AGE_MILLISECONDS"] = "IteratorAgeMilliseconds"; MetricsName["OUTGOING_BYTES"] = "OutgoingBytes"; MetricsName["OUTGOING_RECORDS"] = "OutgoingRecords"; MetricsName["READ_PROVISIONED_THROUGHPUT_EXCEEDED"] = "ReadProvisionedThroughputExceeded"; MetricsName["WRITE_PROVISIONED_THROUGHPUT_EXCEEDED"] = "WriteProvisionedThroughputExceeded"; })(MetricsName || (MetricsName = {})); var ProvisionedThroughputExceededException; (function (ProvisionedThroughputExceededException) { ProvisionedThroughputExceededException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ProvisionedThroughputExceededException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ProvisionedThroughputExceededException"); }; })(ProvisionedThroughputExceededException || (ProvisionedThroughputExceededException = {})); var PutRecordInput; (function (PutRecordInput) { PutRecordInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; PutRecordInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "PutRecordInput"); }; })(PutRecordInput || (PutRecordInput = {})); var PutRecordOutput; (function (PutRecordOutput) { PutRecordOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; PutRecordOutput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "PutRecordOutput"); }; })(PutRecordOutput || (PutRecordOutput = {})); var PutRecordsInput; (function (PutRecordsInput) { PutRecordsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; PutRecordsInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "PutRecordsInput"); }; })(PutRecordsInput || (PutRecordsInput = {})); var PutRecordsOutput; (function (PutRecordsOutput) { PutRecordsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; PutRecordsOutput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "PutRecordsOutput"); }; })(PutRecordsOutput || (PutRecordsOutput = {})); var PutRecordsRequestEntry; (function (PutRecordsRequestEntry) { PutRecordsRequestEntry.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; PutRecordsRequestEntry.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "PutRecordsRequestEntry"); }; })(PutRecordsRequestEntry || (PutRecordsRequestEntry = {})); var PutRecordsResultEntry; (function (PutRecordsResultEntry) { PutRecordsResultEntry.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; PutRecordsResultEntry.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "PutRecordsResultEntry"); }; })(PutRecordsResultEntry || (PutRecordsResultEntry = {})); var _Record; (function (_Record) { _Record.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; _Record.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "Record"); }; })(_Record || (_Record = {})); var RegisterStreamConsumerInput; (function (RegisterStreamConsumerInput) { RegisterStreamConsumerInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; RegisterStreamConsumerInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "RegisterStreamConsumerInput"); }; })(RegisterStreamConsumerInput || (RegisterStreamConsumerInput = {})); var RegisterStreamConsumerOutput; (function (RegisterStreamConsumerOutput) { RegisterStreamConsumerOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; RegisterStreamConsumerOutput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "RegisterStreamConsumerOutput"); }; })(RegisterStreamConsumerOutput || (RegisterStreamConsumerOutput = {})); var RemoveTagsFromStreamInput; (function (RemoveTagsFromStreamInput) { RemoveTagsFromStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; RemoveTagsFromStreamInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "RemoveTagsFromStreamInput"); }; })(RemoveTagsFromStreamInput || (RemoveTagsFromStreamInput = {})); var ResourceInUseException; (function (ResourceInUseException) { ResourceInUseException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ResourceInUseException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ResourceInUseException"); }; })(ResourceInUseException || (ResourceInUseException = {})); var ResourceNotFoundException; (function (ResourceNotFoundException) { ResourceNotFoundException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ResourceNotFoundException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ResourceNotFoundException"); }; })(ResourceNotFoundException || (ResourceNotFoundException = {})); var ScalingType; (function (ScalingType) { ScalingType["UNIFORM_SCALING"] = "UNIFORM_SCALING"; })(ScalingType || (ScalingType = {})); var SequenceNumberRange; (function (SequenceNumberRange) { SequenceNumberRange.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; SequenceNumberRange.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "SequenceNumberRange"); }; })(SequenceNumberRange || (SequenceNumberRange = {})); var Shard; (function (Shard) { Shard.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; Shard.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "Shard"); }; })(Shard || (Shard = {})); var ShardIteratorType; (function (ShardIteratorType) { ShardIteratorType["AFTER_SEQUENCE_NUMBER"] = "AFTER_SEQUENCE_NUMBER"; ShardIteratorType["AT_SEQUENCE_NUMBER"] = "AT_SEQUENCE_NUMBER"; ShardIteratorType["AT_TIMESTAMP"] = "AT_TIMESTAMP"; ShardIteratorType["LATEST"] = "LATEST"; ShardIteratorType["TRIM_HORIZON"] = "TRIM_HORIZON"; })(ShardIteratorType || (ShardIteratorType = {})); var SplitShardInput; (function (SplitShardInput) { SplitShardInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; SplitShardInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "SplitShardInput"); }; })(SplitShardInput || (SplitShardInput = {})); var StartingPosition; (function (StartingPosition) { StartingPosition.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StartingPosition.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StartingPosition"); }; })(StartingPosition || (StartingPosition = {})); var StartStreamEncryptionInput; (function (StartStreamEncryptionInput) { StartStreamEncryptionInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StartStreamEncryptionInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StartStreamEncryptionInput"); }; })(StartStreamEncryptionInput || (StartStreamEncryptionInput = {})); var StopStreamEncryptionInput; (function (StopStreamEncryptionInput) { StopStreamEncryptionInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StopStreamEncryptionInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StopStreamEncryptionInput"); }; })(StopStreamEncryptionInput || (StopStreamEncryptionInput = {})); var StreamDescription; (function (StreamDescription) { StreamDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StreamDescription.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StreamDescription"); }; })(StreamDescription || (StreamDescription = {})); var StreamDescriptionSummary; (function (StreamDescriptionSummary) { StreamDescriptionSummary.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StreamDescriptionSummary.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StreamDescriptionSummary"); }; })(StreamDescriptionSummary || (StreamDescriptionSummary = {})); var StreamStatus; (function (StreamStatus) { StreamStatus["ACTIVE"] = "ACTIVE"; StreamStatus["CREATING"] = "CREATING"; StreamStatus["DELETING"] = "DELETING"; StreamStatus["UPDATING"] = "UPDATING"; })(StreamStatus || (StreamStatus = {})); var SubscribeToShardEvent; (function (SubscribeToShardEvent) { SubscribeToShardEvent.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; SubscribeToShardEvent.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "SubscribeToShardEvent"); }; })(SubscribeToShardEvent || (SubscribeToShardEvent = {})); var SubscribeToShardEventStream; (function (SubscribeToShardEventStream) { SubscribeToShardEventStream.visit = function (value, visitor) { if (value.KMSThrottlingException !== undefined) return visitor.KMSThrottlingException(value.KMSThrottlingException); if (value.KMSDisabledException !== undefined) return visitor.KMSDisabledException(value.KMSDisabledException); if (value.KMSAccessDeniedException !== undefined) return visitor.KMSAccessDeniedException(value.KMSAccessDeniedException); if (value.KMSInvalidStateException !== undefined) return visitor.KMSInvalidStateException(value.KMSInvalidStateException); if (value.KMSNotFoundException !== undefined) return visitor.KMSNotFoundException(value.KMSNotFoundException); if (value.ResourceNotFoundException !== undefined) return visitor.ResourceNotFoundException(value.ResourceNotFoundException); if (value.SubscribeToShardEvent !== undefined) return visitor.SubscribeToShardEvent(value.SubscribeToShardEvent); if (value.ResourceInUseException !== undefined) return visitor.ResourceInUseException(value.ResourceInUseException); if (value.InternalFailureException !== undefined) return visitor.InternalFailureException(value.InternalFailureException); if (value.KMSOptInRequired !== undefined) return visitor.KMSOptInRequired(value.KMSOptInRequired); return visitor._(value.$unknown[0], value.$unknown[1]); }; SubscribeToShardEventStream.filterSensitiveLog = function (obj) { var _a; if (obj.KMSThrottlingException !== undefined) return { KMSThrottlingException: KMSThrottlingException.filterSensitiveLog(obj.KMSThrottlingException) }; if (obj.KMSDisabledException !== undefined) return { KMSDisabledException: KMSDisabledException.filterSensitiveLog(obj.KMSDisabledException) }; if (obj.KMSAccessDeniedException !== undefined) return { KMSAccessDeniedException: KMSAccessDeniedException.filterSensitiveLog(obj.KMSAccessDeniedException) }; if (obj.KMSInvalidStateException !== undefined) return { KMSInvalidStateException: KMSInvalidStateException.filterSensitiveLog(obj.KMSInvalidStateException) }; if (obj.KMSNotFoundException !== undefined) return { KMSNotFoundException: KMSNotFoundException.filterSensitiveLog(obj.KMSNotFoundException) }; if (obj.ResourceNotFoundException !== undefined) return { ResourceNotFoundException: ResourceNotFoundException.filterSensitiveLog(obj.ResourceNotFoundException) }; if (obj.SubscribeToShardEvent !== undefined) return { SubscribeToShardEvent: SubscribeToShardEvent.filterSensitiveLog(obj.SubscribeToShardEvent) }; if (obj.ResourceInUseException !== undefined) return { ResourceInUseException: ResourceInUseException.filterSensitiveLog(obj.ResourceInUseException) }; if (obj.InternalFailureException !== undefined) return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) }; if (obj.KMSOptInRequired !== undefined) return { KMSOptInRequired: KMSOptInRequired.filterSensitiveLog(obj.KMSOptInRequired) }; if (obj.$unknown !== undefined) return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a; }; })(SubscribeToShardEventStream || (SubscribeToShardEventStream = {})); var SubscribeToShardInput; (function (SubscribeToShardInput) { SubscribeToShardInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; SubscribeToShardInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "SubscribeToShardInput"); }; })(SubscribeToShardInput || (SubscribeToShardInput = {})); var SubscribeToShardOutput; (function (SubscribeToShardOutput) { SubscribeToShardOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.EventStream && { EventStream: "STREAMING_CONTENT" }))); }; SubscribeToShardOutput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "SubscribeToShardOutput"); }; })(SubscribeToShardOutput || (SubscribeToShardOutput = {})); var Tag; (function (Tag) { Tag.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; Tag.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "Tag"); }; })(Tag || (Tag = {})); var UpdateShardCountInput; (function (UpdateShardCountInput) { UpdateShardCountInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; UpdateShardCountInput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "UpdateShardCountInput"); }; })(UpdateShardCountInput || (UpdateShardCountInput = {})); var UpdateShardCountOutput; (function (UpdateShardCountOutput) { UpdateShardCountOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; UpdateShardCountOutput.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "UpdateShardCountOutput"); }; })(UpdateShardCountOutput || (UpdateShardCountOutput = {})); //# sourceMappingURL=index.js.map /***/ }), /***/ "9AIs": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/StartSentimentDetectionJobCommand.js ***! \*******************************************************************************************************/ /*! exports provided: StartSentimentDetectionJobCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartSentimentDetectionJobCommand", function() { return StartSentimentDetectionJobCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StartSentimentDetectionJobCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartSentimentDetectionJobCommand, _super); // Start section: command_properties // End section: command_properties function StartSentimentDetectionJobCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StartSentimentDetectionJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartSentimentDetectionJobRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartSentimentDetectionJobResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StartSentimentDetectionJobCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartSentimentDetectionJobCommand"])(input, context); }; StartSentimentDetectionJobCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartSentimentDetectionJobCommand"])(output, context); }; return StartSentimentDetectionJobCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StartSentimentDetectionJobCommand.js.map /***/ }), /***/ "9ETN": /*!*************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentCommand.js ***! \*************************************************************************************/ /*! exports provided: GetSegmentCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentCommand", function() { return GetSegmentCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetSegmentCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSegmentCommand, _super); // Start section: command_properties // End section: command_properties function GetSegmentCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetSegmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetSegmentRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetSegmentResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetSegmentCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSegmentCommand"])(input, context); }; GetSegmentCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSegmentCommand"])(output, context); }; return GetSegmentCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetSegmentCommand.js.map /***/ }), /***/ "9Hor": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/lib-esm/storage/adapter/indexeddb.js ***! \**********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var idb__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! idb */ "P0+2"); /* harmony import */ var _predicates__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../predicates */ "0VOl"); /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../types */ "+eag"); /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util */ "wr5y"); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __asyncValues = (undefined && undefined.__asyncValues) || function (o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m = o[Symbol.asyncIterator], i; 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); 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); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } }; var __values = (undefined && undefined.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (undefined && undefined.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('DataStore'); var DB_NAME = 'amplify-datastore'; var IndexedDBAdapter = /** @class */ (function () { function IndexedDBAdapter() { } IndexedDBAdapter.prototype.checkPrivate = function () { return __awaiter(this, void 0, void 0, function () { var isPrivate; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, Object(_util__WEBPACK_IMPORTED_MODULE_4__["isPrivateMode"])().then(function (isPrivate) { return isPrivate; })]; case 1: isPrivate = _a.sent(); if (isPrivate) { logger.error("IndexedDB not supported in this browser's private mode"); return [2 /*return*/, Promise.reject("IndexedDB not supported in this browser's private mode")]; } else { return [2 /*return*/, Promise.resolve()]; } return [2 /*return*/]; } }); }); }; IndexedDBAdapter.prototype.getStorenameForModel = function (modelConstructor) { var namespace = this.namespaceResolver(modelConstructor); var modelName = modelConstructor.name; return this.getStorename(namespace, modelName); }; IndexedDBAdapter.prototype.getStorename = function (namespace, modelName) { var storeName = namespace + "_" + modelName; return storeName; }; IndexedDBAdapter.prototype.setUp = function (theSchema, namespaceResolver, modelInstanceCreator, getModelConstructorByModelName) { return __awaiter(this, void 0, void 0, function () { var VERSION, _a, error_1; var _this = this; return __generator(this, function (_b) { switch (_b.label) { case 0: return [4 /*yield*/, this.checkPrivate()]; case 1: _b.sent(); if (!!this.initPromise) return [3 /*break*/, 2]; this.initPromise = new Promise(function (res, rej) { _this.resolve = res; _this.reject = rej; }); return [3 /*break*/, 4]; case 2: return [4 /*yield*/, this.initPromise]; case 3: _b.sent(); _b.label = 4; case 4: this.schema = theSchema; this.namespaceResolver = namespaceResolver; this.modelInstanceCreator = modelInstanceCreator; this.getModelConstructorByModelName = getModelConstructorByModelName; _b.label = 5; case 5: _b.trys.push([5, 8, , 9]); if (!!this.db) return [3 /*break*/, 7]; VERSION = 2; _a = this; return [4 /*yield*/, idb__WEBPACK_IMPORTED_MODULE_1__["openDB"](DB_NAME, VERSION, { upgrade: function (db, oldVersion, newVersion, txn) { return __awaiter(_this, void 0, void 0, function () { var _a, _b, storeName, origStore, tmpName, newStore, cursor, count, e_1_1, error_2; var e_1, _c; var _this = this; return __generator(this, function (_d) { switch (_d.label) { case 0: if (oldVersion === 0) { Object.keys(theSchema.namespaces).forEach(function (namespaceName) { var namespace = theSchema.namespaces[namespaceName]; Object.keys(namespace.models).forEach(function (modelName) { var storeName = _this.getStorename(namespaceName, modelName); var store = db.createObjectStore(storeName, { autoIncrement: true, }); var indexes = _this.schema.namespaces[namespaceName] .relationships[modelName].indexes; indexes.forEach(function (index) { return store.createIndex(index, index); }); store.createIndex('byId', 'id', { unique: true }); }); }); return [2 /*return*/]; } if (!(oldVersion === 1 && newVersion === 2)) return [3 /*break*/, 16]; _d.label = 1; case 1: _d.trys.push([1, 14, , 15]); _d.label = 2; case 2: _d.trys.push([2, 11, 12, 13]); _a = __values(txn.objectStoreNames), _b = _a.next(); _d.label = 3; case 3: if (!!_b.done) return [3 /*break*/, 10]; storeName = _b.value; origStore = txn.objectStore(storeName); tmpName = "tmp_" + storeName; origStore.name = tmpName; newStore = db.createObjectStore(storeName, { keyPath: undefined, autoIncrement: true, }); newStore.createIndex('byId', 'id', { unique: true }); return [4 /*yield*/, origStore.openCursor()]; case 4: cursor = _d.sent(); count = 0; _d.label = 5; case 5: if (!(cursor && cursor.value)) return [3 /*break*/, 8]; // we don't pass key, since they are all new entries in the new store return [4 /*yield*/, newStore.put(cursor.value)]; case 6: // we don't pass key, since they are all new entries in the new store _d.sent(); return [4 /*yield*/, cursor.continue()]; case 7: cursor = _d.sent(); count++; return [3 /*break*/, 5]; case 8: // delete original db.deleteObjectStore(tmpName); logger.debug(count + " " + storeName + " records migrated"); _d.label = 9; case 9: _b = _a.next(); return [3 /*break*/, 3]; case 10: return [3 /*break*/, 13]; case 11: e_1_1 = _d.sent(); e_1 = { error: e_1_1 }; return [3 /*break*/, 13]; case 12: try { if (_b && !_b.done && (_c = _a.return)) _c.call(_a); } finally { if (e_1) throw e_1.error; } return [7 /*endfinally*/]; case 13: return [3 /*break*/, 15]; case 14: error_2 = _d.sent(); logger.error('Error migrating IndexedDB data', error_2); txn.abort(); throw error_2; case 15: return [2 /*return*/]; case 16: return [2 /*return*/]; } }); }); }, })]; case 6: _a.db = _b.sent(); this.resolve(); _b.label = 7; case 7: return [3 /*break*/, 9]; case 8: error_1 = _b.sent(); this.reject(error_1); return [3 /*break*/, 9]; case 9: return [2 /*return*/]; } }); }); }; IndexedDBAdapter.prototype._get = function (storeOrStoreName, id) { return __awaiter(this, void 0, void 0, function () { var index, storeName, store, result; return __generator(this, function (_a) { switch (_a.label) { case 0: if (typeof storeOrStoreName === 'string') { storeName = storeOrStoreName; index = this.db.transaction(storeName, 'readonly').store.index('byId'); } else { store = storeOrStoreName; index = store.index('byId'); } return [4 /*yield*/, index.get(id)]; case 1: result = _a.sent(); return [2 /*return*/, result]; } }); }); }; IndexedDBAdapter.prototype.save = function (model, condition) { var e_2, _a; return __awaiter(this, void 0, void 0, function () { var modelConstructor, storeName, connectedModels, namespaceName, set, connectionStoreNames, tx, store, fromDB, predicates, predicateObjs, type, isValid, msg, result, connectionStoreNames_1, connectionStoreNames_1_1, resItem, storeName_1, item, instance, store_1, id, opType, key, key, e_2_1; var _this = this; return __generator(this, function (_b) { switch (_b.label) { case 0: return [4 /*yield*/, this.checkPrivate()]; case 1: _b.sent(); modelConstructor = Object.getPrototypeOf(model) .constructor; storeName = this.getStorenameForModel(modelConstructor); connectedModels = Object(_util__WEBPACK_IMPORTED_MODULE_4__["traverseModel"])(modelConstructor.name, model, this.schema.namespaces[this.namespaceResolver(modelConstructor)], this.modelInstanceCreator, this.getModelConstructorByModelName); namespaceName = this.namespaceResolver(modelConstructor); set = new Set(); connectionStoreNames = Object.values(connectedModels).map(function (_a) { var modelName = _a.modelName, item = _a.item, instance = _a.instance; var storeName = _this.getStorename(namespaceName, modelName); set.add(storeName); return { storeName: storeName, item: item, instance: instance }; }); tx = this.db.transaction(__spread([storeName], Array.from(set.values())), 'readwrite'); store = tx.objectStore(storeName); return [4 /*yield*/, this._get(store, model.id)]; case 2: fromDB = _b.sent(); if (condition && fromDB) { predicates = _predicates__WEBPACK_IMPORTED_MODULE_2__["ModelPredicateCreator"].getPredicates(condition); predicateObjs = predicates.predicates, type = predicates.type; isValid = Object(_util__WEBPACK_IMPORTED_MODULE_4__["validatePredicate"])(fromDB, type, predicateObjs); if (!isValid) { msg = 'Conditional update failed'; logger.error(msg, { model: fromDB, condition: predicateObjs }); throw new Error(msg); } } result = []; _b.label = 3; case 3: _b.trys.push([3, 14, 15, 20]); connectionStoreNames_1 = __asyncValues(connectionStoreNames); _b.label = 4; case 4: return [4 /*yield*/, connectionStoreNames_1.next()]; case 5: if (!(connectionStoreNames_1_1 = _b.sent(), !connectionStoreNames_1_1.done)) return [3 /*break*/, 13]; resItem = connectionStoreNames_1_1.value; storeName_1 = resItem.storeName, item = resItem.item, instance = resItem.instance; store_1 = tx.objectStore(storeName_1); id = item.id; return [4 /*yield*/, this._get(store_1, id)]; case 6: opType = (_b.sent()) === undefined ? _types__WEBPACK_IMPORTED_MODULE_3__["OpType"].INSERT : _types__WEBPACK_IMPORTED_MODULE_3__["OpType"].UPDATE; if (!(id === model.id)) return [3 /*break*/, 9]; return [4 /*yield*/, store_1.index('byId').getKey(item.id)]; case 7: key = _b.sent(); return [4 /*yield*/, store_1.put(item, key)]; case 8: _b.sent(); result.push([instance, opType]); return [3 /*break*/, 12]; case 9: if (!(opType === _types__WEBPACK_IMPORTED_MODULE_3__["OpType"].INSERT)) return [3 /*break*/, 12]; return [4 /*yield*/, store_1.index('byId').getKey(item.id)]; case 10: key = _b.sent(); return [4 /*yield*/, store_1.put(item, key)]; case 11: _b.sent(); result.push([instance, opType]); _b.label = 12; case 12: return [3 /*break*/, 4]; case 13: return [3 /*break*/, 20]; case 14: e_2_1 = _b.sent(); e_2 = { error: e_2_1 }; return [3 /*break*/, 20]; case 15: _b.trys.push([15, , 18, 19]); if (!(connectionStoreNames_1_1 && !connectionStoreNames_1_1.done && (_a = connectionStoreNames_1.return))) return [3 /*break*/, 17]; return [4 /*yield*/, _a.call(connectionStoreNames_1)]; case 16: _b.sent(); _b.label = 17; case 17: return [3 /*break*/, 19]; case 18: if (e_2) throw e_2.error; return [7 /*endfinally*/]; case 19: return [7 /*endfinally*/]; case 20: return [4 /*yield*/, tx.done]; case 21: _b.sent(); return [2 /*return*/, result]; } }); }); }; IndexedDBAdapter.prototype.load = function (namespaceName, srcModelName, records) { var records_1, records_1_1, records_2, records_2_1; var e_3, _a, e_4, _b, e_5, _c; return __awaiter(this, void 0, void 0, function () { var namespace, relations, connectionStoreNames, modelConstructor, tx, relations_1, relations_1_1, relation, fieldName, modelName, targetName, storeName, store, modelConstructor_1, _d, recordItem, connectionRecord, e_4_1, recordItem, connectionRecord, e_5_1, e_3_1; var _this = this; return __generator(this, function (_e) { switch (_e.label) { case 0: namespace = this.schema.namespaces[namespaceName]; relations = namespace.relationships[srcModelName].relationTypes; connectionStoreNames = relations.map(function (_a) { var modelName = _a.modelName; return _this.getStorename(namespaceName, modelName); }); modelConstructor = this.getModelConstructorByModelName(namespaceName, srcModelName); if (connectionStoreNames.length === 0) { return [2 /*return*/, records.map(function (record) { return _this.modelInstanceCreator(modelConstructor, record); })]; } tx = this.db.transaction(__spread(connectionStoreNames), 'readonly'); _e.label = 1; case 1: _e.trys.push([1, 34, 35, 40]); relations_1 = __asyncValues(relations); _e.label = 2; case 2: return [4 /*yield*/, relations_1.next()]; case 3: if (!(relations_1_1 = _e.sent(), !relations_1_1.done)) return [3 /*break*/, 33]; relation = relations_1_1.value; fieldName = relation.fieldName, modelName = relation.modelName, targetName = relation.targetName; storeName = this.getStorename(namespaceName, modelName); store = tx.objectStore(storeName); modelConstructor_1 = this.getModelConstructorByModelName(namespaceName, modelName); _d = relation.relationType; switch (_d) { case 'HAS_ONE': return [3 /*break*/, 4]; case 'BELONGS_TO': return [3 /*break*/, 17]; case 'HAS_MANY': return [3 /*break*/, 30]; } return [3 /*break*/, 31]; case 4: _e.trys.push([4, 10, 11, 16]); records_1 = __asyncValues(records); _e.label = 5; case 5: return [4 /*yield*/, records_1.next()]; case 6: if (!(records_1_1 = _e.sent(), !records_1_1.done)) return [3 /*break*/, 9]; recordItem = records_1_1.value; if (!recordItem[fieldName]) return [3 /*break*/, 8]; return [4 /*yield*/, this._get(store, recordItem[fieldName])]; case 7: connectionRecord = _e.sent(); recordItem[fieldName] = connectionRecord && this.modelInstanceCreator(modelConstructor_1, connectionRecord); _e.label = 8; case 8: return [3 /*break*/, 5]; case 9: return [3 /*break*/, 16]; case 10: e_4_1 = _e.sent(); e_4 = { error: e_4_1 }; return [3 /*break*/, 16]; case 11: _e.trys.push([11, , 14, 15]); if (!(records_1_1 && !records_1_1.done && (_b = records_1.return))) return [3 /*break*/, 13]; return [4 /*yield*/, _b.call(records_1)]; case 12: _e.sent(); _e.label = 13; case 13: return [3 /*break*/, 15]; case 14: if (e_4) throw e_4.error; return [7 /*endfinally*/]; case 15: return [7 /*endfinally*/]; case 16: return [3 /*break*/, 32]; case 17: _e.trys.push([17, 23, 24, 29]); records_2 = __asyncValues(records); _e.label = 18; case 18: return [4 /*yield*/, records_2.next()]; case 19: if (!(records_2_1 = _e.sent(), !records_2_1.done)) return [3 /*break*/, 22]; recordItem = records_2_1.value; if (!recordItem[targetName]) return [3 /*break*/, 21]; return [4 /*yield*/, this._get(store, recordItem[targetName])]; case 20: connectionRecord = _e.sent(); recordItem[fieldName] = connectionRecord && this.modelInstanceCreator(modelConstructor_1, connectionRecord); delete recordItem[targetName]; _e.label = 21; case 21: return [3 /*break*/, 18]; case 22: return [3 /*break*/, 29]; case 23: e_5_1 = _e.sent(); e_5 = { error: e_5_1 }; return [3 /*break*/, 29]; case 24: _e.trys.push([24, , 27, 28]); if (!(records_2_1 && !records_2_1.done && (_c = records_2.return))) return [3 /*break*/, 26]; return [4 /*yield*/, _c.call(records_2)]; case 25: _e.sent(); _e.label = 26; case 26: return [3 /*break*/, 28]; case 27: if (e_5) throw e_5.error; return [7 /*endfinally*/]; case 28: return [7 /*endfinally*/]; case 29: return [3 /*break*/, 32]; case 30: // TODO: Lazy loading return [3 /*break*/, 32]; case 31: Object(_util__WEBPACK_IMPORTED_MODULE_4__["exhaustiveCheck"])(relation.relationType); return [3 /*break*/, 32]; case 32: return [3 /*break*/, 2]; case 33: return [3 /*break*/, 40]; case 34: e_3_1 = _e.sent(); e_3 = { error: e_3_1 }; return [3 /*break*/, 40]; case 35: _e.trys.push([35, , 38, 39]); if (!(relations_1_1 && !relations_1_1.done && (_a = relations_1.return))) return [3 /*break*/, 37]; return [4 /*yield*/, _a.call(relations_1)]; case 36: _e.sent(); _e.label = 37; case 37: return [3 /*break*/, 39]; case 38: if (e_3) throw e_3.error; return [7 /*endfinally*/]; case 39: return [7 /*endfinally*/]; case 40: return [2 /*return*/, records.map(function (record) { return _this.modelInstanceCreator(modelConstructor, record); })]; } }); }); }; IndexedDBAdapter.prototype.query = function (modelConstructor, predicate, pagination) { return __awaiter(this, void 0, void 0, function () { var storeName, namespaceName, sortSpecified, predicates, predicateObjs_1, type_1, idPredicate, id, record, _a, x, all, filtered, all, _b, _c; return __generator(this, function (_d) { switch (_d.label) { case 0: return [4 /*yield*/, this.checkPrivate()]; case 1: _d.sent(); storeName = this.getStorenameForModel(modelConstructor); namespaceName = this.namespaceResolver(modelConstructor); sortSpecified = pagination && pagination.sort; if (!predicate) return [3 /*break*/, 8]; predicates = _predicates__WEBPACK_IMPORTED_MODULE_2__["ModelPredicateCreator"].getPredicates(predicate); if (!predicates) return [3 /*break*/, 8]; predicateObjs_1 = predicates.predicates, type_1 = predicates.type; idPredicate = predicateObjs_1.length === 1 && predicateObjs_1.find(function (p) { return Object(_types__WEBPACK_IMPORTED_MODULE_3__["isPredicateObj"])(p) && p.field === 'id' && p.operator === 'eq'; }); if (!idPredicate) return [3 /*break*/, 5]; id = idPredicate.operand; return [4 /*yield*/, this._get(storeName, id)]; case 2: record = _d.sent(); if (!record) return [3 /*break*/, 4]; return [4 /*yield*/, this.load(namespaceName, modelConstructor.name, [ record, ])]; case 3: _a = __read.apply(void 0, [_d.sent(), 1]), x = _a[0]; return [2 /*return*/, [x]]; case 4: return [2 /*return*/, []]; case 5: return [4 /*yield*/, this.db.getAll(storeName)]; case 6: all = _d.sent(); filtered = predicateObjs_1 ? all.filter(function (m) { return Object(_util__WEBPACK_IMPORTED_MODULE_4__["validatePredicate"])(m, type_1, predicateObjs_1); }) : all; return [4 /*yield*/, this.load(namespaceName, modelConstructor.name, this.inMemoryPagination(filtered, pagination))]; case 7: return [2 /*return*/, _d.sent()]; case 8: if (!sortSpecified) return [3 /*break*/, 11]; return [4 /*yield*/, this.db.getAll(storeName)]; case 9: all = _d.sent(); return [4 /*yield*/, this.load(namespaceName, modelConstructor.name, this.inMemoryPagination(all, pagination))]; case 10: return [2 /*return*/, _d.sent()]; case 11: _b = this.load; _c = [namespaceName, modelConstructor.name]; return [4 /*yield*/, this.enginePagination(storeName, pagination)]; case 12: return [4 /*yield*/, _b.apply(this, _c.concat([_d.sent()]))]; case 13: return [2 /*return*/, _d.sent()]; } }); }); }; IndexedDBAdapter.prototype.inMemoryPagination = function (records, pagination) { if (pagination) { if (pagination.sort) { var sortPredicates = _predicates__WEBPACK_IMPORTED_MODULE_2__["ModelSortPredicateCreator"].getPredicates(pagination.sort); if (sortPredicates.length) { var compareFn = Object(_util__WEBPACK_IMPORTED_MODULE_4__["sortCompareFunction"])(sortPredicates); records.sort(compareFn); } } var _a = pagination.page, page = _a === void 0 ? 0 : _a, _b = pagination.limit, limit = _b === void 0 ? 0 : _b; var start = Math.max(0, page * limit) || 0; var end = limit > 0 ? start + limit : records.length; return records.slice(start, end); } return records; }; IndexedDBAdapter.prototype.enginePagination = function (storeName, pagination) { return __awaiter(this, void 0, void 0, function () { var result, _a, page, _b, limit, initialRecord, cursor, pageResults, hasLimit, moreRecords, itemsLeft; return __generator(this, function (_c) { switch (_c.label) { case 0: if (!pagination) return [3 /*break*/, 7]; _a = pagination.page, page = _a === void 0 ? 0 : _a, _b = pagination.limit, limit = _b === void 0 ? 0 : _b; initialRecord = Math.max(0, page * limit) || 0; return [4 /*yield*/, this.db .transaction(storeName) .objectStore(storeName) .openCursor()]; case 1: cursor = _c.sent(); if (!(cursor && initialRecord > 0)) return [3 /*break*/, 3]; return [4 /*yield*/, cursor.advance(initialRecord)]; case 2: _c.sent(); _c.label = 3; case 3: pageResults = []; hasLimit = typeof limit === 'number' && limit > 0; moreRecords = true; itemsLeft = limit; _c.label = 4; case 4: if (!(moreRecords && cursor && cursor.value)) return [3 /*break*/, 6]; pageResults.push(cursor.value); return [4 /*yield*/, cursor.continue()]; case 5: cursor = _c.sent(); if (hasLimit) { itemsLeft--; moreRecords = itemsLeft > 0 && cursor !== null; } else { moreRecords = cursor !== null; } return [3 /*break*/, 4]; case 6: result = pageResults; return [3 /*break*/, 9]; case 7: return [4 /*yield*/, this.db.getAll(storeName)]; case 8: result = (_c.sent()); _c.label = 9; case 9: return [2 /*return*/, result]; } }); }); }; IndexedDBAdapter.prototype.queryOne = function (modelConstructor, firstOrLast) { if (firstOrLast === void 0) { firstOrLast = _types__WEBPACK_IMPORTED_MODULE_3__["QueryOne"].FIRST; } return __awaiter(this, void 0, void 0, function () { var storeName, cursor, result; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.checkPrivate()]; case 1: _a.sent(); storeName = this.getStorenameForModel(modelConstructor); return [4 /*yield*/, this.db .transaction([storeName], 'readonly') .objectStore(storeName) .openCursor(undefined, firstOrLast === _types__WEBPACK_IMPORTED_MODULE_3__["QueryOne"].FIRST ? 'next' : 'prev')]; case 2: cursor = _a.sent(); result = cursor ? cursor.value : undefined; return [2 /*return*/, result && this.modelInstanceCreator(modelConstructor, result)]; } }); }); }; IndexedDBAdapter.prototype.delete = function (modelOrModelConstructor, condition) { return __awaiter(this, void 0, void 0, function () { var deleteQueue, modelConstructor, nameSpace, storeName, models, relations, deletedModels, deletedModels, model, modelConstructor, nameSpace, storeName, tx, store, fromDB, msg, predicates, predicateObjs, type, isValid, msg, relations, relations, deletedModels; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.checkPrivate()]; case 1: _a.sent(); deleteQueue = []; if (!Object(_util__WEBPACK_IMPORTED_MODULE_4__["isModelConstructor"])(modelOrModelConstructor)) return [3 /*break*/, 9]; modelConstructor = modelOrModelConstructor; nameSpace = this.namespaceResolver(modelConstructor); storeName = this.getStorenameForModel(modelConstructor); return [4 /*yield*/, this.query(modelConstructor, condition)]; case 2: models = _a.sent(); relations = this.schema.namespaces[nameSpace].relationships[modelConstructor.name].relationTypes; if (!(condition !== undefined)) return [3 /*break*/, 5]; return [4 /*yield*/, this.deleteTraverse(relations, models, modelConstructor.name, nameSpace, deleteQueue)]; case 3: _a.sent(); return [4 /*yield*/, this.deleteItem(deleteQueue)]; case 4: _a.sent(); deletedModels = deleteQueue.reduce(function (acc, _a) { var items = _a.items; return acc.concat(items); }, []); return [2 /*return*/, [models, deletedModels]]; case 5: return [4 /*yield*/, this.deleteTraverse(relations, models, modelConstructor.name, nameSpace, deleteQueue)]; case 6: _a.sent(); // Delete all return [4 /*yield*/, this.db .transaction([storeName], 'readwrite') .objectStore(storeName) .clear()]; case 7: // Delete all _a.sent(); deletedModels = deleteQueue.reduce(function (acc, _a) { var items = _a.items; return acc.concat(items); }, []); return [2 /*return*/, [models, deletedModels]]; case 8: return [3 /*break*/, 17]; case 9: model = modelOrModelConstructor; modelConstructor = Object.getPrototypeOf(model) .constructor; nameSpace = this.namespaceResolver(modelConstructor); storeName = this.getStorenameForModel(modelConstructor); if (!condition) return [3 /*break*/, 13]; tx = this.db.transaction([storeName], 'readwrite'); store = tx.objectStore(storeName); return [4 /*yield*/, this._get(store, model.id)]; case 10: fromDB = _a.sent(); if (fromDB === undefined) { msg = 'Model instance not found in storage'; logger.warn(msg, { model: model }); return [2 /*return*/, [[model], []]]; } predicates = _predicates__WEBPACK_IMPORTED_MODULE_2__["ModelPredicateCreator"].getPredicates(condition); predicateObjs = predicates.predicates, type = predicates.type; isValid = Object(_util__WEBPACK_IMPORTED_MODULE_4__["validatePredicate"])(fromDB, type, predicateObjs); if (!isValid) { msg = 'Conditional update failed'; logger.error(msg, { model: fromDB, condition: predicateObjs }); throw new Error(msg); } return [4 /*yield*/, tx.done]; case 11: _a.sent(); relations = this.schema.namespaces[nameSpace].relationships[modelConstructor.name].relationTypes; return [4 /*yield*/, this.deleteTraverse(relations, [model], modelConstructor.name, nameSpace, deleteQueue)]; case 12: _a.sent(); return [3 /*break*/, 15]; case 13: relations = this.schema.namespaces[nameSpace].relationships[modelConstructor.name].relationTypes; return [4 /*yield*/, this.deleteTraverse(relations, [model], modelConstructor.name, nameSpace, deleteQueue)]; case 14: _a.sent(); _a.label = 15; case 15: return [4 /*yield*/, this.deleteItem(deleteQueue)]; case 16: _a.sent(); deletedModels = deleteQueue.reduce(function (acc, _a) { var items = _a.items; return acc.concat(items); }, []); return [2 /*return*/, [[model], deletedModels]]; case 17: return [2 /*return*/]; } }); }); }; IndexedDBAdapter.prototype.deleteItem = function (deleteQueue) { var deleteQueue_1, deleteQueue_1_1; var e_6, _a, e_7, _b; return __awaiter(this, void 0, void 0, function () { var connectionStoreNames, tx, deleteItem, storeName, items, store, items_1, items_1_1, item, key, e_7_1, e_6_1; return __generator(this, function (_c) { switch (_c.label) { case 0: connectionStoreNames = deleteQueue.map(function (_a) { var storeName = _a.storeName; return storeName; }); tx = this.db.transaction(__spread(connectionStoreNames), 'readwrite'); _c.label = 1; case 1: _c.trys.push([1, 22, 23, 28]); deleteQueue_1 = __asyncValues(deleteQueue); _c.label = 2; case 2: return [4 /*yield*/, deleteQueue_1.next()]; case 3: if (!(deleteQueue_1_1 = _c.sent(), !deleteQueue_1_1.done)) return [3 /*break*/, 21]; deleteItem = deleteQueue_1_1.value; storeName = deleteItem.storeName, items = deleteItem.items; store = tx.objectStore(storeName); _c.label = 4; case 4: _c.trys.push([4, 14, 15, 20]); items_1 = __asyncValues(items); _c.label = 5; case 5: return [4 /*yield*/, items_1.next()]; case 6: if (!(items_1_1 = _c.sent(), !items_1_1.done)) return [3 /*break*/, 13]; item = items_1_1.value; if (!item) return [3 /*break*/, 12]; key = void 0; if (!(typeof item === 'object')) return [3 /*break*/, 8]; return [4 /*yield*/, store.index('byId').getKey(item['id'])]; case 7: key = _c.sent(); return [3 /*break*/, 10]; case 8: return [4 /*yield*/, store.index('byId').getKey(item.toString())]; case 9: key = _c.sent(); _c.label = 10; case 10: if (!(key !== undefined)) return [3 /*break*/, 12]; return [4 /*yield*/, store.delete(key)]; case 11: _c.sent(); _c.label = 12; case 12: return [3 /*break*/, 5]; case 13: return [3 /*break*/, 20]; case 14: e_7_1 = _c.sent(); e_7 = { error: e_7_1 }; return [3 /*break*/, 20]; case 15: _c.trys.push([15, , 18, 19]); if (!(items_1_1 && !items_1_1.done && (_b = items_1.return))) return [3 /*break*/, 17]; return [4 /*yield*/, _b.call(items_1)]; case 16: _c.sent(); _c.label = 17; case 17: return [3 /*break*/, 19]; case 18: if (e_7) throw e_7.error; return [7 /*endfinally*/]; case 19: return [7 /*endfinally*/]; case 20: return [3 /*break*/, 2]; case 21: return [3 /*break*/, 28]; case 22: e_6_1 = _c.sent(); e_6 = { error: e_6_1 }; return [3 /*break*/, 28]; case 23: _c.trys.push([23, , 26, 27]); if (!(deleteQueue_1_1 && !deleteQueue_1_1.done && (_a = deleteQueue_1.return))) return [3 /*break*/, 25]; return [4 /*yield*/, _a.call(deleteQueue_1)]; case 24: _c.sent(); _c.label = 25; case 25: return [3 /*break*/, 27]; case 26: if (e_6) throw e_6.error; return [7 /*endfinally*/]; case 27: return [7 /*endfinally*/]; case 28: return [2 /*return*/]; } }); }); }; IndexedDBAdapter.prototype.deleteTraverse = function (relations, models, srcModel, nameSpace, deleteQueue) { var relations_2, relations_2_1, models_1, models_1_1, models_2, models_2_1; var e_8, _a, e_9, _b, e_10, _c; return __awaiter(this, void 0, void 0, function () { var rel, relationType, fieldName, modelName, storeName, index, _d, model, recordToDelete, e_9_1, model, childrenArray, e_10_1, e_8_1; var _this = this; return __generator(this, function (_e) { switch (_e.label) { case 0: _e.trys.push([0, 35, 36, 41]); relations_2 = __asyncValues(relations); _e.label = 1; case 1: return [4 /*yield*/, relations_2.next()]; case 2: if (!(relations_2_1 = _e.sent(), !relations_2_1.done)) return [3 /*break*/, 34]; rel = relations_2_1.value; relationType = rel.relationType, fieldName = rel.fieldName, modelName = rel.modelName; storeName = this.getStorename(nameSpace, modelName); index = Object(_util__WEBPACK_IMPORTED_MODULE_4__["getIndex"])(this.schema.namespaces[nameSpace].relationships[modelName] .relationTypes, srcModel) || // if we were unable to find an index via relationTypes // i.e. for keyName connections, attempt to find one by the // associatedWith property Object(_util__WEBPACK_IMPORTED_MODULE_4__["getIndexFromAssociation"])(this.schema.namespaces[nameSpace].relationships[modelName].indexes, rel.associatedWith); _d = relationType; switch (_d) { case 'HAS_ONE': return [3 /*break*/, 3]; case 'HAS_MANY': return [3 /*break*/, 17]; case 'BELONGS_TO': return [3 /*break*/, 31]; } return [3 /*break*/, 32]; case 3: _e.trys.push([3, 10, 11, 16]); models_1 = __asyncValues(models); _e.label = 4; case 4: return [4 /*yield*/, models_1.next()]; case 5: if (!(models_1_1 = _e.sent(), !models_1_1.done)) return [3 /*break*/, 9]; model = models_1_1.value; return [4 /*yield*/, this.db .transaction(storeName, 'readwrite') .objectStore(storeName) .index(index) .get(model.id)]; case 6: recordToDelete = _e.sent(); return [4 /*yield*/, this.deleteTraverse(this.schema.namespaces[nameSpace].relationships[modelName] .relationTypes, recordToDelete ? [recordToDelete] : [], modelName, nameSpace, deleteQueue)]; case 7: _e.sent(); _e.label = 8; case 8: return [3 /*break*/, 4]; case 9: return [3 /*break*/, 16]; case 10: e_9_1 = _e.sent(); e_9 = { error: e_9_1 }; return [3 /*break*/, 16]; case 11: _e.trys.push([11, , 14, 15]); if (!(models_1_1 && !models_1_1.done && (_b = models_1.return))) return [3 /*break*/, 13]; return [4 /*yield*/, _b.call(models_1)]; case 12: _e.sent(); _e.label = 13; case 13: return [3 /*break*/, 15]; case 14: if (e_9) throw e_9.error; return [7 /*endfinally*/]; case 15: return [7 /*endfinally*/]; case 16: return [3 /*break*/, 33]; case 17: _e.trys.push([17, 24, 25, 30]); models_2 = __asyncValues(models); _e.label = 18; case 18: return [4 /*yield*/, models_2.next()]; case 19: if (!(models_2_1 = _e.sent(), !models_2_1.done)) return [3 /*break*/, 23]; model = models_2_1.value; return [4 /*yield*/, this.db .transaction(storeName, 'readwrite') .objectStore(storeName) .index(index) .getAll(model['id'])]; case 20: childrenArray = _e.sent(); return [4 /*yield*/, this.deleteTraverse(this.schema.namespaces[nameSpace].relationships[modelName] .relationTypes, childrenArray, modelName, nameSpace, deleteQueue)]; case 21: _e.sent(); _e.label = 22; case 22: return [3 /*break*/, 18]; case 23: return [3 /*break*/, 30]; case 24: e_10_1 = _e.sent(); e_10 = { error: e_10_1 }; return [3 /*break*/, 30]; case 25: _e.trys.push([25, , 28, 29]); if (!(models_2_1 && !models_2_1.done && (_c = models_2.return))) return [3 /*break*/, 27]; return [4 /*yield*/, _c.call(models_2)]; case 26: _e.sent(); _e.label = 27; case 27: return [3 /*break*/, 29]; case 28: if (e_10) throw e_10.error; return [7 /*endfinally*/]; case 29: return [7 /*endfinally*/]; case 30: return [3 /*break*/, 33]; case 31: // Intentionally blank return [3 /*break*/, 33]; case 32: Object(_util__WEBPACK_IMPORTED_MODULE_4__["exhaustiveCheck"])(relationType); return [3 /*break*/, 33]; case 33: return [3 /*break*/, 1]; case 34: return [3 /*break*/, 41]; case 35: e_8_1 = _e.sent(); e_8 = { error: e_8_1 }; return [3 /*break*/, 41]; case 36: _e.trys.push([36, , 39, 40]); if (!(relations_2_1 && !relations_2_1.done && (_a = relations_2.return))) return [3 /*break*/, 38]; return [4 /*yield*/, _a.call(relations_2)]; case 37: _e.sent(); _e.label = 38; case 38: return [3 /*break*/, 40]; case 39: if (e_8) throw e_8.error; return [7 /*endfinally*/]; case 40: return [7 /*endfinally*/]; case 41: deleteQueue.push({ storeName: this.getStorename(nameSpace, srcModel), items: models.map(function (record) { return _this.modelInstanceCreator(_this.getModelConstructorByModelName(nameSpace, srcModel), record); }), }); return [2 /*return*/]; } }); }); }; IndexedDBAdapter.prototype.clear = function () { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.checkPrivate()]; case 1: _a.sent(); this.db.close(); return [4 /*yield*/, idb__WEBPACK_IMPORTED_MODULE_1__["deleteDB"](DB_NAME)]; case 2: _a.sent(); this.db = undefined; this.initPromise = undefined; return [2 /*return*/]; } }); }); }; IndexedDBAdapter.prototype.batchSave = function (modelConstructor, items) { return __awaiter(this, void 0, void 0, function () { var result, storeName, txn, store, _loop_1, this_1, items_2, items_2_1, item, e_11_1; var e_11, _a; return __generator(this, function (_b) { switch (_b.label) { case 0: if (items.length === 0) { return [2 /*return*/, []]; } return [4 /*yield*/, this.checkPrivate()]; case 1: _b.sent(); result = []; storeName = this.getStorenameForModel(modelConstructor); txn = this.db.transaction(storeName, 'readwrite'); store = txn.store; _loop_1 = function (item) { var connectedModels, id, _deleted, index, key, instance; return __generator(this, function (_a) { switch (_a.label) { case 0: connectedModels = Object(_util__WEBPACK_IMPORTED_MODULE_4__["traverseModel"])(modelConstructor.name, this_1.modelInstanceCreator(modelConstructor, item), this_1.schema.namespaces[this_1.namespaceResolver(modelConstructor)], this_1.modelInstanceCreator, this_1.getModelConstructorByModelName); id = item.id, _deleted = item._deleted; index = store.index('byId'); return [4 /*yield*/, index.getKey(id)]; case 1: key = _a.sent(); if (!!_deleted) return [3 /*break*/, 3]; instance = connectedModels.find(function (_a) { var instance = _a.instance; return instance.id === id; }).instance; result.push([ instance, key ? _types__WEBPACK_IMPORTED_MODULE_3__["OpType"].UPDATE : _types__WEBPACK_IMPORTED_MODULE_3__["OpType"].INSERT, ]); return [4 /*yield*/, store.put(instance, key)]; case 2: _a.sent(); return [3 /*break*/, 5]; case 3: result.push([item, _types__WEBPACK_IMPORTED_MODULE_3__["OpType"].DELETE]); if (!key) return [3 /*break*/, 5]; return [4 /*yield*/, store.delete(key)]; case 4: _a.sent(); _a.label = 5; case 5: return [2 /*return*/]; } }); }; this_1 = this; _b.label = 2; case 2: _b.trys.push([2, 7, 8, 9]); items_2 = __values(items), items_2_1 = items_2.next(); _b.label = 3; case 3: if (!!items_2_1.done) return [3 /*break*/, 6]; item = items_2_1.value; return [5 /*yield**/, _loop_1(item)]; case 4: _b.sent(); _b.label = 5; case 5: items_2_1 = items_2.next(); return [3 /*break*/, 3]; case 6: return [3 /*break*/, 9]; case 7: e_11_1 = _b.sent(); e_11 = { error: e_11_1 }; return [3 /*break*/, 9]; case 8: try { if (items_2_1 && !items_2_1.done && (_a = items_2.return)) _a.call(items_2); } finally { if (e_11) throw e_11.error; } return [7 /*endfinally*/]; case 9: return [4 /*yield*/, txn.done]; case 10: _b.sent(); return [2 /*return*/, result]; } }); }); }; return IndexedDBAdapter; }()); /* harmony default export */ __webpack_exports__["default"] = (new IndexedDBAdapter()); //# sourceMappingURL=indexeddb.js.map /***/ }), /***/ "9K5O": /*!***************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/Hub.js ***! \***************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); var Logger_1 = __webpack_require__(/*! ./Logger */ "t5A6"); var logger = new Logger_1.ConsoleLogger('Hub'); var AMPLIFY_SYMBOL = (typeof Symbol !== 'undefined' && typeof Symbol.for === 'function' ? Symbol.for('amplify_default') : '@@amplify_default'); function isLegacyCallback(callback) { return callback.onHubCapsule !== undefined; } var HubClass = /** @class */ (function () { function HubClass(name) { this.listeners = []; this.patterns = []; this.protectedChannels = [ 'core', 'auth', 'api', 'analytics', 'interactions', 'pubsub', 'storage', 'xr', ]; this.name = name; } // Note - Need to pass channel as a reference for removal to work and not anonymous function HubClass.prototype.remove = function (channel, listener) { if (channel instanceof RegExp) { var pattern_1 = this.patterns.find(function (_a) { var pattern = _a.pattern; return pattern.source === channel.source; }); if (!pattern_1) { logger.warn("No listeners for " + channel); return; } this.patterns = __spread(this.patterns.filter(function (x) { return x !== pattern_1; })); } else { var holder = this.listeners[channel]; if (!holder) { logger.warn("No listeners for " + channel); return; } this.listeners[channel] = __spread(holder.filter(function (_a) { var callback = _a.callback; return callback !== listener; })); } }; HubClass.prototype.dispatch = function (channel, payload, source, ampSymbol) { if (source === void 0) { source = ''; } if (this.protectedChannels.indexOf(channel) > -1) { var hasAccess = ampSymbol === AMPLIFY_SYMBOL; if (!hasAccess) { logger.warn("WARNING: " + channel + " is protected and dispatching on it can have unintended consequences"); } } var capsule = { channel: channel, payload: __assign({}, payload), source: source, patternInfo: [], }; try { this._toListeners(capsule); } catch (e) { logger.error(e); } }; HubClass.prototype.listen = function (channel, callback, listenerName) { var _this = this; if (listenerName === void 0) { listenerName = 'noname'; } var cb; // Check for legacy onHubCapsule callback for backwards compatability if (isLegacyCallback(callback)) { logger.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."); cb = callback.onHubCapsule.bind(callback); } else if (typeof callback !== 'function') { throw new Error('No callback supplied to Hub'); } else { cb = callback; } if (channel instanceof RegExp) { this.patterns.push({ pattern: channel, callback: cb, }); } else { var holder = this.listeners[channel]; if (!holder) { holder = []; this.listeners[channel] = holder; } holder.push({ name: listenerName, callback: cb, }); } return function () { _this.remove(channel, cb); }; }; HubClass.prototype._toListeners = function (capsule) { var channel = capsule.channel, payload = capsule.payload; var holder = this.listeners[channel]; if (holder) { holder.forEach(function (listener) { logger.debug("Dispatching to " + channel + " with ", payload); try { listener.callback(capsule); } catch (e) { logger.error(e); } }); } if (this.patterns.length > 0) { if (!payload.message) { logger.warn("Cannot perform pattern matching without a message key"); return; } var payloadStr_1 = payload.message; this.patterns.forEach(function (pattern) { var match = payloadStr_1.match(pattern.pattern); if (match) { var _a = __read(match), groups = _a.slice(1); var dispatchingCapsule = __assign(__assign({}, capsule), { patternInfo: groups }); try { pattern.callback(dispatchingCapsule); } catch (e) { logger.error(e); } } }); } }; return HubClass; }()); exports.HubClass = HubClass; /*We export a __default__ instance of HubClass to use it as a psuedo Singleton for the main messaging bus, however you can still create your own instance of HubClass() for a separate "private bus" of events.*/ exports.Hub = new HubClass('__default__'); /** * @deprecated use named import */ exports.default = exports.Hub; //# sourceMappingURL=Hub.js.map /***/ }), /***/ "9M8c": /*!**********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/bufferCount.js ***! \**********************************************************************/ /*! exports provided: bufferCount */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bufferCount", function() { return bufferCount; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); function bufferCount(bufferSize, startBufferEvery = null) { return function bufferCountOperatorFunction(source) { return source.lift(new BufferCountOperator(bufferSize, startBufferEvery)); }; } class BufferCountOperator { constructor(bufferSize, startBufferEvery) { this.bufferSize = bufferSize; this.startBufferEvery = startBufferEvery; if (!startBufferEvery || bufferSize === startBufferEvery) { this.subscriberClass = BufferCountSubscriber; } else { this.subscriberClass = BufferSkipCountSubscriber; } } call(subscriber, source) { return source.subscribe(new this.subscriberClass(subscriber, this.bufferSize, this.startBufferEvery)); } } class BufferCountSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, bufferSize) { super(destination); this.bufferSize = bufferSize; this.buffer = []; } _next(value) { const buffer = this.buffer; buffer.push(value); if (buffer.length == this.bufferSize) { this.destination.next(buffer); this.buffer = []; } } _complete() { const buffer = this.buffer; if (buffer.length > 0) { this.destination.next(buffer); } super._complete(); } } class BufferSkipCountSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, bufferSize, startBufferEvery) { super(destination); this.bufferSize = bufferSize; this.startBufferEvery = startBufferEvery; this.buffers = []; this.count = 0; } _next(value) { const { bufferSize, startBufferEvery, buffers, count } = this; this.count++; if (count % startBufferEvery === 0) { buffers.push([]); } for (let i = buffers.length; i--;) { const buffer = buffers[i]; buffer.push(value); if (buffer.length === bufferSize) { buffers.splice(i, 1); this.destination.next(buffer); } } } _complete() { const { buffers, destination } = this; while (buffers.length > 0) { let buffer = buffers.shift(); if (buffer.length > 0) { destination.next(buffer); } } super._complete(); } } //# sourceMappingURL=bufferCount.js.map /***/ }), /***/ "9Nap": /*!***************************************!*\ !*** ./node_modules/lodash/_toKey.js ***! \***************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isSymbol = __webpack_require__(/*! ./isSymbol */ "/9aa"); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** * Converts `value` to a string key if it's not a string or symbol. * * @private * @param {*} value The value to inspect. * @returns {string|symbol} Returns the key. */ function toKey(value) { if (typeof value == 'string' || isSymbol(value)) { return value; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = toKey; /***/ }), /***/ "9ONQ": /*!****************************************************!*\ !*** ./node_modules/universal-cookie/es6/index.js ***! \****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Cookies__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Cookies */ "lgps"); /* harmony default export */ __webpack_exports__["default"] = (_Cookies__WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }), /***/ "9ggG": /*!***************************************!*\ !*** ./node_modules/lodash/_isKey.js ***! \***************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__(/*! ./isArray */ "Z0cm"), isSymbol = __webpack_require__(/*! ./isSymbol */ "/9aa"); /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; /** * Checks if `value` is a property name and not a property path. * * @private * @param {*} value The value to check. * @param {Object} [object] The object to query keys on. * @returns {boolean} Returns `true` if `value` is a property name, else `false`. */ function isKey(value, object) { if (isArray(value)) { return false; } var type = typeof value; if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) { return true; } return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || (object != null && value in Object(object)); } module.exports = isKey; /***/ }), /***/ "9ihq": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/elementAt.js ***! \********************************************************************/ /*! exports provided: elementAt */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elementAt", function() { return elementAt; }); /* harmony import */ var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/ArgumentOutOfRangeError */ "4I5i"); /* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./filter */ "pLZG"); /* harmony import */ var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./throwIfEmpty */ "XDbj"); /* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./defaultIfEmpty */ "xbPD"); /* harmony import */ var _take__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./take */ "IzEk"); function elementAt(index, defaultValue) { if (index < 0) { throw new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_0__["ArgumentOutOfRangeError"](); } const hasDefaultValue = arguments.length >= 2; return (source) => source.pipe(Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])((v, i) => i === index), Object(_take__WEBPACK_IMPORTED_MODULE_4__["take"])(1), hasDefaultValue ? Object(_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__["defaultIfEmpty"])(defaultValue) : Object(_throwIfEmpty__WEBPACK_IMPORTED_MODULE_2__["throwIfEmpty"])(() => new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_0__["ArgumentOutOfRangeError"]())); } //# sourceMappingURL=elementAt.js.map /***/ }), /***/ "9mpf": /*!******************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/Util/DateUtils.js ***! \******************************************************************/ /*! exports provided: DateUtils */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DateUtils", function() { return DateUtils; }); /** * Date & time utility functions to abstract the `aws-sdk` away from users. * (v2 => v3 modularization is a breaking change) * * @see https://github.com/aws/aws-sdk-js/blob/6edf586dcc1de7fe8fbfbbd9a0d2b1847921e6e1/lib/util.js#L262 */ var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var FIVE_MINUTES_IN_MS = 1000 * 60 * 5; var DateUtils = { /** * Milliseconds to offset the date to compensate for clock skew between device & services */ clockOffset: 0, getDateWithClockOffset: function () { if (DateUtils.clockOffset) { return new Date(new Date().getTime() + DateUtils.clockOffset); } else { return new Date(); } }, /** * @returns {number} Clock offset in milliseconds */ getClockOffset: function () { return DateUtils.clockOffset; }, getHeaderStringFromDate: function (date) { if (date === void 0) { date = DateUtils.getDateWithClockOffset(); } return date.toISOString().replace(/[:\-]|\.\d{3}/g, ''); }, getDateFromHeaderString: function (header) { var _a = __read(header.match(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2}).+/), 7), year = _a[1], month = _a[2], day = _a[3], hour = _a[4], minute = _a[5], second = _a[6]; return new Date(Date.UTC(Number(year), Number(month) - 1, Number(day), Number(hour), Number(minute), Number(second))); }, isClockSkewed: function (serverDate) { // API gateway permits client calls that are off by no more than ±5 minutes return (Math.abs(serverDate.getTime() - DateUtils.getDateWithClockOffset().getTime()) >= FIVE_MINUTES_IN_MS); }, isClockSkewError: function (error) { if (!error.response || !error.response.headers) { return false; } var headers = error.response.headers; return Boolean(headers['x-amzn-errortype'] === 'BadRequestException' && (headers.date || headers.Date)); }, /** * @param {number} offset Clock offset in milliseconds */ setClockOffset: function (offset) { DateUtils.clockOffset = offset; }, }; //# sourceMappingURL=DateUtils.js.map /***/ }), /***/ "9niX": /*!*********************************************************************!*\ !*** ./node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri.js ***! \*********************************************************************/ /*! exports provided: escapeUri */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeUri", function() { return escapeUri; }); function escapeUri(uri) { var output = encodeURIComponent(uri); // AWS percent-encodes some extra non-standard characters in a URI output = output.replace(/[!'()*]/g, hexEncode); return output; } function hexEncode(c) { return "%" + c.charCodeAt(0).toString(16).toUpperCase(); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNjYXBlLXVyaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lc2NhcGUtdXJpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sVUFBVSxTQUFTLENBQUMsR0FBVztJQUNuQyxJQUFJLE1BQU0sR0FBRyxrQkFBa0IsQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUVyQyxrRUFBa0U7SUFDbEUsTUFBTSxHQUFHLE1BQU0sQ0FBQyxPQUFPLENBQUMsVUFBVSxFQUFFLFNBQVMsQ0FBQyxDQUFDO0lBRS9DLE9BQU8sTUFBTSxDQUFDO0FBQ2hCLENBQUM7QUFFRCxTQUFTLFNBQVMsQ0FBQyxDQUFTO0lBQzFCLE9BQU8sTUFBSSxDQUFDLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxFQUFFLENBQUMsQ0FBQyxXQUFXLEVBQUksQ0FBQztBQUMxRCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGVzY2FwZVVyaSh1cmk6IHN0cmluZyk6IHN0cmluZyB7XG4gIGxldCBvdXRwdXQgPSBlbmNvZGVVUklDb21wb25lbnQodXJpKTtcblxuICAvLyBBV1MgcGVyY2VudC1lbmNvZGVzIHNvbWUgZXh0cmEgbm9uLXN0YW5kYXJkIGNoYXJhY3RlcnMgaW4gYSBVUklcbiAgb3V0cHV0ID0gb3V0cHV0LnJlcGxhY2UoL1shJygpKl0vZywgaGV4RW5jb2RlKTtcblxuICByZXR1cm4gb3V0cHV0O1xufVxuXG5mdW5jdGlvbiBoZXhFbmNvZGUoYzogc3RyaW5nKSB7XG4gIHJldHVybiBgJSR7Yy5jaGFyQ29kZUF0KDApLnRvU3RyaW5nKDE2KS50b1VwcGVyQ2FzZSgpfWA7XG59XG4iXX0= /***/ }), /***/ "9ppp": /*!*****************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/ObjectUnsubscribedError.js ***! \*****************************************************************************/ /*! exports provided: ObjectUnsubscribedError */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ObjectUnsubscribedError", function() { return ObjectUnsubscribedError; }); const ObjectUnsubscribedErrorImpl = (() => { function ObjectUnsubscribedErrorImpl() { Error.call(this); this.message = 'object unsubscribed'; this.name = 'ObjectUnsubscribedError'; return this; } ObjectUnsubscribedErrorImpl.prototype = Object.create(Error.prototype); return ObjectUnsubscribedErrorImpl; })(); const ObjectUnsubscribedError = ObjectUnsubscribedErrorImpl; //# sourceMappingURL=ObjectUnsubscribedError.js.map /***/ }), /***/ "9rSQ": /*!***********************************************************!*\ !*** ./node_modules/axios/lib/core/InterceptorManager.js ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./../utils */ "xTJ+"); function InterceptorManager() { this.handlers = []; } /** * Add a new interceptor to the stack * * @param {Function} fulfilled The function to handle `then` for a `Promise` * @param {Function} rejected The function to handle `reject` for a `Promise` * * @return {Number} An ID used to remove interceptor later */ InterceptorManager.prototype.use = function use(fulfilled, rejected) { this.handlers.push({ fulfilled: fulfilled, rejected: rejected }); return this.handlers.length - 1; }; /** * Remove an interceptor from the stack * * @param {Number} id The ID that was returned by `use` */ InterceptorManager.prototype.eject = function eject(id) { if (this.handlers[id]) { this.handlers[id] = null; } }; /** * Iterate over all the registered interceptors * * This method is particularly useful for skipping over any * interceptors that may have become `null` calling `eject`. * * @param {Function} fn The function to call for each interceptor */ InterceptorManager.prototype.forEach = function forEach(fn) { utils.forEach(this.handlers, function forEachHandler(h) { if (h !== null) { fn(h); } }); }; module.exports = InterceptorManager; /***/ }), /***/ "9tu1": /*!********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/pagination/ListTopicsDetectionJobsPaginator.js ***! \********************************************************************************************************/ /*! exports provided: listTopicsDetectionJobsPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "listTopicsDetectionJobsPaginate", function() { return listTopicsDetectionJobsPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Comprehend__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Comprehend */ "KcXj"); /* harmony import */ var _ComprehendClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ComprehendClient */ "8JFw"); /* harmony import */ var _commands_ListTopicsDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/ListTopicsDetectionJobsCommand */ "hsFU"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_ListTopicsDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_3__["ListTopicsDetectionJobsCommand"].bind.apply(_commands_ListTopicsDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_3__["ListTopicsDetectionJobsCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.listTopicsDetectionJobs.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function listTopicsDetectionJobsPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function listTopicsDetectionJobsPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Comprehend__WEBPACK_IMPORTED_MODULE_1__["Comprehend"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _ComprehendClient__WEBPACK_IMPORTED_MODULE_2__["ComprehendClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Comprehend | ComprehendClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=ListTopicsDetectionJobsPaginator.js.map /***/ }), /***/ "9xv2": /*!***************************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-logger/dist/es/configurations.js ***! \***************************************************************************/ /*! exports provided: resolveLoggerConfig */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveLoggerConfig", function() { return resolveLoggerConfig; }); var resolveLoggerConfig = function (input) { return input; }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29uZmlndXJhdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWUEsTUFBTSxDQUFDLElBQU0sbUJBQW1CLEdBQUcsVUFBSSxLQUFpRDtJQUN0RixPQUFBLEtBQUs7QUFBTCxDQUFLLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBMb2dnZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuZXhwb3J0IGludGVyZmFjZSBMb2dnZXJJbnB1dENvbmZpZyB7XG4gIGxvZ2dlcj86IExvZ2dlcjtcbn1cblxuaW50ZXJmYWNlIFByZXZpb3VzbHlSZXNvbHZlZCB7fVxuXG5leHBvcnQgaW50ZXJmYWNlIExvZ2dlclJlc29sdmVkQ29uZmlnIHtcbiAgbG9nZ2VyPzogTG9nZ2VyO1xufVxuXG5leHBvcnQgY29uc3QgcmVzb2x2ZUxvZ2dlckNvbmZpZyA9IDxUPihpbnB1dDogVCAmIFByZXZpb3VzbHlSZXNvbHZlZCAmIExvZ2dlcklucHV0Q29uZmlnKTogVCAmIExvZ2dlclJlc29sdmVkQ29uZmlnID0+XG4gIGlucHV0O1xuIl19 /***/ }), /***/ "A1a1": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetGcmChannelCommand.js ***! \****************************************************************************************/ /*! exports provided: GetGcmChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelCommand", function() { return GetGcmChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetGcmChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetGcmChannelCommand, _super); // Start section: command_properties // End section: command_properties function GetGcmChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetGcmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetGcmChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetGcmChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetGcmChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetGcmChannelCommand"])(input, context); }; GetGcmChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetGcmChannelCommand"])(output, context); }; return GetGcmChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetGcmChannelCommand.js.map /***/ }), /***/ "A3iJ": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/partition.js ***! \********************************************************************/ /*! exports provided: partition */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "partition", function() { return partition; }); /* harmony import */ var _util_not__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/not */ "F97/"); /* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./filter */ "pLZG"); function partition(predicate, thisArg) { return (source) => [ Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])(predicate, thisArg)(source), Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])(Object(_util_not__WEBPACK_IMPORTED_MODULE_0__["not"])(predicate, thisArg))(source) ]; } //# sourceMappingURL=partition.js.map /***/ }), /***/ "A40W": /*!******************************************************************!*\ !*** ./node_modules/@aws-amplify/api-rest/lib-esm/RestClient.js ***! \******************************************************************/ /*! exports provided: RestClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestClient", function() { return RestClient; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ "vDqi"); /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! url */ "CxY0"); /* harmony import */ var url__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_2__); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __rest = (undefined && undefined.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('RestClient'); /** * HTTP Client for REST requests. Send and receive JSON data. * Sign request with AWS credentials if available * Usage:
const restClient = new RestClient();
restClient.get('...')
    .then(function(data) {
        console.log(data);
    })
    .catch(err => console.log(err));
*/ var RestClient = /** @class */ (function () { /** * @param {RestClientOptions} [options] - Instance options */ function RestClient(options) { this._region = 'us-east-1'; // this will be updated by endpoint function this._service = 'execute-api'; // this can be updated by endpoint function this._custom_header = undefined; // this can be updated by endpoint function /** * This weak map provides functionality to let clients cancel * in-flight axios requests. https://github.com/axios/axios#cancellation * * 1. For every axios request, a unique cancel token is generated and added in the request. * 2. Promise for fulfilling the request is then mapped to that unique cancel token. * 3. The promise is returned to the client. * 4. Clients can either wait for the promise to fulfill or call `API.cancel(promise)` to cancel the request. * 5. If `API.cancel(promise)` is called, then the corresponding cancel token is retrieved from the map below. * 6. Promise returned to the client will be in rejected state with the error provided during cancel. * 7. Clients can check if the error is because of cancelling by calling `API.isCancel(error)`. * * For more details, see https://github.com/aws-amplify/amplify-js/pull/3769#issuecomment-552660025 */ this._cancelTokenMap = null; this.Credentials = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"]; this._options = options; logger.debug('API Options', this._options); if (this._cancelTokenMap == null) { this._cancelTokenMap = new WeakMap(); } } /** * Update AWS credentials * @param {AWSCredentials} credentials - AWS credentials * updateCredentials(credentials: AWSCredentials) { this.options.credentials = credentials; } */ /** * Basic HTTP request. Customizable * @param {string | ApiInfo } urlOrApiInfo - Full request URL or Api information * @param {string} method - Request HTTP method * @param {json} [init] - Request extra params * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful. */ RestClient.prototype.ajax = function (urlOrApiInfo, method, init) { return __awaiter(this, void 0, void 0, function () { var parsed_url, url, region, service, custom_header, params, libraryHeaders, userAgent, initParams, isAllResponse, custom_header_obj, _a, _b, search, parsedUrl; var _this = this; return __generator(this, function (_c) { switch (_c.label) { case 0: logger.debug(method, urlOrApiInfo); region = 'us-east-1'; service = 'execute-api'; custom_header = undefined; if (typeof urlOrApiInfo === 'string') { parsed_url = this._parseUrl(urlOrApiInfo); url = urlOrApiInfo; } else { (url = urlOrApiInfo.endpoint, custom_header = urlOrApiInfo.custom_header, region = urlOrApiInfo.region, service = urlOrApiInfo.service); parsed_url = this._parseUrl(urlOrApiInfo.endpoint); } params = { method: method, url: url, host: parsed_url.host, path: parsed_url.path, headers: {}, data: null, responseType: 'json', timeout: 0, cancelToken: null, }; libraryHeaders = {}; if (_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Platform"].isReactNative) { userAgent = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Platform"].userAgent || 'aws-amplify/0.1.x'; libraryHeaders = { 'User-Agent': userAgent, }; } initParams = Object.assign({}, init); isAllResponse = initParams.response; if (initParams.body) { libraryHeaders['Content-Type'] = 'application/json; charset=UTF-8'; params.data = JSON.stringify(initParams.body); } if (initParams.responseType) { params.responseType = initParams.responseType; } if (initParams.withCredentials) { params['withCredentials'] = initParams.withCredentials; } if (initParams.timeout) { params.timeout = initParams.timeout; } if (initParams.cancellableToken) { params.cancelToken = initParams.cancellableToken.token; } params['signerServiceInfo'] = initParams.signerServiceInfo; if (!(typeof custom_header === 'function')) return [3 /*break*/, 2]; return [4 /*yield*/, custom_header()]; case 1: _a = _c.sent(); return [3 /*break*/, 3]; case 2: _a = undefined; _c.label = 3; case 3: custom_header_obj = _a; params.headers = __assign(__assign(__assign({}, libraryHeaders), custom_header_obj), initParams.headers); _b = Object(url__WEBPACK_IMPORTED_MODULE_2__["parse"])(url, true, true), search = _b.search, parsedUrl = __rest(_b, ["search"]); params.url = Object(url__WEBPACK_IMPORTED_MODULE_2__["format"])(__assign(__assign({}, parsedUrl), { query: __assign(__assign({}, parsedUrl.query), (initParams.queryStringParameters || {})) })); // Do not sign the request if client has added 'Authorization' header, // which means custom authorizer. if (typeof params.headers['Authorization'] !== 'undefined') { params.headers = Object.keys(params.headers).reduce(function (acc, k) { if (params.headers[k]) { acc[k] = params.headers[k]; } return acc; // tslint:disable-next-line:align }, {}); return [2 /*return*/, this._request(params, isAllResponse)]; } // Signing the request in case there credentials are available return [2 /*return*/, this.Credentials.get().then(function (credentials) { return _this._signed(__assign({}, params), credentials, isAllResponse, { region: region, service: service, }).catch(function (error) { if (_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["DateUtils"].isClockSkewError(error)) { var headers = error.response.headers; var dateHeader = headers && (headers.date || headers.Date); var responseDate = new Date(dateHeader); var requestDate = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["DateUtils"].getDateFromHeaderString(params.headers['x-amz-date']); if (_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["DateUtils"].isClockSkewed(requestDate, responseDate)) { _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["DateUtils"].setClockOffset(responseDate.getTime() - requestDate.getTime()); return _this.ajax(urlOrApiInfo, method, init); } } throw error; }); }, function (err) { logger.debug('No credentials available, the request will be unsigned'); return _this._request(params, isAllResponse); })]; } }); }); }; /** * GET HTTP request * @param {string | ApiInfo } urlOrApiInfo - Full request URL or Api information * @param {JSON} init - Request extra params * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful. */ RestClient.prototype.get = function (urlOrApiInfo, init) { return this.ajax(urlOrApiInfo, 'GET', init); }; /** * PUT HTTP request * @param {string | ApiInfo } urlOrApiInfo - Full request URL or Api information * @param {json} init - Request extra params * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful. */ RestClient.prototype.put = function (urlOrApiInfo, init) { return this.ajax(urlOrApiInfo, 'PUT', init); }; /** * PATCH HTTP request * @param {string | ApiInfo } urlOrApiInfo - Full request URL or Api information * @param {json} init - Request extra params * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful. */ RestClient.prototype.patch = function (urlOrApiInfo, init) { return this.ajax(urlOrApiInfo, 'PATCH', init); }; /** * POST HTTP request * @param {string | ApiInfo } urlOrApiInfo - Full request URL or Api information * @param {json} init - Request extra params * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful. */ RestClient.prototype.post = function (urlOrApiInfo, init) { return this.ajax(urlOrApiInfo, 'POST', init); }; /** * DELETE HTTP request * @param {string | ApiInfo } urlOrApiInfo - Full request URL or Api information * @param {json} init - Request extra params * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful. */ RestClient.prototype.del = function (urlOrApiInfo, init) { return this.ajax(urlOrApiInfo, 'DELETE', init); }; /** * HEAD HTTP request * @param {string | ApiInfo } urlOrApiInfo - Full request URL or Api information * @param {json} init - Request extra params * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful. */ RestClient.prototype.head = function (urlOrApiInfo, init) { return this.ajax(urlOrApiInfo, 'HEAD', init); }; /** * Cancel an inflight API request * @param {Promise} request - The request promise to cancel * @param {string} [message] - A message to include in the cancelation exception */ RestClient.prototype.cancel = function (request, message) { var source = this._cancelTokenMap.get(request); if (source) { source.cancel(message); } return true; }; /** * Checks to see if an error thrown is from an api request cancellation * @param {any} error - Any error * @return {boolean} - A boolean indicating if the error was from an api request cancellation */ RestClient.prototype.isCancel = function (error) { return axios__WEBPACK_IMPORTED_MODULE_1___default.a.isCancel(error); }; /** * Retrieves a new and unique cancel token which can be * provided in an axios request to be cancelled later. */ RestClient.prototype.getCancellableToken = function () { return axios__WEBPACK_IMPORTED_MODULE_1___default.a.CancelToken.source(); }; /** * Updates the weakmap with a response promise and its * cancel token such that the cancel token can be easily * retrieved (and used for cancelling the request) */ RestClient.prototype.updateRequestToBeCancellable = function (promise, cancelTokenSource) { this._cancelTokenMap.set(promise, cancelTokenSource); }; /** * Getting endpoint for API * @param {string} apiName - The name of the api * @return {string} - The endpoint of the api */ RestClient.prototype.endpoint = function (apiName) { var _this = this; var cloud_logic_array = this._options.endpoints; var response = ''; if (!Array.isArray(cloud_logic_array)) { return response; } cloud_logic_array.forEach(function (v) { if (v.name === apiName) { response = v.endpoint; if (typeof v.region === 'string') { _this._region = v.region; } else if (typeof _this._options.region === 'string') { _this._region = _this._options.region; } if (typeof v.service === 'string') { _this._service = v.service || 'execute-api'; } else { _this._service = 'execute-api'; } if (typeof v.custom_header === 'function') { _this._custom_header = v.custom_header; } else { _this._custom_header = undefined; } } }); return response; }; /** private methods **/ RestClient.prototype._signed = function (params, credentials, isAllResponse, _a) { var service = _a.service, region = _a.region; var signerServiceInfoParams = params.signerServiceInfo, otherParams = __rest(params, ["signerServiceInfo"]); var endpoint_region = region || this._region || this._options.region; var endpoint_service = service || this._service || this._options.service; var creds = { secret_key: credentials.secretAccessKey, access_key: credentials.accessKeyId, session_token: credentials.sessionToken, }; var endpointInfo = { region: endpoint_region, service: endpoint_service, }; var signerServiceInfo = Object.assign(endpointInfo, signerServiceInfoParams); var signed_params = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Signer"].sign(otherParams, creds, signerServiceInfo); if (signed_params.data) { signed_params.body = signed_params.data; } logger.debug('Signed Request: ', signed_params); delete signed_params.headers['host']; return axios__WEBPACK_IMPORTED_MODULE_1___default()(signed_params) .then(function (response) { return (isAllResponse ? response : response.data); }) .catch(function (error) { logger.debug(error); throw error; }); }; RestClient.prototype._request = function (params, isAllResponse) { if (isAllResponse === void 0) { isAllResponse = false; } return axios__WEBPACK_IMPORTED_MODULE_1___default()(params) .then(function (response) { return (isAllResponse ? response : response.data); }) .catch(function (error) { logger.debug(error); throw error; }); }; RestClient.prototype._parseUrl = function (url) { var parts = url.split('/'); return { host: parts[2], path: '/' + parts.slice(3).join('/'), }; }; return RestClient; }()); //# sourceMappingURL=RestClient.js.map /***/ }), /***/ "A67W": /*!*********************************************************************!*\ !*** ./node_modules/graphql/validation/rules/NoUnusedVariables.mjs ***! \*********************************************************************/ /*! exports provided: unusedVariableMessage, NoUnusedVariables */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unusedVariableMessage", function() { return unusedVariableMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NoUnusedVariables", function() { return NoUnusedVariables; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function unusedVariableMessage(varName, opName) { return opName ? "Variable \"$".concat(varName, "\" is never used in operation \"").concat(opName, "\".") : "Variable \"$".concat(varName, "\" is never used."); } /** * No unused variables * * A GraphQL operation is only valid if all variables defined by an operation * are used, either directly or within a spread fragment. */ function NoUnusedVariables(context) { var variableDefs = []; return { OperationDefinition: { enter: function enter() { variableDefs = []; }, leave: function leave(operation) { var variableNameUsed = Object.create(null); var usages = context.getRecursiveVariableUsages(operation); var opName = operation.name ? operation.name.value : null; var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = usages[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var _ref2 = _step.value; var node = _ref2.node; variableNameUsed[node.name.value] = true; } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } for (var _i = 0; _i < variableDefs.length; _i++) { var variableDef = variableDefs[_i]; var variableName = variableDef.variable.name.value; if (variableNameUsed[variableName] !== true) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](unusedVariableMessage(variableName, opName), [variableDef])); } } } }, VariableDefinition: function VariableDefinition(def) { variableDefs.push(def); } }; } /***/ }), /***/ "A90E": /*!******************************************!*\ !*** ./node_modules/lodash/_baseKeys.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isPrototype = __webpack_require__(/*! ./_isPrototype */ "6sVZ"), nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "V6Ve"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeys(object) { if (!isPrototype(object)) { return nativeKeys(object); } var result = []; for (var key in Object(object)) { if (hasOwnProperty.call(object, key) && key != 'constructor') { result.push(key); } } return result; } module.exports = baseKeys; /***/ }), /***/ "ABJ/": /*!**********************************************!*\ !*** ./node_modules/zen-observable/index.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! ./lib/Observable.js */ "p7JZ").Observable; /***/ }), /***/ "ADFt": /*!****************************************************************!*\ !*** ./node_modules/graphql/utilities/valueFromASTUntyped.mjs ***! \****************************************************************/ /*! exports provided: valueFromASTUntyped */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "valueFromASTUntyped", function() { return valueFromASTUntyped; }); /* harmony import */ var _jsutils_keyValMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/keyValMap */ "WXJZ"); /* harmony import */ var _jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/isInvalid */ "/kEc"); /* harmony import */ var _language_kinds__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../language/kinds */ "/jXB"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Produces a JavaScript value given a GraphQL Value AST. * * Unlike `valueFromAST()`, no type is provided. The resulting JavaScript value * will reflect the provided GraphQL value AST. * * | GraphQL Value | JavaScript Value | * | -------------------- | ---------------- | * | Input Object | Object | * | List | Array | * | Boolean | Boolean | * | String / Enum | String | * | Int / Float | Number | * | Null | null | * */ function valueFromASTUntyped(valueNode, variables) { switch (valueNode.kind) { case _language_kinds__WEBPACK_IMPORTED_MODULE_2__["Kind"].NULL: return null; case _language_kinds__WEBPACK_IMPORTED_MODULE_2__["Kind"].INT: return parseInt(valueNode.value, 10); case _language_kinds__WEBPACK_IMPORTED_MODULE_2__["Kind"].FLOAT: return parseFloat(valueNode.value); case _language_kinds__WEBPACK_IMPORTED_MODULE_2__["Kind"].STRING: case _language_kinds__WEBPACK_IMPORTED_MODULE_2__["Kind"].ENUM: case _language_kinds__WEBPACK_IMPORTED_MODULE_2__["Kind"].BOOLEAN: return valueNode.value; case _language_kinds__WEBPACK_IMPORTED_MODULE_2__["Kind"].LIST: return valueNode.values.map(function (node) { return valueFromASTUntyped(node, variables); }); case _language_kinds__WEBPACK_IMPORTED_MODULE_2__["Kind"].OBJECT: return Object(_jsutils_keyValMap__WEBPACK_IMPORTED_MODULE_0__["default"])(valueNode.fields, function (field) { return field.name.value; }, function (field) { return valueFromASTUntyped(field.value, variables); }); case _language_kinds__WEBPACK_IMPORTED_MODULE_2__["Kind"].VARIABLE: var variableName = valueNode.name.value; return variables && !Object(_jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_1__["default"])(variables[variableName]) ? variables[variableName] : undefined; } /* istanbul ignore next */ throw new Error('Unexpected value kind: ' + valueNode.kind); } /***/ }), /***/ "ADrx": /*!*********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutBucketAclCommand.js ***! \*********************************************************************************/ /*! exports provided: PutBucketAclCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutBucketAclCommand", function() { return PutBucketAclCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutBucketAclCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutBucketAclCommand, _super); // Start section: command_properties // End section: command_properties function PutBucketAclCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutBucketAclCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutBucketAclRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutBucketAclCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutBucketAclCommand"])(input, context); }; PutBucketAclCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutBucketAclCommand"])(output, context); }; return PutBucketAclCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=PutBucketAclCommand.js.map /***/ }), /***/ "AF4T": /*!************************************************************************!*\ !*** ./node_modules/graphql/validation/rules/LoneSchemaDefinition.mjs ***! \************************************************************************/ /*! exports provided: schemaDefinitionNotAloneMessage, canNotDefineSchemaWithinExtensionMessage, LoneSchemaDefinition */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "schemaDefinitionNotAloneMessage", function() { return schemaDefinitionNotAloneMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "canNotDefineSchemaWithinExtensionMessage", function() { return canNotDefineSchemaWithinExtensionMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoneSchemaDefinition", function() { return LoneSchemaDefinition; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /** * Copyright (c) 2018-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function schemaDefinitionNotAloneMessage() { return 'Must provide only one schema definition.'; } function canNotDefineSchemaWithinExtensionMessage() { return 'Cannot define a new schema within a schema extension.'; } /** * Lone Schema definition * * A GraphQL document is only valid if it contains only one schema definition. */ function LoneSchemaDefinition(context) { var oldSchema = context.getSchema(); var alreadyDefined = oldSchema && (oldSchema.astNode || oldSchema.getQueryType() || oldSchema.getMutationType() || oldSchema.getSubscriptionType()); var schemaDefinitionsCount = 0; return { SchemaDefinition: function SchemaDefinition(node) { if (alreadyDefined) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](canNotDefineSchemaWithinExtensionMessage(), node)); return; } if (schemaDefinitionsCount > 0) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](schemaDefinitionNotAloneMessage(), node)); } ++schemaDefinitionsCount; } }; } /***/ }), /***/ "AI+l": /*!*******************************************************!*\ !*** ./node_modules/@aws-sdk/md5-js/dist/es/index.js ***! \*******************************************************/ /*! exports provided: Md5 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Md5", function() { return Md5; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "kg8h"); /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "CsPX"); var Md5 = /** @class */ (function () { function Md5() { this.state = Uint32Array.from(_constants__WEBPACK_IMPORTED_MODULE_2__["INIT"]); this.buffer = new DataView(new ArrayBuffer(_constants__WEBPACK_IMPORTED_MODULE_2__["BLOCK_SIZE"])); this.bufferLength = 0; this.bytesHashed = 0; this.finished = false; } Md5.prototype.update = function (sourceData) { if (isEmptyData(sourceData)) { return; } else if (this.finished) { throw new Error("Attempted to update an already finished hash."); } var data = convertToBuffer(sourceData); var position = 0; var byteLength = data.byteLength; this.bytesHashed += byteLength; while (byteLength > 0) { this.buffer.setUint8(this.bufferLength++, data[position++]); byteLength--; if (this.bufferLength === _constants__WEBPACK_IMPORTED_MODULE_2__["BLOCK_SIZE"]) { this.hashBuffer(); this.bufferLength = 0; } } }; Md5.prototype.digest = function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var _a, buffer, undecoratedLength, bytesHashed, bitsHashed, i, i, out, i; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { if (!this.finished) { _a = this, buffer = _a.buffer, undecoratedLength = _a.bufferLength, bytesHashed = _a.bytesHashed; bitsHashed = bytesHashed * 8; buffer.setUint8(this.bufferLength++, 128); // Ensure the final block has enough room for the hashed length if (undecoratedLength % _constants__WEBPACK_IMPORTED_MODULE_2__["BLOCK_SIZE"] >= _constants__WEBPACK_IMPORTED_MODULE_2__["BLOCK_SIZE"] - 8) { for (i = this.bufferLength; i < _constants__WEBPACK_IMPORTED_MODULE_2__["BLOCK_SIZE"]; i++) { buffer.setUint8(i, 0); } this.hashBuffer(); this.bufferLength = 0; } for (i = this.bufferLength; i < _constants__WEBPACK_IMPORTED_MODULE_2__["BLOCK_SIZE"] - 8; i++) { buffer.setUint8(i, 0); } buffer.setUint32(_constants__WEBPACK_IMPORTED_MODULE_2__["BLOCK_SIZE"] - 8, bitsHashed >>> 0, true); buffer.setUint32(_constants__WEBPACK_IMPORTED_MODULE_2__["BLOCK_SIZE"] - 4, Math.floor(bitsHashed / 0x100000000), true); this.hashBuffer(); this.finished = true; } out = new DataView(new ArrayBuffer(_constants__WEBPACK_IMPORTED_MODULE_2__["DIGEST_LENGTH"])); for (i = 0; i < 4; i++) { out.setUint32(i * 4, this.state[i], true); } return [2 /*return*/, new Uint8Array(out.buffer, out.byteOffset, out.byteLength)]; }); }); }; Md5.prototype.hashBuffer = function () { var _a = this, buffer = _a.buffer, state = _a.state; var a = state[0], b = state[1], c = state[2], d = state[3]; a = ff(a, b, c, d, buffer.getUint32(0, true), 7, 0xd76aa478); d = ff(d, a, b, c, buffer.getUint32(4, true), 12, 0xe8c7b756); c = ff(c, d, a, b, buffer.getUint32(8, true), 17, 0x242070db); b = ff(b, c, d, a, buffer.getUint32(12, true), 22, 0xc1bdceee); a = ff(a, b, c, d, buffer.getUint32(16, true), 7, 0xf57c0faf); d = ff(d, a, b, c, buffer.getUint32(20, true), 12, 0x4787c62a); c = ff(c, d, a, b, buffer.getUint32(24, true), 17, 0xa8304613); b = ff(b, c, d, a, buffer.getUint32(28, true), 22, 0xfd469501); a = ff(a, b, c, d, buffer.getUint32(32, true), 7, 0x698098d8); d = ff(d, a, b, c, buffer.getUint32(36, true), 12, 0x8b44f7af); c = ff(c, d, a, b, buffer.getUint32(40, true), 17, 0xffff5bb1); b = ff(b, c, d, a, buffer.getUint32(44, true), 22, 0x895cd7be); a = ff(a, b, c, d, buffer.getUint32(48, true), 7, 0x6b901122); d = ff(d, a, b, c, buffer.getUint32(52, true), 12, 0xfd987193); c = ff(c, d, a, b, buffer.getUint32(56, true), 17, 0xa679438e); b = ff(b, c, d, a, buffer.getUint32(60, true), 22, 0x49b40821); a = gg(a, b, c, d, buffer.getUint32(4, true), 5, 0xf61e2562); d = gg(d, a, b, c, buffer.getUint32(24, true), 9, 0xc040b340); c = gg(c, d, a, b, buffer.getUint32(44, true), 14, 0x265e5a51); b = gg(b, c, d, a, buffer.getUint32(0, true), 20, 0xe9b6c7aa); a = gg(a, b, c, d, buffer.getUint32(20, true), 5, 0xd62f105d); d = gg(d, a, b, c, buffer.getUint32(40, true), 9, 0x02441453); c = gg(c, d, a, b, buffer.getUint32(60, true), 14, 0xd8a1e681); b = gg(b, c, d, a, buffer.getUint32(16, true), 20, 0xe7d3fbc8); a = gg(a, b, c, d, buffer.getUint32(36, true), 5, 0x21e1cde6); d = gg(d, a, b, c, buffer.getUint32(56, true), 9, 0xc33707d6); c = gg(c, d, a, b, buffer.getUint32(12, true), 14, 0xf4d50d87); b = gg(b, c, d, a, buffer.getUint32(32, true), 20, 0x455a14ed); a = gg(a, b, c, d, buffer.getUint32(52, true), 5, 0xa9e3e905); d = gg(d, a, b, c, buffer.getUint32(8, true), 9, 0xfcefa3f8); c = gg(c, d, a, b, buffer.getUint32(28, true), 14, 0x676f02d9); b = gg(b, c, d, a, buffer.getUint32(48, true), 20, 0x8d2a4c8a); a = hh(a, b, c, d, buffer.getUint32(20, true), 4, 0xfffa3942); d = hh(d, a, b, c, buffer.getUint32(32, true), 11, 0x8771f681); c = hh(c, d, a, b, buffer.getUint32(44, true), 16, 0x6d9d6122); b = hh(b, c, d, a, buffer.getUint32(56, true), 23, 0xfde5380c); a = hh(a, b, c, d, buffer.getUint32(4, true), 4, 0xa4beea44); d = hh(d, a, b, c, buffer.getUint32(16, true), 11, 0x4bdecfa9); c = hh(c, d, a, b, buffer.getUint32(28, true), 16, 0xf6bb4b60); b = hh(b, c, d, a, buffer.getUint32(40, true), 23, 0xbebfbc70); a = hh(a, b, c, d, buffer.getUint32(52, true), 4, 0x289b7ec6); d = hh(d, a, b, c, buffer.getUint32(0, true), 11, 0xeaa127fa); c = hh(c, d, a, b, buffer.getUint32(12, true), 16, 0xd4ef3085); b = hh(b, c, d, a, buffer.getUint32(24, true), 23, 0x04881d05); a = hh(a, b, c, d, buffer.getUint32(36, true), 4, 0xd9d4d039); d = hh(d, a, b, c, buffer.getUint32(48, true), 11, 0xe6db99e5); c = hh(c, d, a, b, buffer.getUint32(60, true), 16, 0x1fa27cf8); b = hh(b, c, d, a, buffer.getUint32(8, true), 23, 0xc4ac5665); a = ii(a, b, c, d, buffer.getUint32(0, true), 6, 0xf4292244); d = ii(d, a, b, c, buffer.getUint32(28, true), 10, 0x432aff97); c = ii(c, d, a, b, buffer.getUint32(56, true), 15, 0xab9423a7); b = ii(b, c, d, a, buffer.getUint32(20, true), 21, 0xfc93a039); a = ii(a, b, c, d, buffer.getUint32(48, true), 6, 0x655b59c3); d = ii(d, a, b, c, buffer.getUint32(12, true), 10, 0x8f0ccc92); c = ii(c, d, a, b, buffer.getUint32(40, true), 15, 0xffeff47d); b = ii(b, c, d, a, buffer.getUint32(4, true), 21, 0x85845dd1); a = ii(a, b, c, d, buffer.getUint32(32, true), 6, 0x6fa87e4f); d = ii(d, a, b, c, buffer.getUint32(60, true), 10, 0xfe2ce6e0); c = ii(c, d, a, b, buffer.getUint32(24, true), 15, 0xa3014314); b = ii(b, c, d, a, buffer.getUint32(52, true), 21, 0x4e0811a1); a = ii(a, b, c, d, buffer.getUint32(16, true), 6, 0xf7537e82); d = ii(d, a, b, c, buffer.getUint32(44, true), 10, 0xbd3af235); c = ii(c, d, a, b, buffer.getUint32(8, true), 15, 0x2ad7d2bb); b = ii(b, c, d, a, buffer.getUint32(36, true), 21, 0xeb86d391); state[0] = (a + state[0]) & 0xffffffff; state[1] = (b + state[1]) & 0xffffffff; state[2] = (c + state[2]) & 0xffffffff; state[3] = (d + state[3]) & 0xffffffff; }; return Md5; }()); function cmn(q, a, b, x, s, t) { a = (((a + q) & 0xffffffff) + ((x + t) & 0xffffffff)) & 0xffffffff; return (((a << s) | (a >>> (32 - s))) + b) & 0xffffffff; } function ff(a, b, c, d, x, s, t) { return cmn((b & c) | (~b & d), a, b, x, s, t); } function gg(a, b, c, d, x, s, t) { return cmn((b & d) | (c & ~d), a, b, x, s, t); } function hh(a, b, c, d, x, s, t) { return cmn(b ^ c ^ d, a, b, x, s, t); } function ii(a, b, c, d, x, s, t) { return cmn(c ^ (b | ~d), a, b, x, s, t); } function isEmptyData(data) { if (typeof data === "string") { return data.length === 0; } return data.byteLength === 0; } function convertToBuffer(data) { if (typeof data === "string") { return Object(_aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_1__["fromUtf8"])(data); } if (ArrayBuffer.isView(data)) { return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); } return new Uint8Array(data); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUV0RCxPQUFPLEVBQUUsVUFBVSxFQUFFLGFBQWEsRUFBRSxJQUFJLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFFOUQ7SUFBQTtRQUNVLFVBQUssR0FBRyxXQUFXLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQy9CLFdBQU0sR0FBYSxJQUFJLFFBQVEsQ0FBQyxJQUFJLFdBQVcsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDO1FBQzdELGlCQUFZLEdBQUcsQ0FBQyxDQUFDO1FBQ2pCLGdCQUFXLEdBQUcsQ0FBQyxDQUFDO1FBQ2hCLGFBQVEsR0FBRyxLQUFLLENBQUM7SUE2STNCLENBQUM7SUEzSUMsb0JBQU0sR0FBTixVQUFPLFVBQXNCO1FBQzNCLElBQUksV0FBVyxDQUFDLFVBQVUsQ0FBQyxFQUFFO1lBQzNCLE9BQU87U0FDUjthQUFNLElBQUksSUFBSSxDQUFDLFFBQVEsRUFBRTtZQUN4QixNQUFNLElBQUksS0FBSyxDQUFDLCtDQUErQyxDQUFDLENBQUM7U0FDbEU7UUFFRCxJQUFNLElBQUksR0FBRyxlQUFlLENBQUMsVUFBVSxDQUFDLENBQUM7UUFFekMsSUFBSSxRQUFRLEdBQUcsQ0FBQyxDQUFDO1FBQ1gsSUFBQSxVQUFVLEdBQUssSUFBSSxXQUFULENBQVU7UUFDMUIsSUFBSSxDQUFDLFdBQVcsSUFBSSxVQUFVLENBQUM7UUFFL0IsT0FBTyxVQUFVLEdBQUcsQ0FBQyxFQUFFO1lBQ3JCLElBQUksQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxZQUFZLEVBQUUsRUFBRSxJQUFJLENBQUMsUUFBUSxFQUFFLENBQUMsQ0FBQyxDQUFDO1lBQzVELFVBQVUsRUFBRSxDQUFDO1lBRWIsSUFBSSxJQUFJLENBQUMsWUFBWSxLQUFLLFVBQVUsRUFBRTtnQkFDcEMsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDO2dCQUNsQixJQUFJLENBQUMsWUFBWSxHQUFHLENBQUMsQ0FBQzthQUN2QjtTQUNGO0lBQ0gsQ0FBQztJQUVLLG9CQUFNLEdBQVo7Ozs7Z0JBQ0UsSUFBSSxDQUFDLElBQUksQ0FBQyxRQUFRLEVBQUU7b0JBQ1osS0FBMkQsSUFBSSxFQUE3RCxNQUFNLFlBQUEsRUFBZ0IsaUJBQWlCLGtCQUFBLEVBQUUsV0FBVyxpQkFBQSxDQUFVO29CQUNoRSxVQUFVLEdBQUcsV0FBVyxHQUFHLENBQUMsQ0FBQztvQkFDbkMsTUFBTSxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsWUFBWSxFQUFFLEVBQUUsR0FBVSxDQUFDLENBQUM7b0JBRWpELCtEQUErRDtvQkFDL0QsSUFBSSxpQkFBaUIsR0FBRyxVQUFVLElBQUksVUFBVSxHQUFHLENBQUMsRUFBRTt3QkFDcEQsS0FBUyxDQUFDLEdBQUcsSUFBSSxDQUFDLFlBQVksRUFBRSxDQUFDLEdBQUcsVUFBVSxFQUFFLENBQUMsRUFBRSxFQUFFOzRCQUNuRCxNQUFNLENBQUMsUUFBUSxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQzt5QkFDdkI7d0JBQ0QsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDO3dCQUNsQixJQUFJLENBQUMsWUFBWSxHQUFHLENBQUMsQ0FBQztxQkFDdkI7b0JBRUQsS0FBUyxDQUFDLEdBQUcsSUFBSSxDQUFDLFlBQVksRUFBRSxDQUFDLEdBQUcsVUFBVSxHQUFHLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRTt3QkFDdkQsTUFBTSxDQUFDLFFBQVEsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7cUJBQ3ZCO29CQUNELE1BQU0sQ0FBQyxTQUFTLENBQUMsVUFBVSxHQUFHLENBQUMsRUFBRSxVQUFVLEtBQUssQ0FBQyxFQUFFLElBQUksQ0FBQyxDQUFDO29CQUN6RCxNQUFNLENBQUMsU0FBUyxDQUFDLFVBQVUsR0FBRyxDQUFDLEVBQUUsSUFBSSxDQUFDLEtBQUssQ0FBQyxVQUFVLEdBQUcsV0FBVyxDQUFDLEVBQUUsSUFBSSxDQUFDLENBQUM7b0JBRTdFLElBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQztvQkFFbEIsSUFBSSxDQUFDLFFBQVEsR0FBRyxJQUFJLENBQUM7aUJBQ3RCO2dCQUVLLEdBQUcsR0FBRyxJQUFJLFFBQVEsQ0FBQyxJQUFJLFdBQVcsQ0FBQyxhQUFhLENBQUMsQ0FBQyxDQUFDO2dCQUN6RCxLQUFTLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRTtvQkFDMUIsR0FBRyxDQUFDLFNBQVMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxFQUFFLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLEVBQUUsSUFBSSxDQUFDLENBQUM7aUJBQzNDO2dCQUVELHNCQUFPLElBQUksVUFBVSxDQUFDLEdBQUcsQ0FBQyxNQUFNLEVBQUUsR0FBRyxDQUFDLFVBQVUsRUFBRSxHQUFHLENBQUMsVUFBVSxDQUFDLEVBQUM7OztLQUNuRTtJQUVPLHdCQUFVLEdBQWxCO1FBQ1EsSUFBQSxLQUFvQixJQUFJLEVBQXRCLE1BQU0sWUFBQSxFQUFFLEtBQUssV0FBUyxDQUFDO1FBRS9CLElBQUksQ0FBQyxHQUFHLEtBQUssQ0FBQyxDQUFDLENBQUMsRUFDZCxDQUFDLEdBQUcsS0FBSyxDQUFDLENBQUMsQ0FBQyxFQUNaLENBQUMsR0FBRyxLQUFLLENBQUMsQ0FBQyxDQUFDLEVBQ1osQ0FBQyxHQUFHLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUVmLENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsQ0FBQyxFQUFFLElBQUksQ0FBQyxFQUFFLENBQUMsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUM3RCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLENBQUMsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDOUQsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxDQUFDLEVBQUUsSUFBSSxDQUFDLEVBQUUsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQzlELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUMvRCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxDQUFDLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDOUQsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLEVBQUUsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQy9ELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUMvRCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDL0QsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQzlELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUMvRCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDL0QsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLEVBQUUsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQy9ELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLENBQUMsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUM5RCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDL0QsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLEVBQUUsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQy9ELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUUvRCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLENBQUMsRUFBRSxJQUFJLENBQUMsRUFBRSxDQUFDLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDN0QsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQzlELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUMvRCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLENBQUMsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDOUQsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQzlELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLENBQUMsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUM5RCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDL0QsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLEVBQUUsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQy9ELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLENBQUMsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUM5RCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxDQUFDLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDOUQsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLEVBQUUsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQy9ELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUMvRCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxDQUFDLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDOUQsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxDQUFDLEVBQUUsSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQzdELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUMvRCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFFL0QsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQzlELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUMvRCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDL0QsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLEVBQUUsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQy9ELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsQ0FBQyxFQUFFLElBQUksQ0FBQyxFQUFFLENBQUMsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUM3RCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDL0QsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLEVBQUUsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQy9ELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUMvRCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxDQUFDLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDOUQsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxDQUFDLEVBQUUsSUFBSSxDQUFDLEVBQUUsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQzlELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUMvRCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDL0QsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQzlELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUMvRCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDL0QsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxDQUFDLEVBQUUsSUFBSSxDQUFDLEVBQUUsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBRTlELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsQ0FBQyxFQUFFLElBQUksQ0FBQyxFQUFFLENBQUMsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUM3RCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDL0QsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLEVBQUUsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQy9ELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUMvRCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxDQUFDLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDOUQsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLEVBQUUsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQy9ELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUMvRCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLENBQUMsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDOUQsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQzlELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUMvRCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDL0QsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLEVBQUUsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQy9ELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLENBQUMsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUM5RCxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLENBQUMsU0FBUyxDQUFDLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDL0QsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxDQUFDLEVBQUUsSUFBSSxDQUFDLEVBQUUsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBQzlELENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxFQUFFLEVBQUUsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUUvRCxLQUFLLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEdBQUcsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDLEdBQUcsVUFBVSxDQUFDO1FBQ3ZDLEtBQUssQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxVQUFVLENBQUM7UUFDdkMsS0FBSyxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxHQUFHLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxHQUFHLFVBQVUsQ0FBQztRQUN2QyxLQUFLLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEdBQUcsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDLEdBQUcsVUFBVSxDQUFDO0lBQ3pDLENBQUM7SUFDSCxVQUFDO0FBQUQsQ0FBQyxBQWxKRCxJQWtKQzs7QUFFRCxTQUFTLEdBQUcsQ0FBQyxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVM7SUFDM0UsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxVQUFVLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxHQUFHLFVBQVUsQ0FBQyxDQUFDLEdBQUcsVUFBVSxDQUFDO0lBQ25FLE9BQU8sQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxLQUFLLENBQUMsRUFBRSxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxVQUFVLENBQUM7QUFDMUQsQ0FBQztBQUVELFNBQVMsRUFBRSxDQUFDLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVM7SUFDckYsT0FBTyxHQUFHLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7QUFDaEQsQ0FBQztBQUVELFNBQVMsRUFBRSxDQUFDLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVM7SUFDckYsT0FBTyxHQUFHLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7QUFDaEQsQ0FBQztBQUVELFNBQVMsRUFBRSxDQUFDLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVM7SUFDckYsT0FBTyxHQUFHLENBQUMsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDO0FBQ3ZDLENBQUM7QUFFRCxTQUFTLEVBQUUsQ0FBQyxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVMsRUFBRSxDQUFTLEVBQUUsQ0FBUyxFQUFFLENBQVMsRUFBRSxDQUFTO0lBQ3JGLE9BQU8sR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztBQUMxQyxDQUFDO0FBRUQsU0FBUyxXQUFXLENBQUMsSUFBZ0I7SUFDbkMsSUFBSSxPQUFPLElBQUksS0FBSyxRQUFRLEVBQUU7UUFDNUIsT0FBTyxJQUFJLENBQUMsTUFBTSxLQUFLLENBQUMsQ0FBQztLQUMxQjtJQUVELE9BQU8sSUFBSSxDQUFDLFVBQVUsS0FBSyxDQUFDLENBQUM7QUFDL0IsQ0FBQztBQUVELFNBQVMsZUFBZSxDQUFDLElBQWdCO0lBQ3ZDLElBQUksT0FBTyxJQUFJLEtBQUssUUFBUSxFQUFFO1FBQzVCLE9BQU8sUUFBUSxDQUFDLElBQUksQ0FBQyxDQUFDO0tBQ3ZCO0lBRUQsSUFBSSxXQUFXLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxFQUFFO1FBQzVCLE9BQU8sSUFBSSxVQUFVLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxJQUFJLENBQUMsVUFBVSxFQUFFLElBQUksQ0FBQyxVQUFVLEdBQUcsVUFBVSxDQUFDLGlCQUFpQixDQUFDLENBQUM7S0FDckc7SUFFRCxPQUFPLElBQUksVUFBVSxDQUFDLElBQUksQ0FBQyxDQUFDO0FBQzlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBIYXNoLCBTb3VyY2VEYXRhIH0gZnJvbSBcIkBhd3Mtc2RrL3R5cGVzXCI7XG5pbXBvcnQgeyBmcm9tVXRmOCB9IGZyb20gXCJAYXdzLXNkay91dGlsLXV0ZjgtYnJvd3NlclwiO1xuXG5pbXBvcnQgeyBCTE9DS19TSVpFLCBESUdFU1RfTEVOR1RILCBJTklUIH0gZnJvbSBcIi4vY29uc3RhbnRzXCI7XG5cbmV4cG9ydCBjbGFzcyBNZDUgaW1wbGVtZW50cyBIYXNoIHtcbiAgcHJpdmF0ZSBzdGF0ZSA9IFVpbnQzMkFycmF5LmZyb20oSU5JVCk7XG4gIHByaXZhdGUgYnVmZmVyOiBEYXRhVmlldyA9IG5ldyBEYXRhVmlldyhuZXcgQXJyYXlCdWZmZXIoQkxPQ0tfU0laRSkpO1xuICBwcml2YXRlIGJ1ZmZlckxlbmd0aCA9IDA7XG4gIHByaXZhdGUgYnl0ZXNIYXNoZWQgPSAwO1xuICBwcml2YXRlIGZpbmlzaGVkID0gZmFsc2U7XG5cbiAgdXBkYXRlKHNvdXJjZURhdGE6IFNvdXJjZURhdGEpOiB2b2lkIHtcbiAgICBpZiAoaXNFbXB0eURhdGEoc291cmNlRGF0YSkpIHtcbiAgICAgIHJldHVybjtcbiAgICB9IGVsc2UgaWYgKHRoaXMuZmluaXNoZWQpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihcIkF0dGVtcHRlZCB0byB1cGRhdGUgYW4gYWxyZWFkeSBmaW5pc2hlZCBoYXNoLlwiKTtcbiAgICB9XG5cbiAgICBjb25zdCBkYXRhID0gY29udmVydFRvQnVmZmVyKHNvdXJjZURhdGEpO1xuXG4gICAgbGV0IHBvc2l0aW9uID0gMDtcbiAgICBsZXQgeyBieXRlTGVuZ3RoIH0gPSBkYXRhO1xuICAgIHRoaXMuYnl0ZXNIYXNoZWQgKz0gYnl0ZUxlbmd0aDtcblxuICAgIHdoaWxlIChieXRlTGVuZ3RoID4gMCkge1xuICAgICAgdGhpcy5idWZmZXIuc2V0VWludDgodGhpcy5idWZmZXJMZW5ndGgrKywgZGF0YVtwb3NpdGlvbisrXSk7XG4gICAgICBieXRlTGVuZ3RoLS07XG5cbiAgICAgIGlmICh0aGlzLmJ1ZmZlckxlbmd0aCA9PT0gQkxPQ0tfU0laRSkge1xuICAgICAgICB0aGlzLmhhc2hCdWZmZXIoKTtcbiAgICAgICAgdGhpcy5idWZmZXJMZW5ndGggPSAwO1xuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIGFzeW5jIGRpZ2VzdCgpOiBQcm9taXNlPFVpbnQ4QXJyYXk+IHtcbiAgICBpZiAoIXRoaXMuZmluaXNoZWQpIHtcbiAgICAgIGNvbnN0IHsgYnVmZmVyLCBidWZmZXJMZW5ndGg6IHVuZGVjb3JhdGVkTGVuZ3RoLCBieXRlc0hhc2hlZCB9ID0gdGhpcztcbiAgICAgIGNvbnN0IGJpdHNIYXNoZWQgPSBieXRlc0hhc2hlZCAqIDg7XG4gICAgICBidWZmZXIuc2V0VWludDgodGhpcy5idWZmZXJMZW5ndGgrKywgMGIxMDAwMDAwMCk7XG5cbiAgICAgIC8vIEVuc3VyZSB0aGUgZmluYWwgYmxvY2sgaGFzIGVub3VnaCByb29tIGZvciB0aGUgaGFzaGVkIGxlbmd0aFxuICAgICAgaWYgKHVuZGVjb3JhdGVkTGVuZ3RoICUgQkxPQ0tfU0laRSA+PSBCTE9DS19TSVpFIC0gOCkge1xuICAgICAgICBmb3IgKGxldCBpID0gdGhpcy5idWZmZXJMZW5ndGg7IGkgPCBCTE9DS19TSVpFOyBpKyspIHtcbiAgICAgICAgICBidWZmZXIuc2V0VWludDgoaSwgMCk7XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5oYXNoQnVmZmVyKCk7XG4gICAgICAgIHRoaXMuYnVmZmVyTGVuZ3RoID0gMDtcbiAgICAgIH1cblxuICAgICAgZm9yIChsZXQgaSA9IHRoaXMuYnVmZmVyTGVuZ3RoOyBpIDwgQkxPQ0tfU0laRSAtIDg7IGkrKykge1xuICAgICAgICBidWZmZXIuc2V0VWludDgoaSwgMCk7XG4gICAgICB9XG4gICAgICBidWZmZXIuc2V0VWludDMyKEJMT0NLX1NJWkUgLSA4LCBiaXRzSGFzaGVkID4+PiAwLCB0cnVlKTtcbiAgICAgIGJ1ZmZlci5zZXRVaW50MzIoQkxPQ0tfU0laRSAtIDQsIE1hdGguZmxvb3IoYml0c0hhc2hlZCAvIDB4MTAwMDAwMDAwKSwgdHJ1ZSk7XG5cbiAgICAgIHRoaXMuaGFzaEJ1ZmZlcigpO1xuXG4gICAgICB0aGlzLmZpbmlzaGVkID0gdHJ1ZTtcbiAgICB9XG5cbiAgICBjb25zdCBvdXQgPSBuZXcgRGF0YVZpZXcobmV3IEFycmF5QnVmZmVyKERJR0VTVF9MRU5HVEgpKTtcbiAgICBmb3IgKGxldCBpID0gMDsgaSA8IDQ7IGkrKykge1xuICAgICAgb3V0LnNldFVpbnQzMihpICogNCwgdGhpcy5zdGF0ZVtpXSwgdHJ1ZSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIG5ldyBVaW50OEFycmF5KG91dC5idWZmZXIsIG91dC5ieXRlT2Zmc2V0LCBvdXQuYnl0ZUxlbmd0aCk7XG4gIH1cblxuICBwcml2YXRlIGhhc2hCdWZmZXIoKTogdm9pZCB7XG4gICAgY29uc3QgeyBidWZmZXIsIHN0YXRlIH0gPSB0aGlzO1xuXG4gICAgbGV0IGEgPSBzdGF0ZVswXSxcbiAgICAgIGIgPSBzdGF0ZVsxXSxcbiAgICAgIGMgPSBzdGF0ZVsyXSxcbiAgICAgIGQgPSBzdGF0ZVszXTtcblxuICAgIGEgPSBmZihhLCBiLCBjLCBkLCBidWZmZXIuZ2V0VWludDMyKDAsIHRydWUpLCA3LCAweGQ3NmFhNDc4KTtcbiAgICBkID0gZmYoZCwgYSwgYiwgYywgYnVmZmVyLmdldFVpbnQzMig0LCB0cnVlKSwgMTIsIDB4ZThjN2I3NTYpO1xuICAgIGMgPSBmZihjLCBkLCBhLCBiLCBidWZmZXIuZ2V0VWludDMyKDgsIHRydWUpLCAxNywgMHgyNDIwNzBkYik7XG4gICAgYiA9IGZmKGIsIGMsIGQsIGEsIGJ1ZmZlci5nZXRVaW50MzIoMTIsIHRydWUpLCAyMiwgMHhjMWJkY2VlZSk7XG4gICAgYSA9IGZmKGEsIGIsIGMsIGQsIGJ1ZmZlci5nZXRVaW50MzIoMTYsIHRydWUpLCA3LCAweGY1N2MwZmFmKTtcbiAgICBkID0gZmYoZCwgYSwgYiwgYywgYnVmZmVyLmdldFVpbnQzMigyMCwgdHJ1ZSksIDEyLCAweDQ3ODdjNjJhKTtcbiAgICBjID0gZmYoYywgZCwgYSwgYiwgYnVmZmVyLmdldFVpbnQzMigyNCwgdHJ1ZSksIDE3LCAweGE4MzA0NjEzKTtcbiAgICBiID0gZmYoYiwgYywgZCwgYSwgYnVmZmVyLmdldFVpbnQzMigyOCwgdHJ1ZSksIDIyLCAweGZkNDY5NTAxKTtcbiAgICBhID0gZmYoYSwgYiwgYywgZCwgYnVmZmVyLmdldFVpbnQzMigzMiwgdHJ1ZSksIDcsIDB4Njk4MDk4ZDgpO1xuICAgIGQgPSBmZihkLCBhLCBiLCBjLCBidWZmZXIuZ2V0VWludDMyKDM2LCB0cnVlKSwgMTIsIDB4OGI0NGY3YWYpO1xuICAgIGMgPSBmZihjLCBkLCBhLCBiLCBidWZmZXIuZ2V0VWludDMyKDQwLCB0cnVlKSwgMTcsIDB4ZmZmZjViYjEpO1xuICAgIGIgPSBmZihiLCBjLCBkLCBhLCBidWZmZXIuZ2V0VWludDMyKDQ0LCB0cnVlKSwgMjIsIDB4ODk1Y2Q3YmUpO1xuICAgIGEgPSBmZihhLCBiLCBjLCBkLCBidWZmZXIuZ2V0VWludDMyKDQ4LCB0cnVlKSwgNywgMHg2YjkwMTEyMik7XG4gICAgZCA9IGZmKGQsIGEsIGIsIGMsIGJ1ZmZlci5nZXRVaW50MzIoNTIsIHRydWUpLCAxMiwgMHhmZDk4NzE5Myk7XG4gICAgYyA9IGZmKGMsIGQsIGEsIGIsIGJ1ZmZlci5nZXRVaW50MzIoNTYsIHRydWUpLCAxNywgMHhhNjc5NDM4ZSk7XG4gICAgYiA9IGZmKGIsIGMsIGQsIGEsIGJ1ZmZlci5nZXRVaW50MzIoNjAsIHRydWUpLCAyMiwgMHg0OWI0MDgyMSk7XG5cbiAgICBhID0gZ2coYSwgYiwgYywgZCwgYnVmZmVyLmdldFVpbnQzMig0LCB0cnVlKSwgNSwgMHhmNjFlMjU2Mik7XG4gICAgZCA9IGdnKGQsIGEsIGIsIGMsIGJ1ZmZlci5nZXRVaW50MzIoMjQsIHRydWUpLCA5LCAweGMwNDBiMzQwKTtcbiAgICBjID0gZ2coYywgZCwgYSwgYiwgYnVmZmVyLmdldFVpbnQzMig0NCwgdHJ1ZSksIDE0LCAweDI2NWU1YTUxKTtcbiAgICBiID0gZ2coYiwgYywgZCwgYSwgYnVmZmVyLmdldFVpbnQzMigwLCB0cnVlKSwgMjAsIDB4ZTliNmM3YWEpO1xuICAgIGEgPSBnZyhhLCBiLCBjLCBkLCBidWZmZXIuZ2V0VWludDMyKDIwLCB0cnVlKSwgNSwgMHhkNjJmMTA1ZCk7XG4gICAgZCA9IGdnKGQsIGEsIGIsIGMsIGJ1ZmZlci5nZXRVaW50MzIoNDAsIHRydWUpLCA5LCAweDAyNDQxNDUzKTtcbiAgICBjID0gZ2coYywgZCwgYSwgYiwgYnVmZmVyLmdldFVpbnQzMig2MCwgdHJ1ZSksIDE0LCAweGQ4YTFlNjgxKTtcbiAgICBiID0gZ2coYiwgYywgZCwgYSwgYnVmZmVyLmdldFVpbnQzMigxNiwgdHJ1ZSksIDIwLCAweGU3ZDNmYmM4KTtcbiAgICBhID0gZ2coYSwgYiwgYywgZCwgYnVmZmVyLmdldFVpbnQzMigzNiwgdHJ1ZSksIDUsIDB4MjFlMWNkZTYpO1xuICAgIGQgPSBnZyhkLCBhLCBiLCBjLCBidWZmZXIuZ2V0VWludDMyKDU2LCB0cnVlKSwgOSwgMHhjMzM3MDdkNik7XG4gICAgYyA9IGdnKGMsIGQsIGEsIGIsIGJ1ZmZlci5nZXRVaW50MzIoMTIsIHRydWUpLCAxNCwgMHhmNGQ1MGQ4Nyk7XG4gICAgYiA9IGdnKGIsIGMsIGQsIGEsIGJ1ZmZlci5nZXRVaW50MzIoMzIsIHRydWUpLCAyMCwgMHg0NTVhMTRlZCk7XG4gICAgYSA9IGdnKGEsIGIsIGMsIGQsIGJ1ZmZlci5nZXRVaW50MzIoNTIsIHRydWUpLCA1LCAweGE5ZTNlOTA1KTtcbiAgICBkID0gZ2coZCwgYSwgYiwgYywgYnVmZmVyLmdldFVpbnQzMig4LCB0cnVlKSwgOSwgMHhmY2VmYTNmOCk7XG4gICAgYyA9IGdnKGMsIGQsIGEsIGIsIGJ1ZmZlci5nZXRVaW50MzIoMjgsIHRydWUpLCAxNCwgMHg2NzZmMDJkOSk7XG4gICAgYiA9IGdnKGIsIGMsIGQsIGEsIGJ1ZmZlci5nZXRVaW50MzIoNDgsIHRydWUpLCAyMCwgMHg4ZDJhNGM4YSk7XG5cbiAgICBhID0gaGgoYSwgYiwgYywgZCwgYnVmZmVyLmdldFVpbnQzMigyMCwgdHJ1ZSksIDQsIDB4ZmZmYTM5NDIpO1xuICAgIGQgPSBoaChkLCBhLCBiLCBjLCBidWZmZXIuZ2V0VWludDMyKDMyLCB0cnVlKSwgMTEsIDB4ODc3MWY2ODEpO1xuICAgIGMgPSBoaChjLCBkLCBhLCBiLCBidWZmZXIuZ2V0VWludDMyKDQ0LCB0cnVlKSwgMTYsIDB4NmQ5ZDYxMjIpO1xuICAgIGIgPSBoaChiLCBjLCBkLCBhLCBidWZmZXIuZ2V0VWludDMyKDU2LCB0cnVlKSwgMjMsIDB4ZmRlNTM4MGMpO1xuICAgIGEgPSBoaChhLCBiLCBjLCBkLCBidWZmZXIuZ2V0VWludDMyKDQsIHRydWUpLCA0LCAweGE0YmVlYTQ0KTtcbiAgICBkID0gaGgoZCwgYSwgYiwgYywgYnVmZmVyLmdldFVpbnQzMigxNiwgdHJ1ZSksIDExLCAweDRiZGVjZmE5KTtcbiAgICBjID0gaGgoYywgZCwgYSwgYiwgYnVmZmVyLmdldFVpbnQzMigyOCwgdHJ1ZSksIDE2LCAweGY2YmI0YjYwKTtcbiAgICBiID0gaGgoYiwgYywgZCwgYSwgYnVmZmVyLmdldFVpbnQzMig0MCwgdHJ1ZSksIDIzLCAweGJlYmZiYzcwKTtcbiAgICBhID0gaGgoYSwgYiwgYywgZCwgYnVmZmVyLmdldFVpbnQzMig1MiwgdHJ1ZSksIDQsIDB4Mjg5YjdlYzYpO1xuICAgIGQgPSBoaChkLCBhLCBiLCBjLCBidWZmZXIuZ2V0VWludDMyKDAsIHRydWUpLCAxMSwgMHhlYWExMjdmYSk7XG4gICAgYyA9IGhoKGMsIGQsIGEsIGIsIGJ1ZmZlci5nZXRVaW50MzIoMTIsIHRydWUpLCAxNiwgMHhkNGVmMzA4NSk7XG4gICAgYiA9IGhoKGIsIGMsIGQsIGEsIGJ1ZmZlci5nZXRVaW50MzIoMjQsIHRydWUpLCAyMywgMHgwNDg4MWQwNSk7XG4gICAgYSA9IGhoKGEsIGIsIGMsIGQsIGJ1ZmZlci5nZXRVaW50MzIoMzYsIHRydWUpLCA0LCAweGQ5ZDRkMDM5KTtcbiAgICBkID0gaGgoZCwgYSwgYiwgYywgYnVmZmVyLmdldFVpbnQzMig0OCwgdHJ1ZSksIDExLCAweGU2ZGI5OWU1KTtcbiAgICBjID0gaGgoYywgZCwgYSwgYiwgYnVmZmVyLmdldFVpbnQzMig2MCwgdHJ1ZSksIDE2LCAweDFmYTI3Y2Y4KTtcbiAgICBiID0gaGgoYiwgYywgZCwgYSwgYnVmZmVyLmdldFVpbnQzMig4LCB0cnVlKSwgMjMsIDB4YzRhYzU2NjUpO1xuXG4gICAgYSA9IGlpKGEsIGIsIGMsIGQsIGJ1ZmZlci5nZXRVaW50MzIoMCwgdHJ1ZSksIDYsIDB4ZjQyOTIyNDQpO1xuICAgIGQgPSBpaShkLCBhLCBiLCBjLCBidWZmZXIuZ2V0VWludDMyKDI4LCB0cnVlKSwgMTAsIDB4NDMyYWZmOTcpO1xuICAgIGMgPSBpaShjLCBkLCBhLCBiLCBidWZmZXIuZ2V0VWludDMyKDU2LCB0cnVlKSwgMTUsIDB4YWI5NDIzYTcpO1xuICAgIGIgPSBpaShiLCBjLCBkLCBhLCBidWZmZXIuZ2V0VWludDMyKDIwLCB0cnVlKSwgMjEsIDB4ZmM5M2EwMzkpO1xuICAgIGEgPSBpaShhLCBiLCBjLCBkLCBidWZmZXIuZ2V0VWludDMyKDQ4LCB0cnVlKSwgNiwgMHg2NTViNTljMyk7XG4gICAgZCA9IGlpKGQsIGEsIGIsIGMsIGJ1ZmZlci5nZXRVaW50MzIoMTIsIHRydWUpLCAxMCwgMHg4ZjBjY2M5Mik7XG4gICAgYyA9IGlpKGMsIGQsIGEsIGIsIGJ1ZmZlci5nZXRVaW50MzIoNDAsIHRydWUpLCAxNSwgMHhmZmVmZjQ3ZCk7XG4gICAgYiA9IGlpKGIsIGMsIGQsIGEsIGJ1ZmZlci5nZXRVaW50MzIoNCwgdHJ1ZSksIDIxLCAweDg1ODQ1ZGQxKTtcbiAgICBhID0gaWkoYSwgYiwgYywgZCwgYnVmZmVyLmdldFVpbnQzMigzMiwgdHJ1ZSksIDYsIDB4NmZhODdlNGYpO1xuICAgIGQgPSBpaShkLCBhLCBiLCBjLCBidWZmZXIuZ2V0VWludDMyKDYwLCB0cnVlKSwgMTAsIDB4ZmUyY2U2ZTApO1xuICAgIGMgPSBpaShjLCBkLCBhLCBiLCBidWZmZXIuZ2V0VWludDMyKDI0LCB0cnVlKSwgMTUsIDB4YTMwMTQzMTQpO1xuICAgIGIgPSBpaShiLCBjLCBkLCBhLCBidWZmZXIuZ2V0VWludDMyKDUyLCB0cnVlKSwgMjEsIDB4NGUwODExYTEpO1xuICAgIGEgPSBpaShhLCBiLCBjLCBkLCBidWZmZXIuZ2V0VWludDMyKDE2LCB0cnVlKSwgNiwgMHhmNzUzN2U4Mik7XG4gICAgZCA9IGlpKGQsIGEsIGIsIGMsIGJ1ZmZlci5nZXRVaW50MzIoNDQsIHRydWUpLCAxMCwgMHhiZDNhZjIzNSk7XG4gICAgYyA9IGlpKGMsIGQsIGEsIGIsIGJ1ZmZlci5nZXRVaW50MzIoOCwgdHJ1ZSksIDE1LCAweDJhZDdkMmJiKTtcbiAgICBiID0gaWkoYiwgYywgZCwgYSwgYnVmZmVyLmdldFVpbnQzMigzNiwgdHJ1ZSksIDIxLCAweGViODZkMzkxKTtcblxuICAgIHN0YXRlWzBdID0gKGEgKyBzdGF0ZVswXSkgJiAweGZmZmZmZmZmO1xuICAgIHN0YXRlWzFdID0gKGIgKyBzdGF0ZVsxXSkgJiAweGZmZmZmZmZmO1xuICAgIHN0YXRlWzJdID0gKGMgKyBzdGF0ZVsyXSkgJiAweGZmZmZmZmZmO1xuICAgIHN0YXRlWzNdID0gKGQgKyBzdGF0ZVszXSkgJiAweGZmZmZmZmZmO1xuICB9XG59XG5cbmZ1bmN0aW9uIGNtbihxOiBudW1iZXIsIGE6IG51bWJlciwgYjogbnVtYmVyLCB4OiBudW1iZXIsIHM6IG51bWJlciwgdDogbnVtYmVyKSB7XG4gIGEgPSAoKChhICsgcSkgJiAweGZmZmZmZmZmKSArICgoeCArIHQpICYgMHhmZmZmZmZmZikpICYgMHhmZmZmZmZmZjtcbiAgcmV0dXJuICgoKGEgPDwgcykgfCAoYSA+Pj4gKDMyIC0gcykpKSArIGIpICYgMHhmZmZmZmZmZjtcbn1cblxuZnVuY3Rpb24gZmYoYTogbnVtYmVyLCBiOiBudW1iZXIsIGM6IG51bWJlciwgZDogbnVtYmVyLCB4OiBudW1iZXIsIHM6IG51bWJlciwgdDogbnVtYmVyKSB7XG4gIHJldHVybiBjbW4oKGIgJiBjKSB8ICh+YiAmIGQpLCBhLCBiLCB4LCBzLCB0KTtcbn1cblxuZnVuY3Rpb24gZ2coYTogbnVtYmVyLCBiOiBudW1iZXIsIGM6IG51bWJlciwgZDogbnVtYmVyLCB4OiBudW1iZXIsIHM6IG51bWJlciwgdDogbnVtYmVyKSB7XG4gIHJldHVybiBjbW4oKGIgJiBkKSB8IChjICYgfmQpLCBhLCBiLCB4LCBzLCB0KTtcbn1cblxuZnVuY3Rpb24gaGgoYTogbnVtYmVyLCBiOiBudW1iZXIsIGM6IG51bWJlciwgZDogbnVtYmVyLCB4OiBudW1iZXIsIHM6IG51bWJlciwgdDogbnVtYmVyKSB7XG4gIHJldHVybiBjbW4oYiBeIGMgXiBkLCBhLCBiLCB4LCBzLCB0KTtcbn1cblxuZnVuY3Rpb24gaWkoYTogbnVtYmVyLCBiOiBudW1iZXIsIGM6IG51bWJlciwgZDogbnVtYmVyLCB4OiBudW1iZXIsIHM6IG51bWJlciwgdDogbnVtYmVyKSB7XG4gIHJldHVybiBjbW4oYyBeIChiIHwgfmQpLCBhLCBiLCB4LCBzLCB0KTtcbn1cblxuZnVuY3Rpb24gaXNFbXB0eURhdGEoZGF0YTogU291cmNlRGF0YSk6IGJvb2xlYW4ge1xuICBpZiAodHlwZW9mIGRhdGEgPT09IFwic3RyaW5nXCIpIHtcbiAgICByZXR1cm4gZGF0YS5sZW5ndGggPT09IDA7XG4gIH1cblxuICByZXR1cm4gZGF0YS5ieXRlTGVuZ3RoID09PSAwO1xufVxuXG5mdW5jdGlvbiBjb252ZXJ0VG9CdWZmZXIoZGF0YTogU291cmNlRGF0YSk6IFVpbnQ4QXJyYXkge1xuICBpZiAodHlwZW9mIGRhdGEgPT09IFwic3RyaW5nXCIpIHtcbiAgICByZXR1cm4gZnJvbVV0ZjgoZGF0YSk7XG4gIH1cblxuICBpZiAoQXJyYXlCdWZmZXIuaXNWaWV3KGRhdGEpKSB7XG4gICAgcmV0dXJuIG5ldyBVaW50OEFycmF5KGRhdGEuYnVmZmVyLCBkYXRhLmJ5dGVPZmZzZXQsIGRhdGEuYnl0ZUxlbmd0aCAvIFVpbnQ4QXJyYXkuQllURVNfUEVSX0VMRU1FTlQpO1xuICB9XG5cbiAgcmV0dXJuIG5ldyBVaW50OEFycmF5KGRhdGEpO1xufVxuIl19 /***/ }), /***/ "AJkW": /*!************************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-signing/dist/es/middleware.js ***! \************************************************************************/ /*! exports provided: awsAuthMiddleware, awsAuthMiddlewareOptions, getAwsAuthPlugin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "awsAuthMiddleware", function() { return awsAuthMiddleware; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "awsAuthMiddlewareOptions", function() { return awsAuthMiddlewareOptions; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAwsAuthPlugin", function() { return getAwsAuthPlugin; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "Enk7"); var isClockSkewed = function (newServerTime, systemClockOffset) { return Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - newServerTime) >= 300000; }; var getSkewCorrectedDate = function (systemClockOffset) { return new Date(Date.now() + systemClockOffset); }; function awsAuthMiddleware(options) { return function (next, context) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var signer, _a, output, _b, _c, headers, dateHeader, serverTime; var _d; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) { switch (_e.label) { case 0: if (!_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(args.request)) return [2 /*return*/, next(args)]; if (!(typeof options.signer === "function")) return [3 /*break*/, 2]; return [4 /*yield*/, options.signer()]; case 1: _a = _e.sent(); return [3 /*break*/, 3]; case 2: _a = options.signer; _e.label = 3; case 3: signer = _a; _b = next; _c = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, args)]; _d = {}; return [4 /*yield*/, signer.sign(args.request, { signingDate: new Date(Date.now() + options.systemClockOffset), signingRegion: context["signing_region"], signingService: context["signing_service"], })]; case 4: return [4 /*yield*/, _b.apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_d.request = _e.sent(), _d)]))])]; case 5: output = _e.sent(); headers = output.response.headers; dateHeader = headers && (headers.date || headers.Date); if (dateHeader) { serverTime = Date.parse(dateHeader); if (isClockSkewed(serverTime, options.systemClockOffset)) { options.systemClockOffset = serverTime - Date.now(); } } return [2 /*return*/, output]; } }); }); }; }; } var awsAuthMiddlewareOptions = { name: "awsAuthMiddleware", tags: ["SIGNATURE", "AWSAUTH"], relation: "after", toMiddleware: "retryMiddleware", }; var getAwsAuthPlugin = function (options) { return ({ applyToStack: function (clientStack) { clientStack.addRelativeTo(awsAuthMiddleware(options), awsAuthMiddlewareOptions); }, }); }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlkZGxld2FyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9taWRkbGV3YXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFhckQsSUFBTSxhQUFhLEdBQUcsVUFBQyxhQUFxQixFQUFFLGlCQUF5QjtJQUNyRSxPQUFBLElBQUksQ0FBQyxHQUFHLENBQUMsb0JBQW9CLENBQUMsaUJBQWlCLENBQUMsQ0FBQyxPQUFPLEVBQUUsR0FBRyxhQUFhLENBQUMsSUFBSSxNQUFNO0FBQXJGLENBQXFGLENBQUM7QUFFeEYsSUFBTSxvQkFBb0IsR0FBRyxVQUFDLGlCQUF5QixJQUFLLE9BQUEsSUFBSSxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRSxHQUFHLGlCQUFpQixDQUFDLEVBQXhDLENBQXdDLENBQUM7QUFFckcsTUFBTSxVQUFVLGlCQUFpQixDQUMvQixPQUE4QjtJQUU5QixPQUFPLFVBQUMsSUFBb0MsRUFBRSxPQUFnQztRQUM1RSxPQUFBLFVBQWdCLElBQXFDOzs7Ozs7OzRCQUNuRCxJQUFJLENBQUMsV0FBVyxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO2dDQUFFLHNCQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsRUFBQztpQ0FDOUMsQ0FBQSxPQUFPLE9BQU8sQ0FBQyxNQUFNLEtBQUssVUFBVSxDQUFBLEVBQXBDLHdCQUFvQzs0QkFBRyxxQkFBTSxPQUFPLENBQUMsTUFBTSxFQUFFLEVBQUE7OzRCQUF0QixLQUFBLFNBQXNCLENBQUE7Ozs0QkFBRyxLQUFBLE9BQU8sQ0FBQyxNQUFNLENBQUE7Ozs0QkFBdkYsTUFBTSxLQUFpRjs0QkFDeEUsS0FBQSxJQUFJLENBQUE7K0NBQ3BCLElBQUk7OzRCQUNFLHFCQUFNLE1BQU0sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLE9BQU8sRUFBRTtvQ0FDdkMsV0FBVyxFQUFFLElBQUksSUFBSSxDQUFDLElBQUksQ0FBQyxHQUFHLEVBQUUsR0FBRyxPQUFPLENBQUMsaUJBQWlCLENBQUM7b0NBQzdELGFBQWEsRUFBRSxPQUFPLENBQUMsZ0JBQWdCLENBQUM7b0NBQ3hDLGNBQWMsRUFBRSxPQUFPLENBQUMsaUJBQWlCLENBQUM7aUNBQzNDLENBQUMsRUFBQTtnQ0FOVyxxQkFBTSxxREFFbkIsVUFBTyxHQUFFLFNBSVAsVUFDRixFQUFBOzs0QkFQSSxNQUFNLEdBQUcsU0FPYjs0QkFFTSxPQUFPLEdBQUssTUFBTSxDQUFDLFFBQWUsUUFBM0IsQ0FBNEI7NEJBQ3JDLFVBQVUsR0FBRyxPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxJQUFJLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQzs0QkFDN0QsSUFBSSxVQUFVLEVBQUU7Z0NBQ1IsVUFBVSxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFDLENBQUM7Z0NBQzFDLElBQUksYUFBYSxDQUFDLFVBQVUsRUFBRSxPQUFPLENBQUMsaUJBQWlCLENBQUMsRUFBRTtvQ0FDeEQsT0FBTyxDQUFDLGlCQUFpQixHQUFHLFVBQVUsR0FBRyxJQUFJLENBQUMsR0FBRyxFQUFFLENBQUM7aUNBQ3JEOzZCQUNGOzRCQUVELHNCQUFPLE1BQU0sRUFBQzs7OztTQUNmO0lBdEJELENBc0JDLENBQUM7QUFDTixDQUFDO0FBRUQsTUFBTSxDQUFDLElBQU0sd0JBQXdCLEdBQThCO0lBQ2pFLElBQUksRUFBRSxtQkFBbUI7SUFDekIsSUFBSSxFQUFFLENBQUMsV0FBVyxFQUFFLFNBQVMsQ0FBQztJQUM5QixRQUFRLEVBQUUsT0FBTztJQUNqQixZQUFZLEVBQUUsaUJBQWlCO0NBQ2hDLENBQUM7QUFFRixNQUFNLENBQUMsSUFBTSxnQkFBZ0IsR0FBRyxVQUFDLE9BQThCLElBQTBCLE9BQUEsQ0FBQztJQUN4RixZQUFZLEVBQUUsVUFBQyxXQUFXO1FBQ3hCLFdBQVcsQ0FBQyxhQUFhLENBQUMsaUJBQWlCLENBQUMsT0FBTyxDQUFDLEVBQUUsd0JBQXdCLENBQUMsQ0FBQztJQUNsRixDQUFDO0NBQ0YsQ0FBQyxFQUp1RixDQUl2RixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSHR0cFJlcXVlc3QgfSBmcm9tIFwiQGF3cy1zZGsvcHJvdG9jb2wtaHR0cFwiO1xuaW1wb3J0IHtcbiAgRmluYWxpemVIYW5kbGVyLFxuICBGaW5hbGl6ZUhhbmRsZXJBcmd1bWVudHMsXG4gIEZpbmFsaXplSGFuZGxlck91dHB1dCxcbiAgRmluYWxpemVSZXF1ZXN0TWlkZGxld2FyZSxcbiAgSGFuZGxlckV4ZWN1dGlvbkNvbnRleHQsXG4gIFBsdWdnYWJsZSxcbiAgUmVsYXRpdmVNaWRkbGV3YXJlT3B0aW9ucyxcbn0gZnJvbSBcIkBhd3Mtc2RrL3R5cGVzXCI7XG5cbmltcG9ydCB7IEF3c0F1dGhSZXNvbHZlZENvbmZpZyB9IGZyb20gXCIuL2NvbmZpZ3VyYXRpb25zXCI7XG5cbmNvbnN0IGlzQ2xvY2tTa2V3ZWQgPSAobmV3U2VydmVyVGltZTogbnVtYmVyLCBzeXN0ZW1DbG9ja09mZnNldDogbnVtYmVyKSA9PlxuICBNYXRoLmFicyhnZXRTa2V3Q29ycmVjdGVkRGF0ZShzeXN0ZW1DbG9ja09mZnNldCkuZ2V0VGltZSgpIC0gbmV3U2VydmVyVGltZSkgPj0gMzAwMDAwO1xuXG5jb25zdCBnZXRTa2V3Q29ycmVjdGVkRGF0ZSA9IChzeXN0ZW1DbG9ja09mZnNldDogbnVtYmVyKSA9PiBuZXcgRGF0ZShEYXRlLm5vdygpICsgc3lzdGVtQ2xvY2tPZmZzZXQpO1xuXG5leHBvcnQgZnVuY3Rpb24gYXdzQXV0aE1pZGRsZXdhcmU8SW5wdXQgZXh0ZW5kcyBvYmplY3QsIE91dHB1dCBleHRlbmRzIG9iamVjdD4oXG4gIG9wdGlvbnM6IEF3c0F1dGhSZXNvbHZlZENvbmZpZ1xuKTogRmluYWxpemVSZXF1ZXN0TWlkZGxld2FyZTxJbnB1dCwgT3V0cHV0PiB7XG4gIHJldHVybiAobmV4dDogRmluYWxpemVIYW5kbGVyPElucHV0LCBPdXRwdXQ+LCBjb250ZXh0OiBIYW5kbGVyRXhlY3V0aW9uQ29udGV4dCk6IEZpbmFsaXplSGFuZGxlcjxJbnB1dCwgT3V0cHV0PiA9PlxuICAgIGFzeW5jIGZ1bmN0aW9uIChhcmdzOiBGaW5hbGl6ZUhhbmRsZXJBcmd1bWVudHM8SW5wdXQ+KTogUHJvbWlzZTxGaW5hbGl6ZUhhbmRsZXJPdXRwdXQ8T3V0cHV0Pj4ge1xuICAgICAgaWYgKCFIdHRwUmVxdWVzdC5pc0luc3RhbmNlKGFyZ3MucmVxdWVzdCkpIHJldHVybiBuZXh0KGFyZ3MpO1xuICAgICAgY29uc3Qgc2lnbmVyID0gdHlwZW9mIG9wdGlvbnMuc2lnbmVyID09PSBcImZ1bmN0aW9uXCIgPyBhd2FpdCBvcHRpb25zLnNpZ25lcigpIDogb3B0aW9ucy5zaWduZXI7XG4gICAgICBjb25zdCBvdXRwdXQgPSBhd2FpdCBuZXh0KHtcbiAgICAgICAgLi4uYXJncyxcbiAgICAgICAgcmVxdWVzdDogYXdhaXQgc2lnbmVyLnNpZ24oYXJncy5yZXF1ZXN0LCB7XG4gICAgICAgICAgc2lnbmluZ0RhdGU6IG5ldyBEYXRlKERhdGUubm93KCkgKyBvcHRpb25zLnN5c3RlbUNsb2NrT2Zmc2V0KSxcbiAgICAgICAgICBzaWduaW5nUmVnaW9uOiBjb250ZXh0W1wic2lnbmluZ19yZWdpb25cIl0sXG4gICAgICAgICAgc2lnbmluZ1NlcnZpY2U6IGNvbnRleHRbXCJzaWduaW5nX3NlcnZpY2VcIl0sXG4gICAgICAgIH0pLFxuICAgICAgfSk7XG5cbiAgICAgIGNvbnN0IHsgaGVhZGVycyB9ID0gb3V0cHV0LnJlc3BvbnNlIGFzIGFueTtcbiAgICAgIGNvbnN0IGRhdGVIZWFkZXIgPSBoZWFkZXJzICYmIChoZWFkZXJzLmRhdGUgfHwgaGVhZGVycy5EYXRlKTtcbiAgICAgIGlmIChkYXRlSGVhZGVyKSB7XG4gICAgICAgIGNvbnN0IHNlcnZlclRpbWUgPSBEYXRlLnBhcnNlKGRhdGVIZWFkZXIpO1xuICAgICAgICBpZiAoaXNDbG9ja1NrZXdlZChzZXJ2ZXJUaW1lLCBvcHRpb25zLnN5c3RlbUNsb2NrT2Zmc2V0KSkge1xuICAgICAgICAgIG9wdGlvbnMuc3lzdGVtQ2xvY2tPZmZzZXQgPSBzZXJ2ZXJUaW1lIC0gRGF0ZS5ub3coKTtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICByZXR1cm4gb3V0cHV0O1xuICAgIH07XG59XG5cbmV4cG9ydCBjb25zdCBhd3NBdXRoTWlkZGxld2FyZU9wdGlvbnM6IFJlbGF0aXZlTWlkZGxld2FyZU9wdGlvbnMgPSB7XG4gIG5hbWU6IFwiYXdzQXV0aE1pZGRsZXdhcmVcIixcbiAgdGFnczogW1wiU0lHTkFUVVJFXCIsIFwiQVdTQVVUSFwiXSxcbiAgcmVsYXRpb246IFwiYWZ0ZXJcIixcbiAgdG9NaWRkbGV3YXJlOiBcInJldHJ5TWlkZGxld2FyZVwiLFxufTtcblxuZXhwb3J0IGNvbnN0IGdldEF3c0F1dGhQbHVnaW4gPSAob3B0aW9uczogQXdzQXV0aFJlc29sdmVkQ29uZmlnKTogUGx1Z2dhYmxlPGFueSwgYW55PiA9PiAoe1xuICBhcHBseVRvU3RhY2s6IChjbGllbnRTdGFjaykgPT4ge1xuICAgIGNsaWVudFN0YWNrLmFkZFJlbGF0aXZlVG8oYXdzQXV0aE1pZGRsZXdhcmUob3B0aW9ucyksIGF3c0F1dGhNaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcbiJdfQ== /***/ }), /***/ "AL3R": /*!***************************************************!*\ !*** ./node_modules/aws-amplify/lib-esm/index.js ***! \***************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Amplify", function() { return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Amplify"]; }); /* harmony import */ var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/auth */ "AO/9"); /* harmony import */ var _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-amplify/cache */ "gr/K"); /* harmony import */ var _aws_amplify_analytics__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-amplify/analytics */ "tNNC"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Analytics", function() { return _aws_amplify_analytics__WEBPACK_IMPORTED_MODULE_3__["Analytics"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSPinpointProvider", function() { return _aws_amplify_analytics__WEBPACK_IMPORTED_MODULE_3__["AWSPinpointProvider"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSKinesisProvider", function() { return _aws_amplify_analytics__WEBPACK_IMPORTED_MODULE_3__["AWSKinesisProvider"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSKinesisFirehoseProvider", function() { return _aws_amplify_analytics__WEBPACK_IMPORTED_MODULE_3__["AWSKinesisFirehoseProvider"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AmazonPersonalizeProvider", function() { return _aws_amplify_analytics__WEBPACK_IMPORTED_MODULE_3__["AmazonPersonalizeProvider"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Auth", function() { return _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_1__["Auth"]; }); /* harmony import */ var _aws_amplify_storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-amplify/storage */ "l1VB"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Storage", function() { return _aws_amplify_storage__WEBPACK_IMPORTED_MODULE_4__["Storage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StorageClass", function() { return _aws_amplify_storage__WEBPACK_IMPORTED_MODULE_4__["StorageClass"]; }); /* harmony import */ var _aws_amplify_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-amplify/api */ "Gyle"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "API", function() { return _aws_amplify_api__WEBPACK_IMPORTED_MODULE_5__["API"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APIClass", function() { return _aws_amplify_api__WEBPACK_IMPORTED_MODULE_5__["APIClass"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "graphqlOperation", function() { return _aws_amplify_api__WEBPACK_IMPORTED_MODULE_5__["graphqlOperation"]; }); /* harmony import */ var _aws_amplify_datastore__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-amplify/datastore */ "ETO7"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DataStore", function() { return _aws_amplify_datastore__WEBPACK_IMPORTED_MODULE_6__["DataStore"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Predicates", function() { return _aws_amplify_datastore__WEBPACK_IMPORTED_MODULE_6__["Predicates"]; }); /* harmony import */ var _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-amplify/pubsub */ "VHNH"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PubSub", function() { return _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_7__["PubSub"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Cache", function() { return _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _aws_amplify_interactions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-amplify/interactions */ "ck+9"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Interactions", function() { return _aws_amplify_interactions__WEBPACK_IMPORTED_MODULE_8__["Interactions"]; }); /* harmony import */ var _aws_amplify_ui__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-amplify/ui */ "vYnt"); /* harmony import */ var _aws_amplify_ui__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_ui__WEBPACK_IMPORTED_MODULE_9__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _aws_amplify_ui__WEBPACK_IMPORTED_MODULE_9__) if(["default","Analytics","AWSPinpointProvider","AWSKinesisProvider","AWSKinesisFirehoseProvider","AmazonPersonalizeProvider","Auth","Storage","StorageClass","API","APIClass","graphqlOperation","DataStore","Predicates","PubSub","Cache","Interactions","XR","Predictions","Logger","Hub","JS","ClientDevice","Signer","I18n","ServiceWorker","withSSRContext","Amplify"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _aws_amplify_ui__WEBPACK_IMPORTED_MODULE_9__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var _aws_amplify_xr__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @aws-amplify/xr */ "or1W"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "XR", function() { return _aws_amplify_xr__WEBPACK_IMPORTED_MODULE_10__["XR"]; }); /* harmony import */ var _aws_amplify_predictions__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @aws-amplify/predictions */ "wsfu"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Predictions", function() { return _aws_amplify_predictions__WEBPACK_IMPORTED_MODULE_11__["Predictions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Logger", function() { return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Hub", function() { return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JS", function() { return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClientDevice", function() { return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ClientDevice"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Signer", function() { return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Signer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "I18n", function() { return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ServiceWorker", function() { return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ServiceWorker"]; }); /* harmony import */ var _withSSRContext__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./withSSRContext */ "Gzzt"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withSSRContext", function() { return _withSSRContext__WEBPACK_IMPORTED_MODULE_12__["withSSRContext"]; }); /* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ /** Always importing Auth when users import Amplify such that for unauthenticated access (no sign in and sign up), users don't have to import Auth explicitly **/ _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Amplify"].Auth = _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_1__["Auth"]; _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Amplify"].Cache = _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2__["default"]; _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Amplify"].ServiceWorker = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ServiceWorker"]; /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Amplify"]); //# sourceMappingURL=index.js.map /***/ }), /***/ "AO/9": /*!*********************************************************!*\ !*** ./node_modules/@aws-amplify/auth/lib-esm/index.js ***! \*********************************************************/ /*! exports provided: default, Auth, CognitoUser, CookieStorage, CognitoHostedUIIdentityProvider, appendToCognitoUserAgent, AuthErrorStrings */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Auth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Auth */ "v4IS"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Auth", function() { return _Auth__WEBPACK_IMPORTED_MODULE_0__["Auth"]; }); /* harmony import */ var _types_Auth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./types/Auth */ "m0iZ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CognitoHostedUIIdentityProvider", function() { return _types_Auth__WEBPACK_IMPORTED_MODULE_1__["CognitoHostedUIIdentityProvider"]; }); /* harmony import */ var amazon_cognito_identity_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! amazon-cognito-identity-js */ "TESy"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CognitoUser", function() { return amazon_cognito_identity_js__WEBPACK_IMPORTED_MODULE_2__["CognitoUser"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CookieStorage", function() { return amazon_cognito_identity_js__WEBPACK_IMPORTED_MODULE_2__["CookieStorage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "appendToCognitoUserAgent", function() { return amazon_cognito_identity_js__WEBPACK_IMPORTED_MODULE_2__["appendToCognitoUserAgent"]; }); /* harmony import */ var _common_AuthErrorStrings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./common/AuthErrorStrings */ "YKz8"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthErrorStrings", function() { return _common_AuthErrorStrings__WEBPACK_IMPORTED_MODULE_3__["AuthErrorStrings"]; }); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (_Auth__WEBPACK_IMPORTED_MODULE_0__["Auth"]); //# sourceMappingURL=index.js.map /***/ }), /***/ "AP2z": /*!*******************************************!*\ !*** ./node_modules/lodash/_getRawTag.js ***! \*******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(/*! ./_Symbol */ "nmnc"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. * * @private * @param {*} value The value to query. * @returns {string} Returns the raw `toStringTag`. */ function getRawTag(value) { var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; try { value[symToStringTag] = undefined; var unmasked = true; } catch (e) {} var result = nativeObjectToString.call(value); if (unmasked) { if (isOwn) { value[symToStringTag] = tag; } else { delete value[symToStringTag]; } } return result; } module.exports = getRawTag; /***/ }), /***/ "AQMs": /*!******************************************************************************************************!*\ !*** ./node_modules/@aws-crypto/sha256-browser/node_modules/@aws-crypto/sha256-js/build/jsSha256.js ***! \******************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Sha256 = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "7JaV"); var constants_1 = __webpack_require__(/*! ./constants */ "W5Sr"); var RawSha256_1 = __webpack_require__(/*! ./RawSha256 */ "4Hbs"); var util_utf8_browser_1 = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "XWO8"); var Sha256 = /** @class */ (function () { function Sha256(secret) { this.hash = new RawSha256_1.RawSha256(); if (secret) { this.outer = new RawSha256_1.RawSha256(); var inner = bufferFromSecret(secret); var outer = new Uint8Array(constants_1.BLOCK_SIZE); outer.set(inner); for (var i = 0; i < constants_1.BLOCK_SIZE; i++) { inner[i] ^= 0x36; outer[i] ^= 0x5c; } this.hash.update(inner); this.outer.update(outer); // overwrite the copied key in memory for (var i = 0; i < inner.byteLength; i++) { inner[i] = 0; } } } Sha256.prototype.update = function (toHash) { if (isEmptyData(toHash) || this.error) { return; } try { this.hash.update(convertToBuffer(toHash)); } catch (e) { this.error = e; } }; /* This synchronous method keeps compatibility * with the v2 aws-sdk. */ Sha256.prototype.digestSync = function () { if (this.error) { throw this.error; } if (this.outer) { if (!this.outer.finished) { this.outer.update(this.hash.digest()); } return this.outer.digest(); } return this.hash.digest(); }; /* The underlying digest method here is synchronous. * To keep the same interface with the other hash functions * the default is to expose this as an async method. * However, it can sometimes be useful to have a sync method. */ Sha256.prototype.digest = function () { return tslib_1.__awaiter(this, void 0, void 0, function () { return tslib_1.__generator(this, function (_a) { return [2 /*return*/, this.digestSync()]; }); }); }; return Sha256; }()); exports.Sha256 = Sha256; function bufferFromSecret(secret) { var input = convertToBuffer(secret); if (input.byteLength > constants_1.BLOCK_SIZE) { var bufferHash = new RawSha256_1.RawSha256(); bufferHash.update(input); input = bufferHash.digest(); } var buffer = new Uint8Array(constants_1.BLOCK_SIZE); buffer.set(input); return buffer; } function isEmptyData(data) { if (typeof data === "string") { return data.length === 0; } return data.byteLength === 0; } function convertToBuffer(data) { if (typeof data === "string") { return util_utf8_browser_1.fromUtf8(data); } if (ArrayBuffer.isView(data)) { return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); } return new Uint8Array(data); } //# sourceMappingURL=jsSha256.js.map /***/ }), /***/ "AS27": /*!*************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/models/index.js ***! \*************************************************************************/ /*! exports provided: BatchDetectDominantLanguageItemResult, BatchDetectDominantLanguageRequest, BatchDetectDominantLanguageResponse, BatchDetectEntitiesItemResult, BatchDetectEntitiesRequest, BatchDetectEntitiesResponse, BatchDetectKeyPhrasesItemResult, BatchDetectKeyPhrasesRequest, BatchDetectKeyPhrasesResponse, BatchDetectSentimentItemResult, BatchDetectSentimentRequest, BatchDetectSentimentResponse, BatchDetectSyntaxItemResult, BatchDetectSyntaxRequest, BatchDetectSyntaxResponse, BatchItemError, BatchSizeLimitExceededException, ClassifierEvaluationMetrics, ClassifierMetadata, ClassifyDocumentRequest, ClassifyDocumentResponse, ConcurrentModificationException, CreateDocumentClassifierRequest, CreateDocumentClassifierResponse, CreateEndpointRequest, CreateEndpointResponse, CreateEntityRecognizerRequest, CreateEntityRecognizerResponse, DeleteDocumentClassifierRequest, DeleteDocumentClassifierResponse, DeleteEndpointRequest, DeleteEndpointResponse, DeleteEntityRecognizerRequest, DeleteEntityRecognizerResponse, DescribeDocumentClassificationJobRequest, DescribeDocumentClassificationJobResponse, DescribeDocumentClassifierRequest, DescribeDocumentClassifierResponse, DescribeDominantLanguageDetectionJobRequest, DescribeDominantLanguageDetectionJobResponse, DescribeEndpointRequest, DescribeEndpointResponse, DescribeEntitiesDetectionJobRequest, DescribeEntitiesDetectionJobResponse, DescribeEntityRecognizerRequest, DescribeEntityRecognizerResponse, DescribeKeyPhrasesDetectionJobRequest, DescribeKeyPhrasesDetectionJobResponse, DescribeSentimentDetectionJobRequest, DescribeSentimentDetectionJobResponse, DescribeTopicsDetectionJobRequest, DescribeTopicsDetectionJobResponse, DetectDominantLanguageRequest, DetectDominantLanguageResponse, DetectEntitiesRequest, DetectEntitiesResponse, DetectKeyPhrasesRequest, DetectKeyPhrasesResponse, DetectSentimentRequest, DetectSentimentResponse, DetectSyntaxRequest, DetectSyntaxResponse, DocumentClass, DocumentClassificationJobFilter, DocumentClassificationJobProperties, DocumentClassifierFilter, DocumentClassifierInputDataConfig, DocumentClassifierMode, DocumentClassifierOutputDataConfig, DocumentClassifierProperties, DocumentLabel, DominantLanguage, DominantLanguageDetectionJobFilter, DominantLanguageDetectionJobProperties, EndpointFilter, EndpointProperties, EndpointStatus, EntitiesDetectionJobFilter, EntitiesDetectionJobProperties, Entity, EntityRecognizerAnnotations, EntityRecognizerDocuments, EntityRecognizerEntityList, EntityRecognizerEvaluationMetrics, EntityRecognizerFilter, EntityRecognizerInputDataConfig, EntityRecognizerMetadata, EntityRecognizerMetadataEntityTypesListItem, EntityRecognizerProperties, EntityType, EntityTypesEvaluationMetrics, EntityTypesListItem, InputDataConfig, InputFormat, InternalServerException, InvalidFilterException, InvalidRequestException, JobNotFoundException, JobStatus, KeyPhrase, KeyPhrasesDetectionJobFilter, KeyPhrasesDetectionJobProperties, KmsKeyValidationException, LanguageCode, ListDocumentClassificationJobsRequest, ListDocumentClassificationJobsResponse, ListDocumentClassifiersRequest, ListDocumentClassifiersResponse, ListDominantLanguageDetectionJobsRequest, ListDominantLanguageDetectionJobsResponse, ListEndpointsRequest, ListEndpointsResponse, ListEntitiesDetectionJobsRequest, ListEntitiesDetectionJobsResponse, ListEntityRecognizersRequest, ListEntityRecognizersResponse, ListKeyPhrasesDetectionJobsRequest, ListKeyPhrasesDetectionJobsResponse, ListSentimentDetectionJobsRequest, ListSentimentDetectionJobsResponse, ListTagsForResourceRequest, ListTagsForResourceResponse, ListTopicsDetectionJobsRequest, ListTopicsDetectionJobsResponse, ModelStatus, OutputDataConfig, PartOfSpeechTag, PartOfSpeechTagType, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourceUnavailableException, SentimentDetectionJobFilter, SentimentDetectionJobProperties, SentimentScore, SentimentType, StartDocumentClassificationJobRequest, StartDocumentClassificationJobResponse, StartDominantLanguageDetectionJobRequest, StartDominantLanguageDetectionJobResponse, StartEntitiesDetectionJobRequest, StartEntitiesDetectionJobResponse, StartKeyPhrasesDetectionJobRequest, StartKeyPhrasesDetectionJobResponse, StartSentimentDetectionJobRequest, StartSentimentDetectionJobResponse, StartTopicsDetectionJobRequest, StartTopicsDetectionJobResponse, StopDominantLanguageDetectionJobRequest, StopDominantLanguageDetectionJobResponse, StopEntitiesDetectionJobRequest, StopEntitiesDetectionJobResponse, StopKeyPhrasesDetectionJobRequest, StopKeyPhrasesDetectionJobResponse, StopSentimentDetectionJobRequest, StopSentimentDetectionJobResponse, StopTrainingDocumentClassifierRequest, StopTrainingDocumentClassifierResponse, StopTrainingEntityRecognizerRequest, StopTrainingEntityRecognizerResponse, SyntaxLanguageCode, SyntaxToken, Tag, TagResourceRequest, TagResourceResponse, TextSizeLimitExceededException, TooManyRequestsException, TooManyTagKeysException, TooManyTagsException, TopicsDetectionJobFilter, TopicsDetectionJobProperties, UnsupportedLanguageException, UntagResourceRequest, UntagResourceResponse, UpdateEndpointRequest, UpdateEndpointResponse, VpcConfig */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectDominantLanguageItemResult", function() { return BatchDetectDominantLanguageItemResult; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectDominantLanguageRequest", function() { return BatchDetectDominantLanguageRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectDominantLanguageResponse", function() { return BatchDetectDominantLanguageResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectEntitiesItemResult", function() { return BatchDetectEntitiesItemResult; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectEntitiesRequest", function() { return BatchDetectEntitiesRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectEntitiesResponse", function() { return BatchDetectEntitiesResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectKeyPhrasesItemResult", function() { return BatchDetectKeyPhrasesItemResult; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectKeyPhrasesRequest", function() { return BatchDetectKeyPhrasesRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectKeyPhrasesResponse", function() { return BatchDetectKeyPhrasesResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectSentimentItemResult", function() { return BatchDetectSentimentItemResult; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectSentimentRequest", function() { return BatchDetectSentimentRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectSentimentResponse", function() { return BatchDetectSentimentResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectSyntaxItemResult", function() { return BatchDetectSyntaxItemResult; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectSyntaxRequest", function() { return BatchDetectSyntaxRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectSyntaxResponse", function() { return BatchDetectSyntaxResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchItemError", function() { return BatchItemError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchSizeLimitExceededException", function() { return BatchSizeLimitExceededException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassifierEvaluationMetrics", function() { return ClassifierEvaluationMetrics; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassifierMetadata", function() { return ClassifierMetadata; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassifyDocumentRequest", function() { return ClassifyDocumentRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassifyDocumentResponse", function() { return ClassifyDocumentResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConcurrentModificationException", function() { return ConcurrentModificationException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateDocumentClassifierRequest", function() { return CreateDocumentClassifierRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateDocumentClassifierResponse", function() { return CreateDocumentClassifierResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEndpointRequest", function() { return CreateEndpointRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEndpointResponse", function() { return CreateEndpointResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEntityRecognizerRequest", function() { return CreateEntityRecognizerRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEntityRecognizerResponse", function() { return CreateEntityRecognizerResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteDocumentClassifierRequest", function() { return DeleteDocumentClassifierRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteDocumentClassifierResponse", function() { return DeleteDocumentClassifierResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointRequest", function() { return DeleteEndpointRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointResponse", function() { return DeleteEndpointResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEntityRecognizerRequest", function() { return DeleteEntityRecognizerRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEntityRecognizerResponse", function() { return DeleteEntityRecognizerResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeDocumentClassificationJobRequest", function() { return DescribeDocumentClassificationJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeDocumentClassificationJobResponse", function() { return DescribeDocumentClassificationJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeDocumentClassifierRequest", function() { return DescribeDocumentClassifierRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeDocumentClassifierResponse", function() { return DescribeDocumentClassifierResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeDominantLanguageDetectionJobRequest", function() { return DescribeDominantLanguageDetectionJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeDominantLanguageDetectionJobResponse", function() { return DescribeDominantLanguageDetectionJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeEndpointRequest", function() { return DescribeEndpointRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeEndpointResponse", function() { return DescribeEndpointResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeEntitiesDetectionJobRequest", function() { return DescribeEntitiesDetectionJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeEntitiesDetectionJobResponse", function() { return DescribeEntitiesDetectionJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeEntityRecognizerRequest", function() { return DescribeEntityRecognizerRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeEntityRecognizerResponse", function() { return DescribeEntityRecognizerResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeKeyPhrasesDetectionJobRequest", function() { return DescribeKeyPhrasesDetectionJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeKeyPhrasesDetectionJobResponse", function() { return DescribeKeyPhrasesDetectionJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeSentimentDetectionJobRequest", function() { return DescribeSentimentDetectionJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeSentimentDetectionJobResponse", function() { return DescribeSentimentDetectionJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeTopicsDetectionJobRequest", function() { return DescribeTopicsDetectionJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeTopicsDetectionJobResponse", function() { return DescribeTopicsDetectionJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectDominantLanguageRequest", function() { return DetectDominantLanguageRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectDominantLanguageResponse", function() { return DetectDominantLanguageResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectEntitiesRequest", function() { return DetectEntitiesRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectEntitiesResponse", function() { return DetectEntitiesResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectKeyPhrasesRequest", function() { return DetectKeyPhrasesRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectKeyPhrasesResponse", function() { return DetectKeyPhrasesResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectSentimentRequest", function() { return DetectSentimentRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectSentimentResponse", function() { return DetectSentimentResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectSyntaxRequest", function() { return DetectSyntaxRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectSyntaxResponse", function() { return DetectSyntaxResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentClass", function() { return DocumentClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentClassificationJobFilter", function() { return DocumentClassificationJobFilter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentClassificationJobProperties", function() { return DocumentClassificationJobProperties; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentClassifierFilter", function() { return DocumentClassifierFilter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentClassifierInputDataConfig", function() { return DocumentClassifierInputDataConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentClassifierMode", function() { return DocumentClassifierMode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentClassifierOutputDataConfig", function() { return DocumentClassifierOutputDataConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentClassifierProperties", function() { return DocumentClassifierProperties; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentLabel", function() { return DocumentLabel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DominantLanguage", function() { return DominantLanguage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DominantLanguageDetectionJobFilter", function() { return DominantLanguageDetectionJobFilter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DominantLanguageDetectionJobProperties", function() { return DominantLanguageDetectionJobProperties; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointFilter", function() { return EndpointFilter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointProperties", function() { return EndpointProperties; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointStatus", function() { return EndpointStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntitiesDetectionJobFilter", function() { return EntitiesDetectionJobFilter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntitiesDetectionJobProperties", function() { return EntitiesDetectionJobProperties; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Entity", function() { return Entity; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntityRecognizerAnnotations", function() { return EntityRecognizerAnnotations; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntityRecognizerDocuments", function() { return EntityRecognizerDocuments; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntityRecognizerEntityList", function() { return EntityRecognizerEntityList; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntityRecognizerEvaluationMetrics", function() { return EntityRecognizerEvaluationMetrics; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntityRecognizerFilter", function() { return EntityRecognizerFilter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntityRecognizerInputDataConfig", function() { return EntityRecognizerInputDataConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntityRecognizerMetadata", function() { return EntityRecognizerMetadata; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntityRecognizerMetadataEntityTypesListItem", function() { return EntityRecognizerMetadataEntityTypesListItem; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntityRecognizerProperties", function() { return EntityRecognizerProperties; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntityType", function() { return EntityType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntityTypesEvaluationMetrics", function() { return EntityTypesEvaluationMetrics; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EntityTypesListItem", function() { return EntityTypesListItem; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputDataConfig", function() { return InputDataConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputFormat", function() { return InputFormat; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InternalServerException", function() { return InternalServerException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InvalidFilterException", function() { return InvalidFilterException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InvalidRequestException", function() { return InvalidRequestException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JobNotFoundException", function() { return JobNotFoundException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JobStatus", function() { return JobStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KeyPhrase", function() { return KeyPhrase; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KeyPhrasesDetectionJobFilter", function() { return KeyPhrasesDetectionJobFilter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KeyPhrasesDetectionJobProperties", function() { return KeyPhrasesDetectionJobProperties; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KmsKeyValidationException", function() { return KmsKeyValidationException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LanguageCode", function() { return LanguageCode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListDocumentClassificationJobsRequest", function() { return ListDocumentClassificationJobsRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListDocumentClassificationJobsResponse", function() { return ListDocumentClassificationJobsResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListDocumentClassifiersRequest", function() { return ListDocumentClassifiersRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListDocumentClassifiersResponse", function() { return ListDocumentClassifiersResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListDominantLanguageDetectionJobsRequest", function() { return ListDominantLanguageDetectionJobsRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListDominantLanguageDetectionJobsResponse", function() { return ListDominantLanguageDetectionJobsResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListEndpointsRequest", function() { return ListEndpointsRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListEndpointsResponse", function() { return ListEndpointsResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListEntitiesDetectionJobsRequest", function() { return ListEntitiesDetectionJobsRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListEntitiesDetectionJobsResponse", function() { return ListEntitiesDetectionJobsResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListEntityRecognizersRequest", function() { return ListEntityRecognizersRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListEntityRecognizersResponse", function() { return ListEntityRecognizersResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListKeyPhrasesDetectionJobsRequest", function() { return ListKeyPhrasesDetectionJobsRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListKeyPhrasesDetectionJobsResponse", function() { return ListKeyPhrasesDetectionJobsResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListSentimentDetectionJobsRequest", function() { return ListSentimentDetectionJobsRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListSentimentDetectionJobsResponse", function() { return ListSentimentDetectionJobsResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceRequest", function() { return ListTagsForResourceRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceResponse", function() { return ListTagsForResourceResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTopicsDetectionJobsRequest", function() { return ListTopicsDetectionJobsRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTopicsDetectionJobsResponse", function() { return ListTopicsDetectionJobsResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ModelStatus", function() { return ModelStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutputDataConfig", function() { return OutputDataConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PartOfSpeechTag", function() { return PartOfSpeechTag; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PartOfSpeechTagType", function() { return PartOfSpeechTagType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceInUseException", function() { return ResourceInUseException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceLimitExceededException", function() { return ResourceLimitExceededException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return ResourceNotFoundException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceUnavailableException", function() { return ResourceUnavailableException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SentimentDetectionJobFilter", function() { return SentimentDetectionJobFilter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SentimentDetectionJobProperties", function() { return SentimentDetectionJobProperties; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SentimentScore", function() { return SentimentScore; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SentimentType", function() { return SentimentType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartDocumentClassificationJobRequest", function() { return StartDocumentClassificationJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartDocumentClassificationJobResponse", function() { return StartDocumentClassificationJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartDominantLanguageDetectionJobRequest", function() { return StartDominantLanguageDetectionJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartDominantLanguageDetectionJobResponse", function() { return StartDominantLanguageDetectionJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartEntitiesDetectionJobRequest", function() { return StartEntitiesDetectionJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartEntitiesDetectionJobResponse", function() { return StartEntitiesDetectionJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartKeyPhrasesDetectionJobRequest", function() { return StartKeyPhrasesDetectionJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartKeyPhrasesDetectionJobResponse", function() { return StartKeyPhrasesDetectionJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartSentimentDetectionJobRequest", function() { return StartSentimentDetectionJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartSentimentDetectionJobResponse", function() { return StartSentimentDetectionJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartTopicsDetectionJobRequest", function() { return StartTopicsDetectionJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartTopicsDetectionJobResponse", function() { return StartTopicsDetectionJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopDominantLanguageDetectionJobRequest", function() { return StopDominantLanguageDetectionJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopDominantLanguageDetectionJobResponse", function() { return StopDominantLanguageDetectionJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopEntitiesDetectionJobRequest", function() { return StopEntitiesDetectionJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopEntitiesDetectionJobResponse", function() { return StopEntitiesDetectionJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopKeyPhrasesDetectionJobRequest", function() { return StopKeyPhrasesDetectionJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopKeyPhrasesDetectionJobResponse", function() { return StopKeyPhrasesDetectionJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopSentimentDetectionJobRequest", function() { return StopSentimentDetectionJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopSentimentDetectionJobResponse", function() { return StopSentimentDetectionJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopTrainingDocumentClassifierRequest", function() { return StopTrainingDocumentClassifierRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopTrainingDocumentClassifierResponse", function() { return StopTrainingDocumentClassifierResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopTrainingEntityRecognizerRequest", function() { return StopTrainingEntityRecognizerRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopTrainingEntityRecognizerResponse", function() { return StopTrainingEntityRecognizerResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SyntaxLanguageCode", function() { return SyntaxLanguageCode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SyntaxToken", function() { return SyntaxToken; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return Tag; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagResourceRequest", function() { return TagResourceRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagResourceResponse", function() { return TagResourceResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextSizeLimitExceededException", function() { return TextSizeLimitExceededException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooManyRequestsException", function() { return TooManyRequestsException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooManyTagKeysException", function() { return TooManyTagKeysException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooManyTagsException", function() { return TooManyTagsException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TopicsDetectionJobFilter", function() { return TopicsDetectionJobFilter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TopicsDetectionJobProperties", function() { return TopicsDetectionJobProperties; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnsupportedLanguageException", function() { return UnsupportedLanguageException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UntagResourceRequest", function() { return UntagResourceRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UntagResourceResponse", function() { return UntagResourceResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointRequest", function() { return UpdateEndpointRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointResponse", function() { return UpdateEndpointResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VpcConfig", function() { return VpcConfig; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var BatchDetectDominantLanguageItemResult; (function (BatchDetectDominantLanguageItemResult) { BatchDetectDominantLanguageItemResult.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; BatchDetectDominantLanguageItemResult.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchDetectDominantLanguageItemResult"); }; })(BatchDetectDominantLanguageItemResult || (BatchDetectDominantLanguageItemResult = {})); var BatchDetectDominantLanguageRequest; (function (BatchDetectDominantLanguageRequest) { BatchDetectDominantLanguageRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.TextList && { TextList: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; BatchDetectDominantLanguageRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchDetectDominantLanguageRequest"); }; })(BatchDetectDominantLanguageRequest || (BatchDetectDominantLanguageRequest = {})); var BatchDetectDominantLanguageResponse; (function (BatchDetectDominantLanguageResponse) { BatchDetectDominantLanguageResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; BatchDetectDominantLanguageResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchDetectDominantLanguageResponse"); }; })(BatchDetectDominantLanguageResponse || (BatchDetectDominantLanguageResponse = {})); var BatchDetectEntitiesItemResult; (function (BatchDetectEntitiesItemResult) { BatchDetectEntitiesItemResult.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; BatchDetectEntitiesItemResult.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchDetectEntitiesItemResult"); }; })(BatchDetectEntitiesItemResult || (BatchDetectEntitiesItemResult = {})); var BatchDetectEntitiesRequest; (function (BatchDetectEntitiesRequest) { BatchDetectEntitiesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.TextList && { TextList: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; BatchDetectEntitiesRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchDetectEntitiesRequest"); }; })(BatchDetectEntitiesRequest || (BatchDetectEntitiesRequest = {})); var BatchDetectEntitiesResponse; (function (BatchDetectEntitiesResponse) { BatchDetectEntitiesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; BatchDetectEntitiesResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchDetectEntitiesResponse"); }; })(BatchDetectEntitiesResponse || (BatchDetectEntitiesResponse = {})); var BatchDetectKeyPhrasesItemResult; (function (BatchDetectKeyPhrasesItemResult) { BatchDetectKeyPhrasesItemResult.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; BatchDetectKeyPhrasesItemResult.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchDetectKeyPhrasesItemResult"); }; })(BatchDetectKeyPhrasesItemResult || (BatchDetectKeyPhrasesItemResult = {})); var BatchDetectKeyPhrasesRequest; (function (BatchDetectKeyPhrasesRequest) { BatchDetectKeyPhrasesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.TextList && { TextList: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; BatchDetectKeyPhrasesRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchDetectKeyPhrasesRequest"); }; })(BatchDetectKeyPhrasesRequest || (BatchDetectKeyPhrasesRequest = {})); var BatchDetectKeyPhrasesResponse; (function (BatchDetectKeyPhrasesResponse) { BatchDetectKeyPhrasesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; BatchDetectKeyPhrasesResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchDetectKeyPhrasesResponse"); }; })(BatchDetectKeyPhrasesResponse || (BatchDetectKeyPhrasesResponse = {})); var BatchDetectSentimentItemResult; (function (BatchDetectSentimentItemResult) { BatchDetectSentimentItemResult.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; BatchDetectSentimentItemResult.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchDetectSentimentItemResult"); }; })(BatchDetectSentimentItemResult || (BatchDetectSentimentItemResult = {})); var BatchDetectSentimentRequest; (function (BatchDetectSentimentRequest) { BatchDetectSentimentRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.TextList && { TextList: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; BatchDetectSentimentRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchDetectSentimentRequest"); }; })(BatchDetectSentimentRequest || (BatchDetectSentimentRequest = {})); var BatchDetectSentimentResponse; (function (BatchDetectSentimentResponse) { BatchDetectSentimentResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; BatchDetectSentimentResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchDetectSentimentResponse"); }; })(BatchDetectSentimentResponse || (BatchDetectSentimentResponse = {})); var BatchDetectSyntaxItemResult; (function (BatchDetectSyntaxItemResult) { BatchDetectSyntaxItemResult.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; BatchDetectSyntaxItemResult.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchDetectSyntaxItemResult"); }; })(BatchDetectSyntaxItemResult || (BatchDetectSyntaxItemResult = {})); var BatchDetectSyntaxRequest; (function (BatchDetectSyntaxRequest) { BatchDetectSyntaxRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.TextList && { TextList: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; BatchDetectSyntaxRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchDetectSyntaxRequest"); }; })(BatchDetectSyntaxRequest || (BatchDetectSyntaxRequest = {})); var BatchDetectSyntaxResponse; (function (BatchDetectSyntaxResponse) { BatchDetectSyntaxResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; BatchDetectSyntaxResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchDetectSyntaxResponse"); }; })(BatchDetectSyntaxResponse || (BatchDetectSyntaxResponse = {})); var BatchItemError; (function (BatchItemError) { BatchItemError.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; BatchItemError.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchItemError"); }; })(BatchItemError || (BatchItemError = {})); var BatchSizeLimitExceededException; (function (BatchSizeLimitExceededException) { BatchSizeLimitExceededException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; BatchSizeLimitExceededException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BatchSizeLimitExceededException"); }; })(BatchSizeLimitExceededException || (BatchSizeLimitExceededException = {})); var ClassifierEvaluationMetrics; (function (ClassifierEvaluationMetrics) { ClassifierEvaluationMetrics.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ClassifierEvaluationMetrics.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ClassifierEvaluationMetrics"); }; })(ClassifierEvaluationMetrics || (ClassifierEvaluationMetrics = {})); var ClassifierMetadata; (function (ClassifierMetadata) { ClassifierMetadata.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ClassifierMetadata.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ClassifierMetadata"); }; })(ClassifierMetadata || (ClassifierMetadata = {})); var ClassifyDocumentRequest; (function (ClassifyDocumentRequest) { ClassifyDocumentRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.Text && { Text: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; ClassifyDocumentRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ClassifyDocumentRequest"); }; })(ClassifyDocumentRequest || (ClassifyDocumentRequest = {})); var ClassifyDocumentResponse; (function (ClassifyDocumentResponse) { ClassifyDocumentResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ClassifyDocumentResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ClassifyDocumentResponse"); }; })(ClassifyDocumentResponse || (ClassifyDocumentResponse = {})); var ConcurrentModificationException; (function (ConcurrentModificationException) { ConcurrentModificationException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ConcurrentModificationException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ConcurrentModificationException"); }; })(ConcurrentModificationException || (ConcurrentModificationException = {})); var CreateDocumentClassifierRequest; (function (CreateDocumentClassifierRequest) { CreateDocumentClassifierRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; CreateDocumentClassifierRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "CreateDocumentClassifierRequest"); }; })(CreateDocumentClassifierRequest || (CreateDocumentClassifierRequest = {})); var CreateDocumentClassifierResponse; (function (CreateDocumentClassifierResponse) { CreateDocumentClassifierResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; CreateDocumentClassifierResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "CreateDocumentClassifierResponse"); }; })(CreateDocumentClassifierResponse || (CreateDocumentClassifierResponse = {})); var CreateEndpointRequest; (function (CreateEndpointRequest) { CreateEndpointRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; CreateEndpointRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "CreateEndpointRequest"); }; })(CreateEndpointRequest || (CreateEndpointRequest = {})); var CreateEndpointResponse; (function (CreateEndpointResponse) { CreateEndpointResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; CreateEndpointResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "CreateEndpointResponse"); }; })(CreateEndpointResponse || (CreateEndpointResponse = {})); var CreateEntityRecognizerRequest; (function (CreateEntityRecognizerRequest) { CreateEntityRecognizerRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; CreateEntityRecognizerRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "CreateEntityRecognizerRequest"); }; })(CreateEntityRecognizerRequest || (CreateEntityRecognizerRequest = {})); var CreateEntityRecognizerResponse; (function (CreateEntityRecognizerResponse) { CreateEntityRecognizerResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; CreateEntityRecognizerResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "CreateEntityRecognizerResponse"); }; })(CreateEntityRecognizerResponse || (CreateEntityRecognizerResponse = {})); var DeleteDocumentClassifierRequest; (function (DeleteDocumentClassifierRequest) { DeleteDocumentClassifierRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DeleteDocumentClassifierRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DeleteDocumentClassifierRequest"); }; })(DeleteDocumentClassifierRequest || (DeleteDocumentClassifierRequest = {})); var DeleteDocumentClassifierResponse; (function (DeleteDocumentClassifierResponse) { DeleteDocumentClassifierResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DeleteDocumentClassifierResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DeleteDocumentClassifierResponse"); }; })(DeleteDocumentClassifierResponse || (DeleteDocumentClassifierResponse = {})); var DeleteEndpointRequest; (function (DeleteEndpointRequest) { DeleteEndpointRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DeleteEndpointRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DeleteEndpointRequest"); }; })(DeleteEndpointRequest || (DeleteEndpointRequest = {})); var DeleteEndpointResponse; (function (DeleteEndpointResponse) { DeleteEndpointResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DeleteEndpointResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DeleteEndpointResponse"); }; })(DeleteEndpointResponse || (DeleteEndpointResponse = {})); var DeleteEntityRecognizerRequest; (function (DeleteEntityRecognizerRequest) { DeleteEntityRecognizerRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DeleteEntityRecognizerRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DeleteEntityRecognizerRequest"); }; })(DeleteEntityRecognizerRequest || (DeleteEntityRecognizerRequest = {})); var DeleteEntityRecognizerResponse; (function (DeleteEntityRecognizerResponse) { DeleteEntityRecognizerResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DeleteEntityRecognizerResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DeleteEntityRecognizerResponse"); }; })(DeleteEntityRecognizerResponse || (DeleteEntityRecognizerResponse = {})); var DescribeDocumentClassificationJobRequest; (function (DescribeDocumentClassificationJobRequest) { DescribeDocumentClassificationJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeDocumentClassificationJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeDocumentClassificationJobRequest"); }; })(DescribeDocumentClassificationJobRequest || (DescribeDocumentClassificationJobRequest = {})); var DescribeDocumentClassificationJobResponse; (function (DescribeDocumentClassificationJobResponse) { DescribeDocumentClassificationJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeDocumentClassificationJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeDocumentClassificationJobResponse"); }; })(DescribeDocumentClassificationJobResponse || (DescribeDocumentClassificationJobResponse = {})); var DescribeDocumentClassifierRequest; (function (DescribeDocumentClassifierRequest) { DescribeDocumentClassifierRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeDocumentClassifierRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeDocumentClassifierRequest"); }; })(DescribeDocumentClassifierRequest || (DescribeDocumentClassifierRequest = {})); var DescribeDocumentClassifierResponse; (function (DescribeDocumentClassifierResponse) { DescribeDocumentClassifierResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.DocumentClassifierProperties && { DocumentClassifierProperties: DocumentClassifierProperties.filterSensitiveLog(obj.DocumentClassifierProperties), }))); }; DescribeDocumentClassifierResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeDocumentClassifierResponse"); }; })(DescribeDocumentClassifierResponse || (DescribeDocumentClassifierResponse = {})); var DescribeDominantLanguageDetectionJobRequest; (function (DescribeDominantLanguageDetectionJobRequest) { DescribeDominantLanguageDetectionJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeDominantLanguageDetectionJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeDominantLanguageDetectionJobRequest"); }; })(DescribeDominantLanguageDetectionJobRequest || (DescribeDominantLanguageDetectionJobRequest = {})); var DescribeDominantLanguageDetectionJobResponse; (function (DescribeDominantLanguageDetectionJobResponse) { DescribeDominantLanguageDetectionJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeDominantLanguageDetectionJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeDominantLanguageDetectionJobResponse"); }; })(DescribeDominantLanguageDetectionJobResponse || (DescribeDominantLanguageDetectionJobResponse = {})); var DescribeEndpointRequest; (function (DescribeEndpointRequest) { DescribeEndpointRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeEndpointRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeEndpointRequest"); }; })(DescribeEndpointRequest || (DescribeEndpointRequest = {})); var DescribeEndpointResponse; (function (DescribeEndpointResponse) { DescribeEndpointResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeEndpointResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeEndpointResponse"); }; })(DescribeEndpointResponse || (DescribeEndpointResponse = {})); var DescribeEntitiesDetectionJobRequest; (function (DescribeEntitiesDetectionJobRequest) { DescribeEntitiesDetectionJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeEntitiesDetectionJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeEntitiesDetectionJobRequest"); }; })(DescribeEntitiesDetectionJobRequest || (DescribeEntitiesDetectionJobRequest = {})); var DescribeEntitiesDetectionJobResponse; (function (DescribeEntitiesDetectionJobResponse) { DescribeEntitiesDetectionJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeEntitiesDetectionJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeEntitiesDetectionJobResponse"); }; })(DescribeEntitiesDetectionJobResponse || (DescribeEntitiesDetectionJobResponse = {})); var DescribeEntityRecognizerRequest; (function (DescribeEntityRecognizerRequest) { DescribeEntityRecognizerRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeEntityRecognizerRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeEntityRecognizerRequest"); }; })(DescribeEntityRecognizerRequest || (DescribeEntityRecognizerRequest = {})); var DescribeEntityRecognizerResponse; (function (DescribeEntityRecognizerResponse) { DescribeEntityRecognizerResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.EntityRecognizerProperties && { EntityRecognizerProperties: EntityRecognizerProperties.filterSensitiveLog(obj.EntityRecognizerProperties), }))); }; DescribeEntityRecognizerResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeEntityRecognizerResponse"); }; })(DescribeEntityRecognizerResponse || (DescribeEntityRecognizerResponse = {})); var DescribeKeyPhrasesDetectionJobRequest; (function (DescribeKeyPhrasesDetectionJobRequest) { DescribeKeyPhrasesDetectionJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeKeyPhrasesDetectionJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeKeyPhrasesDetectionJobRequest"); }; })(DescribeKeyPhrasesDetectionJobRequest || (DescribeKeyPhrasesDetectionJobRequest = {})); var DescribeKeyPhrasesDetectionJobResponse; (function (DescribeKeyPhrasesDetectionJobResponse) { DescribeKeyPhrasesDetectionJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeKeyPhrasesDetectionJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeKeyPhrasesDetectionJobResponse"); }; })(DescribeKeyPhrasesDetectionJobResponse || (DescribeKeyPhrasesDetectionJobResponse = {})); var DescribeSentimentDetectionJobRequest; (function (DescribeSentimentDetectionJobRequest) { DescribeSentimentDetectionJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeSentimentDetectionJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeSentimentDetectionJobRequest"); }; })(DescribeSentimentDetectionJobRequest || (DescribeSentimentDetectionJobRequest = {})); var DescribeSentimentDetectionJobResponse; (function (DescribeSentimentDetectionJobResponse) { DescribeSentimentDetectionJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeSentimentDetectionJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeSentimentDetectionJobResponse"); }; })(DescribeSentimentDetectionJobResponse || (DescribeSentimentDetectionJobResponse = {})); var DescribeTopicsDetectionJobRequest; (function (DescribeTopicsDetectionJobRequest) { DescribeTopicsDetectionJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeTopicsDetectionJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeTopicsDetectionJobRequest"); }; })(DescribeTopicsDetectionJobRequest || (DescribeTopicsDetectionJobRequest = {})); var DescribeTopicsDetectionJobResponse; (function (DescribeTopicsDetectionJobResponse) { DescribeTopicsDetectionJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeTopicsDetectionJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeTopicsDetectionJobResponse"); }; })(DescribeTopicsDetectionJobResponse || (DescribeTopicsDetectionJobResponse = {})); var DetectDominantLanguageRequest; (function (DetectDominantLanguageRequest) { DetectDominantLanguageRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.Text && { Text: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; DetectDominantLanguageRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DetectDominantLanguageRequest"); }; })(DetectDominantLanguageRequest || (DetectDominantLanguageRequest = {})); var DetectDominantLanguageResponse; (function (DetectDominantLanguageResponse) { DetectDominantLanguageResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DetectDominantLanguageResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DetectDominantLanguageResponse"); }; })(DetectDominantLanguageResponse || (DetectDominantLanguageResponse = {})); var DetectEntitiesRequest; (function (DetectEntitiesRequest) { DetectEntitiesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.Text && { Text: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; DetectEntitiesRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DetectEntitiesRequest"); }; })(DetectEntitiesRequest || (DetectEntitiesRequest = {})); var DetectEntitiesResponse; (function (DetectEntitiesResponse) { DetectEntitiesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DetectEntitiesResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DetectEntitiesResponse"); }; })(DetectEntitiesResponse || (DetectEntitiesResponse = {})); var DetectKeyPhrasesRequest; (function (DetectKeyPhrasesRequest) { DetectKeyPhrasesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.Text && { Text: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; DetectKeyPhrasesRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DetectKeyPhrasesRequest"); }; })(DetectKeyPhrasesRequest || (DetectKeyPhrasesRequest = {})); var DetectKeyPhrasesResponse; (function (DetectKeyPhrasesResponse) { DetectKeyPhrasesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DetectKeyPhrasesResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DetectKeyPhrasesResponse"); }; })(DetectKeyPhrasesResponse || (DetectKeyPhrasesResponse = {})); var DetectSentimentRequest; (function (DetectSentimentRequest) { DetectSentimentRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.Text && { Text: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; DetectSentimentRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DetectSentimentRequest"); }; })(DetectSentimentRequest || (DetectSentimentRequest = {})); var DetectSentimentResponse; (function (DetectSentimentResponse) { DetectSentimentResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DetectSentimentResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DetectSentimentResponse"); }; })(DetectSentimentResponse || (DetectSentimentResponse = {})); var DetectSyntaxRequest; (function (DetectSyntaxRequest) { DetectSyntaxRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.Text && { Text: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; DetectSyntaxRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DetectSyntaxRequest"); }; })(DetectSyntaxRequest || (DetectSyntaxRequest = {})); var DetectSyntaxResponse; (function (DetectSyntaxResponse) { DetectSyntaxResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DetectSyntaxResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DetectSyntaxResponse"); }; })(DetectSyntaxResponse || (DetectSyntaxResponse = {})); var DocumentClass; (function (DocumentClass) { DocumentClass.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DocumentClass.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DocumentClass"); }; })(DocumentClass || (DocumentClass = {})); var DocumentClassificationJobFilter; (function (DocumentClassificationJobFilter) { DocumentClassificationJobFilter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DocumentClassificationJobFilter.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DocumentClassificationJobFilter"); }; })(DocumentClassificationJobFilter || (DocumentClassificationJobFilter = {})); var DocumentClassificationJobProperties; (function (DocumentClassificationJobProperties) { DocumentClassificationJobProperties.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DocumentClassificationJobProperties.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DocumentClassificationJobProperties"); }; })(DocumentClassificationJobProperties || (DocumentClassificationJobProperties = {})); var DocumentClassifierFilter; (function (DocumentClassifierFilter) { DocumentClassifierFilter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DocumentClassifierFilter.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DocumentClassifierFilter"); }; })(DocumentClassifierFilter || (DocumentClassifierFilter = {})); var DocumentClassifierInputDataConfig; (function (DocumentClassifierInputDataConfig) { DocumentClassifierInputDataConfig.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DocumentClassifierInputDataConfig.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DocumentClassifierInputDataConfig"); }; })(DocumentClassifierInputDataConfig || (DocumentClassifierInputDataConfig = {})); var DocumentClassifierMode; (function (DocumentClassifierMode) { DocumentClassifierMode["MULTI_CLASS"] = "MULTI_CLASS"; DocumentClassifierMode["MULTI_LABEL"] = "MULTI_LABEL"; })(DocumentClassifierMode || (DocumentClassifierMode = {})); var DocumentClassifierOutputDataConfig; (function (DocumentClassifierOutputDataConfig) { DocumentClassifierOutputDataConfig.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DocumentClassifierOutputDataConfig.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DocumentClassifierOutputDataConfig"); }; })(DocumentClassifierOutputDataConfig || (DocumentClassifierOutputDataConfig = {})); var DocumentClassifierProperties; (function (DocumentClassifierProperties) { DocumentClassifierProperties.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.ClassifierMetadata && { ClassifierMetadata: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; DocumentClassifierProperties.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DocumentClassifierProperties"); }; })(DocumentClassifierProperties || (DocumentClassifierProperties = {})); var DocumentLabel; (function (DocumentLabel) { DocumentLabel.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DocumentLabel.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DocumentLabel"); }; })(DocumentLabel || (DocumentLabel = {})); var DominantLanguage; (function (DominantLanguage) { DominantLanguage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DominantLanguage.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DominantLanguage"); }; })(DominantLanguage || (DominantLanguage = {})); var DominantLanguageDetectionJobFilter; (function (DominantLanguageDetectionJobFilter) { DominantLanguageDetectionJobFilter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DominantLanguageDetectionJobFilter.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DominantLanguageDetectionJobFilter"); }; })(DominantLanguageDetectionJobFilter || (DominantLanguageDetectionJobFilter = {})); var DominantLanguageDetectionJobProperties; (function (DominantLanguageDetectionJobProperties) { DominantLanguageDetectionJobProperties.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DominantLanguageDetectionJobProperties.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DominantLanguageDetectionJobProperties"); }; })(DominantLanguageDetectionJobProperties || (DominantLanguageDetectionJobProperties = {})); var EndpointFilter; (function (EndpointFilter) { EndpointFilter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EndpointFilter.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EndpointFilter"); }; })(EndpointFilter || (EndpointFilter = {})); var EndpointProperties; (function (EndpointProperties) { EndpointProperties.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EndpointProperties.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EndpointProperties"); }; })(EndpointProperties || (EndpointProperties = {})); var EndpointStatus; (function (EndpointStatus) { EndpointStatus["CREATING"] = "CREATING"; EndpointStatus["DELETING"] = "DELETING"; EndpointStatus["FAILED"] = "FAILED"; EndpointStatus["IN_SERVICE"] = "IN_SERVICE"; EndpointStatus["UPDATING"] = "UPDATING"; })(EndpointStatus || (EndpointStatus = {})); var EntitiesDetectionJobFilter; (function (EntitiesDetectionJobFilter) { EntitiesDetectionJobFilter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EntitiesDetectionJobFilter.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EntitiesDetectionJobFilter"); }; })(EntitiesDetectionJobFilter || (EntitiesDetectionJobFilter = {})); var EntitiesDetectionJobProperties; (function (EntitiesDetectionJobProperties) { EntitiesDetectionJobProperties.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EntitiesDetectionJobProperties.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EntitiesDetectionJobProperties"); }; })(EntitiesDetectionJobProperties || (EntitiesDetectionJobProperties = {})); var Entity; (function (Entity) { Entity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; Entity.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "Entity"); }; })(Entity || (Entity = {})); var EntityRecognizerAnnotations; (function (EntityRecognizerAnnotations) { EntityRecognizerAnnotations.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EntityRecognizerAnnotations.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EntityRecognizerAnnotations"); }; })(EntityRecognizerAnnotations || (EntityRecognizerAnnotations = {})); var EntityRecognizerDocuments; (function (EntityRecognizerDocuments) { EntityRecognizerDocuments.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EntityRecognizerDocuments.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EntityRecognizerDocuments"); }; })(EntityRecognizerDocuments || (EntityRecognizerDocuments = {})); var EntityRecognizerEntityList; (function (EntityRecognizerEntityList) { EntityRecognizerEntityList.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EntityRecognizerEntityList.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EntityRecognizerEntityList"); }; })(EntityRecognizerEntityList || (EntityRecognizerEntityList = {})); var EntityRecognizerEvaluationMetrics; (function (EntityRecognizerEvaluationMetrics) { EntityRecognizerEvaluationMetrics.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EntityRecognizerEvaluationMetrics.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EntityRecognizerEvaluationMetrics"); }; })(EntityRecognizerEvaluationMetrics || (EntityRecognizerEvaluationMetrics = {})); var EntityRecognizerFilter; (function (EntityRecognizerFilter) { EntityRecognizerFilter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EntityRecognizerFilter.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EntityRecognizerFilter"); }; })(EntityRecognizerFilter || (EntityRecognizerFilter = {})); var EntityRecognizerInputDataConfig; (function (EntityRecognizerInputDataConfig) { EntityRecognizerInputDataConfig.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EntityRecognizerInputDataConfig.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EntityRecognizerInputDataConfig"); }; })(EntityRecognizerInputDataConfig || (EntityRecognizerInputDataConfig = {})); var EntityRecognizerMetadata; (function (EntityRecognizerMetadata) { EntityRecognizerMetadata.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EntityRecognizerMetadata.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EntityRecognizerMetadata"); }; })(EntityRecognizerMetadata || (EntityRecognizerMetadata = {})); var EntityRecognizerMetadataEntityTypesListItem; (function (EntityRecognizerMetadataEntityTypesListItem) { EntityRecognizerMetadataEntityTypesListItem.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EntityRecognizerMetadataEntityTypesListItem.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EntityRecognizerMetadataEntityTypesListItem"); }; })(EntityRecognizerMetadataEntityTypesListItem || (EntityRecognizerMetadataEntityTypesListItem = {})); var EntityRecognizerProperties; (function (EntityRecognizerProperties) { EntityRecognizerProperties.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.RecognizerMetadata && { RecognizerMetadata: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; EntityRecognizerProperties.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EntityRecognizerProperties"); }; })(EntityRecognizerProperties || (EntityRecognizerProperties = {})); var EntityType; (function (EntityType) { EntityType["COMMERCIAL_ITEM"] = "COMMERCIAL_ITEM"; EntityType["DATE"] = "DATE"; EntityType["EVENT"] = "EVENT"; EntityType["LOCATION"] = "LOCATION"; EntityType["ORGANIZATION"] = "ORGANIZATION"; EntityType["OTHER"] = "OTHER"; EntityType["PERSON"] = "PERSON"; EntityType["QUANTITY"] = "QUANTITY"; EntityType["TITLE"] = "TITLE"; })(EntityType || (EntityType = {})); var EntityTypesEvaluationMetrics; (function (EntityTypesEvaluationMetrics) { EntityTypesEvaluationMetrics.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EntityTypesEvaluationMetrics.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EntityTypesEvaluationMetrics"); }; })(EntityTypesEvaluationMetrics || (EntityTypesEvaluationMetrics = {})); var EntityTypesListItem; (function (EntityTypesListItem) { EntityTypesListItem.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EntityTypesListItem.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EntityTypesListItem"); }; })(EntityTypesListItem || (EntityTypesListItem = {})); var InputDataConfig; (function (InputDataConfig) { InputDataConfig.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; InputDataConfig.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "InputDataConfig"); }; })(InputDataConfig || (InputDataConfig = {})); var InputFormat; (function (InputFormat) { InputFormat["ONE_DOC_PER_FILE"] = "ONE_DOC_PER_FILE"; InputFormat["ONE_DOC_PER_LINE"] = "ONE_DOC_PER_LINE"; })(InputFormat || (InputFormat = {})); var InternalServerException; (function (InternalServerException) { InternalServerException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; InternalServerException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "InternalServerException"); }; })(InternalServerException || (InternalServerException = {})); var InvalidFilterException; (function (InvalidFilterException) { InvalidFilterException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; InvalidFilterException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "InvalidFilterException"); }; })(InvalidFilterException || (InvalidFilterException = {})); var InvalidRequestException; (function (InvalidRequestException) { InvalidRequestException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; InvalidRequestException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "InvalidRequestException"); }; })(InvalidRequestException || (InvalidRequestException = {})); var JobNotFoundException; (function (JobNotFoundException) { JobNotFoundException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; JobNotFoundException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "JobNotFoundException"); }; })(JobNotFoundException || (JobNotFoundException = {})); var JobStatus; (function (JobStatus) { JobStatus["COMPLETED"] = "COMPLETED"; JobStatus["FAILED"] = "FAILED"; JobStatus["IN_PROGRESS"] = "IN_PROGRESS"; JobStatus["STOPPED"] = "STOPPED"; JobStatus["STOP_REQUESTED"] = "STOP_REQUESTED"; JobStatus["SUBMITTED"] = "SUBMITTED"; })(JobStatus || (JobStatus = {})); var KeyPhrase; (function (KeyPhrase) { KeyPhrase.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; KeyPhrase.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "KeyPhrase"); }; })(KeyPhrase || (KeyPhrase = {})); var KeyPhrasesDetectionJobFilter; (function (KeyPhrasesDetectionJobFilter) { KeyPhrasesDetectionJobFilter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; KeyPhrasesDetectionJobFilter.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "KeyPhrasesDetectionJobFilter"); }; })(KeyPhrasesDetectionJobFilter || (KeyPhrasesDetectionJobFilter = {})); var KeyPhrasesDetectionJobProperties; (function (KeyPhrasesDetectionJobProperties) { KeyPhrasesDetectionJobProperties.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; KeyPhrasesDetectionJobProperties.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "KeyPhrasesDetectionJobProperties"); }; })(KeyPhrasesDetectionJobProperties || (KeyPhrasesDetectionJobProperties = {})); var KmsKeyValidationException; (function (KmsKeyValidationException) { KmsKeyValidationException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; KmsKeyValidationException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "KmsKeyValidationException"); }; })(KmsKeyValidationException || (KmsKeyValidationException = {})); var LanguageCode; (function (LanguageCode) { LanguageCode["AR"] = "ar"; LanguageCode["DE"] = "de"; LanguageCode["EN"] = "en"; LanguageCode["ES"] = "es"; LanguageCode["FR"] = "fr"; LanguageCode["HI"] = "hi"; LanguageCode["IT"] = "it"; LanguageCode["JA"] = "ja"; LanguageCode["KO"] = "ko"; LanguageCode["PT"] = "pt"; LanguageCode["ZH"] = "zh"; LanguageCode["ZH_TW"] = "zh-TW"; })(LanguageCode || (LanguageCode = {})); var ListDocumentClassificationJobsRequest; (function (ListDocumentClassificationJobsRequest) { ListDocumentClassificationJobsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListDocumentClassificationJobsRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListDocumentClassificationJobsRequest"); }; })(ListDocumentClassificationJobsRequest || (ListDocumentClassificationJobsRequest = {})); var ListDocumentClassificationJobsResponse; (function (ListDocumentClassificationJobsResponse) { ListDocumentClassificationJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListDocumentClassificationJobsResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListDocumentClassificationJobsResponse"); }; })(ListDocumentClassificationJobsResponse || (ListDocumentClassificationJobsResponse = {})); var ListDocumentClassifiersRequest; (function (ListDocumentClassifiersRequest) { ListDocumentClassifiersRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListDocumentClassifiersRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListDocumentClassifiersRequest"); }; })(ListDocumentClassifiersRequest || (ListDocumentClassifiersRequest = {})); var ListDocumentClassifiersResponse; (function (ListDocumentClassifiersResponse) { ListDocumentClassifiersResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.DocumentClassifierPropertiesList && { DocumentClassifierPropertiesList: obj.DocumentClassifierPropertiesList.map(function (item) { return DocumentClassifierProperties.filterSensitiveLog(item); }), }))); }; ListDocumentClassifiersResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListDocumentClassifiersResponse"); }; })(ListDocumentClassifiersResponse || (ListDocumentClassifiersResponse = {})); var ListDominantLanguageDetectionJobsRequest; (function (ListDominantLanguageDetectionJobsRequest) { ListDominantLanguageDetectionJobsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListDominantLanguageDetectionJobsRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListDominantLanguageDetectionJobsRequest"); }; })(ListDominantLanguageDetectionJobsRequest || (ListDominantLanguageDetectionJobsRequest = {})); var ListDominantLanguageDetectionJobsResponse; (function (ListDominantLanguageDetectionJobsResponse) { ListDominantLanguageDetectionJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListDominantLanguageDetectionJobsResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListDominantLanguageDetectionJobsResponse"); }; })(ListDominantLanguageDetectionJobsResponse || (ListDominantLanguageDetectionJobsResponse = {})); var ListEndpointsRequest; (function (ListEndpointsRequest) { ListEndpointsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListEndpointsRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListEndpointsRequest"); }; })(ListEndpointsRequest || (ListEndpointsRequest = {})); var ListEndpointsResponse; (function (ListEndpointsResponse) { ListEndpointsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListEndpointsResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListEndpointsResponse"); }; })(ListEndpointsResponse || (ListEndpointsResponse = {})); var ListEntitiesDetectionJobsRequest; (function (ListEntitiesDetectionJobsRequest) { ListEntitiesDetectionJobsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListEntitiesDetectionJobsRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListEntitiesDetectionJobsRequest"); }; })(ListEntitiesDetectionJobsRequest || (ListEntitiesDetectionJobsRequest = {})); var ListEntitiesDetectionJobsResponse; (function (ListEntitiesDetectionJobsResponse) { ListEntitiesDetectionJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListEntitiesDetectionJobsResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListEntitiesDetectionJobsResponse"); }; })(ListEntitiesDetectionJobsResponse || (ListEntitiesDetectionJobsResponse = {})); var ListEntityRecognizersRequest; (function (ListEntityRecognizersRequest) { ListEntityRecognizersRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListEntityRecognizersRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListEntityRecognizersRequest"); }; })(ListEntityRecognizersRequest || (ListEntityRecognizersRequest = {})); var ListEntityRecognizersResponse; (function (ListEntityRecognizersResponse) { ListEntityRecognizersResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.EntityRecognizerPropertiesList && { EntityRecognizerPropertiesList: obj.EntityRecognizerPropertiesList.map(function (item) { return EntityRecognizerProperties.filterSensitiveLog(item); }), }))); }; ListEntityRecognizersResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListEntityRecognizersResponse"); }; })(ListEntityRecognizersResponse || (ListEntityRecognizersResponse = {})); var ListKeyPhrasesDetectionJobsRequest; (function (ListKeyPhrasesDetectionJobsRequest) { ListKeyPhrasesDetectionJobsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListKeyPhrasesDetectionJobsRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListKeyPhrasesDetectionJobsRequest"); }; })(ListKeyPhrasesDetectionJobsRequest || (ListKeyPhrasesDetectionJobsRequest = {})); var ListKeyPhrasesDetectionJobsResponse; (function (ListKeyPhrasesDetectionJobsResponse) { ListKeyPhrasesDetectionJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListKeyPhrasesDetectionJobsResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListKeyPhrasesDetectionJobsResponse"); }; })(ListKeyPhrasesDetectionJobsResponse || (ListKeyPhrasesDetectionJobsResponse = {})); var ListSentimentDetectionJobsRequest; (function (ListSentimentDetectionJobsRequest) { ListSentimentDetectionJobsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListSentimentDetectionJobsRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListSentimentDetectionJobsRequest"); }; })(ListSentimentDetectionJobsRequest || (ListSentimentDetectionJobsRequest = {})); var ListSentimentDetectionJobsResponse; (function (ListSentimentDetectionJobsResponse) { ListSentimentDetectionJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListSentimentDetectionJobsResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListSentimentDetectionJobsResponse"); }; })(ListSentimentDetectionJobsResponse || (ListSentimentDetectionJobsResponse = {})); var ListTagsForResourceRequest; (function (ListTagsForResourceRequest) { ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListTagsForResourceRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListTagsForResourceRequest"); }; })(ListTagsForResourceRequest || (ListTagsForResourceRequest = {})); var ListTagsForResourceResponse; (function (ListTagsForResourceResponse) { ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListTagsForResourceResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListTagsForResourceResponse"); }; })(ListTagsForResourceResponse || (ListTagsForResourceResponse = {})); var ListTopicsDetectionJobsRequest; (function (ListTopicsDetectionJobsRequest) { ListTopicsDetectionJobsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListTopicsDetectionJobsRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListTopicsDetectionJobsRequest"); }; })(ListTopicsDetectionJobsRequest || (ListTopicsDetectionJobsRequest = {})); var ListTopicsDetectionJobsResponse; (function (ListTopicsDetectionJobsResponse) { ListTopicsDetectionJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListTopicsDetectionJobsResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListTopicsDetectionJobsResponse"); }; })(ListTopicsDetectionJobsResponse || (ListTopicsDetectionJobsResponse = {})); var ModelStatus; (function (ModelStatus) { ModelStatus["DELETING"] = "DELETING"; ModelStatus["IN_ERROR"] = "IN_ERROR"; ModelStatus["STOPPED"] = "STOPPED"; ModelStatus["STOP_REQUESTED"] = "STOP_REQUESTED"; ModelStatus["SUBMITTED"] = "SUBMITTED"; ModelStatus["TRAINED"] = "TRAINED"; ModelStatus["TRAINING"] = "TRAINING"; })(ModelStatus || (ModelStatus = {})); var OutputDataConfig; (function (OutputDataConfig) { OutputDataConfig.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; OutputDataConfig.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "OutputDataConfig"); }; })(OutputDataConfig || (OutputDataConfig = {})); var PartOfSpeechTag; (function (PartOfSpeechTag) { PartOfSpeechTag.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; PartOfSpeechTag.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "PartOfSpeechTag"); }; })(PartOfSpeechTag || (PartOfSpeechTag = {})); var PartOfSpeechTagType; (function (PartOfSpeechTagType) { PartOfSpeechTagType["ADJ"] = "ADJ"; PartOfSpeechTagType["ADP"] = "ADP"; PartOfSpeechTagType["ADV"] = "ADV"; PartOfSpeechTagType["AUX"] = "AUX"; PartOfSpeechTagType["CCONJ"] = "CCONJ"; PartOfSpeechTagType["CONJ"] = "CONJ"; PartOfSpeechTagType["DET"] = "DET"; PartOfSpeechTagType["INTJ"] = "INTJ"; PartOfSpeechTagType["NOUN"] = "NOUN"; PartOfSpeechTagType["NUM"] = "NUM"; PartOfSpeechTagType["O"] = "O"; PartOfSpeechTagType["PART"] = "PART"; PartOfSpeechTagType["PRON"] = "PRON"; PartOfSpeechTagType["PROPN"] = "PROPN"; PartOfSpeechTagType["PUNCT"] = "PUNCT"; PartOfSpeechTagType["SCONJ"] = "SCONJ"; PartOfSpeechTagType["SYM"] = "SYM"; PartOfSpeechTagType["VERB"] = "VERB"; })(PartOfSpeechTagType || (PartOfSpeechTagType = {})); var ResourceInUseException; (function (ResourceInUseException) { ResourceInUseException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ResourceInUseException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ResourceInUseException"); }; })(ResourceInUseException || (ResourceInUseException = {})); var ResourceLimitExceededException; (function (ResourceLimitExceededException) { ResourceLimitExceededException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ResourceLimitExceededException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ResourceLimitExceededException"); }; })(ResourceLimitExceededException || (ResourceLimitExceededException = {})); var ResourceNotFoundException; (function (ResourceNotFoundException) { ResourceNotFoundException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ResourceNotFoundException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ResourceNotFoundException"); }; })(ResourceNotFoundException || (ResourceNotFoundException = {})); var ResourceUnavailableException; (function (ResourceUnavailableException) { ResourceUnavailableException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ResourceUnavailableException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ResourceUnavailableException"); }; })(ResourceUnavailableException || (ResourceUnavailableException = {})); var SentimentDetectionJobFilter; (function (SentimentDetectionJobFilter) { SentimentDetectionJobFilter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; SentimentDetectionJobFilter.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "SentimentDetectionJobFilter"); }; })(SentimentDetectionJobFilter || (SentimentDetectionJobFilter = {})); var SentimentDetectionJobProperties; (function (SentimentDetectionJobProperties) { SentimentDetectionJobProperties.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; SentimentDetectionJobProperties.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "SentimentDetectionJobProperties"); }; })(SentimentDetectionJobProperties || (SentimentDetectionJobProperties = {})); var SentimentScore; (function (SentimentScore) { SentimentScore.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; SentimentScore.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "SentimentScore"); }; })(SentimentScore || (SentimentScore = {})); var SentimentType; (function (SentimentType) { SentimentType["MIXED"] = "MIXED"; SentimentType["NEGATIVE"] = "NEGATIVE"; SentimentType["NEUTRAL"] = "NEUTRAL"; SentimentType["POSITIVE"] = "POSITIVE"; })(SentimentType || (SentimentType = {})); var StartDocumentClassificationJobRequest; (function (StartDocumentClassificationJobRequest) { StartDocumentClassificationJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StartDocumentClassificationJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StartDocumentClassificationJobRequest"); }; })(StartDocumentClassificationJobRequest || (StartDocumentClassificationJobRequest = {})); var StartDocumentClassificationJobResponse; (function (StartDocumentClassificationJobResponse) { StartDocumentClassificationJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StartDocumentClassificationJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StartDocumentClassificationJobResponse"); }; })(StartDocumentClassificationJobResponse || (StartDocumentClassificationJobResponse = {})); var StartDominantLanguageDetectionJobRequest; (function (StartDominantLanguageDetectionJobRequest) { StartDominantLanguageDetectionJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StartDominantLanguageDetectionJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StartDominantLanguageDetectionJobRequest"); }; })(StartDominantLanguageDetectionJobRequest || (StartDominantLanguageDetectionJobRequest = {})); var StartDominantLanguageDetectionJobResponse; (function (StartDominantLanguageDetectionJobResponse) { StartDominantLanguageDetectionJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StartDominantLanguageDetectionJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StartDominantLanguageDetectionJobResponse"); }; })(StartDominantLanguageDetectionJobResponse || (StartDominantLanguageDetectionJobResponse = {})); var StartEntitiesDetectionJobRequest; (function (StartEntitiesDetectionJobRequest) { StartEntitiesDetectionJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StartEntitiesDetectionJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StartEntitiesDetectionJobRequest"); }; })(StartEntitiesDetectionJobRequest || (StartEntitiesDetectionJobRequest = {})); var StartEntitiesDetectionJobResponse; (function (StartEntitiesDetectionJobResponse) { StartEntitiesDetectionJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StartEntitiesDetectionJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StartEntitiesDetectionJobResponse"); }; })(StartEntitiesDetectionJobResponse || (StartEntitiesDetectionJobResponse = {})); var StartKeyPhrasesDetectionJobRequest; (function (StartKeyPhrasesDetectionJobRequest) { StartKeyPhrasesDetectionJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StartKeyPhrasesDetectionJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StartKeyPhrasesDetectionJobRequest"); }; })(StartKeyPhrasesDetectionJobRequest || (StartKeyPhrasesDetectionJobRequest = {})); var StartKeyPhrasesDetectionJobResponse; (function (StartKeyPhrasesDetectionJobResponse) { StartKeyPhrasesDetectionJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StartKeyPhrasesDetectionJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StartKeyPhrasesDetectionJobResponse"); }; })(StartKeyPhrasesDetectionJobResponse || (StartKeyPhrasesDetectionJobResponse = {})); var StartSentimentDetectionJobRequest; (function (StartSentimentDetectionJobRequest) { StartSentimentDetectionJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StartSentimentDetectionJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StartSentimentDetectionJobRequest"); }; })(StartSentimentDetectionJobRequest || (StartSentimentDetectionJobRequest = {})); var StartSentimentDetectionJobResponse; (function (StartSentimentDetectionJobResponse) { StartSentimentDetectionJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StartSentimentDetectionJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StartSentimentDetectionJobResponse"); }; })(StartSentimentDetectionJobResponse || (StartSentimentDetectionJobResponse = {})); var StartTopicsDetectionJobRequest; (function (StartTopicsDetectionJobRequest) { StartTopicsDetectionJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StartTopicsDetectionJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StartTopicsDetectionJobRequest"); }; })(StartTopicsDetectionJobRequest || (StartTopicsDetectionJobRequest = {})); var StartTopicsDetectionJobResponse; (function (StartTopicsDetectionJobResponse) { StartTopicsDetectionJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StartTopicsDetectionJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StartTopicsDetectionJobResponse"); }; })(StartTopicsDetectionJobResponse || (StartTopicsDetectionJobResponse = {})); var StopDominantLanguageDetectionJobRequest; (function (StopDominantLanguageDetectionJobRequest) { StopDominantLanguageDetectionJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StopDominantLanguageDetectionJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StopDominantLanguageDetectionJobRequest"); }; })(StopDominantLanguageDetectionJobRequest || (StopDominantLanguageDetectionJobRequest = {})); var StopDominantLanguageDetectionJobResponse; (function (StopDominantLanguageDetectionJobResponse) { StopDominantLanguageDetectionJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StopDominantLanguageDetectionJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StopDominantLanguageDetectionJobResponse"); }; })(StopDominantLanguageDetectionJobResponse || (StopDominantLanguageDetectionJobResponse = {})); var StopEntitiesDetectionJobRequest; (function (StopEntitiesDetectionJobRequest) { StopEntitiesDetectionJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StopEntitiesDetectionJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StopEntitiesDetectionJobRequest"); }; })(StopEntitiesDetectionJobRequest || (StopEntitiesDetectionJobRequest = {})); var StopEntitiesDetectionJobResponse; (function (StopEntitiesDetectionJobResponse) { StopEntitiesDetectionJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StopEntitiesDetectionJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StopEntitiesDetectionJobResponse"); }; })(StopEntitiesDetectionJobResponse || (StopEntitiesDetectionJobResponse = {})); var StopKeyPhrasesDetectionJobRequest; (function (StopKeyPhrasesDetectionJobRequest) { StopKeyPhrasesDetectionJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StopKeyPhrasesDetectionJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StopKeyPhrasesDetectionJobRequest"); }; })(StopKeyPhrasesDetectionJobRequest || (StopKeyPhrasesDetectionJobRequest = {})); var StopKeyPhrasesDetectionJobResponse; (function (StopKeyPhrasesDetectionJobResponse) { StopKeyPhrasesDetectionJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StopKeyPhrasesDetectionJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StopKeyPhrasesDetectionJobResponse"); }; })(StopKeyPhrasesDetectionJobResponse || (StopKeyPhrasesDetectionJobResponse = {})); var StopSentimentDetectionJobRequest; (function (StopSentimentDetectionJobRequest) { StopSentimentDetectionJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StopSentimentDetectionJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StopSentimentDetectionJobRequest"); }; })(StopSentimentDetectionJobRequest || (StopSentimentDetectionJobRequest = {})); var StopSentimentDetectionJobResponse; (function (StopSentimentDetectionJobResponse) { StopSentimentDetectionJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StopSentimentDetectionJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StopSentimentDetectionJobResponse"); }; })(StopSentimentDetectionJobResponse || (StopSentimentDetectionJobResponse = {})); var StopTrainingDocumentClassifierRequest; (function (StopTrainingDocumentClassifierRequest) { StopTrainingDocumentClassifierRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StopTrainingDocumentClassifierRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StopTrainingDocumentClassifierRequest"); }; })(StopTrainingDocumentClassifierRequest || (StopTrainingDocumentClassifierRequest = {})); var StopTrainingDocumentClassifierResponse; (function (StopTrainingDocumentClassifierResponse) { StopTrainingDocumentClassifierResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StopTrainingDocumentClassifierResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StopTrainingDocumentClassifierResponse"); }; })(StopTrainingDocumentClassifierResponse || (StopTrainingDocumentClassifierResponse = {})); var StopTrainingEntityRecognizerRequest; (function (StopTrainingEntityRecognizerRequest) { StopTrainingEntityRecognizerRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StopTrainingEntityRecognizerRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StopTrainingEntityRecognizerRequest"); }; })(StopTrainingEntityRecognizerRequest || (StopTrainingEntityRecognizerRequest = {})); var StopTrainingEntityRecognizerResponse; (function (StopTrainingEntityRecognizerResponse) { StopTrainingEntityRecognizerResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StopTrainingEntityRecognizerResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StopTrainingEntityRecognizerResponse"); }; })(StopTrainingEntityRecognizerResponse || (StopTrainingEntityRecognizerResponse = {})); var SyntaxLanguageCode; (function (SyntaxLanguageCode) { SyntaxLanguageCode["DE"] = "de"; SyntaxLanguageCode["EN"] = "en"; SyntaxLanguageCode["ES"] = "es"; SyntaxLanguageCode["FR"] = "fr"; SyntaxLanguageCode["IT"] = "it"; SyntaxLanguageCode["PT"] = "pt"; })(SyntaxLanguageCode || (SyntaxLanguageCode = {})); var SyntaxToken; (function (SyntaxToken) { SyntaxToken.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; SyntaxToken.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "SyntaxToken"); }; })(SyntaxToken || (SyntaxToken = {})); var Tag; (function (Tag) { Tag.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; Tag.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "Tag"); }; })(Tag || (Tag = {})); var TagResourceRequest; (function (TagResourceRequest) { TagResourceRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; TagResourceRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TagResourceRequest"); }; })(TagResourceRequest || (TagResourceRequest = {})); var TagResourceResponse; (function (TagResourceResponse) { TagResourceResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; TagResourceResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TagResourceResponse"); }; })(TagResourceResponse || (TagResourceResponse = {})); var TextSizeLimitExceededException; (function (TextSizeLimitExceededException) { TextSizeLimitExceededException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; TextSizeLimitExceededException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TextSizeLimitExceededException"); }; })(TextSizeLimitExceededException || (TextSizeLimitExceededException = {})); var TooManyRequestsException; (function (TooManyRequestsException) { TooManyRequestsException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; TooManyRequestsException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TooManyRequestsException"); }; })(TooManyRequestsException || (TooManyRequestsException = {})); var TooManyTagKeysException; (function (TooManyTagKeysException) { TooManyTagKeysException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; TooManyTagKeysException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TooManyTagKeysException"); }; })(TooManyTagKeysException || (TooManyTagKeysException = {})); var TooManyTagsException; (function (TooManyTagsException) { TooManyTagsException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; TooManyTagsException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TooManyTagsException"); }; })(TooManyTagsException || (TooManyTagsException = {})); var TopicsDetectionJobFilter; (function (TopicsDetectionJobFilter) { TopicsDetectionJobFilter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; TopicsDetectionJobFilter.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TopicsDetectionJobFilter"); }; })(TopicsDetectionJobFilter || (TopicsDetectionJobFilter = {})); var TopicsDetectionJobProperties; (function (TopicsDetectionJobProperties) { TopicsDetectionJobProperties.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; TopicsDetectionJobProperties.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TopicsDetectionJobProperties"); }; })(TopicsDetectionJobProperties || (TopicsDetectionJobProperties = {})); var UnsupportedLanguageException; (function (UnsupportedLanguageException) { UnsupportedLanguageException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; UnsupportedLanguageException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "UnsupportedLanguageException"); }; })(UnsupportedLanguageException || (UnsupportedLanguageException = {})); var UntagResourceRequest; (function (UntagResourceRequest) { UntagResourceRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; UntagResourceRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "UntagResourceRequest"); }; })(UntagResourceRequest || (UntagResourceRequest = {})); var UntagResourceResponse; (function (UntagResourceResponse) { UntagResourceResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; UntagResourceResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "UntagResourceResponse"); }; })(UntagResourceResponse || (UntagResourceResponse = {})); var UpdateEndpointRequest; (function (UpdateEndpointRequest) { UpdateEndpointRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; UpdateEndpointRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "UpdateEndpointRequest"); }; })(UpdateEndpointRequest || (UpdateEndpointRequest = {})); var UpdateEndpointResponse; (function (UpdateEndpointResponse) { UpdateEndpointResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; UpdateEndpointResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "UpdateEndpointResponse"); }; })(UpdateEndpointResponse || (UpdateEndpointResponse = {})); var VpcConfig; (function (VpcConfig) { VpcConfig.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; VpcConfig.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "VpcConfig"); }; })(VpcConfig || (VpcConfig = {})); //# sourceMappingURL=index.js.map /***/ }), /***/ "AW/X": /*!***********************************************************************!*\ !*** ./node_modules/graphql/validation/rules/ValuesOfCorrectType.mjs ***! \***********************************************************************/ /*! exports provided: badValueMessage, requiredFieldMessage, unknownFieldMessage, ValuesOfCorrectType */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "badValueMessage", function() { return badValueMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "requiredFieldMessage", function() { return requiredFieldMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unknownFieldMessage", function() { return unknownFieldMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValuesOfCorrectType", function() { return ValuesOfCorrectType; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /* harmony import */ var _language_printer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../language/printer */ "dQau"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../type/definition */ "axIb"); /* harmony import */ var _jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../jsutils/inspect */ "rWdj"); /* harmony import */ var _jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../jsutils/isInvalid */ "/kEc"); /* harmony import */ var _jsutils_keyMap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../jsutils/keyMap */ "kBjl"); /* harmony import */ var _jsutils_orList__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../jsutils/orList */ "7AeT"); /* harmony import */ var _jsutils_suggestionList__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../jsutils/suggestionList */ "T95z"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function badValueMessage(typeName, valueName, message) { return "Expected type ".concat(typeName, ", found ").concat(valueName) + (message ? "; ".concat(message) : '.'); } function requiredFieldMessage(typeName, fieldName, fieldTypeName) { return "Field ".concat(typeName, ".").concat(fieldName, " of required type ") + "".concat(fieldTypeName, " was not provided."); } function unknownFieldMessage(typeName, fieldName, message) { return "Field \"".concat(fieldName, "\" is not defined by type ").concat(typeName) + (message ? "; ".concat(message) : '.'); } /** * Value literals of correct type * * A GraphQL document is only valid if all value literals are of the type * expected at their position. */ function ValuesOfCorrectType(context) { return { NullValue: function NullValue(node) { var type = context.getInputType(); if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["isNonNullType"])(type)) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](badValueMessage(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), Object(_language_printer__WEBPACK_IMPORTED_MODULE_1__["print"])(node)), node)); } }, ListValue: function ListValue(node) { // Note: TypeInfo will traverse into a list's item type, so look to the // parent input type to check if it is a list. var type = Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["getNullableType"])(context.getParentInputType()); if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["isListType"])(type)) { isValidScalar(context, node); return false; // Don't traverse further. } }, ObjectValue: function ObjectValue(node) { var type = Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["getNamedType"])(context.getInputType()); if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["isInputObjectType"])(type)) { isValidScalar(context, node); return false; // Don't traverse further. } // Ensure every required field exists. var inputFields = type.getFields(); var fieldNodeMap = Object(_jsutils_keyMap__WEBPACK_IMPORTED_MODULE_5__["default"])(node.fields, function (field) { return field.name.value; }); var _arr = Object.keys(inputFields); for (var _i = 0; _i < _arr.length; _i++) { var fieldName = _arr[_i]; var fieldDef = inputFields[fieldName]; var fieldNode = fieldNodeMap[fieldName]; if (!fieldNode && Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["isRequiredInputField"])(fieldDef)) { var typeStr = Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(fieldDef.type); context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](requiredFieldMessage(type.name, fieldName, typeStr), node)); } } }, ObjectField: function ObjectField(node) { var parentType = Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["getNamedType"])(context.getParentInputType()); var fieldType = context.getInputType(); if (!fieldType && Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["isInputObjectType"])(parentType)) { var suggestions = Object(_jsutils_suggestionList__WEBPACK_IMPORTED_MODULE_7__["default"])(node.name.value, Object.keys(parentType.getFields())); var didYouMean = suggestions.length !== 0 ? "Did you mean ".concat(Object(_jsutils_orList__WEBPACK_IMPORTED_MODULE_6__["default"])(suggestions), "?") : undefined; context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](unknownFieldMessage(parentType.name, node.name.value, didYouMean), node)); } }, EnumValue: function EnumValue(node) { var type = Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["getNamedType"])(context.getInputType()); if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["isEnumType"])(type)) { isValidScalar(context, node); } else if (!type.getValue(node.value)) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](badValueMessage(type.name, Object(_language_printer__WEBPACK_IMPORTED_MODULE_1__["print"])(node), enumTypeSuggestion(type, node)), node)); } }, IntValue: function IntValue(node) { return isValidScalar(context, node); }, FloatValue: function FloatValue(node) { return isValidScalar(context, node); }, StringValue: function StringValue(node) { return isValidScalar(context, node); }, BooleanValue: function BooleanValue(node) { return isValidScalar(context, node); } }; } /** * Any value literal may be a valid representation of a Scalar, depending on * that scalar type. */ function isValidScalar(context, node) { // Report any error at the full type expected by the location. var locationType = context.getInputType(); if (!locationType) { return; } var type = Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["getNamedType"])(locationType); if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["isScalarType"])(type)) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](badValueMessage(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(locationType), Object(_language_printer__WEBPACK_IMPORTED_MODULE_1__["print"])(node), enumTypeSuggestion(type, node)), node)); return; } // Scalars determine if a literal value is valid via parseLiteral() which // may throw or return an invalid value to indicate failure. try { var parseResult = type.parseLiteral(node, undefined /* variables */ ); if (Object(_jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_4__["default"])(parseResult)) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](badValueMessage(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(locationType), Object(_language_printer__WEBPACK_IMPORTED_MODULE_1__["print"])(node)), node)); } } catch (error) { // Ensure a reference to the original error is maintained. context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](badValueMessage(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(locationType), Object(_language_printer__WEBPACK_IMPORTED_MODULE_1__["print"])(node), error.message), node, undefined, undefined, undefined, error)); } } function enumTypeSuggestion(type, node) { if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_2__["isEnumType"])(type)) { var suggestions = Object(_jsutils_suggestionList__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_language_printer__WEBPACK_IMPORTED_MODULE_1__["print"])(node), type.getValues().map(function (value) { return value.name; })); if (suggestions.length !== 0) { return "Did you mean the enum value ".concat(Object(_jsutils_orList__WEBPACK_IMPORTED_MODULE_6__["default"])(suggestions), "?"); } } } /***/ }), /***/ "Aa5G": /*!*****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-bucket-endpoint/dist/es/bucketHostnameUtils.js ***! \*****************************************************************************************/ /*! exports provided: DOT_PATTERN, S3_HOSTNAME_PATTERN, isBucketNameOptions, getPseudoRegion, isDnsCompatibleBucketName, getSuffix, getSuffixForArnEndpoint, validateService, validatePartition, validateRegion, validateAccountId, validateDNSHostLabel, getAccessPointName */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DOT_PATTERN", function() { return DOT_PATTERN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S3_HOSTNAME_PATTERN", function() { return S3_HOSTNAME_PATTERN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isBucketNameOptions", function() { return isBucketNameOptions; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPseudoRegion", function() { return getPseudoRegion; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isDnsCompatibleBucketName", function() { return isDnsCompatibleBucketName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSuffix", function() { return getSuffix; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSuffixForArnEndpoint", function() { return getSuffixForArnEndpoint; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateService", function() { return validateService; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validatePartition", function() { return validatePartition; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateRegion", function() { return validateRegion; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateAccountId", function() { return validateAccountId; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateDNSHostLabel", function() { return validateDNSHostLabel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAccessPointName", function() { return getAccessPointName; }); var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/; var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/; var DOTS_PATTERN = /\.\./; var DOT_PATTERN = /\./; var S3_HOSTNAME_PATTERN = /^(.+\.)?s3[.-]([a-z0-9-]+)\./; var S3_US_EAST_1_ALTNAME_PATTERN = /^s3(-external-1)?\.amazonaws\.com$/; var AWS_PARTITION_SUFFIX = "amazonaws.com"; var isBucketNameOptions = function (options) { return typeof options.bucketName === "string"; }; var getPseudoRegion = function (region) { return (isFipsRegion(region) ? region.replace(/fips-|-fips/, "") : region); }; /** * Determines whether a given string is DNS compliant per the rules outlined by * S3. Length, capitaization, and leading dot restrictions are enforced by the * DOMAIN_PATTERN regular expression. * * @see https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html */ var isDnsCompatibleBucketName = function (bucketName) { return DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName); }; var getRegionalSuffix = function (hostname) { var parts = hostname.match(S3_HOSTNAME_PATTERN); return [parts[2], hostname.replace(new RegExp("^" + parts[0]), "")]; }; var getSuffix = function (hostname) { return S3_US_EAST_1_ALTNAME_PATTERN.test(hostname) ? ["us-east-1", AWS_PARTITION_SUFFIX] : getRegionalSuffix(hostname); }; var getSuffixForArnEndpoint = function (hostname) { return S3_US_EAST_1_ALTNAME_PATTERN.test(hostname) ? [hostname.replace("." + AWS_PARTITION_SUFFIX, ""), AWS_PARTITION_SUFFIX] : getRegionalSuffix(hostname); }; var validateService = function (service) { if (service !== "s3") { throw new Error("Expect 's3' in access point ARN service component"); } }; var validatePartition = function (partition, options) { if (partition !== options.clientPartition) { throw new Error("Partition in ARN is incompatible, got \"" + partition + "\" but expected \"" + options.clientPartition + "\""); } }; var validateRegion = function (region, options) { if (region === "") { throw new Error("Access point ARN region is empty"); } if (!options.useArnRegion && !isEqualRegions(region, options.clientRegion) && !isEqualRegions(region, options.clientSigningRegion)) { throw new Error("Region in ARN is incompatible, got " + region + " but expected " + options.clientRegion); } if (options.useArnRegion && isFipsRegion(region)) { throw new Error("Access point endpoint does not support FIPS region"); } }; var isFipsRegion = function (region) { return region.startsWith("fips-") || region.endsWith("-fips"); }; var isEqualRegions = function (regionA, regionB) { return regionA === regionB || getPseudoRegion(regionA) === regionB || regionA === getPseudoRegion(regionB); }; var validateAccountId = function (accountId) { if (!/[0-9]{12}/.exec(accountId)) { throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'"); } }; var validateDNSHostLabel = function (label, options) { if (options === void 0) { options = { tlsCompatible: true }; } // reference: https://tools.ietf.org/html/rfc3986#section-3.2.2 if (label.length >= 64 || !/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/.test(label) || /(\d+\.){3}\d+/.test(label) || /[.-]{2}/.test(label) || ((options === null || options === void 0 ? void 0 : options.tlsCompatible) && DOT_PATTERN.test(label))) { throw new Error("Invalid DNS label " + label); } }; var getAccessPointName = function (resource) { if (resource.indexOf("accesspoint:") !== 0 && resource.indexOf("accesspoint/") !== 0) { throw new Error("Access point ARN resource should begin with 'accesspoint/'"); } var parsedResource = resource.split(resource["accesspoint".length]); if (parsedResource.length !== 2 || parsedResource[1] === "") { throw new Error("Access Point ARN should have one resource accesspoint/{accesspointname}"); } return parsedResource[1]; }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVja2V0SG9zdG5hbWVVdGlscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9idWNrZXRIb3N0bmFtZVV0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLElBQU0sY0FBYyxHQUFHLHNDQUFzQyxDQUFDO0FBQzlELElBQU0sa0JBQWtCLEdBQUcsZUFBZSxDQUFDO0FBQzNDLElBQU0sWUFBWSxHQUFHLE1BQU0sQ0FBQztBQUM1QixNQUFNLENBQUMsSUFBTSxXQUFXLEdBQUcsSUFBSSxDQUFDO0FBQ2hDLE1BQU0sQ0FBQyxJQUFNLG1CQUFtQixHQUFHLDhCQUE4QixDQUFDO0FBQ2xFLElBQU0sNEJBQTRCLEdBQUcsb0NBQW9DLENBQUM7QUFDMUUsSUFBTSxvQkFBb0IsR0FBRyxlQUFlLENBQUM7QUFzQjdDLE1BQU0sQ0FBQyxJQUFNLG1CQUFtQixHQUFHLFVBQ2pDLE9BQWlELElBQ2IsT0FBQSxPQUFPLE9BQU8sQ0FBQyxVQUFVLEtBQUssUUFBUSxFQUF0QyxDQUFzQyxDQUFDO0FBRTdFLE1BQU0sQ0FBQyxJQUFNLGVBQWUsR0FBRyxVQUFDLE1BQWMsSUFBSyxPQUFBLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUMsT0FBTyxDQUFDLGFBQWEsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDLEVBQW5FLENBQW1FLENBQUM7QUFFdkg7Ozs7OztHQU1HO0FBQ0gsTUFBTSxDQUFDLElBQU0seUJBQXlCLEdBQUcsVUFBQyxVQUFrQjtJQUMxRCxPQUFBLGNBQWMsQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxrQkFBa0IsQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxZQUFZLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQztBQUF6RyxDQUF5RyxDQUFDO0FBRTVHLElBQU0saUJBQWlCLEdBQUcsVUFBQyxRQUFnQjtJQUN6QyxJQUFNLEtBQUssR0FBRyxRQUFRLENBQUMsS0FBSyxDQUFDLG1CQUFtQixDQUFFLENBQUM7SUFDbkQsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsRUFBRSxRQUFRLENBQUMsT0FBTyxDQUFDLElBQUksTUFBTSxDQUFDLE1BQUksS0FBSyxDQUFDLENBQUMsQ0FBRyxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FBQztBQUN0RSxDQUFDLENBQUM7QUFFRixNQUFNLENBQUMsSUFBTSxTQUFTLEdBQUcsVUFBQyxRQUFnQjtJQUN4QyxPQUFBLDRCQUE0QixDQUFDLElBQUksQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxXQUFXLEVBQUUsb0JBQW9CLENBQUMsQ0FBQyxDQUFDLENBQUMsaUJBQWlCLENBQUMsUUFBUSxDQUFDO0FBQS9HLENBQStHLENBQUM7QUFFbEgsTUFBTSxDQUFDLElBQU0sdUJBQXVCLEdBQUcsVUFBQyxRQUFnQjtJQUN0RCxPQUFBLDRCQUE0QixDQUFDLElBQUksQ0FBQyxRQUFRLENBQUM7UUFDekMsQ0FBQyxDQUFDLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQyxNQUFJLG9CQUFzQixFQUFFLEVBQUUsQ0FBQyxFQUFFLG9CQUFvQixDQUFDO1FBQzFFLENBQUMsQ0FBQyxpQkFBaUIsQ0FBQyxRQUFRLENBQUM7QUFGL0IsQ0FFK0IsQ0FBQztBQUVsQyxNQUFNLENBQUMsSUFBTSxlQUFlLEdBQUcsVUFBQyxPQUFlO0lBQzdDLElBQUksT0FBTyxLQUFLLElBQUksRUFBRTtRQUNwQixNQUFNLElBQUksS0FBSyxDQUFDLG1EQUFtRCxDQUFDLENBQUM7S0FDdEU7QUFDSCxDQUFDLENBQUM7QUFFRixNQUFNLENBQUMsSUFBTSxpQkFBaUIsR0FBRyxVQUFDLFNBQWlCLEVBQUUsT0FBb0M7SUFDdkYsSUFBSSxTQUFTLEtBQUssT0FBTyxDQUFDLGVBQWUsRUFBRTtRQUN6QyxNQUFNLElBQUksS0FBSyxDQUFDLDZDQUEwQyxTQUFTLDBCQUFtQixPQUFPLENBQUMsZUFBZSxPQUFHLENBQUMsQ0FBQztLQUNuSDtBQUNILENBQUMsQ0FBQztBQUVGLE1BQU0sQ0FBQyxJQUFNLGNBQWMsR0FBRyxVQUM1QixNQUFjLEVBQ2QsT0FJQztJQUVELElBQUksTUFBTSxLQUFLLEVBQUUsRUFBRTtRQUNqQixNQUFNLElBQUksS0FBSyxDQUFDLGtDQUFrQyxDQUFDLENBQUM7S0FDckQ7SUFDRCxJQUNFLENBQUMsT0FBTyxDQUFDLFlBQVk7UUFDckIsQ0FBQyxjQUFjLENBQUMsTUFBTSxFQUFFLE9BQU8sQ0FBQyxZQUFZLENBQUM7UUFDN0MsQ0FBQyxjQUFjLENBQUMsTUFBTSxFQUFFLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxFQUNwRDtRQUNBLE1BQU0sSUFBSSxLQUFLLENBQUMsd0NBQXNDLE1BQU0sc0JBQWlCLE9BQU8sQ0FBQyxZQUFjLENBQUMsQ0FBQztLQUN0RztJQUNELElBQUksT0FBTyxDQUFDLFlBQVksSUFBSSxZQUFZLENBQUMsTUFBTSxDQUFDLEVBQUU7UUFDaEQsTUFBTSxJQUFJLEtBQUssQ0FBQyxvREFBb0QsQ0FBQyxDQUFDO0tBQ3ZFO0FBQ0gsQ0FBQyxDQUFDO0FBRUYsSUFBTSxZQUFZLEdBQUcsVUFBQyxNQUFjLElBQUssT0FBQSxNQUFNLENBQUMsVUFBVSxDQUFDLE9BQU8sQ0FBQyxJQUFJLE1BQU0sQ0FBQyxRQUFRLENBQUMsT0FBTyxDQUFDLEVBQXRELENBQXNELENBQUM7QUFFaEcsSUFBTSxjQUFjLEdBQUcsVUFBQyxPQUFlLEVBQUUsT0FBZTtJQUN0RCxPQUFBLE9BQU8sS0FBSyxPQUFPLElBQUksZUFBZSxDQUFDLE9BQU8sQ0FBQyxLQUFLLE9BQU8sSUFBSSxPQUFPLEtBQUssZUFBZSxDQUFDLE9BQU8sQ0FBQztBQUFuRyxDQUFtRyxDQUFDO0FBRXRHLE1BQU0sQ0FBQyxJQUFNLGlCQUFpQixHQUFHLFVBQUMsU0FBaUI7SUFDakQsSUFBSSxDQUFDLFdBQVcsQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLEVBQUU7UUFDaEMsTUFBTSxJQUFJLEtBQUssQ0FBQyw2REFBNkQsQ0FBQyxDQUFDO0tBQ2hGO0FBQ0gsQ0FBQyxDQUFDO0FBRUYsTUFBTSxDQUFDLElBQU0sb0JBQW9CLEdBQUcsVUFBQyxLQUFhLEVBQUUsT0FBOEQ7SUFBOUQsd0JBQUEsRUFBQSxZQUF5QyxhQUFhLEVBQUUsSUFBSSxFQUFFO0lBQ2hILCtEQUErRDtJQUMvRCxJQUNFLEtBQUssQ0FBQyxNQUFNLElBQUksRUFBRTtRQUNsQixDQUFDLCtCQUErQixDQUFDLElBQUksQ0FBQyxLQUFLLENBQUM7UUFDNUMsZUFBZSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUM7UUFDM0IsU0FBUyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUM7UUFDckIsQ0FBQyxDQUFBLE9BQU8sYUFBUCxPQUFPLHVCQUFQLE9BQU8sQ0FBRSxhQUFhLEtBQUksV0FBVyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxFQUNuRDtRQUNBLE1BQU0sSUFBSSxLQUFLLENBQUMsdUJBQXFCLEtBQU8sQ0FBQyxDQUFDO0tBQy9DO0FBQ0gsQ0FBQyxDQUFDO0FBRUYsTUFBTSxDQUFDLElBQU0sa0JBQWtCLEdBQUcsVUFBQyxRQUFnQjtJQUNqRCxJQUFJLFFBQVEsQ0FBQyxPQUFPLENBQUMsY0FBYyxDQUFDLEtBQUssQ0FBQyxJQUFJLFFBQVEsQ0FBQyxPQUFPLENBQUMsY0FBYyxDQUFDLEtBQUssQ0FBQyxFQUFFO1FBQ3BGLE1BQU0sSUFBSSxLQUFLLENBQUMsNERBQTRELENBQUMsQ0FBQztLQUMvRTtJQUNELElBQU0sY0FBYyxHQUFHLFFBQVEsQ0FBQyxLQUFLLENBQUMsUUFBUSxDQUFDLGFBQWEsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDO0lBQ3RFLElBQUksY0FBYyxDQUFDLE1BQU0sS0FBSyxDQUFDLElBQUksY0FBYyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsRUFBRTtRQUMzRCxNQUFNLElBQUksS0FBSyxDQUFDLHlFQUF5RSxDQUFDLENBQUM7S0FDNUY7SUFDRCxPQUFPLGNBQWMsQ0FBQyxDQUFDLENBQUMsQ0FBQztBQUMzQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBUk4gfSBmcm9tIFwiQGF3cy1zZGsvdXRpbC1hcm4tcGFyc2VyXCI7XG5cbmNvbnN0IERPTUFJTl9QQVRURVJOID0gL15bYS16MC05XVthLXowLTlcXC5cXC1dezEsNjF9W2EtejAtOV0kLztcbmNvbnN0IElQX0FERFJFU1NfUEFUVEVSTiA9IC8oXFxkK1xcLil7M31cXGQrLztcbmNvbnN0IERPVFNfUEFUVEVSTiA9IC9cXC5cXC4vO1xuZXhwb3J0IGNvbnN0IERPVF9QQVRURVJOID0gL1xcLi87XG5leHBvcnQgY29uc3QgUzNfSE9TVE5BTUVfUEFUVEVSTiA9IC9eKC4rXFwuKT9zM1suLV0oW2EtejAtOS1dKylcXC4vO1xuY29uc3QgUzNfVVNfRUFTVF8xX0FMVE5BTUVfUEFUVEVSTiA9IC9eczMoLWV4dGVybmFsLTEpP1xcLmFtYXpvbmF3c1xcLmNvbSQvO1xuY29uc3QgQVdTX1BBUlRJVElPTl9TVUZGSVggPSBcImFtYXpvbmF3cy5jb21cIjtcblxuZXhwb3J0IGludGVyZmFjZSBBY2Nlc3NQb2ludEFybiBleHRlbmRzIEFSTiB7XG4gIGFjY2Vzc1BvaW50TmFtZTogc3RyaW5nO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEJ1Y2tldEhvc3RuYW1lUGFyYW1zIHtcbiAgYmFzZUhvc3RuYW1lOiBzdHJpbmc7XG4gIGJ1Y2tldE5hbWU6IHN0cmluZztcbiAgYWNjZWxlcmF0ZUVuZHBvaW50PzogYm9vbGVhbjtcbiAgZHVhbHN0YWNrRW5kcG9pbnQ/OiBib29sZWFuO1xuICBwYXRoU3R5bGVFbmRwb2ludD86IGJvb2xlYW47XG4gIHRsc0NvbXBhdGlibGU/OiBib29sZWFuO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEFybkhvc3RuYW1lUGFyYW1zIGV4dGVuZHMgT21pdDxCdWNrZXRIb3N0bmFtZVBhcmFtcywgXCJidWNrZXROYW1lXCI+IHtcbiAgYnVja2V0TmFtZTogQVJOO1xuICBjbGllbnRTaWduaW5nUmVnaW9uPzogc3RyaW5nO1xuICBjbGllbnRQYXJ0aXRpb24/OiBzdHJpbmc7XG4gIHVzZUFyblJlZ2lvbj86IGJvb2xlYW47XG59XG5cbmV4cG9ydCBjb25zdCBpc0J1Y2tldE5hbWVPcHRpb25zID0gKFxuICBvcHRpb25zOiBCdWNrZXRIb3N0bmFtZVBhcmFtcyB8IEFybkhvc3RuYW1lUGFyYW1zXG4pOiBvcHRpb25zIGlzIEJ1Y2tldEhvc3RuYW1lUGFyYW1zID0+IHR5cGVvZiBvcHRpb25zLmJ1Y2tldE5hbWUgPT09IFwic3RyaW5nXCI7XG5cbmV4cG9ydCBjb25zdCBnZXRQc2V1ZG9SZWdpb24gPSAocmVnaW9uOiBzdHJpbmcpID0+IChpc0ZpcHNSZWdpb24ocmVnaW9uKSA/IHJlZ2lvbi5yZXBsYWNlKC9maXBzLXwtZmlwcy8sIFwiXCIpIDogcmVnaW9uKTtcblxuLyoqXG4gKiBEZXRlcm1pbmVzIHdoZXRoZXIgYSBnaXZlbiBzdHJpbmcgaXMgRE5TIGNvbXBsaWFudCBwZXIgdGhlIHJ1bGVzIG91dGxpbmVkIGJ5XG4gKiBTMy4gTGVuZ3RoLCBjYXBpdGFpemF0aW9uLCBhbmQgbGVhZGluZyBkb3QgcmVzdHJpY3Rpb25zIGFyZSBlbmZvcmNlZCBieSB0aGVcbiAqIERPTUFJTl9QQVRURVJOIHJlZ3VsYXIgZXhwcmVzc2lvbi5cbiAqXG4gKiBAc2VlIGh0dHBzOi8vZG9jcy5hd3MuYW1hem9uLmNvbS9BbWF6b25TMy9sYXRlc3QvZGV2L0J1Y2tldFJlc3RyaWN0aW9ucy5odG1sXG4gKi9cbmV4cG9ydCBjb25zdCBpc0Ruc0NvbXBhdGlibGVCdWNrZXROYW1lID0gKGJ1Y2tldE5hbWU6IHN0cmluZyk6IGJvb2xlYW4gPT5cbiAgRE9NQUlOX1BBVFRFUk4udGVzdChidWNrZXROYW1lKSAmJiAhSVBfQUREUkVTU19QQVRURVJOLnRlc3QoYnVja2V0TmFtZSkgJiYgIURPVFNfUEFUVEVSTi50ZXN0KGJ1Y2tldE5hbWUpO1xuXG5jb25zdCBnZXRSZWdpb25hbFN1ZmZpeCA9IChob3N0bmFtZTogc3RyaW5nKTogW3N0cmluZywgc3RyaW5nXSA9PiB7XG4gIGNvbnN0IHBhcnRzID0gaG9zdG5hbWUubWF0Y2goUzNfSE9TVE5BTUVfUEFUVEVSTikhO1xuICByZXR1cm4gW3BhcnRzWzJdLCBob3N0bmFtZS5yZXBsYWNlKG5ldyBSZWdFeHAoYF4ke3BhcnRzWzBdfWApLCBcIlwiKV07XG59O1xuXG5leHBvcnQgY29uc3QgZ2V0U3VmZml4ID0gKGhvc3RuYW1lOiBzdHJpbmcpOiBbc3RyaW5nLCBzdHJpbmddID0+XG4gIFMzX1VTX0VBU1RfMV9BTFROQU1FX1BBVFRFUk4udGVzdChob3N0bmFtZSkgPyBbXCJ1cy1lYXN0LTFcIiwgQVdTX1BBUlRJVElPTl9TVUZGSVhdIDogZ2V0UmVnaW9uYWxTdWZmaXgoaG9zdG5hbWUpO1xuXG5leHBvcnQgY29uc3QgZ2V0U3VmZml4Rm9yQXJuRW5kcG9pbnQgPSAoaG9zdG5hbWU6IHN0cmluZyk6IFtzdHJpbmcsIHN0cmluZ10gPT5cbiAgUzNfVVNfRUFTVF8xX0FMVE5BTUVfUEFUVEVSTi50ZXN0KGhvc3RuYW1lKVxuICAgID8gW2hvc3RuYW1lLnJlcGxhY2UoYC4ke0FXU19QQVJUSVRJT05fU1VGRklYfWAsIFwiXCIpLCBBV1NfUEFSVElUSU9OX1NVRkZJWF1cbiAgICA6IGdldFJlZ2lvbmFsU3VmZml4KGhvc3RuYW1lKTtcblxuZXhwb3J0IGNvbnN0IHZhbGlkYXRlU2VydmljZSA9IChzZXJ2aWNlOiBzdHJpbmcpID0+IHtcbiAgaWYgKHNlcnZpY2UgIT09IFwiczNcIikge1xuICAgIHRocm93IG5ldyBFcnJvcihcIkV4cGVjdCAnczMnIGluIGFjY2VzcyBwb2ludCBBUk4gc2VydmljZSBjb21wb25lbnRcIik7XG4gIH1cbn07XG5cbmV4cG9ydCBjb25zdCB2YWxpZGF0ZVBhcnRpdGlvbiA9IChwYXJ0aXRpb246IHN0cmluZywgb3B0aW9uczogeyBjbGllbnRQYXJ0aXRpb246IHN0cmluZyB9KSA9PiB7XG4gIGlmIChwYXJ0aXRpb24gIT09IG9wdGlvbnMuY2xpZW50UGFydGl0aW9uKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKGBQYXJ0aXRpb24gaW4gQVJOIGlzIGluY29tcGF0aWJsZSwgZ290IFwiJHtwYXJ0aXRpb259XCIgYnV0IGV4cGVjdGVkIFwiJHtvcHRpb25zLmNsaWVudFBhcnRpdGlvbn1cImApO1xuICB9XG59O1xuXG5leHBvcnQgY29uc3QgdmFsaWRhdGVSZWdpb24gPSAoXG4gIHJlZ2lvbjogc3RyaW5nLFxuICBvcHRpb25zOiB7XG4gICAgdXNlQXJuUmVnaW9uPzogYm9vbGVhbjtcbiAgICBjbGllbnRSZWdpb246IHN0cmluZztcbiAgICBjbGllbnRTaWduaW5nUmVnaW9uOiBzdHJpbmc7XG4gIH1cbikgPT4ge1xuICBpZiAocmVnaW9uID09PSBcIlwiKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKFwiQWNjZXNzIHBvaW50IEFSTiByZWdpb24gaXMgZW1wdHlcIik7XG4gIH1cbiAgaWYgKFxuICAgICFvcHRpb25zLnVzZUFyblJlZ2lvbiAmJlxuICAgICFpc0VxdWFsUmVnaW9ucyhyZWdpb24sIG9wdGlvbnMuY2xpZW50UmVnaW9uKSAmJlxuICAgICFpc0VxdWFsUmVnaW9ucyhyZWdpb24sIG9wdGlvbnMuY2xpZW50U2lnbmluZ1JlZ2lvbilcbiAgKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKGBSZWdpb24gaW4gQVJOIGlzIGluY29tcGF0aWJsZSwgZ290ICR7cmVnaW9ufSBidXQgZXhwZWN0ZWQgJHtvcHRpb25zLmNsaWVudFJlZ2lvbn1gKTtcbiAgfVxuICBpZiAob3B0aW9ucy51c2VBcm5SZWdpb24gJiYgaXNGaXBzUmVnaW9uKHJlZ2lvbikpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJBY2Nlc3MgcG9pbnQgZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBGSVBTIHJlZ2lvblwiKTtcbiAgfVxufTtcblxuY29uc3QgaXNGaXBzUmVnaW9uID0gKHJlZ2lvbjogc3RyaW5nKSA9PiByZWdpb24uc3RhcnRzV2l0aChcImZpcHMtXCIpIHx8IHJlZ2lvbi5lbmRzV2l0aChcIi1maXBzXCIpO1xuXG5jb25zdCBpc0VxdWFsUmVnaW9ucyA9IChyZWdpb25BOiBzdHJpbmcsIHJlZ2lvbkI6IHN0cmluZykgPT5cbiAgcmVnaW9uQSA9PT0gcmVnaW9uQiB8fCBnZXRQc2V1ZG9SZWdpb24ocmVnaW9uQSkgPT09IHJlZ2lvbkIgfHwgcmVnaW9uQSA9PT0gZ2V0UHNldWRvUmVnaW9uKHJlZ2lvbkIpO1xuXG5leHBvcnQgY29uc3QgdmFsaWRhdGVBY2NvdW50SWQgPSAoYWNjb3VudElkOiBzdHJpbmcpID0+IHtcbiAgaWYgKCEvWzAtOV17MTJ9Ly5leGVjKGFjY291bnRJZCkpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJBY2Nlc3MgcG9pbnQgQVJOIGFjY291bnRJRCBkb2VzIG5vdCBtYXRjaCByZWdleCAnWzAtOV17MTJ9J1wiKTtcbiAgfVxufTtcblxuZXhwb3J0IGNvbnN0IHZhbGlkYXRlRE5TSG9zdExhYmVsID0gKGxhYmVsOiBzdHJpbmcsIG9wdGlvbnM6IHsgdGxzQ29tcGF0aWJsZT86IGJvb2xlYW4gfSA9IHsgdGxzQ29tcGF0aWJsZTogdHJ1ZSB9KSA9PiB7XG4gIC8vIHJlZmVyZW5jZTogaHR0cHM6Ly90b29scy5pZXRmLm9yZy9odG1sL3JmYzM5ODYjc2VjdGlvbi0zLjIuMlxuICBpZiAoXG4gICAgbGFiZWwubGVuZ3RoID49IDY0IHx8XG4gICAgIS9eW2EtejAtOV1bYS16MC05Li1dK1thLXowLTldJC8udGVzdChsYWJlbCkgfHxcbiAgICAvKFxcZCtcXC4pezN9XFxkKy8udGVzdChsYWJlbCkgfHxcbiAgICAvWy4tXXsyfS8udGVzdChsYWJlbCkgfHxcbiAgICAob3B0aW9ucz8udGxzQ29tcGF0aWJsZSAmJiBET1RfUEFUVEVSTi50ZXN0KGxhYmVsKSlcbiAgKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKGBJbnZhbGlkIEROUyBsYWJlbCAke2xhYmVsfWApO1xuICB9XG59O1xuXG5leHBvcnQgY29uc3QgZ2V0QWNjZXNzUG9pbnROYW1lID0gKHJlc291cmNlOiBzdHJpbmcpOiBzdHJpbmcgPT4ge1xuICBpZiAocmVzb3VyY2UuaW5kZXhPZihcImFjY2Vzc3BvaW50OlwiKSAhPT0gMCAmJiByZXNvdXJjZS5pbmRleE9mKFwiYWNjZXNzcG9pbnQvXCIpICE9PSAwKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKFwiQWNjZXNzIHBvaW50IEFSTiByZXNvdXJjZSBzaG91bGQgYmVnaW4gd2l0aCAnYWNjZXNzcG9pbnQvJ1wiKTtcbiAgfVxuICBjb25zdCBwYXJzZWRSZXNvdXJjZSA9IHJlc291cmNlLnNwbGl0KHJlc291cmNlW1wiYWNjZXNzcG9pbnRcIi5sZW5ndGhdKTtcbiAgaWYgKHBhcnNlZFJlc291cmNlLmxlbmd0aCAhPT0gMiB8fCBwYXJzZWRSZXNvdXJjZVsxXSA9PT0gXCJcIikge1xuICAgIHRocm93IG5ldyBFcnJvcihcIkFjY2VzcyBQb2ludCBBUk4gc2hvdWxkIGhhdmUgb25lIHJlc291cmNlIGFjY2Vzc3BvaW50L3thY2Nlc3Nwb2ludG5hbWV9XCIpO1xuICB9XG4gIHJldHVybiBwYXJzZWRSZXNvdXJjZVsxXTtcbn07XG4iXX0= /***/ }), /***/ "AcfH": /*!*********************************************************************!*\ !*** ./node_modules/@aws-sdk/s3-request-presigner/dist/es/index.js ***! \*********************************************************************/ /*! exports provided: S3RequestPresigner, getSignedUrl */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _presigner__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./presigner */ "8iP/"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3RequestPresigner", function() { return _presigner__WEBPACK_IMPORTED_MODULE_0__["S3RequestPresigner"]; }); /* harmony import */ var _getSignedUrl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getSignedUrl */ "Kg3V"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getSignedUrl", function() { return _getSignedUrl__WEBPACK_IMPORTED_MODULE_1__["getSignedUrl"]; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL3ByZXNpZ25lclwiO1xuZXhwb3J0ICogZnJvbSBcIi4vZ2V0U2lnbmVkVXJsXCI7XG4iXX0= /***/ }), /***/ "AdvF": /*!***********************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/ServiceWorker/index.js ***! \***********************************************************************/ /*! exports provided: ServiceWorker */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ServiceWorker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ServiceWorker */ "UFnQ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ServiceWorker", function() { return _ServiceWorker__WEBPACK_IMPORTED_MODULE_0__["ServiceWorkerClass"]; }); /** * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ //# sourceMappingURL=index.js.map /***/ }), /***/ "AeAO": /*!********************************************************************!*\ !*** ./node_modules/graphql/validation/rules/NoFragmentCycles.mjs ***! \********************************************************************/ /*! exports provided: cycleErrorMessage, NoFragmentCycles */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cycleErrorMessage", function() { return cycleErrorMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NoFragmentCycles", function() { return NoFragmentCycles; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function cycleErrorMessage(fragName, spreadNames) { var via = spreadNames.length ? ' via ' + spreadNames.join(', ') : ''; return "Cannot spread fragment \"".concat(fragName, "\" within itself").concat(via, "."); } function NoFragmentCycles(context) { // Tracks already visited fragments to maintain O(N) and to ensure that cycles // are not redundantly reported. var visitedFrags = Object.create(null); // Array of AST nodes used to produce meaningful errors var spreadPath = []; // Position in the spread path var spreadPathIndexByName = Object.create(null); return { OperationDefinition: function OperationDefinition() { return false; }, FragmentDefinition: function FragmentDefinition(node) { detectCycleRecursive(node); return false; } }; // This does a straight-forward DFS to find cycles. // It does not terminate when a cycle was found but continues to explore // the graph to find all possible cycles. function detectCycleRecursive(fragment) { if (visitedFrags[fragment.name.value]) { return; } var fragmentName = fragment.name.value; visitedFrags[fragmentName] = true; var spreadNodes = context.getFragmentSpreads(fragment.selectionSet); if (spreadNodes.length === 0) { return; } spreadPathIndexByName[fragmentName] = spreadPath.length; for (var i = 0; i < spreadNodes.length; i++) { var spreadNode = spreadNodes[i]; var spreadName = spreadNode.name.value; var cycleIndex = spreadPathIndexByName[spreadName]; spreadPath.push(spreadNode); if (cycleIndex === undefined) { var spreadFragment = context.getFragment(spreadName); if (spreadFragment) { detectCycleRecursive(spreadFragment); } } else { var cyclePath = spreadPath.slice(cycleIndex); var fragmentNames = cyclePath.slice(0, -1).map(function (s) { return s.name.value; }); context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](cycleErrorMessage(spreadName, fragmentNames), cyclePath)); } spreadPath.pop(); } spreadPathIndexByName[fragmentName] = undefined; } } /***/ }), /***/ "AgA1": /*!****************************************************************!*\ !*** ./node_modules/graphql/utilities/findBreakingChanges.mjs ***! \****************************************************************/ /*! exports provided: BreakingChangeType, DangerousChangeType, findBreakingChanges, findDangerousChanges, findRemovedTypes, findTypesThatChangedKind, findArgChanges, findFieldsThatChangedTypeOnObjectOrInterfaceTypes, findFieldsThatChangedTypeOnInputObjectTypes, findTypesRemovedFromUnions, findTypesAddedToUnions, findValuesRemovedFromEnums, findValuesAddedToEnums, findInterfacesRemovedFromObjectTypes, findInterfacesAddedToObjectTypes, findRemovedDirectives, findRemovedDirectiveArgs, findAddedNonNullDirectiveArgs, findRemovedLocationsForDirective, findRemovedDirectiveLocations */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BreakingChangeType", function() { return BreakingChangeType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DangerousChangeType", function() { return DangerousChangeType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findBreakingChanges", function() { return findBreakingChanges; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findDangerousChanges", function() { return findDangerousChanges; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findRemovedTypes", function() { return findRemovedTypes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findTypesThatChangedKind", function() { return findTypesThatChangedKind; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findArgChanges", function() { return findArgChanges; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findFieldsThatChangedTypeOnObjectOrInterfaceTypes", function() { return findFieldsThatChangedTypeOnObjectOrInterfaceTypes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findFieldsThatChangedTypeOnInputObjectTypes", function() { return findFieldsThatChangedTypeOnInputObjectTypes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findTypesRemovedFromUnions", function() { return findTypesRemovedFromUnions; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findTypesAddedToUnions", function() { return findTypesAddedToUnions; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findValuesRemovedFromEnums", function() { return findValuesRemovedFromEnums; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findValuesAddedToEnums", function() { return findValuesAddedToEnums; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findInterfacesRemovedFromObjectTypes", function() { return findInterfacesRemovedFromObjectTypes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findInterfacesAddedToObjectTypes", function() { return findInterfacesAddedToObjectTypes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findRemovedDirectives", function() { return findRemovedDirectives; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findRemovedDirectiveArgs", function() { return findRemovedDirectiveArgs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findAddedNonNullDirectiveArgs", function() { return findAddedNonNullDirectiveArgs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findRemovedLocationsForDirective", function() { return findRemovedLocationsForDirective; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findRemovedDirectiveLocations", function() { return findRemovedDirectiveLocations; }); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../type/definition */ "axIb"); /* harmony import */ var _jsutils_keyMap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/keyMap */ "kBjl"); /** * Copyright (c) 2016-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ var BreakingChangeType = { FIELD_CHANGED_KIND: 'FIELD_CHANGED_KIND', FIELD_REMOVED: 'FIELD_REMOVED', TYPE_CHANGED_KIND: 'TYPE_CHANGED_KIND', TYPE_REMOVED: 'TYPE_REMOVED', TYPE_REMOVED_FROM_UNION: 'TYPE_REMOVED_FROM_UNION', VALUE_REMOVED_FROM_ENUM: 'VALUE_REMOVED_FROM_ENUM', ARG_REMOVED: 'ARG_REMOVED', ARG_CHANGED_KIND: 'ARG_CHANGED_KIND', REQUIRED_ARG_ADDED: 'REQUIRED_ARG_ADDED', REQUIRED_INPUT_FIELD_ADDED: 'REQUIRED_INPUT_FIELD_ADDED', INTERFACE_REMOVED_FROM_OBJECT: 'INTERFACE_REMOVED_FROM_OBJECT', DIRECTIVE_REMOVED: 'DIRECTIVE_REMOVED', DIRECTIVE_ARG_REMOVED: 'DIRECTIVE_ARG_REMOVED', DIRECTIVE_LOCATION_REMOVED: 'DIRECTIVE_LOCATION_REMOVED', REQUIRED_DIRECTIVE_ARG_ADDED: 'REQUIRED_DIRECTIVE_ARG_ADDED' }; var DangerousChangeType = { ARG_DEFAULT_VALUE_CHANGE: 'ARG_DEFAULT_VALUE_CHANGE', VALUE_ADDED_TO_ENUM: 'VALUE_ADDED_TO_ENUM', INTERFACE_ADDED_TO_OBJECT: 'INTERFACE_ADDED_TO_OBJECT', TYPE_ADDED_TO_UNION: 'TYPE_ADDED_TO_UNION', OPTIONAL_INPUT_FIELD_ADDED: 'OPTIONAL_INPUT_FIELD_ADDED', OPTIONAL_ARG_ADDED: 'OPTIONAL_ARG_ADDED' }; /** * Given two schemas, returns an Array containing descriptions of all the types * of breaking changes covered by the other functions down below. */ function findBreakingChanges(oldSchema, newSchema) { return findRemovedTypes(oldSchema, newSchema).concat(findTypesThatChangedKind(oldSchema, newSchema), findFieldsThatChangedTypeOnObjectOrInterfaceTypes(oldSchema, newSchema), findFieldsThatChangedTypeOnInputObjectTypes(oldSchema, newSchema).breakingChanges, findTypesRemovedFromUnions(oldSchema, newSchema), findValuesRemovedFromEnums(oldSchema, newSchema), findArgChanges(oldSchema, newSchema).breakingChanges, findInterfacesRemovedFromObjectTypes(oldSchema, newSchema), findRemovedDirectives(oldSchema, newSchema), findRemovedDirectiveArgs(oldSchema, newSchema), findAddedNonNullDirectiveArgs(oldSchema, newSchema), findRemovedDirectiveLocations(oldSchema, newSchema)); } /** * Given two schemas, returns an Array containing descriptions of all the types * of potentially dangerous changes covered by the other functions down below. */ function findDangerousChanges(oldSchema, newSchema) { return findArgChanges(oldSchema, newSchema).dangerousChanges.concat(findValuesAddedToEnums(oldSchema, newSchema), findInterfacesAddedToObjectTypes(oldSchema, newSchema), findTypesAddedToUnions(oldSchema, newSchema), findFieldsThatChangedTypeOnInputObjectTypes(oldSchema, newSchema).dangerousChanges); } /** * Given two schemas, returns an Array containing descriptions of any breaking * changes in the newSchema related to removing an entire type. */ function findRemovedTypes(oldSchema, newSchema) { var oldTypeMap = oldSchema.getTypeMap(); var newTypeMap = newSchema.getTypeMap(); var breakingChanges = []; var _arr = Object.keys(oldTypeMap); for (var _i = 0; _i < _arr.length; _i++) { var typeName = _arr[_i]; if (!newTypeMap[typeName]) { breakingChanges.push({ type: BreakingChangeType.TYPE_REMOVED, description: "".concat(typeName, " was removed.") }); } } return breakingChanges; } /** * Given two schemas, returns an Array containing descriptions of any breaking * changes in the newSchema related to changing the type of a type. */ function findTypesThatChangedKind(oldSchema, newSchema) { var oldTypeMap = oldSchema.getTypeMap(); var newTypeMap = newSchema.getTypeMap(); var breakingChanges = []; var _arr2 = Object.keys(oldTypeMap); for (var _i2 = 0; _i2 < _arr2.length; _i2++) { var typeName = _arr2[_i2]; if (!newTypeMap[typeName]) { continue; } var oldType = oldTypeMap[typeName]; var newType = newTypeMap[typeName]; if (oldType.constructor !== newType.constructor) { breakingChanges.push({ type: BreakingChangeType.TYPE_CHANGED_KIND, description: "".concat(typeName, " changed from ") + "".concat(typeKindName(oldType), " to ").concat(typeKindName(newType), ".") }); } } return breakingChanges; } /** * Given two schemas, returns an Array containing descriptions of any * breaking or dangerous changes in the newSchema related to arguments * (such as removal or change of type of an argument, or a change in an * argument's default value). */ function findArgChanges(oldSchema, newSchema) { var oldTypeMap = oldSchema.getTypeMap(); var newTypeMap = newSchema.getTypeMap(); var breakingChanges = []; var dangerousChanges = []; var _arr3 = Object.keys(oldTypeMap); for (var _i3 = 0; _i3 < _arr3.length; _i3++) { var typeName = _arr3[_i3]; var oldType = oldTypeMap[typeName]; var newType = newTypeMap[typeName]; if (!(Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(oldType) || Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isInterfaceType"])(oldType)) || !(Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(newType) || Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isInterfaceType"])(newType)) || newType.constructor !== oldType.constructor) { continue; } var oldTypeFields = oldType.getFields(); var newTypeFields = newType.getFields(); var _arr4 = Object.keys(oldTypeFields); for (var _i4 = 0; _i4 < _arr4.length; _i4++) { var fieldName = _arr4[_i4]; if (!newTypeFields[fieldName]) { continue; } var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { var _loop = function _loop() { var oldArgDef = _step.value; var newArgs = newTypeFields[fieldName].args; var newArgDef = newArgs.find(function (arg) { return arg.name === oldArgDef.name; }); // Arg not present if (!newArgDef) { breakingChanges.push({ type: BreakingChangeType.ARG_REMOVED, description: "".concat(oldType.name, ".").concat(fieldName, " arg ") + "".concat(oldArgDef.name, " was removed") }); } else { var isSafe = isChangeSafeForInputObjectFieldOrFieldArg(oldArgDef.type, newArgDef.type); if (!isSafe) { breakingChanges.push({ type: BreakingChangeType.ARG_CHANGED_KIND, description: "".concat(oldType.name, ".").concat(fieldName, " arg ") + "".concat(oldArgDef.name, " has changed type from ") + "".concat(oldArgDef.type.toString(), " to ").concat(newArgDef.type.toString()) }); } else if (oldArgDef.defaultValue !== undefined && oldArgDef.defaultValue !== newArgDef.defaultValue) { dangerousChanges.push({ type: DangerousChangeType.ARG_DEFAULT_VALUE_CHANGE, description: "".concat(oldType.name, ".").concat(fieldName, " arg ") + "".concat(oldArgDef.name, " has changed defaultValue") }); } } }; for (var _iterator = oldTypeFields[fieldName].args[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { _loop(); } // Check if arg was added to the field } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } var _iteratorNormalCompletion2 = true; var _didIteratorError2 = false; var _iteratorError2 = undefined; try { var _loop2 = function _loop2() { var newArgDef = _step2.value; var oldArgs = oldTypeFields[fieldName].args; var oldArgDef = oldArgs.find(function (arg) { return arg.name === newArgDef.name; }); if (!oldArgDef) { var argName = newArgDef.name; if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isRequiredArgument"])(newArgDef)) { breakingChanges.push({ type: BreakingChangeType.REQUIRED_ARG_ADDED, description: "A required arg ".concat(argName, " on ") + "".concat(typeName, ".").concat(fieldName, " was added") }); } else { dangerousChanges.push({ type: DangerousChangeType.OPTIONAL_ARG_ADDED, description: "An optional arg ".concat(argName, " on ") + "".concat(typeName, ".").concat(fieldName, " was added") }); } } }; for (var _iterator2 = newTypeFields[fieldName].args[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { _loop2(); } } catch (err) { _didIteratorError2 = true; _iteratorError2 = err; } finally { try { if (!_iteratorNormalCompletion2 && _iterator2.return != null) { _iterator2.return(); } } finally { if (_didIteratorError2) { throw _iteratorError2; } } } } } return { breakingChanges: breakingChanges, dangerousChanges: dangerousChanges }; } function typeKindName(type) { if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isScalarType"])(type)) { return 'a Scalar type'; } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(type)) { return 'an Object type'; } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isInterfaceType"])(type)) { return 'an Interface type'; } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isUnionType"])(type)) { return 'a Union type'; } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isEnumType"])(type)) { return 'an Enum type'; } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isInputObjectType"])(type)) { return 'an Input type'; } throw new TypeError('Unknown type ' + type.constructor.name); } function findFieldsThatChangedTypeOnObjectOrInterfaceTypes(oldSchema, newSchema) { var oldTypeMap = oldSchema.getTypeMap(); var newTypeMap = newSchema.getTypeMap(); var breakingChanges = []; var _arr5 = Object.keys(oldTypeMap); for (var _i5 = 0; _i5 < _arr5.length; _i5++) { var typeName = _arr5[_i5]; var oldType = oldTypeMap[typeName]; var newType = newTypeMap[typeName]; if (!(Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(oldType) || Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isInterfaceType"])(oldType)) || !(Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(newType) || Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isInterfaceType"])(newType)) || newType.constructor !== oldType.constructor) { continue; } var oldTypeFieldsDef = oldType.getFields(); var newTypeFieldsDef = newType.getFields(); var _arr6 = Object.keys(oldTypeFieldsDef); for (var _i6 = 0; _i6 < _arr6.length; _i6++) { var fieldName = _arr6[_i6]; // Check if the field is missing on the type in the new schema. if (!(fieldName in newTypeFieldsDef)) { breakingChanges.push({ type: BreakingChangeType.FIELD_REMOVED, description: "".concat(typeName, ".").concat(fieldName, " was removed.") }); } else { var oldFieldType = oldTypeFieldsDef[fieldName].type; var newFieldType = newTypeFieldsDef[fieldName].type; var isSafe = isChangeSafeForObjectOrInterfaceField(oldFieldType, newFieldType); if (!isSafe) { var oldFieldTypeString = Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isNamedType"])(oldFieldType) ? oldFieldType.name : oldFieldType.toString(); var newFieldTypeString = Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isNamedType"])(newFieldType) ? newFieldType.name : newFieldType.toString(); breakingChanges.push({ type: BreakingChangeType.FIELD_CHANGED_KIND, description: "".concat(typeName, ".").concat(fieldName, " changed type from ") + "".concat(oldFieldTypeString, " to ").concat(newFieldTypeString, ".") }); } } } } return breakingChanges; } function findFieldsThatChangedTypeOnInputObjectTypes(oldSchema, newSchema) { var oldTypeMap = oldSchema.getTypeMap(); var newTypeMap = newSchema.getTypeMap(); var breakingChanges = []; var dangerousChanges = []; var _arr7 = Object.keys(oldTypeMap); for (var _i7 = 0; _i7 < _arr7.length; _i7++) { var typeName = _arr7[_i7]; var oldType = oldTypeMap[typeName]; var newType = newTypeMap[typeName]; if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isInputObjectType"])(oldType) || !Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isInputObjectType"])(newType)) { continue; } var oldTypeFieldsDef = oldType.getFields(); var newTypeFieldsDef = newType.getFields(); var _arr8 = Object.keys(oldTypeFieldsDef); for (var _i8 = 0; _i8 < _arr8.length; _i8++) { var fieldName = _arr8[_i8]; // Check if the field is missing on the type in the new schema. if (!(fieldName in newTypeFieldsDef)) { breakingChanges.push({ type: BreakingChangeType.FIELD_REMOVED, description: "".concat(typeName, ".").concat(fieldName, " was removed.") }); } else { var oldFieldType = oldTypeFieldsDef[fieldName].type; var newFieldType = newTypeFieldsDef[fieldName].type; var isSafe = isChangeSafeForInputObjectFieldOrFieldArg(oldFieldType, newFieldType); if (!isSafe) { var oldFieldTypeString = Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isNamedType"])(oldFieldType) ? oldFieldType.name : oldFieldType.toString(); var newFieldTypeString = Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isNamedType"])(newFieldType) ? newFieldType.name : newFieldType.toString(); breakingChanges.push({ type: BreakingChangeType.FIELD_CHANGED_KIND, description: "".concat(typeName, ".").concat(fieldName, " changed type from ") + "".concat(oldFieldTypeString, " to ").concat(newFieldTypeString, ".") }); } } } // Check if a field was added to the input object type var _arr9 = Object.keys(newTypeFieldsDef); for (var _i9 = 0; _i9 < _arr9.length; _i9++) { var _fieldName = _arr9[_i9]; if (!(_fieldName in oldTypeFieldsDef)) { if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isRequiredInputField"])(newTypeFieldsDef[_fieldName])) { breakingChanges.push({ type: BreakingChangeType.REQUIRED_INPUT_FIELD_ADDED, description: "A required field ".concat(_fieldName, " on ") + "input type ".concat(typeName, " was added.") }); } else { dangerousChanges.push({ type: DangerousChangeType.OPTIONAL_INPUT_FIELD_ADDED, description: "An optional field ".concat(_fieldName, " on ") + "input type ".concat(typeName, " was added.") }); } } } } return { breakingChanges: breakingChanges, dangerousChanges: dangerousChanges }; } function isChangeSafeForObjectOrInterfaceField(oldType, newType) { if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isNamedType"])(oldType)) { return (// if they're both named types, see if their names are equivalent Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isNamedType"])(newType) && oldType.name === newType.name || // moving from nullable to non-null of the same underlying type is safe Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isNonNullType"])(newType) && isChangeSafeForObjectOrInterfaceField(oldType, newType.ofType) ); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isListType"])(oldType)) { return (// if they're both lists, make sure the underlying types are compatible Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isListType"])(newType) && isChangeSafeForObjectOrInterfaceField(oldType.ofType, newType.ofType) || // moving from nullable to non-null of the same underlying type is safe Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isNonNullType"])(newType) && isChangeSafeForObjectOrInterfaceField(oldType, newType.ofType) ); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isNonNullType"])(oldType)) { // if they're both non-null, make sure the underlying types are compatible return Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isNonNullType"])(newType) && isChangeSafeForObjectOrInterfaceField(oldType.ofType, newType.ofType); } return false; } function isChangeSafeForInputObjectFieldOrFieldArg(oldType, newType) { if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isNamedType"])(oldType)) { // if they're both named types, see if their names are equivalent return Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isNamedType"])(newType) && oldType.name === newType.name; } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isListType"])(oldType)) { // if they're both lists, make sure the underlying types are compatible return Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isListType"])(newType) && isChangeSafeForInputObjectFieldOrFieldArg(oldType.ofType, newType.ofType); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isNonNullType"])(oldType)) { return (// if they're both non-null, make sure the underlying types are // compatible Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isNonNullType"])(newType) && isChangeSafeForInputObjectFieldOrFieldArg(oldType.ofType, newType.ofType) || // moving from non-null to nullable of the same underlying type is safe !Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isNonNullType"])(newType) && isChangeSafeForInputObjectFieldOrFieldArg(oldType.ofType, newType) ); } return false; } /** * Given two schemas, returns an Array containing descriptions of any breaking * changes in the newSchema related to removing types from a union type. */ function findTypesRemovedFromUnions(oldSchema, newSchema) { var oldTypeMap = oldSchema.getTypeMap(); var newTypeMap = newSchema.getTypeMap(); var typesRemovedFromUnion = []; var _arr10 = Object.keys(oldTypeMap); for (var _i10 = 0; _i10 < _arr10.length; _i10++) { var typeName = _arr10[_i10]; var oldType = oldTypeMap[typeName]; var newType = newTypeMap[typeName]; if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isUnionType"])(oldType) || !Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isUnionType"])(newType)) { continue; } var typeNamesInNewUnion = Object.create(null); var _iteratorNormalCompletion3 = true; var _didIteratorError3 = false; var _iteratorError3 = undefined; try { for (var _iterator3 = newType.getTypes()[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { var type = _step3.value; typeNamesInNewUnion[type.name] = true; } } catch (err) { _didIteratorError3 = true; _iteratorError3 = err; } finally { try { if (!_iteratorNormalCompletion3 && _iterator3.return != null) { _iterator3.return(); } } finally { if (_didIteratorError3) { throw _iteratorError3; } } } var _iteratorNormalCompletion4 = true; var _didIteratorError4 = false; var _iteratorError4 = undefined; try { for (var _iterator4 = oldType.getTypes()[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) { var _type = _step4.value; if (!typeNamesInNewUnion[_type.name]) { typesRemovedFromUnion.push({ type: BreakingChangeType.TYPE_REMOVED_FROM_UNION, description: "".concat(_type.name, " was removed from union type ").concat(typeName, ".") }); } } } catch (err) { _didIteratorError4 = true; _iteratorError4 = err; } finally { try { if (!_iteratorNormalCompletion4 && _iterator4.return != null) { _iterator4.return(); } } finally { if (_didIteratorError4) { throw _iteratorError4; } } } } return typesRemovedFromUnion; } /** * Given two schemas, returns an Array containing descriptions of any dangerous * changes in the newSchema related to adding types to a union type. */ function findTypesAddedToUnions(oldSchema, newSchema) { var oldTypeMap = oldSchema.getTypeMap(); var newTypeMap = newSchema.getTypeMap(); var typesAddedToUnion = []; var _arr11 = Object.keys(newTypeMap); for (var _i11 = 0; _i11 < _arr11.length; _i11++) { var typeName = _arr11[_i11]; var oldType = oldTypeMap[typeName]; var newType = newTypeMap[typeName]; if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isUnionType"])(oldType) || !Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isUnionType"])(newType)) { continue; } var typeNamesInOldUnion = Object.create(null); var _iteratorNormalCompletion5 = true; var _didIteratorError5 = false; var _iteratorError5 = undefined; try { for (var _iterator5 = oldType.getTypes()[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) { var type = _step5.value; typeNamesInOldUnion[type.name] = true; } } catch (err) { _didIteratorError5 = true; _iteratorError5 = err; } finally { try { if (!_iteratorNormalCompletion5 && _iterator5.return != null) { _iterator5.return(); } } finally { if (_didIteratorError5) { throw _iteratorError5; } } } var _iteratorNormalCompletion6 = true; var _didIteratorError6 = false; var _iteratorError6 = undefined; try { for (var _iterator6 = newType.getTypes()[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) { var _type2 = _step6.value; if (!typeNamesInOldUnion[_type2.name]) { typesAddedToUnion.push({ type: DangerousChangeType.TYPE_ADDED_TO_UNION, description: "".concat(_type2.name, " was added to union type ").concat(typeName, ".") }); } } } catch (err) { _didIteratorError6 = true; _iteratorError6 = err; } finally { try { if (!_iteratorNormalCompletion6 && _iterator6.return != null) { _iterator6.return(); } } finally { if (_didIteratorError6) { throw _iteratorError6; } } } } return typesAddedToUnion; } /** * Given two schemas, returns an Array containing descriptions of any breaking * changes in the newSchema related to removing values from an enum type. */ function findValuesRemovedFromEnums(oldSchema, newSchema) { var oldTypeMap = oldSchema.getTypeMap(); var newTypeMap = newSchema.getTypeMap(); var valuesRemovedFromEnums = []; var _arr12 = Object.keys(oldTypeMap); for (var _i12 = 0; _i12 < _arr12.length; _i12++) { var typeName = _arr12[_i12]; var oldType = oldTypeMap[typeName]; var newType = newTypeMap[typeName]; if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isEnumType"])(oldType) || !Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isEnumType"])(newType)) { continue; } var valuesInNewEnum = Object.create(null); var _iteratorNormalCompletion7 = true; var _didIteratorError7 = false; var _iteratorError7 = undefined; try { for (var _iterator7 = newType.getValues()[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) { var value = _step7.value; valuesInNewEnum[value.name] = true; } } catch (err) { _didIteratorError7 = true; _iteratorError7 = err; } finally { try { if (!_iteratorNormalCompletion7 && _iterator7.return != null) { _iterator7.return(); } } finally { if (_didIteratorError7) { throw _iteratorError7; } } } var _iteratorNormalCompletion8 = true; var _didIteratorError8 = false; var _iteratorError8 = undefined; try { for (var _iterator8 = oldType.getValues()[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) { var _value = _step8.value; if (!valuesInNewEnum[_value.name]) { valuesRemovedFromEnums.push({ type: BreakingChangeType.VALUE_REMOVED_FROM_ENUM, description: "".concat(_value.name, " was removed from enum type ").concat(typeName, ".") }); } } } catch (err) { _didIteratorError8 = true; _iteratorError8 = err; } finally { try { if (!_iteratorNormalCompletion8 && _iterator8.return != null) { _iterator8.return(); } } finally { if (_didIteratorError8) { throw _iteratorError8; } } } } return valuesRemovedFromEnums; } /** * Given two schemas, returns an Array containing descriptions of any dangerous * changes in the newSchema related to adding values to an enum type. */ function findValuesAddedToEnums(oldSchema, newSchema) { var oldTypeMap = oldSchema.getTypeMap(); var newTypeMap = newSchema.getTypeMap(); var valuesAddedToEnums = []; var _arr13 = Object.keys(oldTypeMap); for (var _i13 = 0; _i13 < _arr13.length; _i13++) { var typeName = _arr13[_i13]; var oldType = oldTypeMap[typeName]; var newType = newTypeMap[typeName]; if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isEnumType"])(oldType) || !Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isEnumType"])(newType)) { continue; } var valuesInOldEnum = Object.create(null); var _iteratorNormalCompletion9 = true; var _didIteratorError9 = false; var _iteratorError9 = undefined; try { for (var _iterator9 = oldType.getValues()[Symbol.iterator](), _step9; !(_iteratorNormalCompletion9 = (_step9 = _iterator9.next()).done); _iteratorNormalCompletion9 = true) { var value = _step9.value; valuesInOldEnum[value.name] = true; } } catch (err) { _didIteratorError9 = true; _iteratorError9 = err; } finally { try { if (!_iteratorNormalCompletion9 && _iterator9.return != null) { _iterator9.return(); } } finally { if (_didIteratorError9) { throw _iteratorError9; } } } var _iteratorNormalCompletion10 = true; var _didIteratorError10 = false; var _iteratorError10 = undefined; try { for (var _iterator10 = newType.getValues()[Symbol.iterator](), _step10; !(_iteratorNormalCompletion10 = (_step10 = _iterator10.next()).done); _iteratorNormalCompletion10 = true) { var _value2 = _step10.value; if (!valuesInOldEnum[_value2.name]) { valuesAddedToEnums.push({ type: DangerousChangeType.VALUE_ADDED_TO_ENUM, description: "".concat(_value2.name, " was added to enum type ").concat(typeName, ".") }); } } } catch (err) { _didIteratorError10 = true; _iteratorError10 = err; } finally { try { if (!_iteratorNormalCompletion10 && _iterator10.return != null) { _iterator10.return(); } } finally { if (_didIteratorError10) { throw _iteratorError10; } } } } return valuesAddedToEnums; } function findInterfacesRemovedFromObjectTypes(oldSchema, newSchema) { var oldTypeMap = oldSchema.getTypeMap(); var newTypeMap = newSchema.getTypeMap(); var breakingChanges = []; var _arr14 = Object.keys(oldTypeMap); for (var _i14 = 0; _i14 < _arr14.length; _i14++) { var typeName = _arr14[_i14]; var oldType = oldTypeMap[typeName]; var newType = newTypeMap[typeName]; if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(oldType) || !Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(newType)) { continue; } var oldInterfaces = oldType.getInterfaces(); var newInterfaces = newType.getInterfaces(); var _iteratorNormalCompletion11 = true; var _didIteratorError11 = false; var _iteratorError11 = undefined; try { var _loop3 = function _loop3() { var oldInterface = _step11.value; if (!newInterfaces.some(function (int) { return int.name === oldInterface.name; })) { breakingChanges.push({ type: BreakingChangeType.INTERFACE_REMOVED_FROM_OBJECT, description: "".concat(typeName, " no longer implements interface ") + "".concat(oldInterface.name, ".") }); } }; for (var _iterator11 = oldInterfaces[Symbol.iterator](), _step11; !(_iteratorNormalCompletion11 = (_step11 = _iterator11.next()).done); _iteratorNormalCompletion11 = true) { _loop3(); } } catch (err) { _didIteratorError11 = true; _iteratorError11 = err; } finally { try { if (!_iteratorNormalCompletion11 && _iterator11.return != null) { _iterator11.return(); } } finally { if (_didIteratorError11) { throw _iteratorError11; } } } } return breakingChanges; } function findInterfacesAddedToObjectTypes(oldSchema, newSchema) { var oldTypeMap = oldSchema.getTypeMap(); var newTypeMap = newSchema.getTypeMap(); var interfacesAddedToObjectTypes = []; var _arr15 = Object.keys(newTypeMap); for (var _i15 = 0; _i15 < _arr15.length; _i15++) { var typeName = _arr15[_i15]; var oldType = oldTypeMap[typeName]; var newType = newTypeMap[typeName]; if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(oldType) || !Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isObjectType"])(newType)) { continue; } var oldInterfaces = oldType.getInterfaces(); var newInterfaces = newType.getInterfaces(); var _iteratorNormalCompletion12 = true; var _didIteratorError12 = false; var _iteratorError12 = undefined; try { var _loop4 = function _loop4() { var newInterface = _step12.value; if (!oldInterfaces.some(function (int) { return int.name === newInterface.name; })) { interfacesAddedToObjectTypes.push({ type: DangerousChangeType.INTERFACE_ADDED_TO_OBJECT, description: "".concat(newInterface.name, " added to interfaces implemented ") + "by ".concat(typeName, ".") }); } }; for (var _iterator12 = newInterfaces[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) { _loop4(); } } catch (err) { _didIteratorError12 = true; _iteratorError12 = err; } finally { try { if (!_iteratorNormalCompletion12 && _iterator12.return != null) { _iterator12.return(); } } finally { if (_didIteratorError12) { throw _iteratorError12; } } } } return interfacesAddedToObjectTypes; } function findRemovedDirectives(oldSchema, newSchema) { var removedDirectives = []; var newSchemaDirectiveMap = getDirectiveMapForSchema(newSchema); var _iteratorNormalCompletion13 = true; var _didIteratorError13 = false; var _iteratorError13 = undefined; try { for (var _iterator13 = oldSchema.getDirectives()[Symbol.iterator](), _step13; !(_iteratorNormalCompletion13 = (_step13 = _iterator13.next()).done); _iteratorNormalCompletion13 = true) { var directive = _step13.value; if (!newSchemaDirectiveMap[directive.name]) { removedDirectives.push({ type: BreakingChangeType.DIRECTIVE_REMOVED, description: "".concat(directive.name, " was removed") }); } } } catch (err) { _didIteratorError13 = true; _iteratorError13 = err; } finally { try { if (!_iteratorNormalCompletion13 && _iterator13.return != null) { _iterator13.return(); } } finally { if (_didIteratorError13) { throw _iteratorError13; } } } return removedDirectives; } function findRemovedArgsForDirective(oldDirective, newDirective) { var removedArgs = []; var newArgMap = getArgumentMapForDirective(newDirective); var _iteratorNormalCompletion14 = true; var _didIteratorError14 = false; var _iteratorError14 = undefined; try { for (var _iterator14 = oldDirective.args[Symbol.iterator](), _step14; !(_iteratorNormalCompletion14 = (_step14 = _iterator14.next()).done); _iteratorNormalCompletion14 = true) { var arg = _step14.value; if (!newArgMap[arg.name]) { removedArgs.push(arg); } } } catch (err) { _didIteratorError14 = true; _iteratorError14 = err; } finally { try { if (!_iteratorNormalCompletion14 && _iterator14.return != null) { _iterator14.return(); } } finally { if (_didIteratorError14) { throw _iteratorError14; } } } return removedArgs; } function findRemovedDirectiveArgs(oldSchema, newSchema) { var removedDirectiveArgs = []; var oldSchemaDirectiveMap = getDirectiveMapForSchema(oldSchema); var _iteratorNormalCompletion15 = true; var _didIteratorError15 = false; var _iteratorError15 = undefined; try { for (var _iterator15 = newSchema.getDirectives()[Symbol.iterator](), _step15; !(_iteratorNormalCompletion15 = (_step15 = _iterator15.next()).done); _iteratorNormalCompletion15 = true) { var newDirective = _step15.value; var oldDirective = oldSchemaDirectiveMap[newDirective.name]; if (!oldDirective) { continue; } var _iteratorNormalCompletion16 = true; var _didIteratorError16 = false; var _iteratorError16 = undefined; try { for (var _iterator16 = findRemovedArgsForDirective(oldDirective, newDirective)[Symbol.iterator](), _step16; !(_iteratorNormalCompletion16 = (_step16 = _iterator16.next()).done); _iteratorNormalCompletion16 = true) { var arg = _step16.value; removedDirectiveArgs.push({ type: BreakingChangeType.DIRECTIVE_ARG_REMOVED, description: "".concat(arg.name, " was removed from ").concat(newDirective.name) }); } } catch (err) { _didIteratorError16 = true; _iteratorError16 = err; } finally { try { if (!_iteratorNormalCompletion16 && _iterator16.return != null) { _iterator16.return(); } } finally { if (_didIteratorError16) { throw _iteratorError16; } } } } } catch (err) { _didIteratorError15 = true; _iteratorError15 = err; } finally { try { if (!_iteratorNormalCompletion15 && _iterator15.return != null) { _iterator15.return(); } } finally { if (_didIteratorError15) { throw _iteratorError15; } } } return removedDirectiveArgs; } function findAddedArgsForDirective(oldDirective, newDirective) { var addedArgs = []; var oldArgMap = getArgumentMapForDirective(oldDirective); var _iteratorNormalCompletion17 = true; var _didIteratorError17 = false; var _iteratorError17 = undefined; try { for (var _iterator17 = newDirective.args[Symbol.iterator](), _step17; !(_iteratorNormalCompletion17 = (_step17 = _iterator17.next()).done); _iteratorNormalCompletion17 = true) { var arg = _step17.value; if (!oldArgMap[arg.name]) { addedArgs.push(arg); } } } catch (err) { _didIteratorError17 = true; _iteratorError17 = err; } finally { try { if (!_iteratorNormalCompletion17 && _iterator17.return != null) { _iterator17.return(); } } finally { if (_didIteratorError17) { throw _iteratorError17; } } } return addedArgs; } function findAddedNonNullDirectiveArgs(oldSchema, newSchema) { var addedNonNullableArgs = []; var oldSchemaDirectiveMap = getDirectiveMapForSchema(oldSchema); var _iteratorNormalCompletion18 = true; var _didIteratorError18 = false; var _iteratorError18 = undefined; try { for (var _iterator18 = newSchema.getDirectives()[Symbol.iterator](), _step18; !(_iteratorNormalCompletion18 = (_step18 = _iterator18.next()).done); _iteratorNormalCompletion18 = true) { var newDirective = _step18.value; var oldDirective = oldSchemaDirectiveMap[newDirective.name]; if (!oldDirective) { continue; } var _iteratorNormalCompletion19 = true; var _didIteratorError19 = false; var _iteratorError19 = undefined; try { for (var _iterator19 = findAddedArgsForDirective(oldDirective, newDirective)[Symbol.iterator](), _step19; !(_iteratorNormalCompletion19 = (_step19 = _iterator19.next()).done); _iteratorNormalCompletion19 = true) { var arg = _step19.value; if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_0__["isRequiredArgument"])(arg)) { addedNonNullableArgs.push({ type: BreakingChangeType.REQUIRED_DIRECTIVE_ARG_ADDED, description: "A required arg ".concat(arg.name, " on directive ") + "".concat(newDirective.name, " was added") }); } } } catch (err) { _didIteratorError19 = true; _iteratorError19 = err; } finally { try { if (!_iteratorNormalCompletion19 && _iterator19.return != null) { _iterator19.return(); } } finally { if (_didIteratorError19) { throw _iteratorError19; } } } } } catch (err) { _didIteratorError18 = true; _iteratorError18 = err; } finally { try { if (!_iteratorNormalCompletion18 && _iterator18.return != null) { _iterator18.return(); } } finally { if (_didIteratorError18) { throw _iteratorError18; } } } return addedNonNullableArgs; } function findRemovedLocationsForDirective(oldDirective, newDirective) { var removedLocations = []; var newLocationSet = new Set(newDirective.locations); var _iteratorNormalCompletion20 = true; var _didIteratorError20 = false; var _iteratorError20 = undefined; try { for (var _iterator20 = oldDirective.locations[Symbol.iterator](), _step20; !(_iteratorNormalCompletion20 = (_step20 = _iterator20.next()).done); _iteratorNormalCompletion20 = true) { var oldLocation = _step20.value; if (!newLocationSet.has(oldLocation)) { removedLocations.push(oldLocation); } } } catch (err) { _didIteratorError20 = true; _iteratorError20 = err; } finally { try { if (!_iteratorNormalCompletion20 && _iterator20.return != null) { _iterator20.return(); } } finally { if (_didIteratorError20) { throw _iteratorError20; } } } return removedLocations; } function findRemovedDirectiveLocations(oldSchema, newSchema) { var removedLocations = []; var oldSchemaDirectiveMap = getDirectiveMapForSchema(oldSchema); var _iteratorNormalCompletion21 = true; var _didIteratorError21 = false; var _iteratorError21 = undefined; try { for (var _iterator21 = newSchema.getDirectives()[Symbol.iterator](), _step21; !(_iteratorNormalCompletion21 = (_step21 = _iterator21.next()).done); _iteratorNormalCompletion21 = true) { var newDirective = _step21.value; var oldDirective = oldSchemaDirectiveMap[newDirective.name]; if (!oldDirective) { continue; } var _iteratorNormalCompletion22 = true; var _didIteratorError22 = false; var _iteratorError22 = undefined; try { for (var _iterator22 = findRemovedLocationsForDirective(oldDirective, newDirective)[Symbol.iterator](), _step22; !(_iteratorNormalCompletion22 = (_step22 = _iterator22.next()).done); _iteratorNormalCompletion22 = true) { var location = _step22.value; removedLocations.push({ type: BreakingChangeType.DIRECTIVE_LOCATION_REMOVED, description: "".concat(location, " was removed from ").concat(newDirective.name) }); } } catch (err) { _didIteratorError22 = true; _iteratorError22 = err; } finally { try { if (!_iteratorNormalCompletion22 && _iterator22.return != null) { _iterator22.return(); } } finally { if (_didIteratorError22) { throw _iteratorError22; } } } } } catch (err) { _didIteratorError21 = true; _iteratorError21 = err; } finally { try { if (!_iteratorNormalCompletion21 && _iterator21.return != null) { _iterator21.return(); } } finally { if (_didIteratorError21) { throw _iteratorError21; } } } return removedLocations; } function getDirectiveMapForSchema(schema) { return Object(_jsutils_keyMap__WEBPACK_IMPORTED_MODULE_1__["default"])(schema.getDirectives(), function (dir) { return dir.name; }); } function getArgumentMapForDirective(directive) { return Object(_jsutils_keyMap__WEBPACK_IMPORTED_MODULE_1__["default"])(directive.args, function (arg) { return arg.name; }); } /***/ }), /***/ "AgSZ": /*!************************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-retry/dist/es/retryDecider.js ***! \************************************************************************/ /*! exports provided: defaultRetryDecider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRetryDecider", function() { return defaultRetryDecider; }); /* harmony import */ var _aws_sdk_service_error_classification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-sdk/service-error-classification */ "I56q"); var defaultRetryDecider = function (error) { if (!error) { return false; } return Object(_aws_sdk_service_error_classification__WEBPACK_IMPORTED_MODULE_0__["isRetryableByTrait"])(error) || Object(_aws_sdk_service_error_classification__WEBPACK_IMPORTED_MODULE_0__["isClockSkewError"])(error) || Object(_aws_sdk_service_error_classification__WEBPACK_IMPORTED_MODULE_0__["isThrottlingError"])(error) || Object(_aws_sdk_service_error_classification__WEBPACK_IMPORTED_MODULE_0__["isTransientError"])(error); }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV0cnlEZWNpZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3JldHJ5RGVjaWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsZ0JBQWdCLEVBQ2hCLGtCQUFrQixFQUNsQixpQkFBaUIsRUFDakIsZ0JBQWdCLEdBQ2pCLE1BQU0sdUNBQXVDLENBQUM7QUFHL0MsTUFBTSxDQUFDLElBQU0sbUJBQW1CLEdBQUcsVUFBQyxLQUFlO0lBQ2pELElBQUksQ0FBQyxLQUFLLEVBQUU7UUFDVixPQUFPLEtBQUssQ0FBQztLQUNkO0lBRUQsT0FBTyxrQkFBa0IsQ0FBQyxLQUFLLENBQUMsSUFBSSxnQkFBZ0IsQ0FBQyxLQUFLLENBQUMsSUFBSSxpQkFBaUIsQ0FBQyxLQUFLLENBQUMsSUFBSSxnQkFBZ0IsQ0FBQyxLQUFLLENBQUMsQ0FBQztBQUNySCxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBpc0Nsb2NrU2tld0Vycm9yLFxuICBpc1JldHJ5YWJsZUJ5VHJhaXQsXG4gIGlzVGhyb3R0bGluZ0Vycm9yLFxuICBpc1RyYW5zaWVudEVycm9yLFxufSBmcm9tIFwiQGF3cy1zZGsvc2VydmljZS1lcnJvci1jbGFzc2lmaWNhdGlvblwiO1xuaW1wb3J0IHsgU2RrRXJyb3IgfSBmcm9tIFwiQGF3cy1zZGsvc21pdGh5LWNsaWVudFwiO1xuXG5leHBvcnQgY29uc3QgZGVmYXVsdFJldHJ5RGVjaWRlciA9IChlcnJvcjogU2RrRXJyb3IpID0+IHtcbiAgaWYgKCFlcnJvcikge1xuICAgIHJldHVybiBmYWxzZTtcbiAgfVxuXG4gIHJldHVybiBpc1JldHJ5YWJsZUJ5VHJhaXQoZXJyb3IpIHx8IGlzQ2xvY2tTa2V3RXJyb3IoZXJyb3IpIHx8IGlzVGhyb3R0bGluZ0Vycm9yKGVycm9yKSB8fCBpc1RyYW5zaWVudEVycm9yKGVycm9yKTtcbn07XG4iXX0= /***/ }), /***/ "AhNH": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-polly/dist/es/commands/PutLexiconCommand.js ***! \**********************************************************************************/ /*! exports provided: PutLexiconCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutLexiconCommand", function() { return PutLexiconCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "uUVK"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "h3LU"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutLexiconCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutLexiconCommand, _super); // Start section: command_properties // End section: command_properties function PutLexiconCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutLexiconCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutLexiconInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutLexiconOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutLexiconCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PutLexiconCommand"])(input, context); }; PutLexiconCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PutLexiconCommand"])(output, context); }; return PutLexiconCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=PutLexiconCommand.js.map /***/ }), /***/ "Aj/d": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsSandboxChannelCommand.js ***! \************************************************************************************************/ /*! exports provided: GetApnsSandboxChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelCommand", function() { return GetApnsSandboxChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetApnsSandboxChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetApnsSandboxChannelCommand, _super); // Start section: command_properties // End section: command_properties function GetApnsSandboxChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetApnsSandboxChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetApnsSandboxChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetApnsSandboxChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetApnsSandboxChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetApnsSandboxChannelCommand"])(input, context); }; GetApnsSandboxChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetApnsSandboxChannelCommand"])(output, context); }; return GetApnsSandboxChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetApnsSandboxChannelCommand.js.map /***/ }), /***/ "AoYT": /*!*************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/pagination/ListStreamConsumersPaginator.js ***! \*************************************************************************************************/ /*! exports provided: listStreamConsumersPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "listStreamConsumersPaginate", function() { return listStreamConsumersPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Kinesis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Kinesis */ "89JE"); /* harmony import */ var _KinesisClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../KinesisClient */ "zDFU"); /* harmony import */ var _commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/ListStreamConsumersCommand */ "VtXw"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_3__["ListStreamConsumersCommand"].bind.apply(_commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_3__["ListStreamConsumersCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.listStreamConsumers.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function listStreamConsumersPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function listStreamConsumersPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Kinesis__WEBPACK_IMPORTED_MODULE_1__["Kinesis"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _KinesisClient__WEBPACK_IMPORTED_MODULE_2__["KinesisClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Kinesis | KinesisClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=ListStreamConsumersPaginator.js.map /***/ }), /***/ "ArSr": /*!***************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/DeleteIdentitiesCommand.js ***! \***************************************************************************************************/ /*! exports provided: DeleteIdentitiesCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteIdentitiesCommand", function() { return DeleteIdentitiesCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteIdentitiesCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteIdentitiesCommand, _super); // Start section: command_properties // End section: command_properties function DeleteIdentitiesCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteIdentitiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__["getAwsAuthPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteIdentitiesInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteIdentitiesResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteIdentitiesCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DeleteIdentitiesCommand"])(input, context); }; DeleteIdentitiesCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DeleteIdentitiesCommand"])(output, context); }; return DeleteIdentitiesCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=DeleteIdentitiesCommand.js.map /***/ }), /***/ "AyEt": /*!******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-apply-body-checksum/dist/es/md5Configuration.js ***! \******************************************************************************************/ /*! exports provided: resolveMd5BodyChecksumConfig */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveMd5BodyChecksumConfig", function() { return resolveMd5BodyChecksumConfig; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); function resolveMd5BodyChecksumConfig(input) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, input); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWQ1Q29uZmlndXJhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tZDVDb25maWd1cmF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFhQSxNQUFNLFVBQVUsNEJBQTRCLENBQzFDLEtBQTBEO0lBRTFELG9CQUNLLEtBQUssRUFDUjtBQUNKLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFbmNvZGVyLCBIYXNoLCBTdHJlYW1IYXNoZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuZXhwb3J0IGludGVyZmFjZSBNZDVCb2R5Q2hlY2tzdW1JbnB1dENvbmZpZyB7fVxuaW50ZXJmYWNlIFByZXZpb3VzbHlSZXNvbHZlZCB7XG4gIG1kNTogeyBuZXcgKCk6IEhhc2ggfTtcbiAgYmFzZTY0RW5jb2RlcjogRW5jb2RlcjtcbiAgc3RyZWFtSGFzaGVyOiBTdHJlYW1IYXNoZXI8YW55Pjtcbn1cbmV4cG9ydCBpbnRlcmZhY2UgTWQ1Qm9keUNoZWNrc3VtUmVzb2x2ZWRDb25maWcge1xuICBtZDU6IHsgbmV3ICgpOiBIYXNoIH07XG4gIGJhc2U2NEVuY29kZXI6IEVuY29kZXI7XG4gIHN0cmVhbUhhc2hlcjogU3RyZWFtSGFzaGVyPGFueT47XG59XG5leHBvcnQgZnVuY3Rpb24gcmVzb2x2ZU1kNUJvZHlDaGVja3N1bUNvbmZpZzxUPihcbiAgaW5wdXQ6IFQgJiBQcmV2aW91c2x5UmVzb2x2ZWQgJiBNZDVCb2R5Q2hlY2tzdW1JbnB1dENvbmZpZ1xuKTogVCAmIE1kNUJvZHlDaGVja3N1bVJlc29sdmVkQ29uZmlnIHtcbiAgcmV0dXJuIHtcbiAgICAuLi5pbnB1dCxcbiAgfTtcbn1cbiJdfQ== /***/ }), /***/ "Az6a": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceTemplateCommand.js ***! \**********************************************************************************************/ /*! exports provided: DeleteVoiceTemplateCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateCommand", function() { return DeleteVoiceTemplateCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteVoiceTemplateCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteVoiceTemplateCommand, _super); // Start section: command_properties // End section: command_properties function DeleteVoiceTemplateCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteVoiceTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteVoiceTemplateRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteVoiceTemplateResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteVoiceTemplateCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteVoiceTemplateCommand"])(input, context); }; DeleteVoiceTemplateCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteVoiceTemplateCommand"])(output, context); }; return DeleteVoiceTemplateCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteVoiceTemplateCommand.js.map /***/ }), /***/ "B+pP": /*!****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-polly/dist/es/pagination/ListSpeechSynthesisTasksPaginator.js ***! \****************************************************************************************************/ /*! exports provided: listSpeechSynthesisTasksPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "listSpeechSynthesisTasksPaginate", function() { return listSpeechSynthesisTasksPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Polly__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Polly */ "/uKA"); /* harmony import */ var _PollyClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../PollyClient */ "EGfy"); /* harmony import */ var _commands_ListSpeechSynthesisTasksCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/ListSpeechSynthesisTasksCommand */ "RXia"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_ListSpeechSynthesisTasksCommand__WEBPACK_IMPORTED_MODULE_3__["ListSpeechSynthesisTasksCommand"].bind.apply(_commands_ListSpeechSynthesisTasksCommand__WEBPACK_IMPORTED_MODULE_3__["ListSpeechSynthesisTasksCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.listSpeechSynthesisTasks.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function listSpeechSynthesisTasksPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function listSpeechSynthesisTasksPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Polly__WEBPACK_IMPORTED_MODULE_1__["Polly"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _PollyClient__WEBPACK_IMPORTED_MODULE_2__["PollyClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Polly | PollyClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=ListSpeechSynthesisTasksPaginator.js.map /***/ }), /***/ "B4mn": /*!************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-translate/dist/es/models/index.js ***! \************************************************************************/ /*! exports provided: AppliedTerminology, DeleteTerminologyRequest, DescribeTextTranslationJobRequest, DescribeTextTranslationJobResponse, DetectedLanguageLowConfidenceException, EncryptionKey, EncryptionKeyType, GetTerminologyRequest, GetTerminologyResponse, ImportTerminologyRequest, ImportTerminologyResponse, InputDataConfig, InternalServerException, InvalidFilterException, InvalidParameterValueException, InvalidRequestException, JobDetails, JobStatus, LimitExceededException, ListTerminologiesRequest, ListTerminologiesResponse, ListTextTranslationJobsRequest, ListTextTranslationJobsResponse, MergeStrategy, OutputDataConfig, ResourceNotFoundException, ServiceUnavailableException, StartTextTranslationJobRequest, StartTextTranslationJobResponse, StopTextTranslationJobRequest, StopTextTranslationJobResponse, Term, TerminologyData, TerminologyDataFormat, TerminologyDataLocation, TerminologyProperties, TextSizeLimitExceededException, TextTranslationJobFilter, TextTranslationJobProperties, TooManyRequestsException, TranslateTextRequest, TranslateTextResponse, UnsupportedLanguagePairException */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppliedTerminology", function() { return AppliedTerminology; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteTerminologyRequest", function() { return DeleteTerminologyRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeTextTranslationJobRequest", function() { return DescribeTextTranslationJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeTextTranslationJobResponse", function() { return DescribeTextTranslationJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectedLanguageLowConfidenceException", function() { return DetectedLanguageLowConfidenceException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncryptionKey", function() { return EncryptionKey; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncryptionKeyType", function() { return EncryptionKeyType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetTerminologyRequest", function() { return GetTerminologyRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetTerminologyResponse", function() { return GetTerminologyResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportTerminologyRequest", function() { return ImportTerminologyRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportTerminologyResponse", function() { return ImportTerminologyResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputDataConfig", function() { return InputDataConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InternalServerException", function() { return InternalServerException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InvalidFilterException", function() { return InvalidFilterException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InvalidParameterValueException", function() { return InvalidParameterValueException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InvalidRequestException", function() { return InvalidRequestException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JobDetails", function() { return JobDetails; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JobStatus", function() { return JobStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return LimitExceededException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTerminologiesRequest", function() { return ListTerminologiesRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTerminologiesResponse", function() { return ListTerminologiesResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTextTranslationJobsRequest", function() { return ListTextTranslationJobsRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTextTranslationJobsResponse", function() { return ListTextTranslationJobsResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeStrategy", function() { return MergeStrategy; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutputDataConfig", function() { return OutputDataConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return ResourceNotFoundException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServiceUnavailableException", function() { return ServiceUnavailableException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartTextTranslationJobRequest", function() { return StartTextTranslationJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartTextTranslationJobResponse", function() { return StartTextTranslationJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopTextTranslationJobRequest", function() { return StopTextTranslationJobRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopTextTranslationJobResponse", function() { return StopTextTranslationJobResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Term", function() { return Term; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TerminologyData", function() { return TerminologyData; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TerminologyDataFormat", function() { return TerminologyDataFormat; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TerminologyDataLocation", function() { return TerminologyDataLocation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TerminologyProperties", function() { return TerminologyProperties; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextSizeLimitExceededException", function() { return TextSizeLimitExceededException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextTranslationJobFilter", function() { return TextTranslationJobFilter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextTranslationJobProperties", function() { return TextTranslationJobProperties; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooManyRequestsException", function() { return TooManyRequestsException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TranslateTextRequest", function() { return TranslateTextRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TranslateTextResponse", function() { return TranslateTextResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnsupportedLanguagePairException", function() { return UnsupportedLanguagePairException; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var AppliedTerminology; (function (AppliedTerminology) { AppliedTerminology.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; AppliedTerminology.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "AppliedTerminology"); }; })(AppliedTerminology || (AppliedTerminology = {})); var DeleteTerminologyRequest; (function (DeleteTerminologyRequest) { DeleteTerminologyRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DeleteTerminologyRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DeleteTerminologyRequest"); }; })(DeleteTerminologyRequest || (DeleteTerminologyRequest = {})); var DescribeTextTranslationJobRequest; (function (DescribeTextTranslationJobRequest) { DescribeTextTranslationJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeTextTranslationJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeTextTranslationJobRequest"); }; })(DescribeTextTranslationJobRequest || (DescribeTextTranslationJobRequest = {})); var DescribeTextTranslationJobResponse; (function (DescribeTextTranslationJobResponse) { DescribeTextTranslationJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DescribeTextTranslationJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DescribeTextTranslationJobResponse"); }; })(DescribeTextTranslationJobResponse || (DescribeTextTranslationJobResponse = {})); var DetectedLanguageLowConfidenceException; (function (DetectedLanguageLowConfidenceException) { DetectedLanguageLowConfidenceException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DetectedLanguageLowConfidenceException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DetectedLanguageLowConfidenceException"); }; })(DetectedLanguageLowConfidenceException || (DetectedLanguageLowConfidenceException = {})); var EncryptionKey; (function (EncryptionKey) { EncryptionKey.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; EncryptionKey.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "EncryptionKey"); }; })(EncryptionKey || (EncryptionKey = {})); var EncryptionKeyType; (function (EncryptionKeyType) { EncryptionKeyType["KMS"] = "KMS"; })(EncryptionKeyType || (EncryptionKeyType = {})); var GetTerminologyRequest; (function (GetTerminologyRequest) { GetTerminologyRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; GetTerminologyRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "GetTerminologyRequest"); }; })(GetTerminologyRequest || (GetTerminologyRequest = {})); var GetTerminologyResponse; (function (GetTerminologyResponse) { GetTerminologyResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; GetTerminologyResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "GetTerminologyResponse"); }; })(GetTerminologyResponse || (GetTerminologyResponse = {})); var ImportTerminologyRequest; (function (ImportTerminologyRequest) { ImportTerminologyRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.TerminologyData && { TerminologyData: TerminologyData.filterSensitiveLog(obj.TerminologyData) }))); }; ImportTerminologyRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ImportTerminologyRequest"); }; })(ImportTerminologyRequest || (ImportTerminologyRequest = {})); var ImportTerminologyResponse; (function (ImportTerminologyResponse) { ImportTerminologyResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ImportTerminologyResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ImportTerminologyResponse"); }; })(ImportTerminologyResponse || (ImportTerminologyResponse = {})); var InputDataConfig; (function (InputDataConfig) { InputDataConfig.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; InputDataConfig.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "InputDataConfig"); }; })(InputDataConfig || (InputDataConfig = {})); var InternalServerException; (function (InternalServerException) { InternalServerException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; InternalServerException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "InternalServerException"); }; })(InternalServerException || (InternalServerException = {})); var InvalidFilterException; (function (InvalidFilterException) { InvalidFilterException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; InvalidFilterException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "InvalidFilterException"); }; })(InvalidFilterException || (InvalidFilterException = {})); var InvalidParameterValueException; (function (InvalidParameterValueException) { InvalidParameterValueException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; InvalidParameterValueException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "InvalidParameterValueException"); }; })(InvalidParameterValueException || (InvalidParameterValueException = {})); var InvalidRequestException; (function (InvalidRequestException) { InvalidRequestException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; InvalidRequestException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "InvalidRequestException"); }; })(InvalidRequestException || (InvalidRequestException = {})); var JobDetails; (function (JobDetails) { JobDetails.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; JobDetails.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "JobDetails"); }; })(JobDetails || (JobDetails = {})); var JobStatus; (function (JobStatus) { JobStatus["COMPLETED"] = "COMPLETED"; JobStatus["COMPLETED_WITH_ERROR"] = "COMPLETED_WITH_ERROR"; JobStatus["FAILED"] = "FAILED"; JobStatus["IN_PROGRESS"] = "IN_PROGRESS"; JobStatus["STOPPED"] = "STOPPED"; JobStatus["STOP_REQUESTED"] = "STOP_REQUESTED"; JobStatus["SUBMITTED"] = "SUBMITTED"; })(JobStatus || (JobStatus = {})); var LimitExceededException; (function (LimitExceededException) { LimitExceededException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; LimitExceededException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "LimitExceededException"); }; })(LimitExceededException || (LimitExceededException = {})); var ListTerminologiesRequest; (function (ListTerminologiesRequest) { ListTerminologiesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListTerminologiesRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListTerminologiesRequest"); }; })(ListTerminologiesRequest || (ListTerminologiesRequest = {})); var ListTerminologiesResponse; (function (ListTerminologiesResponse) { ListTerminologiesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListTerminologiesResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListTerminologiesResponse"); }; })(ListTerminologiesResponse || (ListTerminologiesResponse = {})); var ListTextTranslationJobsRequest; (function (ListTextTranslationJobsRequest) { ListTextTranslationJobsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListTextTranslationJobsRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListTextTranslationJobsRequest"); }; })(ListTextTranslationJobsRequest || (ListTextTranslationJobsRequest = {})); var ListTextTranslationJobsResponse; (function (ListTextTranslationJobsResponse) { ListTextTranslationJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ListTextTranslationJobsResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ListTextTranslationJobsResponse"); }; })(ListTextTranslationJobsResponse || (ListTextTranslationJobsResponse = {})); var MergeStrategy; (function (MergeStrategy) { MergeStrategy["OVERWRITE"] = "OVERWRITE"; })(MergeStrategy || (MergeStrategy = {})); var OutputDataConfig; (function (OutputDataConfig) { OutputDataConfig.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; OutputDataConfig.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "OutputDataConfig"); }; })(OutputDataConfig || (OutputDataConfig = {})); var ResourceNotFoundException; (function (ResourceNotFoundException) { ResourceNotFoundException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ResourceNotFoundException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ResourceNotFoundException"); }; })(ResourceNotFoundException || (ResourceNotFoundException = {})); var ServiceUnavailableException; (function (ServiceUnavailableException) { ServiceUnavailableException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ServiceUnavailableException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ServiceUnavailableException"); }; })(ServiceUnavailableException || (ServiceUnavailableException = {})); var StartTextTranslationJobRequest; (function (StartTextTranslationJobRequest) { StartTextTranslationJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StartTextTranslationJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StartTextTranslationJobRequest"); }; })(StartTextTranslationJobRequest || (StartTextTranslationJobRequest = {})); var StartTextTranslationJobResponse; (function (StartTextTranslationJobResponse) { StartTextTranslationJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StartTextTranslationJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StartTextTranslationJobResponse"); }; })(StartTextTranslationJobResponse || (StartTextTranslationJobResponse = {})); var StopTextTranslationJobRequest; (function (StopTextTranslationJobRequest) { StopTextTranslationJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StopTextTranslationJobRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StopTextTranslationJobRequest"); }; })(StopTextTranslationJobRequest || (StopTextTranslationJobRequest = {})); var StopTextTranslationJobResponse; (function (StopTextTranslationJobResponse) { StopTextTranslationJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; StopTextTranslationJobResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "StopTextTranslationJobResponse"); }; })(StopTextTranslationJobResponse || (StopTextTranslationJobResponse = {})); var Term; (function (Term) { Term.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; Term.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "Term"); }; })(Term || (Term = {})); var TerminologyData; (function (TerminologyData) { TerminologyData.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.File && { File: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; TerminologyData.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TerminologyData"); }; })(TerminologyData || (TerminologyData = {})); var TerminologyDataFormat; (function (TerminologyDataFormat) { TerminologyDataFormat["CSV"] = "CSV"; TerminologyDataFormat["TMX"] = "TMX"; })(TerminologyDataFormat || (TerminologyDataFormat = {})); var TerminologyDataLocation; (function (TerminologyDataLocation) { TerminologyDataLocation.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; TerminologyDataLocation.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TerminologyDataLocation"); }; })(TerminologyDataLocation || (TerminologyDataLocation = {})); var TerminologyProperties; (function (TerminologyProperties) { TerminologyProperties.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; TerminologyProperties.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TerminologyProperties"); }; })(TerminologyProperties || (TerminologyProperties = {})); var TextSizeLimitExceededException; (function (TextSizeLimitExceededException) { TextSizeLimitExceededException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; TextSizeLimitExceededException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TextSizeLimitExceededException"); }; })(TextSizeLimitExceededException || (TextSizeLimitExceededException = {})); var TextTranslationJobFilter; (function (TextTranslationJobFilter) { TextTranslationJobFilter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; TextTranslationJobFilter.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TextTranslationJobFilter"); }; })(TextTranslationJobFilter || (TextTranslationJobFilter = {})); var TextTranslationJobProperties; (function (TextTranslationJobProperties) { TextTranslationJobProperties.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; TextTranslationJobProperties.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TextTranslationJobProperties"); }; })(TextTranslationJobProperties || (TextTranslationJobProperties = {})); var TooManyRequestsException; (function (TooManyRequestsException) { TooManyRequestsException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; TooManyRequestsException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TooManyRequestsException"); }; })(TooManyRequestsException || (TooManyRequestsException = {})); var TranslateTextRequest; (function (TranslateTextRequest) { TranslateTextRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; TranslateTextRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TranslateTextRequest"); }; })(TranslateTextRequest || (TranslateTextRequest = {})); var TranslateTextResponse; (function (TranslateTextResponse) { TranslateTextResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; TranslateTextResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "TranslateTextResponse"); }; })(TranslateTextResponse || (TranslateTextResponse = {})); var UnsupportedLanguagePairException; (function (UnsupportedLanguagePairException) { UnsupportedLanguagePairException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; UnsupportedLanguagePairException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "UnsupportedLanguagePairException"); }; })(UnsupportedLanguagePairException || (UnsupportedLanguagePairException = {})); //# sourceMappingURL=index.js.map /***/ }), /***/ "B71N": /*!*************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetObjectTaggingCommand.js ***! \*************************************************************************************/ /*! exports provided: GetObjectTaggingCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetObjectTaggingCommand", function() { return GetObjectTaggingCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetObjectTaggingCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetObjectTaggingCommand, _super); // Start section: command_properties // End section: command_properties function GetObjectTaggingCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetObjectTaggingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetObjectTaggingRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetObjectTaggingOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetObjectTaggingCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetObjectTaggingCommand"])(input, context); }; GetObjectTaggingCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetObjectTaggingCommand"])(output, context); }; return GetObjectTaggingCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetObjectTaggingCommand.js.map /***/ }), /***/ "B8du": /*!******************************************!*\ !*** ./node_modules/lodash/stubFalse.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } module.exports = stubFalse; /***/ }), /***/ "BBLe": /*!****************************************************************!*\ !*** ./node_modules/@aws-sdk/util-arn-parser/dist/es/index.js ***! \****************************************************************/ /*! exports provided: validate, parse, build */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validate", function() { return validate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return parse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "build", function() { return build; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /** * Validate whether a string is an ARN. */ var validate = function (str) { return typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6; }; /** * Parse an ARN string into structure with partition, service, region, accountId and resource values */ var parse = function (arn) { var segments = arn.split(":"); if (segments.length < 6 || segments[0] !== "arn") throw new Error("Malformed ARN"); var _a = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(segments), //Skip "arn" literal partition = _a[1], service = _a[2], region = _a[3], accountId = _a[4], resource = _a.slice(5); return { partition: partition, service: service, region: region, accountId: accountId, resource: resource.join(":"), }; }; /** * Build an ARN with service, partition, region, accountId, and resources strings */ var build = function (arnObject) { var _a = arnObject.partition, partition = _a === void 0 ? "aws" : _a, service = arnObject.service, region = arnObject.region, accountId = arnObject.accountId, resource = arnObject.resource; if ([service, region, accountId, resource].some(function (segment) { return typeof segment !== "string"; })) { throw new Error("Input ARN object is invalid"); } return "arn:" + partition + ":" + service + ":" + region + ":" + accountId + ":" + resource; }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQU9BOztHQUVHO0FBQ0gsTUFBTSxDQUFDLElBQU0sUUFBUSxHQUFHLFVBQUMsR0FBUTtJQUMvQixPQUFBLE9BQU8sR0FBRyxLQUFLLFFBQVEsSUFBSSxHQUFHLENBQUMsT0FBTyxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUMsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFDLE1BQU0sSUFBSSxDQUFDO0FBQWxGLENBQWtGLENBQUM7QUFFckY7O0dBRUc7QUFDSCxNQUFNLENBQUMsSUFBTSxLQUFLLEdBQUcsVUFBQyxHQUFXO0lBQy9CLElBQU0sUUFBUSxHQUFHLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUM7SUFDaEMsSUFBSSxRQUFRLENBQUMsTUFBTSxHQUFHLENBQUMsSUFBSSxRQUFRLENBQUMsQ0FBQyxDQUFDLEtBQUssS0FBSztRQUFFLE1BQU0sSUFBSSxLQUFLLENBQUMsZUFBZSxDQUFDLENBQUM7SUFDN0UsSUFBQSxLQUFBLE9BUUYsUUFBUSxDQUFBO0lBTlYsb0JBQW9CO0lBQ3BCLFNBQVMsUUFBQSxFQUNULE9BQU8sUUFBQSxFQUNQLE1BQU0sUUFBQSxFQUNOLFNBQVMsUUFBQSxFQUNOLFFBQVEsY0FDRCxDQUFDO0lBRWIsT0FBTztRQUNMLFNBQVMsV0FBQTtRQUNULE9BQU8sU0FBQTtRQUNQLE1BQU0sUUFBQTtRQUNOLFNBQVMsV0FBQTtRQUNULFFBQVEsRUFBRSxRQUFRLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQztLQUM3QixDQUFDO0FBQ0osQ0FBQyxDQUFDO0FBSUY7O0dBRUc7QUFDSCxNQUFNLENBQUMsSUFBTSxLQUFLLEdBQUcsVUFBQyxTQUF1QjtJQUNuQyxJQUFBLEtBQTRELFNBQVMsVUFBcEQsRUFBakIsU0FBUyxtQkFBRyxLQUFLLEtBQUEsRUFBRSxPQUFPLEdBQWtDLFNBQVMsUUFBM0MsRUFBRSxNQUFNLEdBQTBCLFNBQVMsT0FBbkMsRUFBRSxTQUFTLEdBQWUsU0FBUyxVQUF4QixFQUFFLFFBQVEsR0FBSyxTQUFTLFNBQWQsQ0FBZTtJQUM5RSxJQUFJLENBQUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxTQUFTLEVBQUUsUUFBUSxDQUFDLENBQUMsSUFBSSxDQUFDLFVBQUMsT0FBTyxJQUFLLE9BQUEsT0FBTyxPQUFPLEtBQUssUUFBUSxFQUEzQixDQUEyQixDQUFDLEVBQUU7UUFDekYsTUFBTSxJQUFJLEtBQUssQ0FBQyw2QkFBNkIsQ0FBQyxDQUFDO0tBQ2hEO0lBQ0QsT0FBTyxTQUFPLFNBQVMsU0FBSSxPQUFPLFNBQUksTUFBTSxTQUFJLFNBQVMsU0FBSSxRQUFVLENBQUM7QUFDMUUsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBBUk4ge1xuICBwYXJ0aXRpb246IHN0cmluZztcbiAgc2VydmljZTogc3RyaW5nO1xuICByZWdpb246IHN0cmluZztcbiAgYWNjb3VudElkOiBzdHJpbmc7XG4gIHJlc291cmNlOiBzdHJpbmc7XG59XG4vKipcbiAqIFZhbGlkYXRlIHdoZXRoZXIgYSBzdHJpbmcgaXMgYW4gQVJOLlxuICovXG5leHBvcnQgY29uc3QgdmFsaWRhdGUgPSAoc3RyOiBhbnkpOiBib29sZWFuID0+XG4gIHR5cGVvZiBzdHIgPT09IFwic3RyaW5nXCIgJiYgc3RyLmluZGV4T2YoXCJhcm46XCIpID09PSAwICYmIHN0ci5zcGxpdChcIjpcIikubGVuZ3RoID49IDY7XG5cbi8qKlxuICogUGFyc2UgYW4gQVJOIHN0cmluZyBpbnRvIHN0cnVjdHVyZSB3aXRoIHBhcnRpdGlvbiwgc2VydmljZSwgcmVnaW9uLCBhY2NvdW50SWQgYW5kIHJlc291cmNlIHZhbHVlc1xuICovXG5leHBvcnQgY29uc3QgcGFyc2UgPSAoYXJuOiBzdHJpbmcpOiBBUk4gPT4ge1xuICBjb25zdCBzZWdtZW50cyA9IGFybi5zcGxpdChcIjpcIik7XG4gIGlmIChzZWdtZW50cy5sZW5ndGggPCA2IHx8IHNlZ21lbnRzWzBdICE9PSBcImFyblwiKSB0aHJvdyBuZXcgRXJyb3IoXCJNYWxmb3JtZWQgQVJOXCIpO1xuICBjb25zdCBbXG4gICAgLFxuICAgIC8vU2tpcCBcImFyblwiIGxpdGVyYWxcbiAgICBwYXJ0aXRpb24sXG4gICAgc2VydmljZSxcbiAgICByZWdpb24sXG4gICAgYWNjb3VudElkLFxuICAgIC4uLnJlc291cmNlXG4gIF0gPSBzZWdtZW50cztcblxuICByZXR1cm4ge1xuICAgIHBhcnRpdGlvbixcbiAgICBzZXJ2aWNlLFxuICAgIHJlZ2lvbixcbiAgICBhY2NvdW50SWQsXG4gICAgcmVzb3VyY2U6IHJlc291cmNlLmpvaW4oXCI6XCIpLFxuICB9O1xufTtcblxudHlwZSBidWlsZE9wdGlvbnMgPSBPbWl0PEFSTiwgXCJwYXJ0aXRpb25cIj4gJiB7IHBhcnRpdGlvbj86IHN0cmluZyB9O1xuXG4vKipcbiAqIEJ1aWxkIGFuIEFSTiB3aXRoIHNlcnZpY2UsIHBhcnRpdGlvbiwgcmVnaW9uLCBhY2NvdW50SWQsIGFuZCByZXNvdXJjZXMgc3RyaW5nc1xuICovXG5leHBvcnQgY29uc3QgYnVpbGQgPSAoYXJuT2JqZWN0OiBidWlsZE9wdGlvbnMpOiBzdHJpbmcgPT4ge1xuICBjb25zdCB7IHBhcnRpdGlvbiA9IFwiYXdzXCIsIHNlcnZpY2UsIHJlZ2lvbiwgYWNjb3VudElkLCByZXNvdXJjZSB9ID0gYXJuT2JqZWN0O1xuICBpZiAoW3NlcnZpY2UsIHJlZ2lvbiwgYWNjb3VudElkLCByZXNvdXJjZV0uc29tZSgoc2VnbWVudCkgPT4gdHlwZW9mIHNlZ21lbnQgIT09IFwic3RyaW5nXCIpKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKFwiSW5wdXQgQVJOIG9iamVjdCBpcyBpbnZhbGlkXCIpO1xuICB9XG4gIHJldHVybiBgYXJuOiR7cGFydGl0aW9ufToke3NlcnZpY2V9OiR7cmVnaW9ufToke2FjY291bnRJZH06JHtyZXNvdXJjZX1gO1xufTtcbiJdfQ== /***/ }), /***/ "BC0r": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-sdk/eventstream-serde-config-resolver/dist/es/index.js ***! \**********************************************************************************/ /*! exports provided: resolveEventStreamSerdeConfig */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _EventStreamSerdeConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EventStreamSerdeConfig */ "kM34"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveEventStreamSerdeConfig", function() { return _EventStreamSerdeConfig__WEBPACK_IMPORTED_MODULE_0__["resolveEventStreamSerdeConfig"]; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywwQkFBMEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL0V2ZW50U3RyZWFtU2VyZGVDb25maWdcIjtcbiJdfQ== /***/ }), /***/ "BFxc": /*!*******************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/takeLast.js ***! \*******************************************************************/ /*! exports provided: takeLast */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "takeLast", function() { return takeLast; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); /* harmony import */ var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/ArgumentOutOfRangeError */ "4I5i"); /* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/empty */ "EY2u"); function takeLast(count) { return function takeLastOperatorFunction(source) { if (count === 0) { return Object(_observable_empty__WEBPACK_IMPORTED_MODULE_2__["empty"])(); } else { return source.lift(new TakeLastOperator(count)); } }; } class TakeLastOperator { constructor(total) { this.total = total; if (this.total < 0) { throw new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__["ArgumentOutOfRangeError"]; } } call(subscriber, source) { return source.subscribe(new TakeLastSubscriber(subscriber, this.total)); } } class TakeLastSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, total) { super(destination); this.total = total; this.ring = new Array(); this.count = 0; } _next(value) { const ring = this.ring; const total = this.total; const count = this.count++; if (ring.length < total) { ring.push(value); } else { const index = count % total; ring[index] = value; } } _complete() { const destination = this.destination; let count = this.count; if (count > 0) { const total = this.count >= this.total ? this.total : this.count; const ring = this.ring; for (let i = 0; i < total; i++) { const idx = (count++) % total; destination.next(ring[idx]); } } destination.complete(); } } //# sourceMappingURL=takeLast.js.map /***/ }), /***/ "BKGG": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/RestoreObjectCommand.js ***! \**********************************************************************************/ /*! exports provided: RestoreObjectCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestoreObjectCommand", function() { return RestoreObjectCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var RestoreObjectCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RestoreObjectCommand, _super); // Start section: command_properties // End section: command_properties function RestoreObjectCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } RestoreObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["RestoreObjectRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["RestoreObjectOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; RestoreObjectCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlRestoreObjectCommand"])(input, context); }; RestoreObjectCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlRestoreObjectCommand"])(output, context); }; return RestoreObjectCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=RestoreObjectCommand.js.map /***/ }), /***/ "BLt0": /*!**************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignCommand.js ***! \**************************************************************************************/ /*! exports provided: GetCampaignCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignCommand", function() { return GetCampaignCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetCampaignCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignCommand, _super); // Start section: command_properties // End section: command_properties function GetCampaignCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCampaignRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCampaignResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetCampaignCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignCommand"])(input, context); }; GetCampaignCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignCommand"])(output, context); }; return GetCampaignCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetCampaignCommand.js.map /***/ }), /***/ "BWUp": /*!********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-personalize-events/dist/es/PersonalizeEventsClient.js ***! \********************************************************************************************/ /*! exports provided: PersonalizeEventsClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PersonalizeEventsClient", function() { return PersonalizeEventsClient; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./runtimeConfig */ "YDp5"); /* harmony import */ var _aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/config-resolver */ "NtRE"); /* harmony import */ var _aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-content-length */ "naxo"); /* harmony import */ var _aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-host-header */ "Nl9j"); /* harmony import */ var _aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-logger */ "+tRG"); /* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "UMev"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/middleware-user-agent */ "87YT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); /** *

*/ var PersonalizeEventsClient = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PersonalizeEventsClient, _super); function PersonalizeEventsClient(configuration) { var _this = this; var _config_0 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__["ClientDefaultValues"]), configuration); var _config_1 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveRegionConfig"])(_config_0); var _config_2 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveEndpointsConfig"])(_config_1); var _config_3 = Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["resolveAwsAuthConfig"])(_config_2); var _config_4 = Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["resolveRetryConfig"])(_config_3); var _config_5 = Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["resolveUserAgentConfig"])(_config_4); var _config_6 = Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["resolveHostHeaderConfig"])(_config_5); var _config_7 = Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__["resolveLoggerConfig"])(_config_6); _this = _super.call(this, _config_7) || this; _this.config = _config_7; _this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["getAwsAuthPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["getRetryPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["getUserAgentPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__["getContentLengthPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["getHostHeaderPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__["getLoggerPlugin"])(_this.config)); return _this; } PersonalizeEventsClient.prototype.destroy = function () { _super.prototype.destroy.call(this); }; return PersonalizeEventsClient; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__["Client"])); //# sourceMappingURL=PersonalizeEventsClient.js.map /***/ }), /***/ "BttL": /*!******************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/Signer.js ***! \******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; Object.defineProperty(exports, "__esModule", { value: true }); var Logger_1 = __webpack_require__(/*! ./Logger */ "t5A6"); var sha256_js_1 = __webpack_require__(/*! @aws-crypto/sha256-js */ "xxdO"); var util_hex_encoding_1 = __webpack_require__(/*! @aws-sdk/util-hex-encoding */ "7Z+r"); var url_1 = __webpack_require__(/*! url */ "CxY0"); var Util_1 = __webpack_require__(/*! ./Util */ "HGW4"); var logger = new Logger_1.ConsoleLogger('Signer'); var DEFAULT_ALGORITHM = 'AWS4-HMAC-SHA256'; var IOT_SERVICE_NAME = 'iotdevicegateway'; var encrypt = function (key, src) { var hash = new sha256_js_1.Sha256(key); hash.update(src); return hash.digestSync(); }; var hash = function (src) { var arg = src || ''; var hash = new sha256_js_1.Sha256(); hash.update(arg); return util_hex_encoding_1.toHex(hash.digestSync()); }; /** * @private * RFC 3986 compliant version of encodeURIComponent */ var escape_RFC3986 = function (component) { return component.replace(/[!'()*]/g, function (c) { return ('%' + c .charCodeAt(0) .toString(16) .toUpperCase()); }); }; /** * @private * Create canonical query string * */ var canonical_query = function (query) { if (!query || query.length === 0) { return ''; } return query .split('&') .map(function (e) { var key_val = e.split('='); if (key_val.length === 1) { return e; } else { var reencoded_val = escape_RFC3986(key_val[1]); return key_val[0] + '=' + reencoded_val; } }) .sort(function (a, b) { var key_a = a.split('=')[0]; var key_b = b.split('=')[0]; if (key_a === key_b) { return a < b ? -1 : 1; } else { return key_a < key_b ? -1 : 1; } }) .join('&'); }; /** * @private * Create canonical headers *
CanonicalHeaders =
    CanonicalHeadersEntry0 + CanonicalHeadersEntry1 + ... + CanonicalHeadersEntryN
CanonicalHeadersEntry =
    Lowercase(HeaderName) + ':' + Trimall(HeaderValue) + '\n'
*/ var canonical_headers = function (headers) { if (!headers || Object.keys(headers).length === 0) { return ''; } return (Object.keys(headers) .map(function (key) { return { key: key.toLowerCase(), value: headers[key] ? headers[key].trim().replace(/\s+/g, ' ') : '', }; }) .sort(function (a, b) { return a.key < b.key ? -1 : 1; }) .map(function (item) { return item.key + ':' + item.value; }) .join('\n') + '\n'); }; /** * List of header keys included in the canonical headers. * @access private */ var signed_headers = function (headers) { return Object.keys(headers) .map(function (key) { return key.toLowerCase(); }) .sort() .join(';'); }; /** * @private * Create canonical request * Refer to * {@link http://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html|Create a Canonical Request} *
CanonicalRequest =
    HTTPRequestMethod + '\n' +
    CanonicalURI + '\n' +
    CanonicalQueryString + '\n' +
    CanonicalHeaders + '\n' +
    SignedHeaders + '\n' +
    HexEncode(Hash(RequestPayload))
*/ var canonical_request = function (request) { var url_info = url_1.parse(request.url); return [ request.method || '/', encodeURIComponent(url_info.pathname).replace(/%2F/gi, '/'), canonical_query(url_info.query), canonical_headers(request.headers), signed_headers(request.headers), hash(request.data), ].join('\n'); }; var parse_service_info = function (request) { var url_info = url_1.parse(request.url), host = url_info.host; var matched = host.match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com$/); var parsed = (matched || []).slice(1, 3); if (parsed[1] === 'es') { // Elastic Search parsed = parsed.reverse(); } return { service: request.service || parsed[0], region: request.region || parsed[1], }; }; var credential_scope = function (d_str, region, service) { return [d_str, region, service, 'aws4_request'].join('/'); }; /** * @private * Create a string to sign * Refer to * {@link http://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html|Create String to Sign} *
StringToSign =
    Algorithm + \n +
    RequestDateTime + \n +
    CredentialScope + \n +
    HashedCanonicalRequest
*/ var string_to_sign = function (algorithm, canonical_request, dt_str, scope) { return [algorithm, dt_str, scope, hash(canonical_request)].join('\n'); }; /** * @private * Create signing key * Refer to * {@link http://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html|Calculate Signature} *
kSecret = your secret access key
kDate = HMAC("AWS4" + kSecret, Date)
kRegion = HMAC(kDate, Region)
kService = HMAC(kRegion, Service)
kSigning = HMAC(kService, "aws4_request")
*/ var get_signing_key = function (secret_key, d_str, service_info) { logger.debug(service_info); var k = 'AWS4' + secret_key, k_date = encrypt(k, d_str), k_region = encrypt(k_date, service_info.region), k_service = encrypt(k_region, service_info.service), k_signing = encrypt(k_service, 'aws4_request'); return k_signing; }; var get_signature = function (signing_key, str_to_sign) { return util_hex_encoding_1.toHex(encrypt(signing_key, str_to_sign)); }; /** * @private * Create authorization header * Refer to * {@link http://docs.aws.amazon.com/general/latest/gr/sigv4-add-signature-to-request.html|Add the Signing Information} */ var get_authorization_header = function (algorithm, access_key, scope, signed_headers, signature) { return [ algorithm + ' ' + 'Credential=' + access_key + '/' + scope, 'SignedHeaders=' + signed_headers, 'Signature=' + signature, ].join(', '); }; var Signer = /** @class */ (function () { function Signer() { } /** * Sign a HTTP request, add 'Authorization' header to request param * @method sign * @memberof Signer * @static * * @param {object} request - HTTP request object
    request: {
        method: GET | POST | PUT ...
        url: ...,
        headers: {
            header1: ...
        },
        data: data
    }
    
* @param {object} access_info - AWS access credential info
    access_info: {
        access_key: ...,
        secret_key: ...,
        session_token: ...
    }
    
* @param {object} [service_info] - AWS service type and region, optional, * if not provided then parse out from url
    service_info: {
        service: ...,
        region: ...
    }
    
* * @returns {object} Signed HTTP request */ Signer.sign = function (request, access_info, service_info) { if (service_info === void 0) { service_info = null; } request.headers = request.headers || {}; // datetime string and date string var dt = Util_1.DateUtils.getDateWithClockOffset(), dt_str = dt.toISOString().replace(/[:\-]|\.\d{3}/g, ''), d_str = dt_str.substr(0, 8); var url_info = url_1.parse(request.url); request.headers['host'] = url_info.host; request.headers['x-amz-date'] = dt_str; if (access_info.session_token) { request.headers['X-Amz-Security-Token'] = access_info.session_token; } // Task 1: Create a Canonical Request var request_str = canonical_request(request); logger.debug(request_str); // Task 2: Create a String to Sign var serviceInfo = service_info || parse_service_info(request), scope = credential_scope(d_str, serviceInfo.region, serviceInfo.service), str_to_sign = string_to_sign(DEFAULT_ALGORITHM, request_str, dt_str, scope); // Task 3: Calculate the Signature var signing_key = get_signing_key(access_info.secret_key, d_str, serviceInfo), signature = get_signature(signing_key, str_to_sign); // Task 4: Adding the Signing information to the Request var authorization_header = get_authorization_header(DEFAULT_ALGORITHM, access_info.access_key, scope, signed_headers(request.headers), signature); request.headers['Authorization'] = authorization_header; return request; }; Signer.signUrl = function (urlOrRequest, accessInfo, serviceInfo, expiration) { var urlToSign = typeof urlOrRequest === 'object' ? urlOrRequest.url : urlOrRequest; var method = typeof urlOrRequest === 'object' ? urlOrRequest.method : 'GET'; var body = typeof urlOrRequest === 'object' ? urlOrRequest.body : undefined; var now = Util_1.DateUtils.getDateWithClockOffset() .toISOString() .replace(/[:\-]|\.\d{3}/g, ''); var today = now.substr(0, 8); // Intentionally discarding search var _a = url_1.parse(urlToSign, true, true), search = _a.search, parsedUrl = __rest(_a, ["search"]); var host = parsedUrl.host; var signedHeaders = { host: host }; var _b = serviceInfo || parse_service_info({ url: url_1.format(parsedUrl) }), region = _b.region, service = _b.service; var credentialScope = credential_scope(today, region, service); // IoT service does not allow the session token in the canonical request // https://docs.aws.amazon.com/general/latest/gr/sigv4-add-signature-to-request.html var sessionTokenRequired = accessInfo.session_token && service !== IOT_SERVICE_NAME; var queryParams = __assign(__assign(__assign({ 'X-Amz-Algorithm': DEFAULT_ALGORITHM, 'X-Amz-Credential': [accessInfo.access_key, credentialScope].join('/'), 'X-Amz-Date': now.substr(0, 16) }, (sessionTokenRequired ? { 'X-Amz-Security-Token': "" + accessInfo.session_token } : {})), (expiration ? { 'X-Amz-Expires': "" + expiration } : {})), { 'X-Amz-SignedHeaders': Object.keys(signedHeaders).join(',') }); var canonicalRequest = canonical_request({ method: method, url: url_1.format(__assign(__assign({}, parsedUrl), { query: __assign(__assign({}, parsedUrl.query), queryParams) })), headers: signedHeaders, data: body, }); var stringToSign = string_to_sign(DEFAULT_ALGORITHM, canonicalRequest, now, credentialScope); var signing_key = get_signing_key(accessInfo.secret_key, today, { region: region, service: service, }); var signature = get_signature(signing_key, stringToSign); var additionalQueryParams = __assign({ 'X-Amz-Signature': signature }, (accessInfo.session_token && { 'X-Amz-Security-Token': accessInfo.session_token, })); var result = url_1.format({ protocol: parsedUrl.protocol, slashes: true, hostname: parsedUrl.hostname, port: parsedUrl.port, pathname: parsedUrl.pathname, query: __assign(__assign(__assign({}, parsedUrl.query), queryParams), additionalQueryParams), }); return result; }; return Signer; }()); exports.Signer = Signer; /** * @deprecated use per-function import */ exports.default = Signer; //# sourceMappingURL=Signer.js.map /***/ }), /***/ "C1xV": /*!******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/ListEndpointsCommand.js ***! \******************************************************************************************/ /*! exports provided: ListEndpointsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListEndpointsCommand", function() { return ListEndpointsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListEndpointsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListEndpointsCommand, _super); // Start section: command_properties // End section: command_properties function ListEndpointsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListEndpointsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListEndpointsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListEndpointsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListEndpointsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListEndpointsCommand"])(input, context); }; ListEndpointsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListEndpointsCommand"])(output, context); }; return ListEndpointsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListEndpointsCommand.js.map /***/ }), /***/ "C5Xo": /*!****************************************************!*\ !*** ./node_modules/@aws-amplify/xr/lib-esm/XR.js ***! \****************************************************/ /*! exports provided: XRClass, XR */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XRClass", function() { return XRClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XR", function() { return XR; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _Providers_SumerianProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Providers/SumerianProvider */ "NFk7"); /* harmony import */ var _Errors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Errors */ "teFF"); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; /* * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('XR'); var DEFAULT_PROVIDER_NAME = 'SumerianProvider'; var XRClass = /** @class */ (function () { /** * Initialize XR with AWS configurations * * @param {XROptions} options - Configuration object for XR */ function XRClass(options) { this._options = options; logger.debug('XR Options', this._options); this._defaultProvider = DEFAULT_PROVIDER_NAME; this._pluggables = {}; // Add default provider this.addPluggable(new _Providers_SumerianProvider__WEBPACK_IMPORTED_MODULE_1__["SumerianProvider"]()); } /** * Configure XR part with configurations * * @param {XROptions} config - Configuration for XR * @return {Object} - The current configuration */ XRClass.prototype.configure = function (options) { var _this = this; var opt = options ? options.XR || options : {}; logger.debug('configure XR', { opt: opt }); this._options = Object.assign({}, this._options, opt); Object.entries(this._pluggables).map(function (_a) { var _b = __read(_a, 2), name = _b[0], provider = _b[1]; if (name === _this._defaultProvider && !opt[_this._defaultProvider]) { provider.configure(_this._options); } else { provider.configure(_this._options[name]); } }); return this._options; }; /** * add plugin into XR category * @param {Object} pluggable - an instance of the plugin */ XRClass.prototype.addPluggable = function (pluggable) { return __awaiter(this, void 0, void 0, function () { var config; return __generator(this, function (_a) { if (pluggable && pluggable.getCategory() === 'XR') { this._pluggables[pluggable.getProviderName()] = pluggable; config = pluggable.configure(this._options); return [2 /*return*/, config]; } return [2 /*return*/]; }); }); }; XRClass.prototype.loadScene = function (sceneName, domElementId, sceneOptions, provider) { if (sceneOptions === void 0) { sceneOptions = {}; } if (provider === void 0) { provider = this._defaultProvider; } return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: if (!this._pluggables[provider]) throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRProviderNotConfigured"]("Provider '" + provider + "' not configured"); return [4 /*yield*/, this._pluggables[provider].loadScene(sceneName, domElementId, sceneOptions)]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; XRClass.prototype.isSceneLoaded = function (sceneName, provider) { if (provider === void 0) { provider = this._defaultProvider; } if (!this._pluggables[provider]) throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRProviderNotConfigured"]("Provider '" + provider + "' not configured"); return this._pluggables[provider].isSceneLoaded(sceneName); }; XRClass.prototype.getSceneController = function (sceneName, provider) { if (provider === void 0) { provider = this._defaultProvider; } if (!this._pluggables[provider]) throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRProviderNotConfigured"]("Provider '" + provider + "' not configured"); return this._pluggables[provider].getSceneController(sceneName); }; XRClass.prototype.isVRCapable = function (sceneName, provider) { if (provider === void 0) { provider = this._defaultProvider; } if (!this._pluggables[provider]) throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRProviderNotConfigured"]("Provider '" + provider + "' not configured"); return this._pluggables[provider].isVRCapable(sceneName); }; XRClass.prototype.isVRPresentationActive = function (sceneName, provider) { if (provider === void 0) { provider = this._defaultProvider; } if (!this._pluggables[provider]) throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRProviderNotConfigured"]("Provider '" + provider + "' not configured"); return this._pluggables[provider].isVRPresentationActive(sceneName); }; XRClass.prototype.start = function (sceneName, provider) { if (provider === void 0) { provider = this._defaultProvider; } if (!this._pluggables[provider]) throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRProviderNotConfigured"]("Provider '" + provider + "' not configured"); return this._pluggables[provider].start(sceneName); }; XRClass.prototype.enterVR = function (sceneName, provider) { if (provider === void 0) { provider = this._defaultProvider; } if (!this._pluggables[provider]) throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRProviderNotConfigured"]("Provider '" + provider + "' not configured"); return this._pluggables[provider].enterVR(sceneName); }; XRClass.prototype.exitVR = function (sceneName, provider) { if (provider === void 0) { provider = this._defaultProvider; } if (!this._pluggables[provider]) throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRProviderNotConfigured"]("Provider '" + provider + "' not configured"); return this._pluggables[provider].exitVR(sceneName); }; XRClass.prototype.isMuted = function (sceneName, provider) { if (provider === void 0) { provider = this._defaultProvider; } if (!this._pluggables[provider]) throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRProviderNotConfigured"]("Provider '" + provider + "' not configured"); return this._pluggables[provider].isMuted(sceneName); }; XRClass.prototype.setMuted = function (sceneName, muted, provider) { if (provider === void 0) { provider = this._defaultProvider; } if (!this._pluggables[provider]) throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRProviderNotConfigured"]("Provider '" + provider + "' not configured"); return this._pluggables[provider].setMuted(sceneName, muted); }; XRClass.prototype.onSceneEvent = function (sceneName, eventName, eventHandler, provider) { if (provider === void 0) { provider = this._defaultProvider; } if (!this._pluggables[provider]) throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRProviderNotConfigured"]("Provider '" + provider + "' not configured"); return this._pluggables[provider].onSceneEvent(sceneName, eventName, eventHandler); }; XRClass.prototype.enableAudio = function (sceneName, provider) { if (provider === void 0) { provider = this._defaultProvider; } if (!this._pluggables[provider]) throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRProviderNotConfigured"]("Provider '" + provider + "' not configured"); return this._pluggables[provider].enableAudio(sceneName); }; return XRClass; }()); var XR = new XRClass(null); _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Amplify"].register(XR); //# sourceMappingURL=XR.js.map /***/ }), /***/ "CBmc": /*!**************************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/UniversalStorage/index.js ***! \**************************************************************************/ /*! exports provided: UniversalStorage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UniversalStorage", function() { return UniversalStorage; }); /* harmony import */ var universal_cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! universal-cookie */ "9ONQ"); /* harmony import */ var _JS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../JS */ "HzrR"); var isBrowser = Object(_JS__WEBPACK_IMPORTED_MODULE_1__["browserOrNode"])().isBrowser; var UniversalStorage = /** @class */ (function () { function UniversalStorage(context) { if (context === void 0) { context = {}; } this.cookies = new universal_cookie__WEBPACK_IMPORTED_MODULE_0__["default"](); this.store = isBrowser ? window.localStorage : Object.create(null); this.cookies = context.req ? new universal_cookie__WEBPACK_IMPORTED_MODULE_0__["default"](context.req.headers.cookie) : new universal_cookie__WEBPACK_IMPORTED_MODULE_0__["default"](); Object.assign(this.store, this.cookies.getAll()); } Object.defineProperty(UniversalStorage.prototype, "length", { get: function () { return Object.entries(this.store).length; }, enumerable: true, configurable: true }); UniversalStorage.prototype.clear = function () { var _this = this; Array.from(new Array(this.length)) .map(function (value, i) { return _this.key(i); }) .forEach(function (key) { return _this.removeItem(key); }); }; UniversalStorage.prototype.getItem = function (key) { return this.getLocalItem(key); }; UniversalStorage.prototype.getLocalItem = function (key) { return Object.prototype.hasOwnProperty.call(this.store, key) ? this.store[key] : null; }; UniversalStorage.prototype.getUniversalItem = function (key) { return this.cookies.get(key); }; UniversalStorage.prototype.key = function (index) { return Object.keys(this.store)[index]; }; UniversalStorage.prototype.removeItem = function (key) { this.removeLocalItem(key); this.removeUniversalItem(key); }; UniversalStorage.prototype.removeLocalItem = function (key) { delete this.store[key]; }; UniversalStorage.prototype.removeUniversalItem = function (key) { this.cookies.remove(key); }; UniversalStorage.prototype.setItem = function (key, value) { this.setLocalItem(key, value); // keys take the shape: // 1. `${ProviderPrefix}.${userPoolClientId}.${username}.${tokenType} // 2. `${ProviderPrefix}.${userPoolClientId}.LastAuthUser var tokenType = key.split('.').pop(); switch (tokenType) { // LastAuthUser is needed for computing other key names case 'LastAuthUser': // accessToken is required for CognitoUserSession case 'accessToken': // Required for CognitoUserSession case 'idToken': this.setUniversalItem(key, value); // userData is used when `Auth.currentAuthenticatedUser({ bypassCache: false })`. // Can be persisted to speed up calls to `Auth.currentAuthenticatedUser()` // case 'userData': // refreshToken isn't shared with the server so that the client handles refreshing // case 'refreshToken': // Ignoring clockDrift on the server for now, but needs testing // case 'clockDrift': } }; UniversalStorage.prototype.setLocalItem = function (key, value) { this.store[key] = value; }; UniversalStorage.prototype.setUniversalItem = function (key, value) { this.cookies.set(key, value, { path: '/', // `httpOnly` cannot be set via JavaScript: https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#JavaScript_access_using_Document.cookie sameSite: true, // Allow unsecure requests to http://localhost:3000/ when in development. secure: window.location.hostname === 'localhost' ? false : true, }); }; return UniversalStorage; }()); //# sourceMappingURL=index.js.map /***/ }), /***/ "CF2H": /*!**********************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/index.js ***! \**********************************************************/ /*! exports provided: S3Client, S3, AbortMultipartUploadCommand, CompleteMultipartUploadCommand, CopyObjectCommand, CreateBucketCommand, CreateMultipartUploadCommand, DeleteBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCorsCommand, DeleteBucketEncryptionCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectCommand, DeleteObjectsCommand, DeleteObjectTaggingCommand, DeletePublicAccessBlockCommand, GetBucketAccelerateConfigurationCommand, GetBucketAclCommand, GetBucketAnalyticsConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketInventoryConfigurationCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketMetricsConfigurationCommand, GetBucketNotificationConfigurationCommand, GetBucketPolicyCommand, GetBucketPolicyStatusCommand, GetBucketReplicationCommand, GetBucketRequestPaymentCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectAclCommand, GetObjectLegalHoldCommand, GetObjectLockConfigurationCommand, GetObjectRetentionCommand, GetObjectTaggingCommand, GetObjectTorrentCommand, GetPublicAccessBlockCommand, HeadBucketCommand, HeadObjectCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListBucketsCommand, ListMultipartUploadsCommand, ListObjectsCommand, ListObjectsV2Command, listObjectsV2Paginate, ListObjectVersionsCommand, ListPartsCommand, PutBucketAccelerateConfigurationCommand, PutBucketAclCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketRequestPaymentCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectCommand, PutObjectAclCommand, PutObjectLegalHoldCommand, PutObjectLockConfigurationCommand, PutObjectRetentionCommand, PutObjectTaggingCommand, PutPublicAccessBlockCommand, RestoreObjectCommand, SelectObjectContentCommand, UploadPartCommand, UploadPartCopyCommand, AbortIncompleteMultipartUpload, AbortMultipartUploadOutput, AbortMultipartUploadRequest, AccelerateConfiguration, AccessControlPolicy, AccessControlTranslation, AnalyticsAndOperator, AnalyticsConfiguration, AnalyticsExportDestination, AnalyticsFilter, AnalyticsS3BucketDestination, Bucket, BucketAlreadyExists, BucketAlreadyOwnedByYou, BucketLifecycleConfiguration, BucketLoggingStatus, CommonPrefix, CompletedMultipartUpload, CompletedPart, CompleteMultipartUploadOutput, CompleteMultipartUploadRequest, Condition, ContinuationEvent, CopyObjectOutput, CopyObjectRequest, CopyObjectResult, CopyPartResult, CORSConfiguration, CORSRule, CreateBucketConfiguration, CreateBucketOutput, CreateBucketRequest, CreateMultipartUploadOutput, CreateMultipartUploadRequest, CSVInput, CSVOutput, DefaultRetention, Delete, DeleteBucketAnalyticsConfigurationRequest, DeleteBucketCorsRequest, DeleteBucketEncryptionRequest, DeleteBucketInventoryConfigurationRequest, DeleteBucketLifecycleRequest, DeleteBucketMetricsConfigurationRequest, DeleteBucketPolicyRequest, DeleteBucketReplicationRequest, DeleteBucketRequest, DeleteBucketTaggingRequest, DeleteBucketWebsiteRequest, DeletedObject, DeleteMarkerEntry, DeleteMarkerReplication, DeleteObjectOutput, DeleteObjectRequest, DeleteObjectsOutput, DeleteObjectsRequest, DeleteObjectTaggingOutput, DeleteObjectTaggingRequest, DeletePublicAccessBlockRequest, Destination, Encryption, EncryptionConfiguration, EndEvent, _Error, ErrorDocument, ExistingObjectReplication, FileHeaderInfo, FilterRule, GetBucketAccelerateConfigurationOutput, GetBucketAccelerateConfigurationRequest, GetBucketAclOutput, GetBucketAclRequest, GetBucketAnalyticsConfigurationOutput, GetBucketAnalyticsConfigurationRequest, GetBucketCorsOutput, GetBucketCorsRequest, GetBucketEncryptionOutput, GetBucketEncryptionRequest, GetBucketInventoryConfigurationOutput, GetBucketInventoryConfigurationRequest, GetBucketLifecycleConfigurationOutput, GetBucketLifecycleConfigurationRequest, GetBucketLocationOutput, GetBucketLocationRequest, GetBucketLoggingOutput, GetBucketLoggingRequest, GetBucketMetricsConfigurationOutput, GetBucketMetricsConfigurationRequest, GetBucketNotificationConfigurationRequest, GetBucketPolicyOutput, GetBucketPolicyRequest, GetBucketPolicyStatusOutput, GetBucketPolicyStatusRequest, GetBucketReplicationOutput, GetBucketReplicationRequest, GetBucketRequestPaymentOutput, GetBucketRequestPaymentRequest, GetBucketTaggingOutput, GetBucketTaggingRequest, GetBucketVersioningOutput, GetBucketVersioningRequest, GetBucketWebsiteOutput, GetBucketWebsiteRequest, GetObjectAclOutput, GetObjectAclRequest, GetObjectLegalHoldOutput, GetObjectLegalHoldRequest, GetObjectLockConfigurationOutput, GetObjectLockConfigurationRequest, GetObjectOutput, GetObjectRequest, GetObjectRetentionOutput, GetObjectRetentionRequest, GetObjectTaggingOutput, GetObjectTaggingRequest, GetObjectTorrentOutput, GetObjectTorrentRequest, GetPublicAccessBlockOutput, GetPublicAccessBlockRequest, GlacierJobParameters, Grant, Grantee, HeadBucketRequest, HeadObjectOutput, HeadObjectRequest, IndexDocument, Initiator, InputSerialization, InventoryConfiguration, InventoryDestination, InventoryEncryption, InventoryFilter, InventoryS3BucketDestination, InventorySchedule, JSONInput, JSONOutput, JSONType, LambdaFunctionConfiguration, LifecycleExpiration, LifecycleRule, LifecycleRuleAndOperator, LifecycleRuleFilter, ListBucketAnalyticsConfigurationsOutput, ListBucketAnalyticsConfigurationsRequest, ListBucketInventoryConfigurationsOutput, ListBucketInventoryConfigurationsRequest, ListBucketMetricsConfigurationsOutput, ListBucketMetricsConfigurationsRequest, ListBucketsOutput, ListMultipartUploadsOutput, ListMultipartUploadsRequest, ListObjectsOutput, ListObjectsRequest, ListObjectsV2Output, ListObjectsV2Request, ListObjectVersionsOutput, ListObjectVersionsRequest, ListPartsOutput, ListPartsRequest, LoggingEnabled, MetadataEntry, Metrics, MetricsAndOperator, MetricsConfiguration, MetricsFilter, MultipartUpload, NoncurrentVersionExpiration, NoncurrentVersionTransition, NoSuchBucket, NoSuchKey, NoSuchUpload, NotificationConfiguration, NotificationConfigurationFilter, _Object, ObjectAlreadyInActiveTierError, ObjectIdentifier, ObjectLockConfiguration, ObjectLockLegalHold, ObjectLockRetention, ObjectLockRule, ObjectNotInActiveTierError, ObjectVersion, OutputLocation, OutputSerialization, Owner, ParquetInput, Part, PolicyStatus, Progress, ProgressEvent, PublicAccessBlockConfiguration, PutBucketAccelerateConfigurationRequest, PutBucketAclRequest, PutBucketAnalyticsConfigurationRequest, PutBucketCorsRequest, PutBucketEncryptionRequest, PutBucketInventoryConfigurationRequest, PutBucketLifecycleConfigurationRequest, PutBucketLoggingRequest, PutBucketMetricsConfigurationRequest, PutBucketNotificationConfigurationRequest, PutBucketPolicyRequest, PutBucketReplicationRequest, PutBucketRequestPaymentRequest, PutBucketTaggingRequest, PutBucketVersioningRequest, PutBucketWebsiteRequest, PutObjectAclOutput, PutObjectAclRequest, PutObjectLegalHoldOutput, PutObjectLegalHoldRequest, PutObjectLockConfigurationOutput, PutObjectLockConfigurationRequest, PutObjectOutput, PutObjectRequest, PutObjectRetentionOutput, PutObjectRetentionRequest, PutObjectTaggingOutput, PutObjectTaggingRequest, PutPublicAccessBlockRequest, QueueConfiguration, QuoteFields, RecordsEvent, Redirect, RedirectAllRequestsTo, ReplicationConfiguration, ReplicationRule, ReplicationRuleAndOperator, ReplicationRuleFilter, ReplicationTime, ReplicationTimeValue, RequestPaymentConfiguration, RequestProgress, RestoreObjectOutput, RestoreObjectRequest, RestoreRequest, RestoreRequestType, RoutingRule, S3KeyFilter, S3Location, ScanRange, SelectObjectContentEventStream, SelectObjectContentOutput, SelectObjectContentRequest, SelectParameters, ServerSideEncryptionByDefault, ServerSideEncryptionConfiguration, ServerSideEncryptionRule, SourceSelectionCriteria, SSEKMS, SseKmsEncryptedObjects, SSES3, Stats, StatsEvent, StorageClassAnalysis, StorageClassAnalysisDataExport, Tag, Tagging, TargetGrant, TopicConfiguration, Transition, UploadPartCopyOutput, UploadPartCopyRequest, UploadPartOutput, UploadPartRequest, VersioningConfiguration, WebsiteConfiguration */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _S3Client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./S3Client */ "8HHK"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3Client", function() { return _S3Client__WEBPACK_IMPORTED_MODULE_0__["S3Client"]; }); /* harmony import */ var _S3__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./S3 */ "kCdd"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3", function() { return _S3__WEBPACK_IMPORTED_MODULE_1__["S3"]; }); /* harmony import */ var _commands_AbortMultipartUploadCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/AbortMultipartUploadCommand */ "fRz2"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AbortMultipartUploadCommand", function() { return _commands_AbortMultipartUploadCommand__WEBPACK_IMPORTED_MODULE_2__["AbortMultipartUploadCommand"]; }); /* harmony import */ var _commands_CompleteMultipartUploadCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/CompleteMultipartUploadCommand */ "rsGB"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompleteMultipartUploadCommand", function() { return _commands_CompleteMultipartUploadCommand__WEBPACK_IMPORTED_MODULE_3__["CompleteMultipartUploadCommand"]; }); /* harmony import */ var _commands_CopyObjectCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/CopyObjectCommand */ "NX9z"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CopyObjectCommand", function() { return _commands_CopyObjectCommand__WEBPACK_IMPORTED_MODULE_4__["CopyObjectCommand"]; }); /* harmony import */ var _commands_CreateBucketCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/CreateBucketCommand */ "hxXY"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateBucketCommand", function() { return _commands_CreateBucketCommand__WEBPACK_IMPORTED_MODULE_5__["CreateBucketCommand"]; }); /* harmony import */ var _commands_CreateMultipartUploadCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/CreateMultipartUploadCommand */ "2Fxz"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateMultipartUploadCommand", function() { return _commands_CreateMultipartUploadCommand__WEBPACK_IMPORTED_MODULE_6__["CreateMultipartUploadCommand"]; }); /* harmony import */ var _commands_DeleteBucketCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/DeleteBucketCommand */ "OwP5"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketCommand", function() { return _commands_DeleteBucketCommand__WEBPACK_IMPORTED_MODULE_7__["DeleteBucketCommand"]; }); /* harmony import */ var _commands_DeleteBucketAnalyticsConfigurationCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/DeleteBucketAnalyticsConfigurationCommand */ "GMn4"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketAnalyticsConfigurationCommand", function() { return _commands_DeleteBucketAnalyticsConfigurationCommand__WEBPACK_IMPORTED_MODULE_8__["DeleteBucketAnalyticsConfigurationCommand"]; }); /* harmony import */ var _commands_DeleteBucketCorsCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/DeleteBucketCorsCommand */ "JO5U"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketCorsCommand", function() { return _commands_DeleteBucketCorsCommand__WEBPACK_IMPORTED_MODULE_9__["DeleteBucketCorsCommand"]; }); /* harmony import */ var _commands_DeleteBucketEncryptionCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/DeleteBucketEncryptionCommand */ "gIrB"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketEncryptionCommand", function() { return _commands_DeleteBucketEncryptionCommand__WEBPACK_IMPORTED_MODULE_10__["DeleteBucketEncryptionCommand"]; }); /* harmony import */ var _commands_DeleteBucketInventoryConfigurationCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/DeleteBucketInventoryConfigurationCommand */ "tMhx"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketInventoryConfigurationCommand", function() { return _commands_DeleteBucketInventoryConfigurationCommand__WEBPACK_IMPORTED_MODULE_11__["DeleteBucketInventoryConfigurationCommand"]; }); /* harmony import */ var _commands_DeleteBucketLifecycleCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/DeleteBucketLifecycleCommand */ "ZpUJ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketLifecycleCommand", function() { return _commands_DeleteBucketLifecycleCommand__WEBPACK_IMPORTED_MODULE_12__["DeleteBucketLifecycleCommand"]; }); /* harmony import */ var _commands_DeleteBucketMetricsConfigurationCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/DeleteBucketMetricsConfigurationCommand */ "Oozy"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketMetricsConfigurationCommand", function() { return _commands_DeleteBucketMetricsConfigurationCommand__WEBPACK_IMPORTED_MODULE_13__["DeleteBucketMetricsConfigurationCommand"]; }); /* harmony import */ var _commands_DeleteBucketPolicyCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/DeleteBucketPolicyCommand */ "GoBT"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketPolicyCommand", function() { return _commands_DeleteBucketPolicyCommand__WEBPACK_IMPORTED_MODULE_14__["DeleteBucketPolicyCommand"]; }); /* harmony import */ var _commands_DeleteBucketReplicationCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/DeleteBucketReplicationCommand */ "ErHT"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketReplicationCommand", function() { return _commands_DeleteBucketReplicationCommand__WEBPACK_IMPORTED_MODULE_15__["DeleteBucketReplicationCommand"]; }); /* harmony import */ var _commands_DeleteBucketTaggingCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/DeleteBucketTaggingCommand */ "n2hv"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketTaggingCommand", function() { return _commands_DeleteBucketTaggingCommand__WEBPACK_IMPORTED_MODULE_16__["DeleteBucketTaggingCommand"]; }); /* harmony import */ var _commands_DeleteBucketWebsiteCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/DeleteBucketWebsiteCommand */ "+tC1"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketWebsiteCommand", function() { return _commands_DeleteBucketWebsiteCommand__WEBPACK_IMPORTED_MODULE_17__["DeleteBucketWebsiteCommand"]; }); /* harmony import */ var _commands_DeleteObjectCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/DeleteObjectCommand */ "P2cR"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteObjectCommand", function() { return _commands_DeleteObjectCommand__WEBPACK_IMPORTED_MODULE_18__["DeleteObjectCommand"]; }); /* harmony import */ var _commands_DeleteObjectsCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/DeleteObjectsCommand */ "jCt1"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteObjectsCommand", function() { return _commands_DeleteObjectsCommand__WEBPACK_IMPORTED_MODULE_19__["DeleteObjectsCommand"]; }); /* harmony import */ var _commands_DeleteObjectTaggingCommand__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./commands/DeleteObjectTaggingCommand */ "KUrj"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteObjectTaggingCommand", function() { return _commands_DeleteObjectTaggingCommand__WEBPACK_IMPORTED_MODULE_20__["DeleteObjectTaggingCommand"]; }); /* harmony import */ var _commands_DeletePublicAccessBlockCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/DeletePublicAccessBlockCommand */ "muVf"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeletePublicAccessBlockCommand", function() { return _commands_DeletePublicAccessBlockCommand__WEBPACK_IMPORTED_MODULE_21__["DeletePublicAccessBlockCommand"]; }); /* harmony import */ var _commands_GetBucketAccelerateConfigurationCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/GetBucketAccelerateConfigurationCommand */ "F6oq"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketAccelerateConfigurationCommand", function() { return _commands_GetBucketAccelerateConfigurationCommand__WEBPACK_IMPORTED_MODULE_22__["GetBucketAccelerateConfigurationCommand"]; }); /* harmony import */ var _commands_GetBucketAclCommand__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./commands/GetBucketAclCommand */ "7Cir"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketAclCommand", function() { return _commands_GetBucketAclCommand__WEBPACK_IMPORTED_MODULE_23__["GetBucketAclCommand"]; }); /* harmony import */ var _commands_GetBucketAnalyticsConfigurationCommand__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./commands/GetBucketAnalyticsConfigurationCommand */ "CGOs"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketAnalyticsConfigurationCommand", function() { return _commands_GetBucketAnalyticsConfigurationCommand__WEBPACK_IMPORTED_MODULE_24__["GetBucketAnalyticsConfigurationCommand"]; }); /* harmony import */ var _commands_GetBucketCorsCommand__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./commands/GetBucketCorsCommand */ "6D83"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketCorsCommand", function() { return _commands_GetBucketCorsCommand__WEBPACK_IMPORTED_MODULE_25__["GetBucketCorsCommand"]; }); /* harmony import */ var _commands_GetBucketEncryptionCommand__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./commands/GetBucketEncryptionCommand */ "yZey"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketEncryptionCommand", function() { return _commands_GetBucketEncryptionCommand__WEBPACK_IMPORTED_MODULE_26__["GetBucketEncryptionCommand"]; }); /* harmony import */ var _commands_GetBucketInventoryConfigurationCommand__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./commands/GetBucketInventoryConfigurationCommand */ "DpdU"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketInventoryConfigurationCommand", function() { return _commands_GetBucketInventoryConfigurationCommand__WEBPACK_IMPORTED_MODULE_27__["GetBucketInventoryConfigurationCommand"]; }); /* harmony import */ var _commands_GetBucketLifecycleConfigurationCommand__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./commands/GetBucketLifecycleConfigurationCommand */ "kiiO"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketLifecycleConfigurationCommand", function() { return _commands_GetBucketLifecycleConfigurationCommand__WEBPACK_IMPORTED_MODULE_28__["GetBucketLifecycleConfigurationCommand"]; }); /* harmony import */ var _commands_GetBucketLocationCommand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./commands/GetBucketLocationCommand */ "uHk1"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketLocationCommand", function() { return _commands_GetBucketLocationCommand__WEBPACK_IMPORTED_MODULE_29__["GetBucketLocationCommand"]; }); /* harmony import */ var _commands_GetBucketLoggingCommand__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./commands/GetBucketLoggingCommand */ "g4qZ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketLoggingCommand", function() { return _commands_GetBucketLoggingCommand__WEBPACK_IMPORTED_MODULE_30__["GetBucketLoggingCommand"]; }); /* harmony import */ var _commands_GetBucketMetricsConfigurationCommand__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./commands/GetBucketMetricsConfigurationCommand */ "vohR"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketMetricsConfigurationCommand", function() { return _commands_GetBucketMetricsConfigurationCommand__WEBPACK_IMPORTED_MODULE_31__["GetBucketMetricsConfigurationCommand"]; }); /* harmony import */ var _commands_GetBucketNotificationConfigurationCommand__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./commands/GetBucketNotificationConfigurationCommand */ "/boe"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketNotificationConfigurationCommand", function() { return _commands_GetBucketNotificationConfigurationCommand__WEBPACK_IMPORTED_MODULE_32__["GetBucketNotificationConfigurationCommand"]; }); /* harmony import */ var _commands_GetBucketPolicyCommand__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./commands/GetBucketPolicyCommand */ "3eE1"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketPolicyCommand", function() { return _commands_GetBucketPolicyCommand__WEBPACK_IMPORTED_MODULE_33__["GetBucketPolicyCommand"]; }); /* harmony import */ var _commands_GetBucketPolicyStatusCommand__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./commands/GetBucketPolicyStatusCommand */ "M3TC"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketPolicyStatusCommand", function() { return _commands_GetBucketPolicyStatusCommand__WEBPACK_IMPORTED_MODULE_34__["GetBucketPolicyStatusCommand"]; }); /* harmony import */ var _commands_GetBucketReplicationCommand__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./commands/GetBucketReplicationCommand */ "QUVu"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketReplicationCommand", function() { return _commands_GetBucketReplicationCommand__WEBPACK_IMPORTED_MODULE_35__["GetBucketReplicationCommand"]; }); /* harmony import */ var _commands_GetBucketRequestPaymentCommand__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./commands/GetBucketRequestPaymentCommand */ "/tdA"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketRequestPaymentCommand", function() { return _commands_GetBucketRequestPaymentCommand__WEBPACK_IMPORTED_MODULE_36__["GetBucketRequestPaymentCommand"]; }); /* harmony import */ var _commands_GetBucketTaggingCommand__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./commands/GetBucketTaggingCommand */ "HCBQ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketTaggingCommand", function() { return _commands_GetBucketTaggingCommand__WEBPACK_IMPORTED_MODULE_37__["GetBucketTaggingCommand"]; }); /* harmony import */ var _commands_GetBucketVersioningCommand__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./commands/GetBucketVersioningCommand */ "CidY"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketVersioningCommand", function() { return _commands_GetBucketVersioningCommand__WEBPACK_IMPORTED_MODULE_38__["GetBucketVersioningCommand"]; }); /* harmony import */ var _commands_GetBucketWebsiteCommand__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./commands/GetBucketWebsiteCommand */ "dJY3"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketWebsiteCommand", function() { return _commands_GetBucketWebsiteCommand__WEBPACK_IMPORTED_MODULE_39__["GetBucketWebsiteCommand"]; }); /* harmony import */ var _commands_GetObjectCommand__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./commands/GetObjectCommand */ "YWDp"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectCommand", function() { return _commands_GetObjectCommand__WEBPACK_IMPORTED_MODULE_40__["GetObjectCommand"]; }); /* harmony import */ var _commands_GetObjectAclCommand__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./commands/GetObjectAclCommand */ "nz4W"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectAclCommand", function() { return _commands_GetObjectAclCommand__WEBPACK_IMPORTED_MODULE_41__["GetObjectAclCommand"]; }); /* harmony import */ var _commands_GetObjectLegalHoldCommand__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./commands/GetObjectLegalHoldCommand */ "SYQj"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectLegalHoldCommand", function() { return _commands_GetObjectLegalHoldCommand__WEBPACK_IMPORTED_MODULE_42__["GetObjectLegalHoldCommand"]; }); /* harmony import */ var _commands_GetObjectLockConfigurationCommand__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./commands/GetObjectLockConfigurationCommand */ "gfb/"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectLockConfigurationCommand", function() { return _commands_GetObjectLockConfigurationCommand__WEBPACK_IMPORTED_MODULE_43__["GetObjectLockConfigurationCommand"]; }); /* harmony import */ var _commands_GetObjectRetentionCommand__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./commands/GetObjectRetentionCommand */ "zCUj"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectRetentionCommand", function() { return _commands_GetObjectRetentionCommand__WEBPACK_IMPORTED_MODULE_44__["GetObjectRetentionCommand"]; }); /* harmony import */ var _commands_GetObjectTaggingCommand__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./commands/GetObjectTaggingCommand */ "B71N"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectTaggingCommand", function() { return _commands_GetObjectTaggingCommand__WEBPACK_IMPORTED_MODULE_45__["GetObjectTaggingCommand"]; }); /* harmony import */ var _commands_GetObjectTorrentCommand__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./commands/GetObjectTorrentCommand */ "FB5R"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectTorrentCommand", function() { return _commands_GetObjectTorrentCommand__WEBPACK_IMPORTED_MODULE_46__["GetObjectTorrentCommand"]; }); /* harmony import */ var _commands_GetPublicAccessBlockCommand__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./commands/GetPublicAccessBlockCommand */ "gTD2"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPublicAccessBlockCommand", function() { return _commands_GetPublicAccessBlockCommand__WEBPACK_IMPORTED_MODULE_47__["GetPublicAccessBlockCommand"]; }); /* harmony import */ var _commands_HeadBucketCommand__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./commands/HeadBucketCommand */ "xFTG"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeadBucketCommand", function() { return _commands_HeadBucketCommand__WEBPACK_IMPORTED_MODULE_48__["HeadBucketCommand"]; }); /* harmony import */ var _commands_HeadObjectCommand__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./commands/HeadObjectCommand */ "LrBV"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeadObjectCommand", function() { return _commands_HeadObjectCommand__WEBPACK_IMPORTED_MODULE_49__["HeadObjectCommand"]; }); /* harmony import */ var _commands_ListBucketAnalyticsConfigurationsCommand__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./commands/ListBucketAnalyticsConfigurationsCommand */ "FY58"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListBucketAnalyticsConfigurationsCommand", function() { return _commands_ListBucketAnalyticsConfigurationsCommand__WEBPACK_IMPORTED_MODULE_50__["ListBucketAnalyticsConfigurationsCommand"]; }); /* harmony import */ var _commands_ListBucketInventoryConfigurationsCommand__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./commands/ListBucketInventoryConfigurationsCommand */ "H7ZN"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListBucketInventoryConfigurationsCommand", function() { return _commands_ListBucketInventoryConfigurationsCommand__WEBPACK_IMPORTED_MODULE_51__["ListBucketInventoryConfigurationsCommand"]; }); /* harmony import */ var _commands_ListBucketMetricsConfigurationsCommand__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./commands/ListBucketMetricsConfigurationsCommand */ "iQfC"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListBucketMetricsConfigurationsCommand", function() { return _commands_ListBucketMetricsConfigurationsCommand__WEBPACK_IMPORTED_MODULE_52__["ListBucketMetricsConfigurationsCommand"]; }); /* harmony import */ var _commands_ListBucketsCommand__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./commands/ListBucketsCommand */ "iFN7"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListBucketsCommand", function() { return _commands_ListBucketsCommand__WEBPACK_IMPORTED_MODULE_53__["ListBucketsCommand"]; }); /* harmony import */ var _commands_ListMultipartUploadsCommand__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./commands/ListMultipartUploadsCommand */ "2TPv"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListMultipartUploadsCommand", function() { return _commands_ListMultipartUploadsCommand__WEBPACK_IMPORTED_MODULE_54__["ListMultipartUploadsCommand"]; }); /* harmony import */ var _commands_ListObjectsCommand__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./commands/ListObjectsCommand */ "siNS"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListObjectsCommand", function() { return _commands_ListObjectsCommand__WEBPACK_IMPORTED_MODULE_55__["ListObjectsCommand"]; }); /* harmony import */ var _commands_ListObjectsV2Command__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./commands/ListObjectsV2Command */ "ca8x"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListObjectsV2Command", function() { return _commands_ListObjectsV2Command__WEBPACK_IMPORTED_MODULE_56__["ListObjectsV2Command"]; }); /* harmony import */ var _pagination_ListObjectsV2Paginator__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./pagination/ListObjectsV2Paginator */ "0FMQ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "listObjectsV2Paginate", function() { return _pagination_ListObjectsV2Paginator__WEBPACK_IMPORTED_MODULE_57__["listObjectsV2Paginate"]; }); /* harmony import */ var _commands_ListObjectVersionsCommand__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./commands/ListObjectVersionsCommand */ "vUwo"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListObjectVersionsCommand", function() { return _commands_ListObjectVersionsCommand__WEBPACK_IMPORTED_MODULE_58__["ListObjectVersionsCommand"]; }); /* harmony import */ var _commands_ListPartsCommand__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./commands/ListPartsCommand */ "TbLX"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListPartsCommand", function() { return _commands_ListPartsCommand__WEBPACK_IMPORTED_MODULE_59__["ListPartsCommand"]; }); /* harmony import */ var _commands_PutBucketAccelerateConfigurationCommand__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./commands/PutBucketAccelerateConfigurationCommand */ "nfcO"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketAccelerateConfigurationCommand", function() { return _commands_PutBucketAccelerateConfigurationCommand__WEBPACK_IMPORTED_MODULE_60__["PutBucketAccelerateConfigurationCommand"]; }); /* harmony import */ var _commands_PutBucketAclCommand__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./commands/PutBucketAclCommand */ "ADrx"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketAclCommand", function() { return _commands_PutBucketAclCommand__WEBPACK_IMPORTED_MODULE_61__["PutBucketAclCommand"]; }); /* harmony import */ var _commands_PutBucketAnalyticsConfigurationCommand__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./commands/PutBucketAnalyticsConfigurationCommand */ "JDI6"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketAnalyticsConfigurationCommand", function() { return _commands_PutBucketAnalyticsConfigurationCommand__WEBPACK_IMPORTED_MODULE_62__["PutBucketAnalyticsConfigurationCommand"]; }); /* harmony import */ var _commands_PutBucketCorsCommand__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./commands/PutBucketCorsCommand */ "76Ts"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketCorsCommand", function() { return _commands_PutBucketCorsCommand__WEBPACK_IMPORTED_MODULE_63__["PutBucketCorsCommand"]; }); /* harmony import */ var _commands_PutBucketEncryptionCommand__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./commands/PutBucketEncryptionCommand */ "OmVv"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketEncryptionCommand", function() { return _commands_PutBucketEncryptionCommand__WEBPACK_IMPORTED_MODULE_64__["PutBucketEncryptionCommand"]; }); /* harmony import */ var _commands_PutBucketInventoryConfigurationCommand__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./commands/PutBucketInventoryConfigurationCommand */ "bbpz"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketInventoryConfigurationCommand", function() { return _commands_PutBucketInventoryConfigurationCommand__WEBPACK_IMPORTED_MODULE_65__["PutBucketInventoryConfigurationCommand"]; }); /* harmony import */ var _commands_PutBucketLifecycleConfigurationCommand__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./commands/PutBucketLifecycleConfigurationCommand */ "nAdp"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketLifecycleConfigurationCommand", function() { return _commands_PutBucketLifecycleConfigurationCommand__WEBPACK_IMPORTED_MODULE_66__["PutBucketLifecycleConfigurationCommand"]; }); /* harmony import */ var _commands_PutBucketLoggingCommand__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./commands/PutBucketLoggingCommand */ "HpwV"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketLoggingCommand", function() { return _commands_PutBucketLoggingCommand__WEBPACK_IMPORTED_MODULE_67__["PutBucketLoggingCommand"]; }); /* harmony import */ var _commands_PutBucketMetricsConfigurationCommand__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./commands/PutBucketMetricsConfigurationCommand */ "XhbI"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketMetricsConfigurationCommand", function() { return _commands_PutBucketMetricsConfigurationCommand__WEBPACK_IMPORTED_MODULE_68__["PutBucketMetricsConfigurationCommand"]; }); /* harmony import */ var _commands_PutBucketNotificationConfigurationCommand__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./commands/PutBucketNotificationConfigurationCommand */ "r8zB"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketNotificationConfigurationCommand", function() { return _commands_PutBucketNotificationConfigurationCommand__WEBPACK_IMPORTED_MODULE_69__["PutBucketNotificationConfigurationCommand"]; }); /* harmony import */ var _commands_PutBucketPolicyCommand__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./commands/PutBucketPolicyCommand */ "I8O1"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketPolicyCommand", function() { return _commands_PutBucketPolicyCommand__WEBPACK_IMPORTED_MODULE_70__["PutBucketPolicyCommand"]; }); /* harmony import */ var _commands_PutBucketReplicationCommand__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./commands/PutBucketReplicationCommand */ "F6XI"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketReplicationCommand", function() { return _commands_PutBucketReplicationCommand__WEBPACK_IMPORTED_MODULE_71__["PutBucketReplicationCommand"]; }); /* harmony import */ var _commands_PutBucketRequestPaymentCommand__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./commands/PutBucketRequestPaymentCommand */ "tKdV"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketRequestPaymentCommand", function() { return _commands_PutBucketRequestPaymentCommand__WEBPACK_IMPORTED_MODULE_72__["PutBucketRequestPaymentCommand"]; }); /* harmony import */ var _commands_PutBucketTaggingCommand__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ./commands/PutBucketTaggingCommand */ "jQLZ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketTaggingCommand", function() { return _commands_PutBucketTaggingCommand__WEBPACK_IMPORTED_MODULE_73__["PutBucketTaggingCommand"]; }); /* harmony import */ var _commands_PutBucketVersioningCommand__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ./commands/PutBucketVersioningCommand */ "/hlF"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketVersioningCommand", function() { return _commands_PutBucketVersioningCommand__WEBPACK_IMPORTED_MODULE_74__["PutBucketVersioningCommand"]; }); /* harmony import */ var _commands_PutBucketWebsiteCommand__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ./commands/PutBucketWebsiteCommand */ "Zmrd"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketWebsiteCommand", function() { return _commands_PutBucketWebsiteCommand__WEBPACK_IMPORTED_MODULE_75__["PutBucketWebsiteCommand"]; }); /* harmony import */ var _commands_PutObjectCommand__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ./commands/PutObjectCommand */ "SWgf"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectCommand", function() { return _commands_PutObjectCommand__WEBPACK_IMPORTED_MODULE_76__["PutObjectCommand"]; }); /* harmony import */ var _commands_PutObjectAclCommand__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ./commands/PutObjectAclCommand */ "YJx7"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectAclCommand", function() { return _commands_PutObjectAclCommand__WEBPACK_IMPORTED_MODULE_77__["PutObjectAclCommand"]; }); /* harmony import */ var _commands_PutObjectLegalHoldCommand__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ./commands/PutObjectLegalHoldCommand */ "MmyK"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectLegalHoldCommand", function() { return _commands_PutObjectLegalHoldCommand__WEBPACK_IMPORTED_MODULE_78__["PutObjectLegalHoldCommand"]; }); /* harmony import */ var _commands_PutObjectLockConfigurationCommand__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ./commands/PutObjectLockConfigurationCommand */ "ehIN"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectLockConfigurationCommand", function() { return _commands_PutObjectLockConfigurationCommand__WEBPACK_IMPORTED_MODULE_79__["PutObjectLockConfigurationCommand"]; }); /* harmony import */ var _commands_PutObjectRetentionCommand__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ./commands/PutObjectRetentionCommand */ "4MEW"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectRetentionCommand", function() { return _commands_PutObjectRetentionCommand__WEBPACK_IMPORTED_MODULE_80__["PutObjectRetentionCommand"]; }); /* harmony import */ var _commands_PutObjectTaggingCommand__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ./commands/PutObjectTaggingCommand */ "YzUh"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectTaggingCommand", function() { return _commands_PutObjectTaggingCommand__WEBPACK_IMPORTED_MODULE_81__["PutObjectTaggingCommand"]; }); /* harmony import */ var _commands_PutPublicAccessBlockCommand__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ./commands/PutPublicAccessBlockCommand */ "FsXJ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutPublicAccessBlockCommand", function() { return _commands_PutPublicAccessBlockCommand__WEBPACK_IMPORTED_MODULE_82__["PutPublicAccessBlockCommand"]; }); /* harmony import */ var _commands_RestoreObjectCommand__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ./commands/RestoreObjectCommand */ "BKGG"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RestoreObjectCommand", function() { return _commands_RestoreObjectCommand__WEBPACK_IMPORTED_MODULE_83__["RestoreObjectCommand"]; }); /* harmony import */ var _commands_SelectObjectContentCommand__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ./commands/SelectObjectContentCommand */ "V3C2"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectObjectContentCommand", function() { return _commands_SelectObjectContentCommand__WEBPACK_IMPORTED_MODULE_84__["SelectObjectContentCommand"]; }); /* harmony import */ var _commands_UploadPartCommand__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ./commands/UploadPartCommand */ "XPSt"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadPartCommand", function() { return _commands_UploadPartCommand__WEBPACK_IMPORTED_MODULE_85__["UploadPartCommand"]; }); /* harmony import */ var _commands_UploadPartCopyCommand__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ./commands/UploadPartCopyCommand */ "ui3O"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadPartCopyCommand", function() { return _commands_UploadPartCopyCommand__WEBPACK_IMPORTED_MODULE_86__["UploadPartCopyCommand"]; }); /* harmony import */ var _pagination_Interfaces__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ./pagination/Interfaces */ "wQED"); /* empty/unused harmony star reexport *//* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ./models/index */ "rrRf"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AbortIncompleteMultipartUpload", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["AbortIncompleteMultipartUpload"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AbortMultipartUploadOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["AbortMultipartUploadOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AbortMultipartUploadRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["AbortMultipartUploadRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AccelerateConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["AccelerateConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AccessControlPolicy", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["AccessControlPolicy"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AccessControlTranslation", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["AccessControlTranslation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnalyticsAndOperator", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["AnalyticsAndOperator"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnalyticsConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["AnalyticsConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnalyticsExportDestination", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["AnalyticsExportDestination"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnalyticsFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["AnalyticsFilter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnalyticsS3BucketDestination", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["AnalyticsS3BucketDestination"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Bucket", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Bucket"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BucketAlreadyExists", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["BucketAlreadyExists"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BucketAlreadyOwnedByYou", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["BucketAlreadyOwnedByYou"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BucketLifecycleConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["BucketLifecycleConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BucketLoggingStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["BucketLoggingStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommonPrefix", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CommonPrefix"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompletedMultipartUpload", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CompletedMultipartUpload"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompletedPart", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CompletedPart"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompleteMultipartUploadOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CompleteMultipartUploadOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompleteMultipartUploadRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CompleteMultipartUploadRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Condition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Condition"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContinuationEvent", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ContinuationEvent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CopyObjectOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CopyObjectOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CopyObjectRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CopyObjectRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CopyObjectResult", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CopyObjectResult"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CopyPartResult", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CopyPartResult"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CORSConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CORSConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CORSRule", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CORSRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateBucketConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CreateBucketConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateBucketOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CreateBucketOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateBucketRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CreateBucketRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateMultipartUploadOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CreateMultipartUploadOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateMultipartUploadRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CreateMultipartUploadRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CSVInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CSVInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CSVOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["CSVOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultRetention", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DefaultRetention"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Delete", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Delete"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketAnalyticsConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteBucketAnalyticsConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketCorsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteBucketCorsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketEncryptionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteBucketEncryptionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketInventoryConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteBucketInventoryConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketLifecycleRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteBucketLifecycleRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketMetricsConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteBucketMetricsConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketPolicyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteBucketPolicyRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketReplicationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteBucketReplicationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteBucketRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketTaggingRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteBucketTaggingRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketWebsiteRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteBucketWebsiteRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeletedObject", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeletedObject"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteMarkerEntry", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteMarkerEntry"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteMarkerReplication", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteMarkerReplication"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteObjectOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteObjectOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteObjectRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteObjectRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteObjectsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteObjectsOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteObjectsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteObjectsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteObjectTaggingOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteObjectTaggingOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteObjectTaggingRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeleteObjectTaggingRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeletePublicAccessBlockRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["DeletePublicAccessBlockRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Destination", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Destination"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Encryption", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Encryption"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EncryptionConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["EncryptionConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndEvent", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["EndEvent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_Error", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["_Error"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ErrorDocument", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ErrorDocument"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExistingObjectReplication", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ExistingObjectReplication"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FileHeaderInfo", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["FileHeaderInfo"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterRule", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["FilterRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketAccelerateConfigurationOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketAccelerateConfigurationOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketAccelerateConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketAccelerateConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketAclOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketAclOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketAclRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketAclRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketAnalyticsConfigurationOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketAnalyticsConfigurationOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketAnalyticsConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketAnalyticsConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketCorsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketCorsOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketCorsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketCorsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketEncryptionOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketEncryptionOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketEncryptionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketEncryptionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketInventoryConfigurationOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketInventoryConfigurationOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketInventoryConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketInventoryConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketLifecycleConfigurationOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketLifecycleConfigurationOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketLifecycleConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketLifecycleConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketLocationOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketLocationOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketLocationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketLocationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketLoggingOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketLoggingOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketLoggingRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketLoggingRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketMetricsConfigurationOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketMetricsConfigurationOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketMetricsConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketMetricsConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketNotificationConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketNotificationConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketPolicyOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketPolicyOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketPolicyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketPolicyRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketPolicyStatusOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketPolicyStatusOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketPolicyStatusRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketPolicyStatusRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketReplicationOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketReplicationOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketReplicationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketReplicationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketRequestPaymentOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketRequestPaymentOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketRequestPaymentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketRequestPaymentRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketTaggingOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketTaggingOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketTaggingRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketTaggingRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketVersioningOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketVersioningOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketVersioningRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketVersioningRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketWebsiteOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketWebsiteOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBucketWebsiteRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetBucketWebsiteRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectAclOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetObjectAclOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectAclRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetObjectAclRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectLegalHoldOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetObjectLegalHoldOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectLegalHoldRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetObjectLegalHoldRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectLockConfigurationOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetObjectLockConfigurationOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectLockConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetObjectLockConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetObjectOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetObjectRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectRetentionOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetObjectRetentionOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectRetentionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetObjectRetentionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectTaggingOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetObjectTaggingOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectTaggingRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetObjectTaggingRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectTorrentOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetObjectTorrentOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetObjectTorrentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetObjectTorrentRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPublicAccessBlockOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetPublicAccessBlockOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPublicAccessBlockRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GetPublicAccessBlockRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GlacierJobParameters", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["GlacierJobParameters"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Grant", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Grant"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Grantee", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Grantee"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeadBucketRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["HeadBucketRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeadObjectOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["HeadObjectOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeadObjectRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["HeadObjectRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IndexDocument", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["IndexDocument"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Initiator", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Initiator"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InputSerialization", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["InputSerialization"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InventoryConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["InventoryConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InventoryDestination", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["InventoryDestination"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InventoryEncryption", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["InventoryEncryption"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InventoryFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["InventoryFilter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InventoryS3BucketDestination", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["InventoryS3BucketDestination"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InventorySchedule", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["InventorySchedule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JSONInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["JSONInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JSONOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["JSONOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JSONType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["JSONType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LambdaFunctionConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["LambdaFunctionConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LifecycleExpiration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["LifecycleExpiration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LifecycleRule", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["LifecycleRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LifecycleRuleAndOperator", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["LifecycleRuleAndOperator"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LifecycleRuleFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["LifecycleRuleFilter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListBucketAnalyticsConfigurationsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListBucketAnalyticsConfigurationsOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListBucketAnalyticsConfigurationsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListBucketAnalyticsConfigurationsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListBucketInventoryConfigurationsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListBucketInventoryConfigurationsOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListBucketInventoryConfigurationsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListBucketInventoryConfigurationsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListBucketMetricsConfigurationsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListBucketMetricsConfigurationsOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListBucketMetricsConfigurationsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListBucketMetricsConfigurationsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListBucketsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListBucketsOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListMultipartUploadsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListMultipartUploadsOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListMultipartUploadsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListMultipartUploadsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListObjectsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListObjectsOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListObjectsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListObjectsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListObjectsV2Output", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListObjectsV2Output"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListObjectsV2Request", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListObjectsV2Request"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListObjectVersionsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListObjectVersionsOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListObjectVersionsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListObjectVersionsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListPartsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListPartsOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListPartsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ListPartsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoggingEnabled", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["LoggingEnabled"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MetadataEntry", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["MetadataEntry"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Metrics", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Metrics"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MetricsAndOperator", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["MetricsAndOperator"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MetricsConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["MetricsConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MetricsFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["MetricsFilter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MultipartUpload", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["MultipartUpload"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NoncurrentVersionExpiration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["NoncurrentVersionExpiration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NoncurrentVersionTransition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["NoncurrentVersionTransition"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NoSuchBucket", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["NoSuchBucket"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NoSuchKey", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["NoSuchKey"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NoSuchUpload", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["NoSuchUpload"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["NotificationConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationConfigurationFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["NotificationConfigurationFilter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_Object", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["_Object"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectAlreadyInActiveTierError", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ObjectAlreadyInActiveTierError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectIdentifier", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ObjectIdentifier"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectLockConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ObjectLockConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectLockLegalHold", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ObjectLockLegalHold"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectLockRetention", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ObjectLockRetention"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectLockRule", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ObjectLockRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectNotInActiveTierError", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ObjectNotInActiveTierError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectVersion", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ObjectVersion"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OutputLocation", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["OutputLocation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OutputSerialization", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["OutputSerialization"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Owner", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Owner"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParquetInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ParquetInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Part", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Part"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PolicyStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PolicyStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Progress", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Progress"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProgressEvent", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ProgressEvent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PublicAccessBlockConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PublicAccessBlockConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketAccelerateConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutBucketAccelerateConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketAclRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutBucketAclRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketAnalyticsConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutBucketAnalyticsConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketCorsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutBucketCorsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketEncryptionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutBucketEncryptionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketInventoryConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutBucketInventoryConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketLifecycleConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutBucketLifecycleConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketLoggingRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutBucketLoggingRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketMetricsConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutBucketMetricsConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketNotificationConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutBucketNotificationConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketPolicyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutBucketPolicyRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketReplicationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutBucketReplicationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketRequestPaymentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutBucketRequestPaymentRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketTaggingRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutBucketTaggingRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketVersioningRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutBucketVersioningRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutBucketWebsiteRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutBucketWebsiteRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectAclOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutObjectAclOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectAclRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutObjectAclRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectLegalHoldOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutObjectLegalHoldOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectLegalHoldRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutObjectLegalHoldRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectLockConfigurationOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutObjectLockConfigurationOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectLockConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutObjectLockConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutObjectOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutObjectRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectRetentionOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutObjectRetentionOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectRetentionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutObjectRetentionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectTaggingOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutObjectTaggingOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutObjectTaggingRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutObjectTaggingRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutPublicAccessBlockRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["PutPublicAccessBlockRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QueueConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["QueueConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuoteFields", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["QuoteFields"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecordsEvent", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["RecordsEvent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Redirect", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Redirect"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedirectAllRequestsTo", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["RedirectAllRequestsTo"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReplicationConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ReplicationConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReplicationRule", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ReplicationRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReplicationRuleAndOperator", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ReplicationRuleAndOperator"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReplicationRuleFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ReplicationRuleFilter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReplicationTime", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ReplicationTime"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReplicationTimeValue", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ReplicationTimeValue"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RequestPaymentConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["RequestPaymentConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RequestProgress", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["RequestProgress"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RestoreObjectOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["RestoreObjectOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RestoreObjectRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["RestoreObjectRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RestoreRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["RestoreRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RestoreRequestType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["RestoreRequestType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RoutingRule", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["RoutingRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3KeyFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["S3KeyFilter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3Location", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["S3Location"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScanRange", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ScanRange"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectObjectContentEventStream", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["SelectObjectContentEventStream"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectObjectContentOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["SelectObjectContentOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectObjectContentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["SelectObjectContentRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectParameters", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["SelectParameters"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ServerSideEncryptionByDefault", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ServerSideEncryptionByDefault"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ServerSideEncryptionConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ServerSideEncryptionConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ServerSideEncryptionRule", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["ServerSideEncryptionRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SourceSelectionCriteria", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["SourceSelectionCriteria"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SSEKMS", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["SSEKMS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SseKmsEncryptedObjects", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["SseKmsEncryptedObjects"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SSES3", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["SSES3"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Stats", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Stats"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatsEvent", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["StatsEvent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StorageClassAnalysis", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["StorageClassAnalysis"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StorageClassAnalysisDataExport", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["StorageClassAnalysisDataExport"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Tag"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tagging", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Tagging"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TargetGrant", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["TargetGrant"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TopicConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["TopicConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Transition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["Transition"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadPartCopyOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["UploadPartCopyOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadPartCopyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["UploadPartCopyRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadPartOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["UploadPartOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadPartRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["UploadPartRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VersioningConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["VersioningConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WebsiteConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_88__["WebsiteConfiguration"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "CGOs": /*!****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetBucketAnalyticsConfigurationCommand.js ***! \****************************************************************************************************/ /*! exports provided: GetBucketAnalyticsConfigurationCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBucketAnalyticsConfigurationCommand", function() { return GetBucketAnalyticsConfigurationCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetBucketAnalyticsConfigurationCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetBucketAnalyticsConfigurationCommand, _super); // Start section: command_properties // End section: command_properties function GetBucketAnalyticsConfigurationCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetBucketAnalyticsConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketAnalyticsConfigurationRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketAnalyticsConfigurationOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetBucketAnalyticsConfigurationCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetBucketAnalyticsConfigurationCommand"])(input, context); }; GetBucketAnalyticsConfigurationCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetBucketAnalyticsConfigurationCommand"])(output, context); }; return GetBucketAnalyticsConfigurationCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetBucketAnalyticsConfigurationCommand.js.map /***/ }), /***/ "CH3K": /*!*******************************************!*\ !*** ./node_modules/lodash/_arrayPush.js ***! \*******************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Appends the elements of `values` to `array`. * * @private * @param {Array} array The array to modify. * @param {Array} values The values to append. * @returns {Array} Returns `array`. */ function arrayPush(array, values) { var index = -1, length = values.length, offset = array.length; while (++index < length) { array[offset + index] = values[index]; } return array; } module.exports = arrayPush; /***/ }), /***/ "CIEt": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/lib-esm/storage/adapter/AsyncStorageDatabase.js ***! \*********************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../types */ "+eag"); /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util */ "wr5y"); /* harmony import */ var _InMemoryStore__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InMemoryStore */ "yg/U"); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __values = (undefined && undefined.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var DB_NAME = '@AmplifyDatastore'; var COLLECTION = 'Collection'; var DATA = 'Data'; var monotonicFactoriesMap = new Map(); var AsyncStorageDatabase = /** @class */ (function () { function AsyncStorageDatabase() { /** * Maps storeNames to a map of ulid->id */ this._collectionInMemoryIndex = new Map(); this.storage = Object(_InMemoryStore__WEBPACK_IMPORTED_MODULE_2__["createInMemoryStore"])(); } AsyncStorageDatabase.prototype.getCollectionIndex = function (storeName) { if (!this._collectionInMemoryIndex.has(storeName)) { this._collectionInMemoryIndex.set(storeName, new Map()); } return this._collectionInMemoryIndex.get(storeName); }; AsyncStorageDatabase.prototype.getMonotonicFactory = function (storeName) { if (!monotonicFactoriesMap.has(storeName)) { monotonicFactoriesMap.set(storeName, Object(_util__WEBPACK_IMPORTED_MODULE_1__["monotonicUlidFactory"])()); } return monotonicFactoriesMap.get(storeName); }; AsyncStorageDatabase.prototype.init = function () { return __awaiter(this, void 0, void 0, function () { var allKeys, keysForCollectionEntries, allKeys_1, allKeys_1_1, key, _a, dbName, storeName, recordType, ulidOrId, id, ulid, id_1, newUlid, oldKey, newKey, item, e_1_1; var e_1, _b; return __generator(this, function (_c) { switch (_c.label) { case 0: this._collectionInMemoryIndex.clear(); return [4 /*yield*/, this.storage.getAllKeys()]; case 1: allKeys = _c.sent(); keysForCollectionEntries = []; _c.label = 2; case 2: _c.trys.push([2, 12, 13, 14]); allKeys_1 = __values(allKeys), allKeys_1_1 = allKeys_1.next(); _c.label = 3; case 3: if (!!allKeys_1_1.done) return [3 /*break*/, 11]; key = allKeys_1_1.value; _a = __read(key.split('::'), 5), dbName = _a[0], storeName = _a[1], recordType = _a[2], ulidOrId = _a[3], id = _a[4]; if (!(dbName === DB_NAME)) return [3 /*break*/, 10]; if (!(recordType === DATA)) return [3 /*break*/, 9]; ulid = void 0; if (!(id === undefined)) return [3 /*break*/, 7]; id_1 = ulidOrId; newUlid = this.getMonotonicFactory(storeName)(); oldKey = this.getLegacyKeyForItem(storeName, id_1); newKey = this.getKeyForItem(storeName, id_1, newUlid); return [4 /*yield*/, this.storage.getItem(oldKey)]; case 4: item = _c.sent(); return [4 /*yield*/, this.storage.setItem(newKey, item)]; case 5: _c.sent(); return [4 /*yield*/, this.storage.removeItem(oldKey)]; case 6: _c.sent(); ulid = newUlid; return [3 /*break*/, 8]; case 7: ulid = ulidOrId; _c.label = 8; case 8: this.getCollectionIndex(storeName).set(id, ulid); return [3 /*break*/, 10]; case 9: if (recordType === COLLECTION) { keysForCollectionEntries.push(key); } _c.label = 10; case 10: allKeys_1_1 = allKeys_1.next(); return [3 /*break*/, 3]; case 11: return [3 /*break*/, 14]; case 12: e_1_1 = _c.sent(); e_1 = { error: e_1_1 }; return [3 /*break*/, 14]; case 13: try { if (allKeys_1_1 && !allKeys_1_1.done && (_b = allKeys_1.return)) _b.call(allKeys_1); } finally { if (e_1) throw e_1.error; } return [7 /*endfinally*/]; case 14: if (!(keysForCollectionEntries.length > 0)) return [3 /*break*/, 16]; return [4 /*yield*/, this.storage.multiRemove(keysForCollectionEntries)]; case 15: _c.sent(); _c.label = 16; case 16: return [2 /*return*/]; } }); }); }; AsyncStorageDatabase.prototype.save = function (item, storeName) { return __awaiter(this, void 0, void 0, function () { var ulid, itemKey; return __generator(this, function (_a) { switch (_a.label) { case 0: ulid = this.getCollectionIndex(storeName).get(item.id) || this.getMonotonicFactory(storeName)(); itemKey = this.getKeyForItem(storeName, item.id, ulid); this.getCollectionIndex(storeName).set(item.id, ulid); return [4 /*yield*/, this.storage.setItem(itemKey, JSON.stringify(item))]; case 1: _a.sent(); return [2 /*return*/]; } }); }); }; AsyncStorageDatabase.prototype.batchSave = function (storeName, items) { return __awaiter(this, void 0, void 0, function () { var result, collection, keysToDelete, keysToSave, allItemsKeys, itemsMap, items_1, items_1_1, item, id, _deleted, ulid, key, existingRecordsMap, existingRecordsKeys, allItemsKeys_1, allItemsKeys_1_1, key; var e_2, _a, e_3, _b; var _this = this; return __generator(this, function (_c) { switch (_c.label) { case 0: if (items.length === 0) { return [2 /*return*/, []]; } result = []; collection = this.getCollectionIndex(storeName); keysToDelete = new Set(); keysToSave = new Set(); allItemsKeys = []; itemsMap = {}; try { for (items_1 = __values(items), items_1_1 = items_1.next(); !items_1_1.done; items_1_1 = items_1.next()) { item = items_1_1.value; id = item.id, _deleted = item._deleted; ulid = collection.get(id) || this.getMonotonicFactory(storeName)(); key = this.getKeyForItem(storeName, id, ulid); allItemsKeys.push(key); itemsMap[key] = { ulid: ulid, model: item }; if (_deleted) { keysToDelete.add(key); } else { keysToSave.add(key); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (items_1_1 && !items_1_1.done && (_a = items_1.return)) _a.call(items_1); } finally { if (e_2) throw e_2.error; } } return [4 /*yield*/, this.storage.multiGet(allItemsKeys)]; case 1: existingRecordsMap = _c.sent(); existingRecordsKeys = existingRecordsMap .filter(function (_a) { var _b = __read(_a, 2), v = _b[1]; return !!v; }) .reduce(function (set, _a) { var _b = __read(_a, 1), k = _b[0]; return set.add(k); }, new Set()); return [4 /*yield*/, new Promise(function (resolve, reject) { if (keysToDelete.size === 0) { resolve(); return; } var keysToDeleteArray = Array.from(keysToDelete); keysToDeleteArray.forEach(function (key) { return collection.delete(itemsMap[key].model.id); }); _this.storage.multiRemove(keysToDeleteArray, function (errors) { if (errors && errors.length > 0) { reject(errors); } else { resolve(); } }); })]; case 2: _c.sent(); return [4 /*yield*/, new Promise(function (resolve, reject) { if (keysToSave.size === 0) { resolve(); return; } var entriesToSet = Array.from(keysToSave).map(function (key) { return [ key, JSON.stringify(itemsMap[key].model), ]; }); keysToSave.forEach(function (key) { var _a = itemsMap[key], id = _a.model.id, ulid = _a.ulid; collection.set(id, ulid); }); _this.storage.multiSet(entriesToSet, function (errors) { if (errors && errors.length > 0) { reject(errors); } else { resolve(); } }); })]; case 3: _c.sent(); try { for (allItemsKeys_1 = __values(allItemsKeys), allItemsKeys_1_1 = allItemsKeys_1.next(); !allItemsKeys_1_1.done; allItemsKeys_1_1 = allItemsKeys_1.next()) { key = allItemsKeys_1_1.value; if (keysToDelete.has(key) && existingRecordsKeys.has(key)) { result.push([itemsMap[key].model, _types__WEBPACK_IMPORTED_MODULE_0__["OpType"].DELETE]); } else if (keysToSave.has(key)) { result.push([ itemsMap[key].model, existingRecordsKeys.has(key) ? _types__WEBPACK_IMPORTED_MODULE_0__["OpType"].UPDATE : _types__WEBPACK_IMPORTED_MODULE_0__["OpType"].INSERT, ]); } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (allItemsKeys_1_1 && !allItemsKeys_1_1.done && (_b = allItemsKeys_1.return)) _b.call(allItemsKeys_1); } finally { if (e_3) throw e_3.error; } } return [2 /*return*/, result]; } }); }); }; AsyncStorageDatabase.prototype.get = function (id, storeName) { return __awaiter(this, void 0, void 0, function () { var ulid, itemKey, recordAsString, record; return __generator(this, function (_a) { switch (_a.label) { case 0: ulid = this.getCollectionIndex(storeName).get(id); itemKey = this.getKeyForItem(storeName, id, ulid); return [4 /*yield*/, this.storage.getItem(itemKey)]; case 1: recordAsString = _a.sent(); record = recordAsString && JSON.parse(recordAsString); return [2 /*return*/, record]; } }); }); }; AsyncStorageDatabase.prototype.getOne = function (firstOrLast, storeName) { return __awaiter(this, void 0, void 0, function () { var collection, _a, itemId, ulid, itemKey, itemString, _b, result; return __generator(this, function (_c) { switch (_c.label) { case 0: collection = this.getCollectionIndex(storeName); _a = __read(firstOrLast === _types__WEBPACK_IMPORTED_MODULE_0__["QueryOne"].FIRST ? (function () { var e_4, _a, _b; var id, ulid; try { for (var collection_1 = __values(collection), collection_1_1 = collection_1.next(); !collection_1_1.done; collection_1_1 = collection_1.next()) { _b = __read(collection_1_1.value, 2), id = _b[0], ulid = _b[1]; break; } // Get first element of the set } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (collection_1_1 && !collection_1_1.done && (_a = collection_1.return)) _a.call(collection_1); } finally { if (e_4) throw e_4.error; } } return [id, ulid]; })() : (function () { var e_5, _a, _b; var id, ulid; try { for (var collection_2 = __values(collection), collection_2_1 = collection_2.next(); !collection_2_1.done; collection_2_1 = collection_2.next()) { _b = __read(collection_2_1.value, 2), id = _b[0], ulid = _b[1]; ; } // Get last element of the set } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (collection_2_1 && !collection_2_1.done && (_a = collection_2.return)) _a.call(collection_2); } finally { if (e_5) throw e_5.error; } } return [id, ulid]; })(), 2), itemId = _a[0], ulid = _a[1]; itemKey = this.getKeyForItem(storeName, itemId, ulid); _b = itemKey; if (!_b) return [3 /*break*/, 2]; return [4 /*yield*/, this.storage.getItem(itemKey)]; case 1: _b = (_c.sent()); _c.label = 2; case 2: itemString = _b; result = itemString ? JSON.parse(itemString) || undefined : undefined; return [2 /*return*/, result]; } }); }); }; /** * This function gets all the records stored in async storage for a particular storeName * It then loads all the records for that filtered set of keys using multiGet() */ AsyncStorageDatabase.prototype.getAll = function (storeName, pagination) { return __awaiter(this, void 0, void 0, function () { var collection, _a, _b, page, _c, limit, start, end, keysForStore, count, collection_3, collection_3_1, _d, id, ulid, storeRecordStrings, records; var e_6, _e; return __generator(this, function (_f) { switch (_f.label) { case 0: collection = this.getCollectionIndex(storeName); _a = pagination || {}, _b = _a.page, page = _b === void 0 ? 0 : _b, _c = _a.limit, limit = _c === void 0 ? 0 : _c; start = Math.max(0, page * limit) || 0; end = limit > 0 ? start + limit : undefined; keysForStore = []; count = 0; try { for (collection_3 = __values(collection), collection_3_1 = collection_3.next(); !collection_3_1.done; collection_3_1 = collection_3.next()) { _d = __read(collection_3_1.value, 2), id = _d[0], ulid = _d[1]; count++; if (count <= start) { continue; } keysForStore.push(this.getKeyForItem(storeName, id, ulid)); if (count === end) { break; } } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (collection_3_1 && !collection_3_1.done && (_e = collection_3.return)) _e.call(collection_3); } finally { if (e_6) throw e_6.error; } } return [4 /*yield*/, this.storage.multiGet(keysForStore)]; case 1: storeRecordStrings = _f.sent(); records = storeRecordStrings .filter(function (_a) { var _b = __read(_a, 2), value = _b[1]; return value; }) .map(function (_a) { var _b = __read(_a, 2), value = _b[1]; return JSON.parse(value); }); return [2 /*return*/, records]; } }); }); }; AsyncStorageDatabase.prototype.delete = function (id, storeName) { return __awaiter(this, void 0, void 0, function () { var ulid, itemKey; return __generator(this, function (_a) { switch (_a.label) { case 0: ulid = this.getCollectionIndex(storeName).get(id); itemKey = this.getKeyForItem(storeName, id, ulid); this.getCollectionIndex(storeName).delete(id); return [4 /*yield*/, this.storage.removeItem(itemKey)]; case 1: _a.sent(); return [2 /*return*/]; } }); }); }; /** * Clear the AsyncStorage of all DataStore entries */ AsyncStorageDatabase.prototype.clear = function () { return __awaiter(this, void 0, void 0, function () { var allKeys, allDataStoreKeys; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.storage.getAllKeys()]; case 1: allKeys = _a.sent(); allDataStoreKeys = allKeys.filter(function (key) { return key.startsWith(DB_NAME); }); return [4 /*yield*/, this.storage.multiRemove(allDataStoreKeys)]; case 2: _a.sent(); this._collectionInMemoryIndex.clear(); return [2 /*return*/]; } }); }); }; AsyncStorageDatabase.prototype.getKeyForItem = function (storeName, id, ulid) { return this.getKeyPrefixForStoreItems(storeName) + "::" + ulid + "::" + id; }; AsyncStorageDatabase.prototype.getLegacyKeyForItem = function (storeName, id) { return this.getKeyPrefixForStoreItems(storeName) + "::" + id; }; AsyncStorageDatabase.prototype.getKeyPrefixForStoreItems = function (storeName) { return DB_NAME + "::" + storeName + "::" + DATA; }; return AsyncStorageDatabase; }()); /* harmony default export */ __webpack_exports__["default"] = (AsyncStorageDatabase); //# sourceMappingURL=AsyncStorageDatabase.js.map /***/ }), /***/ "CIHk": /*!*******************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-lex-runtime-service/dist/es/package.json ***! \*******************************************************************************/ /*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, author, license, default */ /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"@aws-sdk/client-lex-runtime-service\",\"description\":\"@aws-sdk/client-lex-runtime-service client\",\"version\":\"1.0.0-gamma.8\",\"scripts\":{\"clean\":\"npm run remove-definitions && npm run remove-dist\",\"build-documentation\":\"npm run clean && typedoc ./\",\"prepublishOnly\":\"yarn build\",\"pretest\":\"yarn build:cjs\",\"remove-definitions\":\"rimraf ./types\",\"remove-dist\":\"rimraf ./dist\",\"remove-documentation\":\"rimraf ./docs\",\"test:unit\":\"mocha **/cjs/**/*.spec.js\",\"test\":\"yarn test:unit\",\"build:cjs\":\"tsc -p tsconfig.json\",\"build:es\":\"tsc -p tsconfig.es.json\",\"build\":\"yarn build:cjs && yarn build:es\"},\"main\":\"./dist/cjs/index.js\",\"types\":\"./types/index.d.ts\",\"module\":\"./dist/es/index.js\",\"browser\":{\"./runtimeConfig\":\"./runtimeConfig.browser\"},\"react-native\":{\"./runtimeConfig\":\"./runtimeConfig.native\"},\"sideEffects\":false,\"dependencies\":{\"@aws-crypto/sha256-browser\":\"^1.0.0-alpha.0\",\"@aws-crypto/sha256-js\":\"^1.0.0-alpha.0\",\"@aws-sdk/config-resolver\":\"1.0.0-gamma.7\",\"@aws-sdk/credential-provider-node\":\"1.0.0-gamma.7\",\"@aws-sdk/fetch-http-handler\":\"1.0.0-gamma.8\",\"@aws-sdk/hash-node\":\"1.0.0-gamma.7\",\"@aws-sdk/invalid-dependency\":\"1.0.0-gamma.5\",\"@aws-sdk/middleware-content-length\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-host-header\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-logger\":\"1.0.0-gamma.1\",\"@aws-sdk/middleware-retry\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-serde\":\"1.0.0-gamma.6\",\"@aws-sdk/middleware-signing\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-stack\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-user-agent\":\"1.0.0-gamma.7\",\"@aws-sdk/node-config-provider\":\"1.0.0-gamma.2\",\"@aws-sdk/node-http-handler\":\"1.0.0-gamma.7\",\"@aws-sdk/protocol-http\":\"1.0.0-gamma.7\",\"@aws-sdk/smithy-client\":\"1.0.0-gamma.7\",\"@aws-sdk/types\":\"1.0.0-gamma.6\",\"@aws-sdk/url-parser-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/url-parser-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-base64-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-base64-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-user-agent-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/util-user-agent-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-utf8-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-utf8-node\":\"1.0.0-gamma.6\",\"tslib\":\"^2.0.0\"},\"devDependencies\":{\"@aws-sdk/client-documentation-generator\":\"1.0.0-gamma.5\",\"@types/chai\":\"^4.2.11\",\"@types/mocha\":\"^7.0.2\",\"@types/node\":\"^12.7.5\",\"jest\":\"^25.1.0\",\"rimraf\":\"^3.0.0\",\"typedoc\":\"^0.17.8\",\"typescript\":\"~4.0.2\"},\"engines\":{\"node\":\">=8.0.0\"},\"author\":{\"name\":\"AWS SDK for JavaScript Team\",\"url\":\"https://aws.amazon.com/javascript/\"},\"license\":\"Apache-2.0\"}"); /***/ }), /***/ "CMyj": /*!****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/isIterable.js ***! \****************************************************************/ /*! exports provided: isIterable */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIterable", function() { return isIterable; }); /* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../symbol/iterator */ "Lhse"); function isIterable(input) { return input && typeof input[_symbol_iterator__WEBPACK_IMPORTED_MODULE_0__["iterator"]] === 'function'; } //# sourceMappingURL=isIterable.js.map /***/ }), /***/ "CRDf": /*!***************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/subscribeToObservable.js ***! \***************************************************************************/ /*! exports provided: subscribeToObservable */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeToObservable", function() { return subscribeToObservable; }); /* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../symbol/observable */ "kJWO"); const subscribeToObservable = (obj) => (subscriber) => { const obs = obj[_symbol_observable__WEBPACK_IMPORTED_MODULE_0__["observable"]](); if (typeof obs.subscribe !== 'function') { throw new TypeError('Provided object does not correctly implement Symbol.observable'); } else { return obs.subscribe(subscriber); } }; //# sourceMappingURL=subscribeToObservable.js.map /***/ }), /***/ "CRyI": /*!*********************************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/GetOpenIdTokenForDeveloperIdentityCommand.js ***! \*********************************************************************************************************************/ /*! exports provided: GetOpenIdTokenForDeveloperIdentityCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetOpenIdTokenForDeveloperIdentityCommand", function() { return GetOpenIdTokenForDeveloperIdentityCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetOpenIdTokenForDeveloperIdentityCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetOpenIdTokenForDeveloperIdentityCommand, _super); // Start section: command_properties // End section: command_properties function GetOpenIdTokenForDeveloperIdentityCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetOpenIdTokenForDeveloperIdentityCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__["getAwsAuthPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetOpenIdTokenForDeveloperIdentityInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetOpenIdTokenForDeveloperIdentityResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetOpenIdTokenForDeveloperIdentityCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommand"])(input, context); }; GetOpenIdTokenForDeveloperIdentityCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommand"])(output, context); }; return GetOpenIdTokenForDeveloperIdentityCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetOpenIdTokenForDeveloperIdentityCommand.js.map /***/ }), /***/ "CXEx": /*!****************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-ssec/dist/es/index.js ***! \****************************************************************/ /*! exports provided: ssecMiddleware, ssecMiddlewareOptions, getSsecPlugin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ssecMiddleware", function() { return ssecMiddleware; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ssecMiddlewareOptions", function() { return ssecMiddlewareOptions; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSsecPlugin", function() { return getSsecPlugin; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); function ssecMiddleware(options) { var _this = this; return function (next) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () { var input, properties, properties_1, properties_1_1, prop, value, valueView, encoded, hash, _a, _b, _c, _d, e_1_1; var e_1, _e, _f; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: input = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, args.input); properties = [ { target: "SSECustomerKey", hash: "SSECustomerKeyMD5", }, { target: "CopySourceSSECustomerKey", hash: "CopySourceSSECustomerKeyMD5", }, ]; _g.label = 1; case 1: _g.trys.push([1, 6, 7, 8]); properties_1 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(properties), properties_1_1 = properties_1.next(); _g.label = 2; case 2: if (!!properties_1_1.done) return [3 /*break*/, 5]; prop = properties_1_1.value; value = input[prop.target]; if (!value) return [3 /*break*/, 4]; valueView = ArrayBuffer.isView(value) ? new Uint8Array(value.buffer, value.byteOffset, value.byteLength) : typeof value === "string" ? options.utf8Decoder(value) : new Uint8Array(value); encoded = options.base64Encoder(valueView); hash = new options.md5(); hash.update(valueView); _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, input)]; _f = {}, _f[prop.target] = encoded; _b = prop.hash; _d = (_c = options).base64Encoder; return [4 /*yield*/, hash.digest()]; case 3: input = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f[_b] = _d.apply(_c, [_g.sent()]), _f)])); _g.label = 4; case 4: properties_1_1 = properties_1.next(); return [3 /*break*/, 2]; case 5: return [3 /*break*/, 8]; case 6: e_1_1 = _g.sent(); e_1 = { error: e_1_1 }; return [3 /*break*/, 8]; case 7: try { if (properties_1_1 && !properties_1_1.done && (_e = properties_1.return)) _e.call(properties_1); } finally { if (e_1) throw e_1.error; } return [7 /*endfinally*/]; case 8: return [2 /*return*/, next(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, args), { input: input }))]; } }); }); }; }; } var ssecMiddlewareOptions = { name: "ssecMiddleware", step: "initialize", tags: ["SSE"], }; var getSsecPlugin = function (config) { return ({ applyToStack: function (clientStack) { clientStack.add(ssecMiddleware(config), ssecMiddlewareOptions); }, }); }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQWFBLE1BQU0sVUFBVSxjQUFjLENBQUMsT0FBcUM7SUFBcEUsaUJBMENDO0lBekNDLE9BQU8sVUFDTCxJQUFvQyxJQUNELE9BQUEsVUFDbkMsSUFBcUM7Ozs7OztvQkFFakMsS0FBSyxnQkFBUSxJQUFJLENBQUMsS0FBSyxDQUFFLENBQUM7b0JBQ3hCLFVBQVUsR0FBRzt3QkFDakI7NEJBQ0UsTUFBTSxFQUFFLGdCQUFnQjs0QkFDeEIsSUFBSSxFQUFFLG1CQUFtQjt5QkFDMUI7d0JBQ0Q7NEJBQ0UsTUFBTSxFQUFFLDBCQUEwQjs0QkFDbEMsSUFBSSxFQUFFLDZCQUE2Qjt5QkFDcEM7cUJBQ0YsQ0FBQzs7OztvQkFFaUIsZUFBQSxTQUFBLFVBQVUsQ0FBQTs7OztvQkFBbEIsSUFBSTtvQkFDUCxLQUFLLEdBQTRCLEtBQWEsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUM7eUJBQzlELEtBQUssRUFBTCx3QkFBSztvQkFDRCxTQUFTLEdBQUcsV0FBVyxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUM7d0JBQ3pDLENBQUMsQ0FBQyxJQUFJLFVBQVUsQ0FBQyxLQUFLLENBQUMsTUFBTSxFQUFFLEtBQUssQ0FBQyxVQUFVLEVBQUUsS0FBSyxDQUFDLFVBQVUsQ0FBQzt3QkFDbEUsQ0FBQyxDQUFDLE9BQU8sS0FBSyxLQUFLLFFBQVE7NEJBQzNCLENBQUMsQ0FBQyxPQUFPLENBQUMsV0FBVyxDQUFDLEtBQUssQ0FBQzs0QkFDNUIsQ0FBQyxDQUFDLElBQUksVUFBVSxDQUFDLEtBQUssQ0FBQyxDQUFDO29CQUNwQixPQUFPLEdBQUcsT0FBTyxDQUFDLGFBQWEsQ0FBQyxTQUFTLENBQUMsQ0FBQztvQkFDM0MsSUFBSSxHQUFHLElBQUksT0FBTyxDQUFDLEdBQUcsRUFBRSxDQUFDO29CQUMvQixJQUFJLENBQUMsTUFBTSxDQUFDLFNBQVMsQ0FBQyxDQUFDO3VDQUVqQixLQUFhO2dDQUNoQixJQUFJLENBQUMsTUFBTSxJQUFHLE9BQU87b0JBQ3JCLEtBQUEsSUFBSSxDQUFDLElBQUksQ0FBQTtvQkFBRyxLQUFBLENBQUEsS0FBQSxPQUFPLENBQUEsQ0FBQyxhQUFhLENBQUE7b0JBQUMscUJBQU0sSUFBSSxDQUFDLE1BQU0sRUFBRSxFQUFBOztvQkFIeEQsS0FBSywrQ0FHVSxjQUFzQixTQUFtQixFQUFDLFFBQ3hELENBQUM7Ozs7Ozs7Ozs7Ozs7Ozs7d0JBSU4sc0JBQU8sSUFBSSx1QkFDTixJQUFJLEtBQ1AsS0FBSyxPQUFBLElBQ0wsRUFBQzs7O1NBQ0osRUF0Q29DLENBc0NwQyxDQUFDO0FBQ0osQ0FBQztBQUVELE1BQU0sQ0FBQyxJQUFNLHFCQUFxQixHQUE2QjtJQUM3RCxJQUFJLEVBQUUsZ0JBQWdCO0lBQ3RCLElBQUksRUFBRSxZQUFZO0lBQ2xCLElBQUksRUFBRSxDQUFDLEtBQUssQ0FBQztDQUNkLENBQUM7QUFFRixNQUFNLENBQUMsSUFBTSxhQUFhLEdBQUcsVUFBQyxNQUFvQyxJQUEwQixPQUFBLENBQUM7SUFDM0YsWUFBWSxFQUFFLFVBQUMsV0FBVztRQUN4QixXQUFXLENBQUMsR0FBRyxDQUFDLGNBQWMsQ0FBQyxNQUFNLENBQUMsRUFBRSxxQkFBcUIsQ0FBQyxDQUFDO0lBQ2pFLENBQUM7Q0FDRixDQUFDLEVBSjBGLENBSTFGLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBJbml0aWFsaXplSGFuZGxlcixcbiAgSW5pdGlhbGl6ZUhhbmRsZXJBcmd1bWVudHMsXG4gIEluaXRpYWxpemVIYW5kbGVyT3B0aW9ucyxcbiAgSW5pdGlhbGl6ZUhhbmRsZXJPdXRwdXQsXG4gIEluaXRpYWxpemVNaWRkbGV3YXJlLFxuICBNZXRhZGF0YUJlYXJlcixcbiAgUGx1Z2dhYmxlLFxuICBTb3VyY2VEYXRhLFxufSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuaW1wb3J0IHsgUmVzb2x2ZWRTc2VjTWlkZGxld2FyZUNvbmZpZyB9IGZyb20gXCIuL2NvbmZpZ3VyYXRpb25cIjtcblxuZXhwb3J0IGZ1bmN0aW9uIHNzZWNNaWRkbGV3YXJlKG9wdGlvbnM6IFJlc29sdmVkU3NlY01pZGRsZXdhcmVDb25maWcpOiBJbml0aWFsaXplTWlkZGxld2FyZTxhbnksIGFueT4ge1xuICByZXR1cm4gPE91dHB1dCBleHRlbmRzIE1ldGFkYXRhQmVhcmVyPihcbiAgICBuZXh0OiBJbml0aWFsaXplSGFuZGxlcjxhbnksIE91dHB1dD5cbiAgKTogSW5pdGlhbGl6ZUhhbmRsZXI8YW55LCBPdXRwdXQ+ID0+IGFzeW5jIChcbiAgICBhcmdzOiBJbml0aWFsaXplSGFuZGxlckFyZ3VtZW50czxhbnk+XG4gICk6IFByb21pc2U8SW5pdGlhbGl6ZUhhbmRsZXJPdXRwdXQ8T3V0cHV0Pj4gPT4ge1xuICAgIGxldCBpbnB1dCA9IHsgLi4uYXJncy5pbnB1dCB9O1xuICAgIGNvbnN0IHByb3BlcnRpZXMgPSBbXG4gICAgICB7XG4gICAgICAgIHRhcmdldDogXCJTU0VDdXN0b21lcktleVwiLFxuICAgICAgICBoYXNoOiBcIlNTRUN1c3RvbWVyS2V5TUQ1XCIsXG4gICAgICB9LFxuICAgICAge1xuICAgICAgICB0YXJnZXQ6IFwiQ29weVNvdXJjZVNTRUN1c3RvbWVyS2V5XCIsXG4gICAgICAgIGhhc2g6IFwiQ29weVNvdXJjZVNTRUN1c3RvbWVyS2V5TUQ1XCIsXG4gICAgICB9LFxuICAgIF07XG5cbiAgICBmb3IgKGNvbnN0IHByb3Agb2YgcHJvcGVydGllcykge1xuICAgICAgY29uc3QgdmFsdWU6IFNvdXJjZURhdGEgfCB1bmRlZmluZWQgPSAoaW5wdXQgYXMgYW55KVtwcm9wLnRhcmdldF07XG4gICAgICBpZiAodmFsdWUpIHtcbiAgICAgICAgY29uc3QgdmFsdWVWaWV3ID0gQXJyYXlCdWZmZXIuaXNWaWV3KHZhbHVlKVxuICAgICAgICAgID8gbmV3IFVpbnQ4QXJyYXkodmFsdWUuYnVmZmVyLCB2YWx1ZS5ieXRlT2Zmc2V0LCB2YWx1ZS5ieXRlTGVuZ3RoKVxuICAgICAgICAgIDogdHlwZW9mIHZhbHVlID09PSBcInN0cmluZ1wiXG4gICAgICAgICAgPyBvcHRpb25zLnV0ZjhEZWNvZGVyKHZhbHVlKVxuICAgICAgICAgIDogbmV3IFVpbnQ4QXJyYXkodmFsdWUpO1xuICAgICAgICBjb25zdCBlbmNvZGVkID0gb3B0aW9ucy5iYXNlNjRFbmNvZGVyKHZhbHVlVmlldyk7XG4gICAgICAgIGNvbnN0IGhhc2ggPSBuZXcgb3B0aW9ucy5tZDUoKTtcbiAgICAgICAgaGFzaC51cGRhdGUodmFsdWVWaWV3KTtcbiAgICAgICAgaW5wdXQgPSB7XG4gICAgICAgICAgLi4uKGlucHV0IGFzIGFueSksXG4gICAgICAgICAgW3Byb3AudGFyZ2V0XTogZW5jb2RlZCxcbiAgICAgICAgICBbcHJvcC5oYXNoXTogb3B0aW9ucy5iYXNlNjRFbmNvZGVyKGF3YWl0IGhhc2guZGlnZXN0KCkpLFxuICAgICAgICB9O1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBuZXh0KHtcbiAgICAgIC4uLmFyZ3MsXG4gICAgICBpbnB1dCxcbiAgICB9KTtcbiAgfTtcbn1cblxuZXhwb3J0IGNvbnN0IHNzZWNNaWRkbGV3YXJlT3B0aW9uczogSW5pdGlhbGl6ZUhhbmRsZXJPcHRpb25zID0ge1xuICBuYW1lOiBcInNzZWNNaWRkbGV3YXJlXCIsXG4gIHN0ZXA6IFwiaW5pdGlhbGl6ZVwiLFxuICB0YWdzOiBbXCJTU0VcIl0sXG59O1xuXG5leHBvcnQgY29uc3QgZ2V0U3NlY1BsdWdpbiA9IChjb25maWc6IFJlc29sdmVkU3NlY01pZGRsZXdhcmVDb25maWcpOiBQbHVnZ2FibGU8YW55LCBhbnk+ID0+ICh7XG4gIGFwcGx5VG9TdGFjazogKGNsaWVudFN0YWNrKSA9PiB7XG4gICAgY2xpZW50U3RhY2suYWRkKHNzZWNNaWRkbGV3YXJlKGNvbmZpZyksIHNzZWNNaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcbiJdfQ== /***/ }), /***/ "CajK": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/DeleteCollectionCommand.js ***! \**********************************************************************************************/ /*! exports provided: DeleteCollectionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteCollectionCommand", function() { return DeleteCollectionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteCollectionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteCollectionCommand, _super); // Start section: command_properties // End section: command_properties function DeleteCollectionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteCollectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteCollectionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteCollectionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteCollectionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DeleteCollectionCommand"])(input, context); }; DeleteCollectionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DeleteCollectionCommand"])(output, context); }; return DeleteCollectionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteCollectionCommand.js.map /***/ }), /***/ "CbW8": /*!*************************************************!*\ !*** ./node_modules/graphql/language/lexer.mjs ***! \*************************************************/ /*! exports provided: createLexer, TokenKind, getTokenDesc */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createLexer", function() { return createLexer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TokenKind", function() { return TokenKind; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTokenDesc", function() { return getTokenDesc; }); /* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../error */ "miOx"); /* harmony import */ var _blockStringValue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./blockStringValue */ "uNde"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Given a Source object, this returns a Lexer for that source. * A Lexer is a stateful stream generator in that every time * it is advanced, it returns the next token in the Source. Assuming the * source lexes, the final Token emitted by the lexer will be of kind * EOF, after which the lexer will repeatedly return the same EOF token * whenever called. */ function createLexer(source, options) { var startOfFileToken = new Tok(TokenKind.SOF, 0, 0, 0, 0, null); var lexer = { source: source, options: options, lastToken: startOfFileToken, token: startOfFileToken, line: 1, lineStart: 0, advance: advanceLexer, lookahead: lookahead }; return lexer; } function advanceLexer() { this.lastToken = this.token; var token = this.token = this.lookahead(); return token; } function lookahead() { var token = this.token; if (token.kind !== TokenKind.EOF) { do { // Note: next is only mutable during parsing, so we cast to allow this. token = token.next || (token.next = readToken(this, token)); } while (token.kind === TokenKind.COMMENT); } return token; } /** * The return type of createLexer. */ /** * An exported enum describing the different kinds of tokens that the * lexer emits. */ var TokenKind = Object.freeze({ SOF: '', EOF: '', BANG: '!', DOLLAR: '$', AMP: '&', PAREN_L: '(', PAREN_R: ')', SPREAD: '...', COLON: ':', EQUALS: '=', AT: '@', BRACKET_L: '[', BRACKET_R: ']', BRACE_L: '{', PIPE: '|', BRACE_R: '}', NAME: 'Name', INT: 'Int', FLOAT: 'Float', STRING: 'String', BLOCK_STRING: 'BlockString', COMMENT: 'Comment' }); /** * The enum type representing the token kinds values. */ /** * A helper function to describe a token as a string for debugging */ function getTokenDesc(token) { var value = token.value; return value ? "".concat(token.kind, " \"").concat(value, "\"") : token.kind; } var charCodeAt = String.prototype.charCodeAt; var slice = String.prototype.slice; /** * Helper function for constructing the Token object. */ function Tok(kind, start, end, line, column, prev, value) { this.kind = kind; this.start = start; this.end = end; this.line = line; this.column = column; this.value = value; this.prev = prev; this.next = null; } // Print a simplified form when appearing in JSON/util.inspect. Tok.prototype.toJSON = Tok.prototype.inspect = function toJSON() { return { kind: this.kind, value: this.value, line: this.line, column: this.column }; }; function printCharCode(code) { return (// NaN/undefined represents access beyond the end of the file. isNaN(code) ? TokenKind.EOF : // Trust JSON for ASCII. code < 0x007f ? JSON.stringify(String.fromCharCode(code)) : // Otherwise print the escaped form. "\"\\u".concat(('00' + code.toString(16).toUpperCase()).slice(-4), "\"") ); } /** * Gets the next token from the source starting at the given position. * * This skips over whitespace and comments until it finds the next lexable * token, then lexes punctuators immediately or calls the appropriate helper * function for more complicated tokens. */ function readToken(lexer, prev) { var source = lexer.source; var body = source.body; var bodyLength = body.length; var pos = positionAfterWhitespace(body, prev.end, lexer); var line = lexer.line; var col = 1 + pos - lexer.lineStart; if (pos >= bodyLength) { return new Tok(TokenKind.EOF, bodyLength, bodyLength, line, col, prev); } var code = charCodeAt.call(body, pos); // SourceCharacter switch (code) { // ! case 33: return new Tok(TokenKind.BANG, pos, pos + 1, line, col, prev); // # case 35: return readComment(source, pos, line, col, prev); // $ case 36: return new Tok(TokenKind.DOLLAR, pos, pos + 1, line, col, prev); // & case 38: return new Tok(TokenKind.AMP, pos, pos + 1, line, col, prev); // ( case 40: return new Tok(TokenKind.PAREN_L, pos, pos + 1, line, col, prev); // ) case 41: return new Tok(TokenKind.PAREN_R, pos, pos + 1, line, col, prev); // . case 46: if (charCodeAt.call(body, pos + 1) === 46 && charCodeAt.call(body, pos + 2) === 46) { return new Tok(TokenKind.SPREAD, pos, pos + 3, line, col, prev); } break; // : case 58: return new Tok(TokenKind.COLON, pos, pos + 1, line, col, prev); // = case 61: return new Tok(TokenKind.EQUALS, pos, pos + 1, line, col, prev); // @ case 64: return new Tok(TokenKind.AT, pos, pos + 1, line, col, prev); // [ case 91: return new Tok(TokenKind.BRACKET_L, pos, pos + 1, line, col, prev); // ] case 93: return new Tok(TokenKind.BRACKET_R, pos, pos + 1, line, col, prev); // { case 123: return new Tok(TokenKind.BRACE_L, pos, pos + 1, line, col, prev); // | case 124: return new Tok(TokenKind.PIPE, pos, pos + 1, line, col, prev); // } case 125: return new Tok(TokenKind.BRACE_R, pos, pos + 1, line, col, prev); // A-Z _ a-z case 65: case 66: case 67: case 68: case 69: case 70: case 71: case 72: case 73: case 74: case 75: case 76: case 77: case 78: case 79: case 80: case 81: case 82: case 83: case 84: case 85: case 86: case 87: case 88: case 89: case 90: case 95: case 97: case 98: case 99: case 100: case 101: case 102: case 103: case 104: case 105: case 106: case 107: case 108: case 109: case 110: case 111: case 112: case 113: case 114: case 115: case 116: case 117: case 118: case 119: case 120: case 121: case 122: return readName(source, pos, line, col, prev); // - 0-9 case 45: case 48: case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: return readNumber(source, pos, code, line, col, prev); // " case 34: if (charCodeAt.call(body, pos + 1) === 34 && charCodeAt.call(body, pos + 2) === 34) { return readBlockString(source, pos, line, col, prev); } return readString(source, pos, line, col, prev); } throw Object(_error__WEBPACK_IMPORTED_MODULE_0__["syntaxError"])(source, pos, unexpectedCharacterMessage(code)); } /** * Report a message that an unexpected character was encountered. */ function unexpectedCharacterMessage(code) { if (code < 0x0020 && code !== 0x0009 && code !== 0x000a && code !== 0x000d) { return "Cannot contain the invalid character ".concat(printCharCode(code), "."); } if (code === 39) { // ' return "Unexpected single quote character ('), did you mean to use " + 'a double quote (")?'; } return "Cannot parse the unexpected character ".concat(printCharCode(code), "."); } /** * Reads from body starting at startPosition until it finds a non-whitespace * or commented character, then returns the position of that character for * lexing. */ function positionAfterWhitespace(body, startPosition, lexer) { var bodyLength = body.length; var position = startPosition; while (position < bodyLength) { var code = charCodeAt.call(body, position); // tab | space | comma | BOM if (code === 9 || code === 32 || code === 44 || code === 0xfeff) { ++position; } else if (code === 10) { // new line ++position; ++lexer.line; lexer.lineStart = position; } else if (code === 13) { // carriage return if (charCodeAt.call(body, position + 1) === 10) { position += 2; } else { ++position; } ++lexer.line; lexer.lineStart = position; } else { break; } } return position; } /** * Reads a comment token from the source file. * * #[\u0009\u0020-\uFFFF]* */ function readComment(source, start, line, col, prev) { var body = source.body; var code; var position = start; do { code = charCodeAt.call(body, ++position); } while (code !== null && ( // SourceCharacter but not LineTerminator code > 0x001f || code === 0x0009)); return new Tok(TokenKind.COMMENT, start, position, line, col, prev, slice.call(body, start + 1, position)); } /** * Reads a number token from the source file, either a float * or an int depending on whether a decimal point appears. * * Int: -?(0|[1-9][0-9]*) * Float: -?(0|[1-9][0-9]*)(\.[0-9]+)?((E|e)(+|-)?[0-9]+)? */ function readNumber(source, start, firstCode, line, col, prev) { var body = source.body; var code = firstCode; var position = start; var isFloat = false; if (code === 45) { // - code = charCodeAt.call(body, ++position); } if (code === 48) { // 0 code = charCodeAt.call(body, ++position); if (code >= 48 && code <= 57) { throw Object(_error__WEBPACK_IMPORTED_MODULE_0__["syntaxError"])(source, position, "Invalid number, unexpected digit after 0: ".concat(printCharCode(code), ".")); } } else { position = readDigits(source, position, code); code = charCodeAt.call(body, position); } if (code === 46) { // . isFloat = true; code = charCodeAt.call(body, ++position); position = readDigits(source, position, code); code = charCodeAt.call(body, position); } if (code === 69 || code === 101) { // E e isFloat = true; code = charCodeAt.call(body, ++position); if (code === 43 || code === 45) { // + - code = charCodeAt.call(body, ++position); } position = readDigits(source, position, code); } return new Tok(isFloat ? TokenKind.FLOAT : TokenKind.INT, start, position, line, col, prev, slice.call(body, start, position)); } /** * Returns the new position in the source after reading digits. */ function readDigits(source, start, firstCode) { var body = source.body; var position = start; var code = firstCode; if (code >= 48 && code <= 57) { // 0 - 9 do { code = charCodeAt.call(body, ++position); } while (code >= 48 && code <= 57); // 0 - 9 return position; } throw Object(_error__WEBPACK_IMPORTED_MODULE_0__["syntaxError"])(source, position, "Invalid number, expected digit but got: ".concat(printCharCode(code), ".")); } /** * Reads a string token from the source file. * * "([^"\\\u000A\u000D]|(\\(u[0-9a-fA-F]{4}|["\\/bfnrt])))*" */ function readString(source, start, line, col, prev) { var body = source.body; var position = start + 1; var chunkStart = position; var code = 0; var value = ''; while (position < body.length && (code = charCodeAt.call(body, position)) !== null && // not LineTerminator code !== 0x000a && code !== 0x000d) { // Closing Quote (") if (code === 34) { value += slice.call(body, chunkStart, position); return new Tok(TokenKind.STRING, start, position + 1, line, col, prev, value); } // SourceCharacter if (code < 0x0020 && code !== 0x0009) { throw Object(_error__WEBPACK_IMPORTED_MODULE_0__["syntaxError"])(source, position, "Invalid character within String: ".concat(printCharCode(code), ".")); } ++position; if (code === 92) { // \ value += slice.call(body, chunkStart, position - 1); code = charCodeAt.call(body, position); switch (code) { case 34: value += '"'; break; case 47: value += '/'; break; case 92: value += '\\'; break; case 98: value += '\b'; break; case 102: value += '\f'; break; case 110: value += '\n'; break; case 114: value += '\r'; break; case 116: value += '\t'; break; case 117: // u var charCode = uniCharCode(charCodeAt.call(body, position + 1), charCodeAt.call(body, position + 2), charCodeAt.call(body, position + 3), charCodeAt.call(body, position + 4)); if (charCode < 0) { throw Object(_error__WEBPACK_IMPORTED_MODULE_0__["syntaxError"])(source, position, 'Invalid character escape sequence: ' + "\\u".concat(body.slice(position + 1, position + 5), ".")); } value += String.fromCharCode(charCode); position += 4; break; default: throw Object(_error__WEBPACK_IMPORTED_MODULE_0__["syntaxError"])(source, position, "Invalid character escape sequence: \\".concat(String.fromCharCode(code), ".")); } ++position; chunkStart = position; } } throw Object(_error__WEBPACK_IMPORTED_MODULE_0__["syntaxError"])(source, position, 'Unterminated string.'); } /** * Reads a block string token from the source file. * * """("?"?(\\"""|\\(?!=""")|[^"\\]))*""" */ function readBlockString(source, start, line, col, prev) { var body = source.body; var position = start + 3; var chunkStart = position; var code = 0; var rawValue = ''; while (position < body.length && (code = charCodeAt.call(body, position)) !== null) { // Closing Triple-Quote (""") if (code === 34 && charCodeAt.call(body, position + 1) === 34 && charCodeAt.call(body, position + 2) === 34) { rawValue += slice.call(body, chunkStart, position); return new Tok(TokenKind.BLOCK_STRING, start, position + 3, line, col, prev, Object(_blockStringValue__WEBPACK_IMPORTED_MODULE_1__["default"])(rawValue)); } // SourceCharacter if (code < 0x0020 && code !== 0x0009 && code !== 0x000a && code !== 0x000d) { throw Object(_error__WEBPACK_IMPORTED_MODULE_0__["syntaxError"])(source, position, "Invalid character within String: ".concat(printCharCode(code), ".")); } // Escape Triple-Quote (\""") if (code === 92 && charCodeAt.call(body, position + 1) === 34 && charCodeAt.call(body, position + 2) === 34 && charCodeAt.call(body, position + 3) === 34) { rawValue += slice.call(body, chunkStart, position) + '"""'; position += 4; chunkStart = position; } else { ++position; } } throw Object(_error__WEBPACK_IMPORTED_MODULE_0__["syntaxError"])(source, position, 'Unterminated string.'); } /** * Converts four hexidecimal chars to the integer that the * string represents. For example, uniCharCode('0','0','0','f') * will return 15, and uniCharCode('0','0','f','f') returns 255. * * Returns a negative number on error, if a char was invalid. * * This is implemented by noting that char2hex() returns -1 on error, * which means the result of ORing the char2hex() will also be negative. */ function uniCharCode(a, b, c, d) { return char2hex(a) << 12 | char2hex(b) << 8 | char2hex(c) << 4 | char2hex(d); } /** * Converts a hex character to its integer value. * '0' becomes 0, '9' becomes 9 * 'A' becomes 10, 'F' becomes 15 * 'a' becomes 10, 'f' becomes 15 * * Returns -1 on error. */ function char2hex(a) { return a >= 48 && a <= 57 ? a - 48 // 0-9 : a >= 65 && a <= 70 ? a - 55 // A-F : a >= 97 && a <= 102 ? a - 87 // a-f : -1; } /** * Reads an alphanumeric + underscore name from the source. * * [_A-Za-z][_0-9A-Za-z]* */ function readName(source, start, line, col, prev) { var body = source.body; var bodyLength = body.length; var position = start + 1; var code = 0; while (position !== bodyLength && (code = charCodeAt.call(body, position)) !== null && (code === 95 || // _ code >= 48 && code <= 57 || // 0-9 code >= 65 && code <= 90 || // A-Z code >= 97 && code <= 122) // a-z ) { ++position; } return new Tok(TokenKind.NAME, start, position, line, col, prev, slice.call(body, start, position)); } /***/ }), /***/ "CexW": /*!*************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/constants.js ***! \*************************************************************/ /*! exports provided: INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER, INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER, USER_AGENT_HEADER */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER", function() { return INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER", function() { return INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "USER_AGENT_HEADER", function() { return USER_AGENT_HEADER; }); /* * Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ /** * This Symbol is used to reference an internal-only PubSub provider that * is used for AppSync/GraphQL subscriptions in the API category. */ var hasSymbol = typeof Symbol !== 'undefined' && typeof Symbol.for === 'function'; var INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER = hasSymbol ? Symbol.for('INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER') : '@@INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER'; var INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER = hasSymbol ? Symbol.for('INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER') : '@@INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER'; var USER_AGENT_HEADER = 'x-amz-user-agent'; //# sourceMappingURL=constants.js.map /***/ }), /***/ "Cfvw": /*!****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/from.js ***! \****************************************************************/ /*! exports provided: from */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "from", function() { return from; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeTo */ "SeVD"); /* harmony import */ var _scheduled_scheduled__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../scheduled/scheduled */ "7HRe"); function from(input, scheduler) { if (!scheduler) { if (input instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]) { return input; } return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](Object(_util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__["subscribeTo"])(input)); } else { return Object(_scheduled_scheduled__WEBPACK_IMPORTED_MODULE_2__["scheduled"])(input, scheduler); } } //# sourceMappingURL=from.js.map /***/ }), /***/ "CgaS": /*!**********************************************!*\ !*** ./node_modules/axios/lib/core/Axios.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./../utils */ "xTJ+"); var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "MLWZ"); var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "9rSQ"); var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "UnBK"); var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "SntB"); /** * Create a new instance of Axios * * @param {Object} instanceConfig The default config for the instance */ function Axios(instanceConfig) { this.defaults = instanceConfig; this.interceptors = { request: new InterceptorManager(), response: new InterceptorManager() }; } /** * Dispatch a request * * @param {Object} config The config specific for this request (merged with this.defaults) */ Axios.prototype.request = function request(config) { /*eslint no-param-reassign:0*/ // Allow for axios('example/url'[, config]) a la fetch API if (typeof config === 'string') { config = arguments[1] || {}; config.url = arguments[0]; } else { config = config || {}; } config = mergeConfig(this.defaults, config); config.method = config.method ? config.method.toLowerCase() : 'get'; // Hook up interceptors middleware var chain = [dispatchRequest, undefined]; var promise = Promise.resolve(config); this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { chain.unshift(interceptor.fulfilled, interceptor.rejected); }); this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { chain.push(interceptor.fulfilled, interceptor.rejected); }); while (chain.length) { promise = promise.then(chain.shift(), chain.shift()); } return promise; }; Axios.prototype.getUri = function getUri(config) { config = mergeConfig(this.defaults, config); return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); }; // Provide aliases for supported request methods utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { /*eslint func-names:0*/ Axios.prototype[method] = function(url, config) { return this.request(utils.merge(config || {}, { method: method, url: url })); }; }); utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { /*eslint func-names:0*/ Axios.prototype[method] = function(url, data, config) { return this.request(utils.merge(config || {}, { method: method, url: url, data: data })); }; }); module.exports = Axios; /***/ }), /***/ "CidY": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetBucketVersioningCommand.js ***! \****************************************************************************************/ /*! exports provided: GetBucketVersioningCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBucketVersioningCommand", function() { return GetBucketVersioningCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetBucketVersioningCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetBucketVersioningCommand, _super); // Start section: command_properties // End section: command_properties function GetBucketVersioningCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetBucketVersioningCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketVersioningRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketVersioningOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetBucketVersioningCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetBucketVersioningCommand"])(input, context); }; GetBucketVersioningCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetBucketVersioningCommand"])(output, context); }; return GetBucketVersioningCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetBucketVersioningCommand.js.map /***/ }), /***/ "CmD9": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/DetectKeyPhrasesCommand.js ***! \*********************************************************************************************/ /*! exports provided: DetectKeyPhrasesCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectKeyPhrasesCommand", function() { return DetectKeyPhrasesCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DetectKeyPhrasesCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DetectKeyPhrasesCommand, _super); // Start section: command_properties // End section: command_properties function DetectKeyPhrasesCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DetectKeyPhrasesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DetectKeyPhrasesRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DetectKeyPhrasesResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DetectKeyPhrasesCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DetectKeyPhrasesCommand"])(input, context); }; DetectKeyPhrasesCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DetectKeyPhrasesCommand"])(output, context); }; return DetectKeyPhrasesCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DetectKeyPhrasesCommand.js.map /***/ }), /***/ "CoXs": /*!*******************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-firehose/dist/es/runtimeConfig.shared.js ***! \*******************************************************************************/ /*! exports provided: ClientSharedValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientSharedValues", function() { return ClientSharedValues; }); /* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "bUBy"); var ClientSharedValues = { apiVersion: "2015-08-04", disableHostPrefix: false, regionInfoProvider: _endpoints__WEBPACK_IMPORTED_MODULE_0__["defaultRegionInfoProvider"], signingName: "firehose", }; //# sourceMappingURL=runtimeConfig.shared.js.map /***/ }), /***/ "CoaD": /*!************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/SplitShardCommand.js ***! \************************************************************************************/ /*! exports provided: SplitShardCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SplitShardCommand", function() { return SplitShardCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var SplitShardCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SplitShardCommand, _super); // Start section: command_properties // End section: command_properties function SplitShardCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } SplitShardCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["SplitShardInput"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; SplitShardCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1SplitShardCommand"])(input, context); }; SplitShardCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1SplitShardCommand"])(output, context); }; return SplitShardCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=SplitShardCommand.js.map /***/ }), /***/ "CqXF": /*!****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/mapTo.js ***! \****************************************************************/ /*! exports provided: mapTo */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapTo", function() { return mapTo; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); function mapTo(value) { return (source) => source.lift(new MapToOperator(value)); } class MapToOperator { constructor(value) { this.value = value; } call(subscriber, source) { return source.subscribe(new MapToSubscriber(subscriber, this.value)); } } class MapToSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, value) { super(destination); this.value = value; } _next(x) { this.destination.next(this.value); } } //# sourceMappingURL=mapTo.js.map /***/ }), /***/ "CsPX": /*!***********************************************************!*\ !*** ./node_modules/@aws-sdk/md5-js/dist/es/constants.js ***! \***********************************************************/ /*! exports provided: BLOCK_SIZE, DIGEST_LENGTH, INIT */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BLOCK_SIZE", function() { return BLOCK_SIZE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DIGEST_LENGTH", function() { return DIGEST_LENGTH; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INIT", function() { return INIT; }); /** * @internal */ var BLOCK_SIZE = 64; /** * @internal */ var DIGEST_LENGTH = 16; /** * @internal */ var INIT = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476]; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE1BQU0sQ0FBQyxJQUFNLFVBQVUsR0FBRyxFQUFFLENBQUM7QUFFN0I7O0dBRUc7QUFDSCxNQUFNLENBQUMsSUFBTSxhQUFhLEdBQUcsRUFBRSxDQUFDO0FBRWhDOztHQUVHO0FBQ0gsTUFBTSxDQUFDLElBQU0sSUFBSSxHQUFHLENBQUMsVUFBVSxFQUFFLFVBQVUsRUFBRSxVQUFVLEVBQUUsVUFBVSxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBpbnRlcm5hbFxuICovXG5leHBvcnQgY29uc3QgQkxPQ0tfU0laRSA9IDY0O1xuXG4vKipcbiAqIEBpbnRlcm5hbFxuICovXG5leHBvcnQgY29uc3QgRElHRVNUX0xFTkdUSCA9IDE2O1xuXG4vKipcbiAqIEBpbnRlcm5hbFxuICovXG5leHBvcnQgY29uc3QgSU5JVCA9IFsweDY3NDUyMzAxLCAweGVmY2RhYjg5LCAweDk4YmFkY2ZlLCAweDEwMzI1NDc2XTtcbiJdfQ== /***/ }), /***/ "Cwc5": /*!*******************************************!*\ !*** ./node_modules/lodash/_getNative.js ***! \*******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "NKxu"), getValue = __webpack_require__(/*! ./_getValue */ "Npjl"); /** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = getValue(object, key); return baseIsNative(value) ? value : undefined; } module.exports = getNative; /***/ }), /***/ "CxY0": /*!*********************************!*\ !*** ./node_modules/url/url.js ***! \*********************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. var punycode = __webpack_require__(/*! punycode */ "rWzI"); var util = __webpack_require__(/*! ./util */ "Nehr"); exports.parse = urlParse; exports.resolve = urlResolve; exports.resolveObject = urlResolveObject; exports.format = urlFormat; exports.Url = Url; function Url() { this.protocol = null; this.slashes = null; this.auth = null; this.host = null; this.port = null; this.hostname = null; this.hash = null; this.search = null; this.query = null; this.pathname = null; this.path = null; this.href = null; } // Reference: RFC 3986, RFC 1808, RFC 2396 // define these here so at least they only have to be // compiled once on the first module load. var protocolPattern = /^([a-z0-9.+-]+:)/i, portPattern = /:[0-9]*$/, // Special case for a simple path URL simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, // RFC 2396: characters reserved for delimiting URLs. // We actually just auto-escape these. delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'], // RFC 2396: characters not allowed for various reasons. unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims), // Allowed by RFCs, but cause of XSS attacks. Always escape these. autoEscape = ['\''].concat(unwise), // Characters that are never ever allowed in a hostname. // Note that any invalid chars are also handled, but these // are the ones that are *expected* to be seen, so we fast-path // them. nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape), hostEndingChars = ['/', '?', '#'], hostnameMaxLen = 255, hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/, hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, // protocols that can allow "unsafe" and "unwise" chars. unsafeProtocol = { 'javascript': true, 'javascript:': true }, // protocols that never have a hostname. hostlessProtocol = { 'javascript': true, 'javascript:': true }, // protocols that always contain a // bit. slashedProtocol = { 'http': true, 'https': true, 'ftp': true, 'gopher': true, 'file': true, 'http:': true, 'https:': true, 'ftp:': true, 'gopher:': true, 'file:': true }, querystring = __webpack_require__(/*! querystring */ "r8II"); function urlParse(url, parseQueryString, slashesDenoteHost) { if (url && util.isObject(url) && url instanceof Url) return url; var u = new Url; u.parse(url, parseQueryString, slashesDenoteHost); return u; } Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { if (!util.isString(url)) { throw new TypeError("Parameter 'url' must be a string, not " + typeof url); } // Copy chrome, IE, opera backslash-handling behavior. // Back slashes before the query string get converted to forward slashes // See: https://code.google.com/p/chromium/issues/detail?id=25916 var queryIndex = url.indexOf('?'), splitter = (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#', uSplit = url.split(splitter), slashRegex = /\\/g; uSplit[0] = uSplit[0].replace(slashRegex, '/'); url = uSplit.join(splitter); var rest = url; // trim before proceeding. // This is to support parse stuff like " http://foo.com \n" rest = rest.trim(); if (!slashesDenoteHost && url.split('#').length === 1) { // Try fast path regexp var simplePath = simplePathPattern.exec(rest); if (simplePath) { this.path = rest; this.href = rest; this.pathname = simplePath[1]; if (simplePath[2]) { this.search = simplePath[2]; if (parseQueryString) { this.query = querystring.parse(this.search.substr(1)); } else { this.query = this.search.substr(1); } } else if (parseQueryString) { this.search = ''; this.query = {}; } return this; } } var proto = protocolPattern.exec(rest); if (proto) { proto = proto[0]; var lowerProto = proto.toLowerCase(); this.protocol = lowerProto; rest = rest.substr(proto.length); } // figure out if it's got a host // user@server is *always* interpreted as a hostname, and url // resolution will treat //foo/bar as host=foo,path=bar because that's // how the browser resolves relative URLs. if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) { var slashes = rest.substr(0, 2) === '//'; if (slashes && !(proto && hostlessProtocol[proto])) { rest = rest.substr(2); this.slashes = true; } } if (!hostlessProtocol[proto] && (slashes || (proto && !slashedProtocol[proto]))) { // there's a hostname. // the first instance of /, ?, ;, or # ends the host. // // If there is an @ in the hostname, then non-host chars *are* allowed // to the left of the last @ sign, unless some host-ending character // comes *before* the @-sign. // URLs are obnoxious. // // ex: // http://a@b@c/ => user:a@b host:c // http://a@b?@c => user:a host:c path:/?@c // v0.12 TODO(isaacs): This is not quite how Chrome does things. // Review our test case against browsers more comprehensively. // find the first instance of any hostEndingChars var hostEnd = -1; for (var i = 0; i < hostEndingChars.length; i++) { var hec = rest.indexOf(hostEndingChars[i]); if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) hostEnd = hec; } // at this point, either we have an explicit point where the // auth portion cannot go past, or the last @ char is the decider. var auth, atSign; if (hostEnd === -1) { // atSign can be anywhere. atSign = rest.lastIndexOf('@'); } else { // atSign must be in auth portion. // http://a@b/c@d => host:b auth:a path:/c@d atSign = rest.lastIndexOf('@', hostEnd); } // Now we have a portion which is definitely the auth. // Pull that off. if (atSign !== -1) { auth = rest.slice(0, atSign); rest = rest.slice(atSign + 1); this.auth = decodeURIComponent(auth); } // the host is the remaining to the left of the first non-host char hostEnd = -1; for (var i = 0; i < nonHostChars.length; i++) { var hec = rest.indexOf(nonHostChars[i]); if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) hostEnd = hec; } // if we still have not hit it, then the entire thing is a host. if (hostEnd === -1) hostEnd = rest.length; this.host = rest.slice(0, hostEnd); rest = rest.slice(hostEnd); // pull out port. this.parseHost(); // we've indicated that there is a hostname, // so even if it's empty, it has to be present. this.hostname = this.hostname || ''; // if hostname begins with [ and ends with ] // assume that it's an IPv6 address. var ipv6Hostname = this.hostname[0] === '[' && this.hostname[this.hostname.length - 1] === ']'; // validate a little. if (!ipv6Hostname) { var hostparts = this.hostname.split(/\./); for (var i = 0, l = hostparts.length; i < l; i++) { var part = hostparts[i]; if (!part) continue; if (!part.match(hostnamePartPattern)) { var newpart = ''; for (var j = 0, k = part.length; j < k; j++) { if (part.charCodeAt(j) > 127) { // we replace non-ASCII char with a temporary placeholder // we need this to make sure size of hostname is not // broken by replacing non-ASCII by nothing newpart += 'x'; } else { newpart += part[j]; } } // we test again with ASCII char only if (!newpart.match(hostnamePartPattern)) { var validParts = hostparts.slice(0, i); var notHost = hostparts.slice(i + 1); var bit = part.match(hostnamePartStart); if (bit) { validParts.push(bit[1]); notHost.unshift(bit[2]); } if (notHost.length) { rest = '/' + notHost.join('.') + rest; } this.hostname = validParts.join('.'); break; } } } } if (this.hostname.length > hostnameMaxLen) { this.hostname = ''; } else { // hostnames are always lower case. this.hostname = this.hostname.toLowerCase(); } if (!ipv6Hostname) { // IDNA Support: Returns a punycoded representation of "domain". // It only converts parts of the domain name that // have non-ASCII characters, i.e. it doesn't matter if // you call it with a domain that already is ASCII-only. this.hostname = punycode.toASCII(this.hostname); } var p = this.port ? ':' + this.port : ''; var h = this.hostname || ''; this.host = h + p; this.href += this.host; // strip [ and ] from the hostname // the host field still retains them, though if (ipv6Hostname) { this.hostname = this.hostname.substr(1, this.hostname.length - 2); if (rest[0] !== '/') { rest = '/' + rest; } } } // now rest is set to the post-host stuff. // chop off any delim chars. if (!unsafeProtocol[lowerProto]) { // First, make 100% sure that any "autoEscape" chars get // escaped, even if encodeURIComponent doesn't think they // need to be. for (var i = 0, l = autoEscape.length; i < l; i++) { var ae = autoEscape[i]; if (rest.indexOf(ae) === -1) continue; var esc = encodeURIComponent(ae); if (esc === ae) { esc = escape(ae); } rest = rest.split(ae).join(esc); } } // chop off from the tail first. var hash = rest.indexOf('#'); if (hash !== -1) { // got a fragment string. this.hash = rest.substr(hash); rest = rest.slice(0, hash); } var qm = rest.indexOf('?'); if (qm !== -1) { this.search = rest.substr(qm); this.query = rest.substr(qm + 1); if (parseQueryString) { this.query = querystring.parse(this.query); } rest = rest.slice(0, qm); } else if (parseQueryString) { // no query string, but parseQueryString still requested this.search = ''; this.query = {}; } if (rest) this.pathname = rest; if (slashedProtocol[lowerProto] && this.hostname && !this.pathname) { this.pathname = '/'; } //to support http.request if (this.pathname || this.search) { var p = this.pathname || ''; var s = this.search || ''; this.path = p + s; } // finally, reconstruct the href based on what has been validated. this.href = this.format(); return this; }; // format a parsed object into a url string function urlFormat(obj) { // ensure it's an object, and not a string url. // If it's an obj, this is a no-op. // this way, you can call url_format() on strings // to clean up potentially wonky urls. if (util.isString(obj)) obj = urlParse(obj); if (!(obj instanceof Url)) return Url.prototype.format.call(obj); return obj.format(); } Url.prototype.format = function() { var auth = this.auth || ''; if (auth) { auth = encodeURIComponent(auth); auth = auth.replace(/%3A/i, ':'); auth += '@'; } var protocol = this.protocol || '', pathname = this.pathname || '', hash = this.hash || '', host = false, query = ''; if (this.host) { host = auth + this.host; } else if (this.hostname) { host = auth + (this.hostname.indexOf(':') === -1 ? this.hostname : '[' + this.hostname + ']'); if (this.port) { host += ':' + this.port; } } if (this.query && util.isObject(this.query) && Object.keys(this.query).length) { query = querystring.stringify(this.query); } var search = this.search || (query && ('?' + query)) || ''; if (protocol && protocol.substr(-1) !== ':') protocol += ':'; // only the slashedProtocols get the //. Not mailto:, xmpp:, etc. // unless they had them to begin with. if (this.slashes || (!protocol || slashedProtocol[protocol]) && host !== false) { host = '//' + (host || ''); if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname; } else if (!host) { host = ''; } if (hash && hash.charAt(0) !== '#') hash = '#' + hash; if (search && search.charAt(0) !== '?') search = '?' + search; pathname = pathname.replace(/[?#]/g, function(match) { return encodeURIComponent(match); }); search = search.replace('#', '%23'); return protocol + host + pathname + search + hash; }; function urlResolve(source, relative) { return urlParse(source, false, true).resolve(relative); } Url.prototype.resolve = function(relative) { return this.resolveObject(urlParse(relative, false, true)).format(); }; function urlResolveObject(source, relative) { if (!source) return relative; return urlParse(source, false, true).resolveObject(relative); } Url.prototype.resolveObject = function(relative) { if (util.isString(relative)) { var rel = new Url(); rel.parse(relative, false, true); relative = rel; } var result = new Url(); var tkeys = Object.keys(this); for (var tk = 0; tk < tkeys.length; tk++) { var tkey = tkeys[tk]; result[tkey] = this[tkey]; } // hash is always overridden, no matter what. // even href="" will remove it. result.hash = relative.hash; // if the relative url is empty, then there's nothing left to do here. if (relative.href === '') { result.href = result.format(); return result; } // hrefs like //foo/bar always cut to the protocol. if (relative.slashes && !relative.protocol) { // take everything except the protocol from relative var rkeys = Object.keys(relative); for (var rk = 0; rk < rkeys.length; rk++) { var rkey = rkeys[rk]; if (rkey !== 'protocol') result[rkey] = relative[rkey]; } //urlParse appends trailing / to urls like http://www.example.com if (slashedProtocol[result.protocol] && result.hostname && !result.pathname) { result.path = result.pathname = '/'; } result.href = result.format(); return result; } if (relative.protocol && relative.protocol !== result.protocol) { // if it's a known url protocol, then changing // the protocol does weird things // first, if it's not file:, then we MUST have a host, // and if there was a path // to begin with, then we MUST have a path. // if it is file:, then the host is dropped, // because that's known to be hostless. // anything else is assumed to be absolute. if (!slashedProtocol[relative.protocol]) { var keys = Object.keys(relative); for (var v = 0; v < keys.length; v++) { var k = keys[v]; result[k] = relative[k]; } result.href = result.format(); return result; } result.protocol = relative.protocol; if (!relative.host && !hostlessProtocol[relative.protocol]) { var relPath = (relative.pathname || '').split('/'); while (relPath.length && !(relative.host = relPath.shift())); if (!relative.host) relative.host = ''; if (!relative.hostname) relative.hostname = ''; if (relPath[0] !== '') relPath.unshift(''); if (relPath.length < 2) relPath.unshift(''); result.pathname = relPath.join('/'); } else { result.pathname = relative.pathname; } result.search = relative.search; result.query = relative.query; result.host = relative.host || ''; result.auth = relative.auth; result.hostname = relative.hostname || relative.host; result.port = relative.port; // to support http.request if (result.pathname || result.search) { var p = result.pathname || ''; var s = result.search || ''; result.path = p + s; } result.slashes = result.slashes || relative.slashes; result.href = result.format(); return result; } var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'), isRelAbs = ( relative.host || relative.pathname && relative.pathname.charAt(0) === '/' ), mustEndAbs = (isRelAbs || isSourceAbs || (result.host && relative.pathname)), removeAllDots = mustEndAbs, srcPath = result.pathname && result.pathname.split('/') || [], relPath = relative.pathname && relative.pathname.split('/') || [], psychotic = result.protocol && !slashedProtocol[result.protocol]; // if the url is a non-slashed url, then relative // links like ../.. should be able // to crawl up to the hostname, as well. This is strange. // result.protocol has already been set by now. // Later on, put the first path part into the host field. if (psychotic) { result.hostname = ''; result.port = null; if (result.host) { if (srcPath[0] === '') srcPath[0] = result.host; else srcPath.unshift(result.host); } result.host = ''; if (relative.protocol) { relative.hostname = null; relative.port = null; if (relative.host) { if (relPath[0] === '') relPath[0] = relative.host; else relPath.unshift(relative.host); } relative.host = null; } mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === ''); } if (isRelAbs) { // it's absolute. result.host = (relative.host || relative.host === '') ? relative.host : result.host; result.hostname = (relative.hostname || relative.hostname === '') ? relative.hostname : result.hostname; result.search = relative.search; result.query = relative.query; srcPath = relPath; // fall through to the dot-handling below. } else if (relPath.length) { // it's relative // throw away the existing file, and take the new path instead. if (!srcPath) srcPath = []; srcPath.pop(); srcPath = srcPath.concat(relPath); result.search = relative.search; result.query = relative.query; } else if (!util.isNullOrUndefined(relative.search)) { // just pull out the search. // like href='?foo'. // Put this after the other two cases because it simplifies the booleans if (psychotic) { result.hostname = result.host = srcPath.shift(); //occationaly the auth can get stuck only in host //this especially happens in cases like //url.resolveObject('mailto:local1@domain1', 'local2@domain2') var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false; if (authInHost) { result.auth = authInHost.shift(); result.host = result.hostname = authInHost.shift(); } } result.search = relative.search; result.query = relative.query; //to support http.request if (!util.isNull(result.pathname) || !util.isNull(result.search)) { result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : ''); } result.href = result.format(); return result; } if (!srcPath.length) { // no path at all. easy. // we've already handled the other stuff above. result.pathname = null; //to support http.request if (result.search) { result.path = '/' + result.search; } else { result.path = null; } result.href = result.format(); return result; } // if a url ENDs in . or .., then it must get a trailing slash. // however, if it ends in anything else non-slashy, // then it must NOT get a trailing slash. var last = srcPath.slice(-1)[0]; var hasTrailingSlash = ( (result.host || relative.host || srcPath.length > 1) && (last === '.' || last === '..') || last === ''); // strip single dots, resolve double dots to parent dir // if the path tries to go above the root, `up` ends up > 0 var up = 0; for (var i = srcPath.length; i >= 0; i--) { last = srcPath[i]; if (last === '.') { srcPath.splice(i, 1); } else if (last === '..') { srcPath.splice(i, 1); up++; } else if (up) { srcPath.splice(i, 1); up--; } } // if the path is allowed to go above the root, restore leading ..s if (!mustEndAbs && !removeAllDots) { for (; up--; up) { srcPath.unshift('..'); } } if (mustEndAbs && srcPath[0] !== '' && (!srcPath[0] || srcPath[0].charAt(0) !== '/')) { srcPath.unshift(''); } if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) { srcPath.push(''); } var isAbsolute = srcPath[0] === '' || (srcPath[0] && srcPath[0].charAt(0) === '/'); // put the host back if (psychotic) { result.hostname = result.host = isAbsolute ? '' : srcPath.length ? srcPath.shift() : ''; //occationaly the auth can get stuck only in host //this especially happens in cases like //url.resolveObject('mailto:local1@domain1', 'local2@domain2') var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false; if (authInHost) { result.auth = authInHost.shift(); result.host = result.hostname = authInHost.shift(); } } mustEndAbs = mustEndAbs || (result.host && srcPath.length); if (mustEndAbs && !isAbsolute) { srcPath.unshift(''); } if (!srcPath.length) { result.pathname = null; result.path = null; } else { result.pathname = srcPath.join('/'); } //to support request.http if (!util.isNull(result.pathname) || !util.isNull(result.search)) { result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : ''); } result.auth = relative.auth || result.auth; result.slashes = result.slashes || relative.slashes; result.href = result.format(); return result; }; Url.prototype.parseHost = function() { var host = this.host; var port = portPattern.exec(host); if (port) { port = port[0]; if (port !== ':') { this.port = port.substr(1); } host = host.substr(0, host.length - port.length); } if (host) this.hostname = host; }; /***/ }), /***/ "D0XW": /*!****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/scheduler/async.js ***! \****************************************************************/ /*! exports provided: asyncScheduler, async */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asyncScheduler", function() { return asyncScheduler; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "async", function() { return async; }); /* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncAction */ "3N8a"); /* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AsyncScheduler */ "IjjT"); const asyncScheduler = new _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__["AsyncScheduler"](_AsyncAction__WEBPACK_IMPORTED_MODULE_0__["AsyncAction"]); const async = asyncScheduler; //# sourceMappingURL=async.js.map /***/ }), /***/ "D38H": /*!****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/DetectModerationLabelsCommand.js ***! \****************************************************************************************************/ /*! exports provided: DetectModerationLabelsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectModerationLabelsCommand", function() { return DetectModerationLabelsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DetectModerationLabelsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DetectModerationLabelsCommand, _super); // Start section: command_properties // End section: command_properties function DetectModerationLabelsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DetectModerationLabelsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DetectModerationLabelsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DetectModerationLabelsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DetectModerationLabelsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DetectModerationLabelsCommand"])(input, context); }; DetectModerationLabelsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DetectModerationLabelsCommand"])(output, context); }; return DetectModerationLabelsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DetectModerationLabelsCommand.js.map /***/ }), /***/ "D5K3": /*!********************************************************!*\ !*** ./node_modules/graphql/jsutils/promiseReduce.mjs ***! \********************************************************/ /*! exports provided: default */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return promiseReduce; }); /* harmony import */ var _isPromise__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isPromise */ "z/Nw"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Similar to Array.prototype.reduce(), however the reducing callback may return * a Promise, in which case reduction will continue after each promise resolves. * * If the callback does not return a Promise, then this function will also not * return a Promise. */ function promiseReduce(values, callback, initialValue) { return values.reduce(function (previous, value) { return Object(_isPromise__WEBPACK_IMPORTED_MODULE_0__["default"])(previous) ? previous.then(function (resolved) { return callback(resolved, value); }) : callback(previous, value); }, initialValue); } /***/ }), /***/ "D9Dy": /*!*********************************************************************************************************!*\ !*** ./node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIInterpretPredictionsProvider.js ***! \*********************************************************************************************************/ /*! exports provided: AmazonAIInterpretPredictionsProvider, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmazonAIInterpretPredictionsProvider", function() { return AmazonAIInterpretPredictionsProvider; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _types_Providers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../types/Providers */ "2Q8h"); /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../types */ "Rw49"); /* harmony import */ var _aws_sdk_client_comprehend__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/client-comprehend */ "vIq1"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var AmazonAIInterpretPredictionsProvider = /** @class */ (function (_super) { __extends(AmazonAIInterpretPredictionsProvider, _super); function AmazonAIInterpretPredictionsProvider() { return _super.call(this) || this; } AmazonAIInterpretPredictionsProvider.prototype.getProviderName = function () { return 'AmazonAIInterpretPredictionsProvider'; }; AmazonAIInterpretPredictionsProvider.prototype.interpretText = function (input) { var _this = this; return new Promise(function (res, rej) { return __awaiter(_this, void 0, void 0, function () { var credentials, _a, _b, _c, region, _d, _e, interpretTypeConfig, _f, _g, _h, _j, text, _k, interpretType, _l, _m, _o, language, comprehendClient, doAll, languagePromise, languageDetectionParams, entitiesPromise, LanguageCode, _p, entitiesDetectionParams, sentimentPromise, LanguageCode, _q, sentimentParams, syntaxPromise, LanguageCode, _r, syntaxParams, keyPhrasesPromise, LanguageCode, _s, keyPhrasesParams, results, err_1; return __generator(this, function (_t) { switch (_t.label) { case 0: return [4 /*yield*/, _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].get()]; case 1: credentials = _t.sent(); if (!credentials) return [2 /*return*/, rej('No credentials')]; _a = this._config.interpretText, _b = _a === void 0 ? {} : _a, _c = _b.region, region = _c === void 0 ? '' : _c, _d = _b.defaults, _e = (_d === void 0 ? {} : _d).type, interpretTypeConfig = _e === void 0 ? '' : _e; _f = (input).text, _g = _f === void 0 ? {} : _f, _h = _g.source, _j = (_h === void 0 ? {} : _h).text, text = _j === void 0 ? '' : _j, _k = _g.type, interpretType = _k === void 0 ? interpretTypeConfig : _k; _l = (input).text, _m = (_l === void 0 ? {} : _l).source, _o = (_m === void 0 ? {} : _m).language, language = _o === void 0 ? undefined : _o; comprehendClient = new _aws_sdk_client_comprehend__WEBPACK_IMPORTED_MODULE_3__["ComprehendClient"]({ credentials: credentials, region: region, customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["getAmplifyUserAgent"])(), }); doAll = interpretType === _types__WEBPACK_IMPORTED_MODULE_2__["InterpretTextCategories"].ALL; if (doAll || interpretType === _types__WEBPACK_IMPORTED_MODULE_2__["InterpretTextCategories"].LANGUAGE) { languageDetectionParams = { Text: text, }; languagePromise = this.detectLanguage(languageDetectionParams, comprehendClient); } if (!(doAll || interpretType === _types__WEBPACK_IMPORTED_MODULE_2__["InterpretTextCategories"].ENTITIES)) return [3 /*break*/, 4]; _p = language; if (_p) return [3 /*break*/, 3]; return [4 /*yield*/, languagePromise]; case 2: _p = (_t.sent()); _t.label = 3; case 3: LanguageCode = _p; if (!LanguageCode) { return [2 /*return*/, rej('language code is required on source for this selection')]; } entitiesDetectionParams = { Text: text, LanguageCode: LanguageCode, }; entitiesPromise = this.detectEntities(entitiesDetectionParams, comprehendClient); _t.label = 4; case 4: if (!(doAll || interpretType === _types__WEBPACK_IMPORTED_MODULE_2__["InterpretTextCategories"].SENTIMENT)) return [3 /*break*/, 7]; _q = language; if (_q) return [3 /*break*/, 6]; return [4 /*yield*/, languagePromise]; case 5: _q = (_t.sent()); _t.label = 6; case 6: LanguageCode = _q; if (!LanguageCode) { return [2 /*return*/, rej('language code is required on source for this selection')]; } sentimentParams = { Text: text, LanguageCode: LanguageCode, }; sentimentPromise = this.detectSentiment(sentimentParams, comprehendClient); _t.label = 7; case 7: if (!(doAll || interpretType === _types__WEBPACK_IMPORTED_MODULE_2__["InterpretTextCategories"].SYNTAX)) return [3 /*break*/, 10]; _r = language; if (_r) return [3 /*break*/, 9]; return [4 /*yield*/, languagePromise]; case 8: _r = (_t.sent()); _t.label = 9; case 9: LanguageCode = _r; if (!LanguageCode) { return [2 /*return*/, rej('language code is required on source for this selection')]; } syntaxParams = { Text: text, LanguageCode: LanguageCode, }; syntaxPromise = this.detectSyntax(syntaxParams, comprehendClient); _t.label = 10; case 10: if (!(doAll || interpretType === _types__WEBPACK_IMPORTED_MODULE_2__["InterpretTextCategories"].KEY_PHRASES)) return [3 /*break*/, 13]; _s = language; if (_s) return [3 /*break*/, 12]; return [4 /*yield*/, languagePromise]; case 11: _s = (_t.sent()); _t.label = 12; case 12: LanguageCode = _s; if (!LanguageCode) { return [2 /*return*/, rej('language code is required on source for this selection')]; } keyPhrasesParams = { Text: text, LanguageCode: LanguageCode, }; keyPhrasesPromise = this.detectKeyPhrases(keyPhrasesParams, comprehendClient); _t.label = 13; case 13: _t.trys.push([13, 15, , 16]); return [4 /*yield*/, Promise.all([ languagePromise, entitiesPromise, sentimentPromise, syntaxPromise, keyPhrasesPromise, ])]; case 14: results = _t.sent(); res({ textInterpretation: { keyPhrases: results[4] || [], language: results[0] || '', sentiment: results[2], syntax: results[3] || [], textEntities: results[1] || [], }, }); return [3 /*break*/, 16]; case 15: err_1 = _t.sent(); rej(err_1); return [3 /*break*/, 16]; case 16: return [2 /*return*/]; } }); }); }); }; AmazonAIInterpretPredictionsProvider.prototype.detectKeyPhrases = function (params, comprehend) { return __awaiter(this, void 0, void 0, function () { var detectKeyPhrasesCommand, data, _a, KeyPhrases, err_2; return __generator(this, function (_b) { switch (_b.label) { case 0: _b.trys.push([0, 2, , 3]); detectKeyPhrasesCommand = new _aws_sdk_client_comprehend__WEBPACK_IMPORTED_MODULE_3__["DetectKeyPhrasesCommand"](params); return [4 /*yield*/, comprehend.send(detectKeyPhrasesCommand)]; case 1: data = _b.sent(); _a = (data || {}).KeyPhrases, KeyPhrases = _a === void 0 ? [] : _a; return [2 /*return*/, KeyPhrases.map(function (_a) { var text = _a.Text; return { text: text }; })]; case 2: err_2 = _b.sent(); if (err_2.code === 'AccessDeniedException') { Promise.reject('Not authorized, did you enable Interpret Text on predictions category Amplify CLI? try: ' + 'amplify predictions add'); } else { Promise.reject(err_2.message); } return [3 /*break*/, 3]; case 3: return [2 /*return*/]; } }); }); }; AmazonAIInterpretPredictionsProvider.prototype.detectSyntax = function (params, comprehend) { return __awaiter(this, void 0, void 0, function () { var detectSyntaxCommand, data, _a, SyntaxTokens, err_3; return __generator(this, function (_b) { switch (_b.label) { case 0: _b.trys.push([0, 2, , 3]); detectSyntaxCommand = new _aws_sdk_client_comprehend__WEBPACK_IMPORTED_MODULE_3__["DetectSyntaxCommand"](params); return [4 /*yield*/, comprehend.send(detectSyntaxCommand)]; case 1: data = _b.sent(); _a = (data || {}).SyntaxTokens, SyntaxTokens = _a === void 0 ? [] : _a; return [2 /*return*/, this.serializeSyntaxFromComprehend(SyntaxTokens)]; case 2: err_3 = _b.sent(); if (err_3.code === 'AccessDeniedException') { Promise.reject('Not authorized, did you enable Interpret Text on predictions category Amplify CLI? try: ' + 'amplify predictions add'); } else { Promise.reject(err_3.message); } return [3 /*break*/, 3]; case 3: return [2 /*return*/]; } }); }); }; AmazonAIInterpretPredictionsProvider.prototype.serializeSyntaxFromComprehend = function (tokens) { var response = []; if (tokens && Array.isArray(tokens)) { response = tokens.map(function (_a) { var _b = _a.Text, text = _b === void 0 ? '' : _b, _c = _a.PartOfSpeech, _d = (_c === void 0 ? {} : _c).Tag, syntax = _d === void 0 ? '' : _d; return { text: text, syntax: syntax }; }); } return response; }; AmazonAIInterpretPredictionsProvider.prototype.detectSentiment = function (params, comprehend) { return __awaiter(this, void 0, void 0, function () { var detectSentimentCommand, data, _a, _b, predominant, _c, _d, _e, positive, _f, negative, _g, neutral, _h, mixed, err_4; return __generator(this, function (_j) { switch (_j.label) { case 0: _j.trys.push([0, 2, , 3]); detectSentimentCommand = new _aws_sdk_client_comprehend__WEBPACK_IMPORTED_MODULE_3__["DetectSentimentCommand"](params); return [4 /*yield*/, comprehend.send(detectSentimentCommand)]; case 1: data = _j.sent(); _a = (data), _b = _a.Sentiment, predominant = _b === void 0 ? '' : _b, _c = _a.SentimentScore, _d = _c === void 0 ? {} : _c, _e = _d.Positive, positive = _e === void 0 ? 0 : _e, _f = _d.Negative, negative = _f === void 0 ? 0 : _f, _g = _d.Neutral, neutral = _g === void 0 ? 0 : _g, _h = _d.Mixed, mixed = _h === void 0 ? 0 : _h; return [2 /*return*/, { predominant: predominant, positive: positive, negative: negative, neutral: neutral, mixed: mixed }]; case 2: err_4 = _j.sent(); if (err_4.code === 'AccessDeniedException') { Promise.reject('Not authorized, did you enable Interpret Text on predictions category Amplify CLI? try: ' + 'amplify predictions add'); } else { Promise.reject(err_4.message); } return [3 /*break*/, 3]; case 3: return [2 /*return*/]; } }); }); }; AmazonAIInterpretPredictionsProvider.prototype.detectEntities = function (params, comprehend) { return __awaiter(this, void 0, void 0, function () { var detectEntitiesCommand, data, _a, Entities, err_5; return __generator(this, function (_b) { switch (_b.label) { case 0: _b.trys.push([0, 2, , 3]); detectEntitiesCommand = new _aws_sdk_client_comprehend__WEBPACK_IMPORTED_MODULE_3__["DetectEntitiesCommand"](params); return [4 /*yield*/, comprehend.send(detectEntitiesCommand)]; case 1: data = _b.sent(); _a = (data || {}).Entities, Entities = _a === void 0 ? [] : _a; return [2 /*return*/, this.serializeEntitiesFromComprehend(Entities)]; case 2: err_5 = _b.sent(); if (err_5.code === 'AccessDeniedException') { Promise.reject('Not authorized, did you enable Interpret Text on predictions category Amplify CLI? try: ' + 'amplify predictions add'); } else { Promise.reject(err_5.message); } return [3 /*break*/, 3]; case 3: return [2 /*return*/]; } }); }); }; AmazonAIInterpretPredictionsProvider.prototype.serializeEntitiesFromComprehend = function (data) { var response = []; if (data && Array.isArray(data)) { response = data.map(function (_a) { var type = _a.Type, text = _a.Text; return { type: type, text: text }; }); } return response; }; AmazonAIInterpretPredictionsProvider.prototype.detectLanguage = function (params, comprehend) { return __awaiter(this, void 0, void 0, function () { var detectDominantLanguageCommand, data, _a, _b, LanguageCode, err_6; return __generator(this, function (_c) { switch (_c.label) { case 0: _c.trys.push([0, 2, , 3]); detectDominantLanguageCommand = new _aws_sdk_client_comprehend__WEBPACK_IMPORTED_MODULE_3__["DetectDominantLanguageCommand"](params); return [4 /*yield*/, comprehend.send(detectDominantLanguageCommand)]; case 1: data = _c.sent(); _a = (data || {}).Languages, _b = __read(_a === void 0 ? [''] : _a, 1), LanguageCode = _b[0].LanguageCode; if (!LanguageCode) { Promise.reject('Language not detected'); } return [2 /*return*/, data.Languages[0].LanguageCode]; case 2: err_6 = _c.sent(); if (err_6.code === 'AccessDeniedException') { Promise.reject('Not authorized, did you enable Interpret Text on predictions category Amplify CLI? try: ' + 'amplify predictions add'); } else { Promise.reject(err_6.message); } return [3 /*break*/, 3]; case 3: return [2 /*return*/]; } }); }); }; return AmazonAIInterpretPredictionsProvider; }(_types_Providers__WEBPACK_IMPORTED_MODULE_1__["AbstractInterpretPredictionsProvider"])); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (AmazonAIInterpretPredictionsProvider); //# sourceMappingURL=AmazonAIInterpretPredictionsProvider.js.map /***/ }), /***/ "DBKc": /*!*******************************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-user-agent/dist/es/configurations.js ***! \*******************************************************************************/ /*! exports provided: resolveUserAgentConfig */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveUserAgentConfig", function() { return resolveUserAgentConfig; }); function resolveUserAgentConfig(input) { return input; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29uZmlndXJhdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZUEsTUFBTSxVQUFVLHNCQUFzQixDQUNwQyxLQUFvRDtJQUVwRCxPQUFPLEtBQUssQ0FBQztBQUNmLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFVzZXJBZ2VudElucHV0Q29uZmlnIHtcbiAgLyoqXG4gICAqIFRoZSBjdXN0b20gdXNlciBhZ2VudCBoZWFkZXIgdGhhdCB3b3VsZCBiZSBhcHBlbmRlZCB0byBkZWZhdWx0IG9uZVxuICAgKi9cbiAgY3VzdG9tVXNlckFnZW50Pzogc3RyaW5nO1xufVxuaW50ZXJmYWNlIFByZXZpb3VzbHlSZXNvbHZlZCB7XG4gIGRlZmF1bHRVc2VyQWdlbnQ6IHN0cmluZztcbiAgcnVudGltZTogc3RyaW5nO1xufVxuZXhwb3J0IGludGVyZmFjZSBVc2VyQWdlbnRSZXNvbHZlZENvbmZpZyB7XG4gIGRlZmF1bHRVc2VyQWdlbnQ6IHN0cmluZztcbiAgY3VzdG9tVXNlckFnZW50Pzogc3RyaW5nO1xuICBydW50aW1lOiBzdHJpbmc7XG59XG5leHBvcnQgZnVuY3Rpb24gcmVzb2x2ZVVzZXJBZ2VudENvbmZpZzxUPihcbiAgaW5wdXQ6IFQgJiBQcmV2aW91c2x5UmVzb2x2ZWQgJiBVc2VyQWdlbnRJbnB1dENvbmZpZ1xuKTogVCAmIFVzZXJBZ2VudFJlc29sdmVkQ29uZmlnIHtcbiAgcmV0dXJuIGlucHV0O1xufVxuIl19 /***/ }), /***/ "DCHX": /*!***************************************************************************************!*\ !*** ./node_modules/@aws-sdk/credential-provider-cognito-identity/dist/es/Storage.js ***! \***************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Storage.js.map /***/ }), /***/ "DDHx": /*!******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/pagination/ListEntityRecognizersPaginator.js ***! \******************************************************************************************************/ /*! exports provided: listEntityRecognizersPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "listEntityRecognizersPaginate", function() { return listEntityRecognizersPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Comprehend__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Comprehend */ "KcXj"); /* harmony import */ var _ComprehendClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ComprehendClient */ "8JFw"); /* harmony import */ var _commands_ListEntityRecognizersCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/ListEntityRecognizersCommand */ "fO6j"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_ListEntityRecognizersCommand__WEBPACK_IMPORTED_MODULE_3__["ListEntityRecognizersCommand"].bind.apply(_commands_ListEntityRecognizersCommand__WEBPACK_IMPORTED_MODULE_3__["ListEntityRecognizersCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.listEntityRecognizers.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function listEntityRecognizersPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function listEntityRecognizersPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Comprehend__WEBPACK_IMPORTED_MODULE_1__["Comprehend"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _ComprehendClient__WEBPACK_IMPORTED_MODULE_2__["ComprehendClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Comprehend | ComprehendClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=ListEntityRecognizersPaginator.js.map /***/ }), /***/ "DFAg": /*!******************************************************!*\ !*** ./node_modules/@aws-amplify/auth/lib/Errors.js ***! \******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* * Copyright 2019-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); var AuthErrorStrings_1 = __webpack_require__(/*! ./common/AuthErrorStrings */ "XrWX"); var logger = new core_1.ConsoleLogger('AuthError'); var AuthError = /** @class */ (function (_super) { __extends(AuthError, _super); function AuthError(type) { var _this = this; var _a = exports.authErrorMessages[type], message = _a.message, log = _a.log; _this = _super.call(this, message) || this; // Hack for making the custom error class work when transpiled to es5 // TODO: Delete the following 2 lines after we change the build target to >= es2015 _this.constructor = AuthError; Object.setPrototypeOf(_this, AuthError.prototype); _this.name = 'AuthError'; _this.log = log || message; logger.error(_this.log); return _this; } return AuthError; }(Error)); exports.AuthError = AuthError; var NoUserPoolError = /** @class */ (function (_super) { __extends(NoUserPoolError, _super); function NoUserPoolError(type) { var _this = _super.call(this, type) || this; // Hack for making the custom error class work when transpiled to es5 // TODO: Delete the following 2 lines after we change the build target to >= es2015 _this.constructor = NoUserPoolError; Object.setPrototypeOf(_this, NoUserPoolError.prototype); _this.name = 'NoUserPoolError'; return _this; } return NoUserPoolError; }(AuthError)); exports.NoUserPoolError = NoUserPoolError; exports.authErrorMessages = { noConfig: { message: AuthErrorStrings_1.AuthErrorStrings.DEFAULT_MSG, log: "\n Error: Amplify has not been configured correctly.\n This error is typically caused by one of the following scenarios:\n\n 1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point\n See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information\n \n 2. There might be multiple conflicting versions of aws-amplify or amplify packages in your node_modules.\n Try deleting your node_modules folder and reinstalling the dependencies with `yarn install`\n ", }, missingAuthConfig: { message: AuthErrorStrings_1.AuthErrorStrings.DEFAULT_MSG, log: "\n Error: Amplify has not been configured correctly. \n The configuration object is missing required auth properties. \n Did you run `amplify push` after adding auth via `amplify add auth`?\n See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information\n ", }, emptyUsername: { message: AuthErrorStrings_1.AuthErrorStrings.EMPTY_USERNAME, }, // TODO: should include a list of valid sign-in types invalidUsername: { message: AuthErrorStrings_1.AuthErrorStrings.INVALID_USERNAME, }, emptyPassword: { message: AuthErrorStrings_1.AuthErrorStrings.EMPTY_PASSWORD, }, emptyCode: { message: AuthErrorStrings_1.AuthErrorStrings.EMPTY_CODE, }, signUpError: { message: AuthErrorStrings_1.AuthErrorStrings.SIGN_UP_ERROR, log: 'The first parameter should either be non-null string or object', }, noMFA: { message: AuthErrorStrings_1.AuthErrorStrings.NO_MFA, }, invalidMFA: { message: AuthErrorStrings_1.AuthErrorStrings.INVALID_MFA, }, emptyChallengeResponse: { message: AuthErrorStrings_1.AuthErrorStrings.EMPTY_CHALLENGE, }, noUserSession: { message: AuthErrorStrings_1.AuthErrorStrings.NO_USER_SESSION, }, default: { message: AuthErrorStrings_1.AuthErrorStrings.DEFAULT_MSG, }, }; //# sourceMappingURL=Errors.js.map /***/ }), /***/ "DH7j": /*!*************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/isArray.js ***! \*************************************************************/ /*! exports provided: isArray */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isArray", function() { return isArray; }); const isArray = (() => Array.isArray || ((x) => x && typeof x.length === 'number'))(); //# sourceMappingURL=isArray.js.map /***/ }), /***/ "DLyB": /*!*******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/pagination/ListFacesPaginator.js ***! \*******************************************************************************************/ /*! exports provided: listFacesPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "listFacesPaginate", function() { return listFacesPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Rekognition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Rekognition */ "MjkZ"); /* harmony import */ var _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../RekognitionClient */ "YOij"); /* harmony import */ var _commands_ListFacesCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/ListFacesCommand */ "fZP1"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_ListFacesCommand__WEBPACK_IMPORTED_MODULE_3__["ListFacesCommand"].bind.apply(_commands_ListFacesCommand__WEBPACK_IMPORTED_MODULE_3__["ListFacesCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.listFaces.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function listFacesPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function listFacesPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Rekognition__WEBPACK_IMPORTED_MODULE_1__["Rekognition"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__["RekognitionClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Rekognition | RekognitionClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=ListFacesPaginator.js.map /***/ }), /***/ "DMc/": /*!**************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEndpointCommand.js ***! \**************************************************************************************/ /*! exports provided: GetEndpointCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEndpointCommand", function() { return GetEndpointCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetEndpointCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetEndpointCommand, _super); // Start section: command_properties // End section: command_properties function GetEndpointCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetEndpointRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetEndpointResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetEndpointCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetEndpointCommand"])(input, context); }; GetEndpointCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetEndpointCommand"])(output, context); }; return GetEndpointCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetEndpointCommand.js.map /***/ }), /***/ "DP5i": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipChannelCommand.js ***! \************************************************************************************************/ /*! exports provided: UpdateApnsVoipChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelCommand", function() { return UpdateApnsVoipChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UpdateApnsVoipChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateApnsVoipChannelCommand, _super); // Start section: command_properties // End section: command_properties function UpdateApnsVoipChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UpdateApnsVoipChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UpdateApnsVoipChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateApnsVoipChannelCommand"])(input, context); }; UpdateApnsVoipChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateApnsVoipChannelCommand"])(output, context); }; return UpdateApnsVoipChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=UpdateApnsVoipChannelCommand.js.map /***/ }), /***/ "DSRE": /*!*****************************************!*\ !*** ./node_modules/lodash/isBuffer.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "Kz5y"), stubFalse = __webpack_require__(/*! ./stubFalse */ "B8du"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; /** * Checks if `value` is a buffer. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. * @example * * _.isBuffer(new Buffer(2)); * // => true * * _.isBuffer(new Uint8Array(2)); * // => false */ var isBuffer = nativeIsBuffer || stubFalse; module.exports = isBuffer; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "YuTi")(module))) /***/ }), /***/ "DZ4p": /*!***************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-translate/dist/es/commands/ListTextTranslationJobsCommand.js ***! \***************************************************************************************************/ /*! exports provided: ListTextTranslationJobsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTextTranslationJobsCommand", function() { return ListTextTranslationJobsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "B4mn"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "eh4a"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListTextTranslationJobsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTextTranslationJobsCommand, _super); // Start section: command_properties // End section: command_properties function ListTextTranslationJobsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListTextTranslationJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListTextTranslationJobsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListTextTranslationJobsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListTextTranslationJobsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListTextTranslationJobsCommand"])(input, context); }; ListTextTranslationJobsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListTextTranslationJobsCommand"])(output, context); }; return ListTextTranslationJobsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListTextTranslationJobsCommand.js.map /***/ }), /***/ "Daal": /*!*************************************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/lib-esm/storage/adapter/asyncstorage.js ***! \*************************************************************************************/ /*! exports provided: AsyncStorageAdapter, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncStorageAdapter", function() { return AsyncStorageAdapter; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _AsyncStorageDatabase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AsyncStorageDatabase */ "CIEt"); /* harmony import */ var _predicates__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../predicates */ "0VOl"); /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../types */ "+eag"); /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util */ "wr5y"); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __asyncValues = (undefined && undefined.__asyncValues) || function (o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m = o[Symbol.asyncIterator], i; 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); 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); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (undefined && undefined.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('DataStore'); var AsyncStorageAdapter = /** @class */ (function () { function AsyncStorageAdapter() { } AsyncStorageAdapter.prototype.getStorenameForModel = function (modelConstructor) { var namespace = this.namespaceResolver(modelConstructor); var modelName = modelConstructor.name; return this.getStorename(namespace, modelName); }; AsyncStorageAdapter.prototype.getStorename = function (namespace, modelName) { var storeName = namespace + "_" + modelName; return storeName; }; AsyncStorageAdapter.prototype.setUp = function (theSchema, namespaceResolver, modelInstanceCreator, getModelConstructorByModelName) { return __awaiter(this, void 0, void 0, function () { var error_1; var _this = this; return __generator(this, function (_a) { switch (_a.label) { case 0: if (!!this.initPromise) return [3 /*break*/, 1]; this.initPromise = new Promise(function (res, rej) { _this.resolve = res; _this.reject = rej; }); return [3 /*break*/, 3]; case 1: return [4 /*yield*/, this.initPromise]; case 2: _a.sent(); return [2 /*return*/]; case 3: this.schema = theSchema; this.namespaceResolver = namespaceResolver; this.modelInstanceCreator = modelInstanceCreator; this.getModelConstructorByModelName = getModelConstructorByModelName; _a.label = 4; case 4: _a.trys.push([4, 7, , 8]); if (!!this.db) return [3 /*break*/, 6]; this.db = new _AsyncStorageDatabase__WEBPACK_IMPORTED_MODULE_1__["default"](); return [4 /*yield*/, this.db.init()]; case 5: _a.sent(); this.resolve(); _a.label = 6; case 6: return [3 /*break*/, 8]; case 7: error_1 = _a.sent(); this.reject(error_1); return [3 /*break*/, 8]; case 8: return [2 /*return*/]; } }); }); }; AsyncStorageAdapter.prototype.save = function (model, condition) { var e_1, _a; return __awaiter(this, void 0, void 0, function () { var modelConstructor, storeName, connectedModels, namespaceName, set, connectionStoreNames, fromDB, predicates, predicateObjs, type, isValid, msg, result, connectionStoreNames_1, connectionStoreNames_1_1, resItem, storeName_1, item, instance, id, opType, e_1_1; var _this = this; return __generator(this, function (_b) { switch (_b.label) { case 0: modelConstructor = Object.getPrototypeOf(model) .constructor; storeName = this.getStorenameForModel(modelConstructor); connectedModels = Object(_util__WEBPACK_IMPORTED_MODULE_4__["traverseModel"])(modelConstructor.name, model, this.schema.namespaces[this.namespaceResolver(modelConstructor)], this.modelInstanceCreator, this.getModelConstructorByModelName); namespaceName = this.namespaceResolver(modelConstructor); set = new Set(); connectionStoreNames = Object.values(connectedModels).map(function (_a) { var modelName = _a.modelName, item = _a.item, instance = _a.instance; var storeName = _this.getStorename(namespaceName, modelName); set.add(storeName); return { storeName: storeName, item: item, instance: instance }; }); return [4 /*yield*/, this.db.get(model.id, storeName)]; case 1: fromDB = _b.sent(); if (condition && fromDB) { predicates = _predicates__WEBPACK_IMPORTED_MODULE_2__["ModelPredicateCreator"].getPredicates(condition); predicateObjs = predicates.predicates, type = predicates.type; isValid = Object(_util__WEBPACK_IMPORTED_MODULE_4__["validatePredicate"])(fromDB, type, predicateObjs); if (!isValid) { msg = 'Conditional update failed'; logger.error(msg, { model: fromDB, condition: predicateObjs }); throw new Error(msg); } } result = []; _b.label = 2; case 2: _b.trys.push([2, 11, 12, 17]); connectionStoreNames_1 = __asyncValues(connectionStoreNames); _b.label = 3; case 3: return [4 /*yield*/, connectionStoreNames_1.next()]; case 4: if (!(connectionStoreNames_1_1 = _b.sent(), !connectionStoreNames_1_1.done)) return [3 /*break*/, 10]; resItem = connectionStoreNames_1_1.value; storeName_1 = resItem.storeName, item = resItem.item, instance = resItem.instance; id = item.id; return [4 /*yield*/, this.db.get(id, storeName_1)]; case 5: opType = (_b.sent()) ? _types__WEBPACK_IMPORTED_MODULE_3__["OpType"].UPDATE : _types__WEBPACK_IMPORTED_MODULE_3__["OpType"].INSERT; if (!(id === model.id)) return [3 /*break*/, 7]; return [4 /*yield*/, this.db.save(item, storeName_1)]; case 6: _b.sent(); result.push([instance, opType]); return [3 /*break*/, 9]; case 7: if (!(opType === _types__WEBPACK_IMPORTED_MODULE_3__["OpType"].INSERT)) return [3 /*break*/, 9]; return [4 /*yield*/, this.db.save(item, storeName_1)]; case 8: _b.sent(); result.push([instance, opType]); _b.label = 9; case 9: return [3 /*break*/, 3]; case 10: return [3 /*break*/, 17]; case 11: e_1_1 = _b.sent(); e_1 = { error: e_1_1 }; return [3 /*break*/, 17]; case 12: _b.trys.push([12, , 15, 16]); if (!(connectionStoreNames_1_1 && !connectionStoreNames_1_1.done && (_a = connectionStoreNames_1.return))) return [3 /*break*/, 14]; return [4 /*yield*/, _a.call(connectionStoreNames_1)]; case 13: _b.sent(); _b.label = 14; case 14: return [3 /*break*/, 16]; case 15: if (e_1) throw e_1.error; return [7 /*endfinally*/]; case 16: return [7 /*endfinally*/]; case 17: return [2 /*return*/, result]; } }); }); }; AsyncStorageAdapter.prototype.load = function (namespaceName, srcModelName, records) { var records_1, records_1_1, records_2, records_2_1; var e_2, _a, e_3, _b, e_4, _c; return __awaiter(this, void 0, void 0, function () { var namespace, relations, connectionStoreNames, modelConstructor, relations_1, relations_1_1, relation, fieldName, modelName, targetName, relationType, storeName, modelConstructor_1, _d, recordItem, connectionRecord, e_3_1, recordItem, connectionRecord, e_4_1, e_2_1; var _this = this; return __generator(this, function (_e) { switch (_e.label) { case 0: namespace = this.schema.namespaces[namespaceName]; relations = namespace.relationships[srcModelName].relationTypes; connectionStoreNames = relations.map(function (_a) { var modelName = _a.modelName; return _this.getStorename(namespaceName, modelName); }); modelConstructor = this.getModelConstructorByModelName(namespaceName, srcModelName); if (connectionStoreNames.length === 0) { return [2 /*return*/, records.map(function (record) { return _this.modelInstanceCreator(modelConstructor, record); })]; } _e.label = 1; case 1: _e.trys.push([1, 34, 35, 40]); relations_1 = __asyncValues(relations); _e.label = 2; case 2: return [4 /*yield*/, relations_1.next()]; case 3: if (!(relations_1_1 = _e.sent(), !relations_1_1.done)) return [3 /*break*/, 33]; relation = relations_1_1.value; fieldName = relation.fieldName, modelName = relation.modelName, targetName = relation.targetName, relationType = relation.relationType; storeName = this.getStorename(namespaceName, modelName); modelConstructor_1 = this.getModelConstructorByModelName(namespaceName, modelName); _d = relationType; switch (_d) { case 'HAS_ONE': return [3 /*break*/, 4]; case 'BELONGS_TO': return [3 /*break*/, 17]; case 'HAS_MANY': return [3 /*break*/, 30]; } return [3 /*break*/, 31]; case 4: _e.trys.push([4, 10, 11, 16]); records_1 = __asyncValues(records); _e.label = 5; case 5: return [4 /*yield*/, records_1.next()]; case 6: if (!(records_1_1 = _e.sent(), !records_1_1.done)) return [3 /*break*/, 9]; recordItem = records_1_1.value; if (!recordItem[fieldName]) return [3 /*break*/, 8]; return [4 /*yield*/, this.db.get(recordItem[fieldName], storeName)]; case 7: connectionRecord = _e.sent(); recordItem[fieldName] = connectionRecord && this.modelInstanceCreator(modelConstructor_1, connectionRecord); _e.label = 8; case 8: return [3 /*break*/, 5]; case 9: return [3 /*break*/, 16]; case 10: e_3_1 = _e.sent(); e_3 = { error: e_3_1 }; return [3 /*break*/, 16]; case 11: _e.trys.push([11, , 14, 15]); if (!(records_1_1 && !records_1_1.done && (_b = records_1.return))) return [3 /*break*/, 13]; return [4 /*yield*/, _b.call(records_1)]; case 12: _e.sent(); _e.label = 13; case 13: return [3 /*break*/, 15]; case 14: if (e_3) throw e_3.error; return [7 /*endfinally*/]; case 15: return [7 /*endfinally*/]; case 16: return [3 /*break*/, 32]; case 17: _e.trys.push([17, 23, 24, 29]); records_2 = __asyncValues(records); _e.label = 18; case 18: return [4 /*yield*/, records_2.next()]; case 19: if (!(records_2_1 = _e.sent(), !records_2_1.done)) return [3 /*break*/, 22]; recordItem = records_2_1.value; if (!recordItem[targetName]) return [3 /*break*/, 21]; return [4 /*yield*/, this.db.get(recordItem[targetName], storeName)]; case 20: connectionRecord = _e.sent(); recordItem[fieldName] = connectionRecord && this.modelInstanceCreator(modelConstructor_1, connectionRecord); delete recordItem[targetName]; _e.label = 21; case 21: return [3 /*break*/, 18]; case 22: return [3 /*break*/, 29]; case 23: e_4_1 = _e.sent(); e_4 = { error: e_4_1 }; return [3 /*break*/, 29]; case 24: _e.trys.push([24, , 27, 28]); if (!(records_2_1 && !records_2_1.done && (_c = records_2.return))) return [3 /*break*/, 26]; return [4 /*yield*/, _c.call(records_2)]; case 25: _e.sent(); _e.label = 26; case 26: return [3 /*break*/, 28]; case 27: if (e_4) throw e_4.error; return [7 /*endfinally*/]; case 28: return [7 /*endfinally*/]; case 29: return [3 /*break*/, 32]; case 30: // TODO: Lazy loading return [3 /*break*/, 32]; case 31: Object(_util__WEBPACK_IMPORTED_MODULE_4__["exhaustiveCheck"])(relationType); return [3 /*break*/, 32]; case 32: return [3 /*break*/, 2]; case 33: return [3 /*break*/, 40]; case 34: e_2_1 = _e.sent(); e_2 = { error: e_2_1 }; return [3 /*break*/, 40]; case 35: _e.trys.push([35, , 38, 39]); if (!(relations_1_1 && !relations_1_1.done && (_a = relations_1.return))) return [3 /*break*/, 37]; return [4 /*yield*/, _a.call(relations_1)]; case 36: _e.sent(); _e.label = 37; case 37: return [3 /*break*/, 39]; case 38: if (e_2) throw e_2.error; return [7 /*endfinally*/]; case 39: return [7 /*endfinally*/]; case 40: return [2 /*return*/, records.map(function (record) { return _this.modelInstanceCreator(modelConstructor, record); })]; } }); }); }; AsyncStorageAdapter.prototype.query = function (modelConstructor, predicate, pagination) { return __awaiter(this, void 0, void 0, function () { var storeName, namespaceName, sortSpecified, predicates, predicateObjs_1, type_1, idPredicate, id, record, _a, x, all_1, filtered, all_2, all; return __generator(this, function (_b) { switch (_b.label) { case 0: storeName = this.getStorenameForModel(modelConstructor); namespaceName = this.namespaceResolver(modelConstructor); sortSpecified = pagination && pagination.sort; if (!predicate) return [3 /*break*/, 7]; predicates = _predicates__WEBPACK_IMPORTED_MODULE_2__["ModelPredicateCreator"].getPredicates(predicate); if (!predicates) return [3 /*break*/, 7]; predicateObjs_1 = predicates.predicates, type_1 = predicates.type; idPredicate = predicateObjs_1.length === 1 && predicateObjs_1.find(function (p) { return Object(_types__WEBPACK_IMPORTED_MODULE_3__["isPredicateObj"])(p) && p.field === 'id' && p.operator === 'eq'; }); if (!idPredicate) return [3 /*break*/, 4]; id = idPredicate.operand; return [4 /*yield*/, this.db.get(id, storeName)]; case 1: record = _b.sent(); if (!record) return [3 /*break*/, 3]; return [4 /*yield*/, this.load(namespaceName, modelConstructor.name, [ record, ])]; case 2: _a = __read.apply(void 0, [_b.sent(), 1]), x = _a[0]; return [2 /*return*/, [x]]; case 3: return [2 /*return*/, []]; case 4: return [4 /*yield*/, this.db.getAll(storeName)]; case 5: all_1 = _b.sent(); filtered = predicateObjs_1 ? all_1.filter(function (m) { return Object(_util__WEBPACK_IMPORTED_MODULE_4__["validatePredicate"])(m, type_1, predicateObjs_1); }) : all_1; return [4 /*yield*/, this.load(namespaceName, modelConstructor.name, this.inMemoryPagination(filtered, pagination))]; case 6: return [2 /*return*/, _b.sent()]; case 7: if (!sortSpecified) return [3 /*break*/, 10]; return [4 /*yield*/, this.db.getAll(storeName)]; case 8: all_2 = _b.sent(); return [4 /*yield*/, this.load(namespaceName, modelConstructor.name, this.inMemoryPagination(all_2, pagination))]; case 9: return [2 /*return*/, _b.sent()]; case 10: return [4 /*yield*/, this.db.getAll(storeName, pagination)]; case 11: all = _b.sent(); return [4 /*yield*/, this.load(namespaceName, modelConstructor.name, all)]; case 12: return [2 /*return*/, _b.sent()]; } }); }); }; AsyncStorageAdapter.prototype.inMemoryPagination = function (records, pagination) { if (pagination) { if (pagination.sort) { var sortPredicates = _predicates__WEBPACK_IMPORTED_MODULE_2__["ModelSortPredicateCreator"].getPredicates(pagination.sort); if (sortPredicates.length) { var compareFn = Object(_util__WEBPACK_IMPORTED_MODULE_4__["sortCompareFunction"])(sortPredicates); records.sort(compareFn); } } var _a = pagination.page, page = _a === void 0 ? 0 : _a, _b = pagination.limit, limit = _b === void 0 ? 0 : _b; var start = Math.max(0, page * limit) || 0; var end = limit > 0 ? start + limit : records.length; return records.slice(start, end); } return records; }; AsyncStorageAdapter.prototype.queryOne = function (modelConstructor, firstOrLast) { if (firstOrLast === void 0) { firstOrLast = _types__WEBPACK_IMPORTED_MODULE_3__["QueryOne"].FIRST; } return __awaiter(this, void 0, void 0, function () { var storeName, result; return __generator(this, function (_a) { switch (_a.label) { case 0: storeName = this.getStorenameForModel(modelConstructor); return [4 /*yield*/, this.db.getOne(firstOrLast, storeName)]; case 1: result = _a.sent(); return [2 /*return*/, result && this.modelInstanceCreator(modelConstructor, result)]; } }); }); }; AsyncStorageAdapter.prototype.delete = function (modelOrModelConstructor, condition) { return __awaiter(this, void 0, void 0, function () { var deleteQueue, modelConstructor, nameSpace, models, relations, deletedModels, deletedModels, model, modelConstructor, nameSpace, storeName, fromDB, msg, predicates, predicateObjs, type, isValid, msg, relations, relations, deletedModels; return __generator(this, function (_a) { switch (_a.label) { case 0: deleteQueue = []; if (!Object(_util__WEBPACK_IMPORTED_MODULE_4__["isModelConstructor"])(modelOrModelConstructor)) return [3 /*break*/, 8]; modelConstructor = modelOrModelConstructor; nameSpace = this.namespaceResolver(modelConstructor); return [4 /*yield*/, this.query(modelConstructor, condition)]; case 1: models = _a.sent(); relations = this.schema.namespaces[nameSpace].relationships[modelConstructor.name].relationTypes; if (!(condition !== undefined)) return [3 /*break*/, 4]; return [4 /*yield*/, this.deleteTraverse(relations, models, modelConstructor.name, nameSpace, deleteQueue)]; case 2: _a.sent(); return [4 /*yield*/, this.deleteItem(deleteQueue)]; case 3: _a.sent(); deletedModels = deleteQueue.reduce(function (acc, _a) { var items = _a.items; return acc.concat(items); }, []); return [2 /*return*/, [models, deletedModels]]; case 4: return [4 /*yield*/, this.deleteTraverse(relations, models, modelConstructor.name, nameSpace, deleteQueue)]; case 5: _a.sent(); return [4 /*yield*/, this.deleteItem(deleteQueue)]; case 6: _a.sent(); deletedModels = deleteQueue.reduce(function (acc, _a) { var items = _a.items; return acc.concat(items); }, []); return [2 /*return*/, [models, deletedModels]]; case 7: return [3 /*break*/, 15]; case 8: model = modelOrModelConstructor; modelConstructor = Object.getPrototypeOf(model) .constructor; nameSpace = this.namespaceResolver(modelConstructor); storeName = this.getStorenameForModel(modelConstructor); if (!condition) return [3 /*break*/, 11]; return [4 /*yield*/, this.db.get(model.id, storeName)]; case 9: fromDB = _a.sent(); if (fromDB === undefined) { msg = 'Model instance not found in storage'; logger.warn(msg, { model: model }); return [2 /*return*/, [[model], []]]; } predicates = _predicates__WEBPACK_IMPORTED_MODULE_2__["ModelPredicateCreator"].getPredicates(condition); predicateObjs = predicates.predicates, type = predicates.type; isValid = Object(_util__WEBPACK_IMPORTED_MODULE_4__["validatePredicate"])(fromDB, type, predicateObjs); if (!isValid) { msg = 'Conditional update failed'; logger.error(msg, { model: fromDB, condition: predicateObjs }); throw new Error(msg); } relations = this.schema.namespaces[nameSpace].relationships[modelConstructor.name].relationTypes; return [4 /*yield*/, this.deleteTraverse(relations, [model], modelConstructor.name, nameSpace, deleteQueue)]; case 10: _a.sent(); return [3 /*break*/, 13]; case 11: relations = this.schema.namespaces[nameSpace].relationships[modelConstructor.name].relationTypes; return [4 /*yield*/, this.deleteTraverse(relations, [model], modelConstructor.name, nameSpace, deleteQueue)]; case 12: _a.sent(); _a.label = 13; case 13: return [4 /*yield*/, this.deleteItem(deleteQueue)]; case 14: _a.sent(); deletedModels = deleteQueue.reduce(function (acc, _a) { var items = _a.items; return acc.concat(items); }, []); return [2 /*return*/, [[model], deletedModels]]; case 15: return [2 /*return*/]; } }); }); }; AsyncStorageAdapter.prototype.deleteItem = function (deleteQueue) { var deleteQueue_1, deleteQueue_1_1; var e_5, _a, e_6, _b; return __awaiter(this, void 0, void 0, function () { var deleteItem, storeName, items, items_1, items_1_1, item, id, e_6_1, e_5_1; return __generator(this, function (_c) { switch (_c.label) { case 0: _c.trys.push([0, 17, 18, 23]); deleteQueue_1 = __asyncValues(deleteQueue); _c.label = 1; case 1: return [4 /*yield*/, deleteQueue_1.next()]; case 2: if (!(deleteQueue_1_1 = _c.sent(), !deleteQueue_1_1.done)) return [3 /*break*/, 16]; deleteItem = deleteQueue_1_1.value; storeName = deleteItem.storeName, items = deleteItem.items; _c.label = 3; case 3: _c.trys.push([3, 9, 10, 15]); items_1 = __asyncValues(items); _c.label = 4; case 4: return [4 /*yield*/, items_1.next()]; case 5: if (!(items_1_1 = _c.sent(), !items_1_1.done)) return [3 /*break*/, 8]; item = items_1_1.value; if (!item) return [3 /*break*/, 7]; if (!(typeof item === 'object')) return [3 /*break*/, 7]; id = item['id']; return [4 /*yield*/, this.db.delete(id, storeName)]; case 6: _c.sent(); _c.label = 7; case 7: return [3 /*break*/, 4]; case 8: return [3 /*break*/, 15]; case 9: e_6_1 = _c.sent(); e_6 = { error: e_6_1 }; return [3 /*break*/, 15]; case 10: _c.trys.push([10, , 13, 14]); if (!(items_1_1 && !items_1_1.done && (_b = items_1.return))) return [3 /*break*/, 12]; return [4 /*yield*/, _b.call(items_1)]; case 11: _c.sent(); _c.label = 12; case 12: return [3 /*break*/, 14]; case 13: if (e_6) throw e_6.error; return [7 /*endfinally*/]; case 14: return [7 /*endfinally*/]; case 15: return [3 /*break*/, 1]; case 16: return [3 /*break*/, 23]; case 17: e_5_1 = _c.sent(); e_5 = { error: e_5_1 }; return [3 /*break*/, 23]; case 18: _c.trys.push([18, , 21, 22]); if (!(deleteQueue_1_1 && !deleteQueue_1_1.done && (_a = deleteQueue_1.return))) return [3 /*break*/, 20]; return [4 /*yield*/, _a.call(deleteQueue_1)]; case 19: _c.sent(); _c.label = 20; case 20: return [3 /*break*/, 22]; case 21: if (e_5) throw e_5.error; return [7 /*endfinally*/]; case 22: return [7 /*endfinally*/]; case 23: return [2 /*return*/]; } }); }); }; /** * Populates the delete Queue with all the items to delete * @param relations * @param models * @param srcModel * @param nameSpace * @param deleteQueue */ AsyncStorageAdapter.prototype.deleteTraverse = function (relations, models, srcModel, nameSpace, deleteQueue) { var relations_2, relations_2_1, models_1, models_1_1, models_2, models_2_1; var e_7, _a, e_8, _b, e_9, _c; return __awaiter(this, void 0, void 0, function () { var rel, relationType, modelName, storeName, index, _d, model, allRecords, recordToDelete, e_8_1, model, allRecords, childrenArray, e_9_1, e_7_1; var _this = this; return __generator(this, function (_e) { switch (_e.label) { case 0: _e.trys.push([0, 35, 36, 41]); relations_2 = __asyncValues(relations); _e.label = 1; case 1: return [4 /*yield*/, relations_2.next()]; case 2: if (!(relations_2_1 = _e.sent(), !relations_2_1.done)) return [3 /*break*/, 34]; rel = relations_2_1.value; relationType = rel.relationType, modelName = rel.modelName; storeName = this.getStorename(nameSpace, modelName); index = Object(_util__WEBPACK_IMPORTED_MODULE_4__["getIndex"])(this.schema.namespaces[nameSpace].relationships[modelName] .relationTypes, srcModel) || // if we were unable to find an index via relationTypes // i.e. for keyName connections, attempt to find one by the // associatedWith property Object(_util__WEBPACK_IMPORTED_MODULE_4__["getIndexFromAssociation"])(this.schema.namespaces[nameSpace].relationships[modelName].indexes, rel.associatedWith); _d = relationType; switch (_d) { case 'HAS_ONE': return [3 /*break*/, 3]; case 'HAS_MANY': return [3 /*break*/, 17]; case 'BELONGS_TO': return [3 /*break*/, 31]; } return [3 /*break*/, 32]; case 3: _e.trys.push([3, 10, 11, 16]); models_1 = __asyncValues(models); _e.label = 4; case 4: return [4 /*yield*/, models_1.next()]; case 5: if (!(models_1_1 = _e.sent(), !models_1_1.done)) return [3 /*break*/, 9]; model = models_1_1.value; return [4 /*yield*/, this.db.getAll(storeName)]; case 6: allRecords = _e.sent(); recordToDelete = allRecords.filter(function (childItem) { return childItem[index] === model.id; }); return [4 /*yield*/, this.deleteTraverse(this.schema.namespaces[nameSpace].relationships[modelName] .relationTypes, recordToDelete, modelName, nameSpace, deleteQueue)]; case 7: _e.sent(); _e.label = 8; case 8: return [3 /*break*/, 4]; case 9: return [3 /*break*/, 16]; case 10: e_8_1 = _e.sent(); e_8 = { error: e_8_1 }; return [3 /*break*/, 16]; case 11: _e.trys.push([11, , 14, 15]); if (!(models_1_1 && !models_1_1.done && (_b = models_1.return))) return [3 /*break*/, 13]; return [4 /*yield*/, _b.call(models_1)]; case 12: _e.sent(); _e.label = 13; case 13: return [3 /*break*/, 15]; case 14: if (e_8) throw e_8.error; return [7 /*endfinally*/]; case 15: return [7 /*endfinally*/]; case 16: return [3 /*break*/, 33]; case 17: _e.trys.push([17, 24, 25, 30]); models_2 = __asyncValues(models); _e.label = 18; case 18: return [4 /*yield*/, models_2.next()]; case 19: if (!(models_2_1 = _e.sent(), !models_2_1.done)) return [3 /*break*/, 23]; model = models_2_1.value; return [4 /*yield*/, this.db.getAll(storeName)]; case 20: allRecords = _e.sent(); childrenArray = allRecords.filter(function (childItem) { return childItem[index] === model.id; }); return [4 /*yield*/, this.deleteTraverse(this.schema.namespaces[nameSpace].relationships[modelName] .relationTypes, childrenArray, modelName, nameSpace, deleteQueue)]; case 21: _e.sent(); _e.label = 22; case 22: return [3 /*break*/, 18]; case 23: return [3 /*break*/, 30]; case 24: e_9_1 = _e.sent(); e_9 = { error: e_9_1 }; return [3 /*break*/, 30]; case 25: _e.trys.push([25, , 28, 29]); if (!(models_2_1 && !models_2_1.done && (_c = models_2.return))) return [3 /*break*/, 27]; return [4 /*yield*/, _c.call(models_2)]; case 26: _e.sent(); _e.label = 27; case 27: return [3 /*break*/, 29]; case 28: if (e_9) throw e_9.error; return [7 /*endfinally*/]; case 29: return [7 /*endfinally*/]; case 30: return [3 /*break*/, 33]; case 31: // Intentionally blank return [3 /*break*/, 33]; case 32: Object(_util__WEBPACK_IMPORTED_MODULE_4__["exhaustiveCheck"])(relationType); return [3 /*break*/, 33]; case 33: return [3 /*break*/, 1]; case 34: return [3 /*break*/, 41]; case 35: e_7_1 = _e.sent(); e_7 = { error: e_7_1 }; return [3 /*break*/, 41]; case 36: _e.trys.push([36, , 39, 40]); if (!(relations_2_1 && !relations_2_1.done && (_a = relations_2.return))) return [3 /*break*/, 38]; return [4 /*yield*/, _a.call(relations_2)]; case 37: _e.sent(); _e.label = 38; case 38: return [3 /*break*/, 40]; case 39: if (e_7) throw e_7.error; return [7 /*endfinally*/]; case 40: return [7 /*endfinally*/]; case 41: deleteQueue.push({ storeName: this.getStorename(nameSpace, srcModel), items: models.map(function (record) { return _this.modelInstanceCreator(_this.getModelConstructorByModelName(nameSpace, srcModel), record); }), }); return [2 /*return*/]; } }); }); }; AsyncStorageAdapter.prototype.clear = function () { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.db.clear()]; case 1: _a.sent(); this.db = undefined; this.initPromise = undefined; return [2 /*return*/]; } }); }); }; AsyncStorageAdapter.prototype.batchSave = function (modelConstructor, items) { return __awaiter(this, void 0, void 0, function () { var modelName, namespaceName, storeName, batch, _loop_1, this_1, items_2, items_2_1, item; var e_10, _a; return __generator(this, function (_b) { switch (_b.label) { case 0: modelName = modelConstructor.name; namespaceName = this.namespaceResolver(modelConstructor); storeName = this.getStorename(namespaceName, modelName); batch = []; _loop_1 = function (item) { var id = item.id; var connectedModels = Object(_util__WEBPACK_IMPORTED_MODULE_4__["traverseModel"])(modelConstructor.name, this_1.modelInstanceCreator(modelConstructor, item), this_1.schema.namespaces[this_1.namespaceResolver(modelConstructor)], this_1.modelInstanceCreator, this_1.getModelConstructorByModelName); var instance = connectedModels.find(function (_a) { var instance = _a.instance; return instance.id === id; }).instance; batch.push(instance); }; this_1 = this; try { for (items_2 = __values(items), items_2_1 = items_2.next(); !items_2_1.done; items_2_1 = items_2.next()) { item = items_2_1.value; _loop_1(item); } } catch (e_10_1) { e_10 = { error: e_10_1 }; } finally { try { if (items_2_1 && !items_2_1.done && (_a = items_2.return)) _a.call(items_2); } finally { if (e_10) throw e_10.error; } } return [4 /*yield*/, this.db.batchSave(storeName, batch)]; case 1: return [2 /*return*/, _b.sent()]; } }); }); }; return AsyncStorageAdapter; }()); /* harmony default export */ __webpack_exports__["default"] = (new AsyncStorageAdapter()); //# sourceMappingURL=asyncstorage.js.map /***/ }), /***/ "Dewt": /*!**************************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/DescribeDocumentClassificationJobCommand.js ***! \**************************************************************************************************************/ /*! exports provided: DescribeDocumentClassificationJobCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeDocumentClassificationJobCommand", function() { return DescribeDocumentClassificationJobCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DescribeDocumentClassificationJobCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeDocumentClassificationJobCommand, _super); // Start section: command_properties // End section: command_properties function DescribeDocumentClassificationJobCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DescribeDocumentClassificationJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeDocumentClassificationJobRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeDocumentClassificationJobResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DescribeDocumentClassificationJobCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeDocumentClassificationJobCommand"])(input, context); }; DescribeDocumentClassificationJobCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeDocumentClassificationJobCommand"])(output, context); }; return DescribeDocumentClassificationJobCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DescribeDocumentClassificationJobCommand.js.map /***/ }), /***/ "DfZB": /*!**************************************************!*\ !*** ./node_modules/axios/lib/helpers/spread.js ***! \**************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Syntactic sugar for invoking a function and expanding an array for arguments. * * Common use case would be to use `Function.prototype.apply`. * * ```js * function f(x, y, z) {} * var args = [1, 2, 3]; * f.apply(null, args); * ``` * * With `spread` this example can be re-written. * * ```js * spread(function(x, y, z) {})([1, 2, 3]); * ``` * * @param {Function} callback * @returns {Function} */ module.exports = function spread(callback) { return function wrap(arr) { return callback.apply(null, arr); }; }; /***/ }), /***/ "DoJc": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobsCommand.js ***! \****************************************************************************************/ /*! exports provided: GetImportJobsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsCommand", function() { return GetImportJobsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetImportJobsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetImportJobsCommand, _super); // Start section: command_properties // End section: command_properties function GetImportJobsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetImportJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetImportJobsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetImportJobsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetImportJobsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetImportJobsCommand"])(input, context); }; GetImportJobsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetImportJobsCommand"])(output, context); }; return GetImportJobsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetImportJobsCommand.js.map /***/ }), /***/ "DotL": /*!*************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/pagination/ListCollectionsPaginator.js ***! \*************************************************************************************************/ /*! exports provided: listCollectionsPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "listCollectionsPaginate", function() { return listCollectionsPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Rekognition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Rekognition */ "MjkZ"); /* harmony import */ var _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../RekognitionClient */ "YOij"); /* harmony import */ var _commands_ListCollectionsCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/ListCollectionsCommand */ "cEH/"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_ListCollectionsCommand__WEBPACK_IMPORTED_MODULE_3__["ListCollectionsCommand"].bind.apply(_commands_ListCollectionsCommand__WEBPACK_IMPORTED_MODULE_3__["ListCollectionsCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.listCollections.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function listCollectionsPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function listCollectionsPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Rekognition__WEBPACK_IMPORTED_MODULE_1__["Rekognition"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__["RekognitionClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Rekognition | RekognitionClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=ListCollectionsPaginator.js.map /***/ }), /***/ "DpdU": /*!****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetBucketInventoryConfigurationCommand.js ***! \****************************************************************************************************/ /*! exports provided: GetBucketInventoryConfigurationCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBucketInventoryConfigurationCommand", function() { return GetBucketInventoryConfigurationCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetBucketInventoryConfigurationCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetBucketInventoryConfigurationCommand, _super); // Start section: command_properties // End section: command_properties function GetBucketInventoryConfigurationCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetBucketInventoryConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketInventoryConfigurationRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketInventoryConfigurationOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetBucketInventoryConfigurationCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetBucketInventoryConfigurationCommand"])(input, context); }; GetBucketInventoryConfigurationCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetBucketInventoryConfigurationCommand"])(output, context); }; return GetBucketInventoryConfigurationCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetBucketInventoryConfigurationCommand.js.map /***/ }), /***/ "DrHM": /*!***********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/DescribeKeyPhrasesDetectionJobCommand.js ***! \***********************************************************************************************************/ /*! exports provided: DescribeKeyPhrasesDetectionJobCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeKeyPhrasesDetectionJobCommand", function() { return DescribeKeyPhrasesDetectionJobCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DescribeKeyPhrasesDetectionJobCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeKeyPhrasesDetectionJobCommand, _super); // Start section: command_properties // End section: command_properties function DescribeKeyPhrasesDetectionJobCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DescribeKeyPhrasesDetectionJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeKeyPhrasesDetectionJobRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeKeyPhrasesDetectionJobResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DescribeKeyPhrasesDetectionJobCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand"])(input, context); }; DescribeKeyPhrasesDetectionJobCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand"])(output, context); }; return DescribeKeyPhrasesDetectionJobCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DescribeKeyPhrasesDetectionJobCommand.js.map /***/ }), /***/ "Dstp": /*!*****************************************************************!*\ !*** ./node_modules/@aws-sdk/util-buffer-from/dist/es/index.js ***! \*****************************************************************/ /*! exports provided: fromArrayBuffer, fromString */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromArrayBuffer", function() { return fromArrayBuffer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromString", function() { return fromString; }); /* harmony import */ var _aws_sdk_is_array_buffer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-sdk/is-array-buffer */ "GDOE"); /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! buffer */ "tjlA"); /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_1__); function fromArrayBuffer(input, offset, length) { if (offset === void 0) { offset = 0; } if (length === void 0) { length = input.byteLength - offset; } if (!Object(_aws_sdk_is_array_buffer__WEBPACK_IMPORTED_MODULE_0__["isArrayBuffer"])(input)) { throw new Error("argument passed to fromArrayBuffer was not an ArrayBuffer"); } if (typeof buffer__WEBPACK_IMPORTED_MODULE_1__["Buffer"].from === "function" && buffer__WEBPACK_IMPORTED_MODULE_1__["Buffer"].from !== Uint8Array.from) { return buffer__WEBPACK_IMPORTED_MODULE_1__["Buffer"].from(input, offset, length); } // Any version of node that supports the optional offset and length // parameters, which were added in Node 6.0.0, will support Buffer.from and // have already returned. Throw if offset is not 0 or if length differs from // the underlying buffer's length. if (offset !== 0 || length !== input.byteLength) { throw new Error("Unable to convert TypedArray to Buffer in Node " + process.version); } return new buffer__WEBPACK_IMPORTED_MODULE_1__["Buffer"](input); } function fromString(input, encoding) { if (typeof input !== "string") { throw new Error("argument passed to fromString was not a string"); } if (typeof buffer__WEBPACK_IMPORTED_MODULE_1__["Buffer"].from === "function" && buffer__WEBPACK_IMPORTED_MODULE_1__["Buffer"].from !== Uint8Array.from) { return buffer__WEBPACK_IMPORTED_MODULE_1__["Buffer"].from(input, encoding); } return new buffer__WEBPACK_IMPORTED_MODULE_1__["Buffer"](input, encoding); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiLi9zcmMvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDekQsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLFFBQVEsQ0FBQztBQUVoQyxNQUFNLFVBQVUsZUFBZSxDQUFDLEtBQWtCLEVBQUUsTUFBVSxFQUFFLE1BQTBDO0lBQXRELHVCQUFBLEVBQUEsVUFBVTtJQUFFLHVCQUFBLEVBQUEsU0FBaUIsS0FBSyxDQUFDLFVBQVUsR0FBRyxNQUFNO0lBQ3hHLElBQUksQ0FBQyxhQUFhLENBQUMsS0FBSyxDQUFDLEVBQUU7UUFDekIsTUFBTSxJQUFJLEtBQUssQ0FBQywyREFBMkQsQ0FBQyxDQUFDO0tBQzlFO0lBRUQsSUFBSSxPQUFPLE1BQU0sQ0FBQyxJQUFJLEtBQUssVUFBVSxJQUFJLE1BQU0sQ0FBQyxJQUFJLEtBQUssVUFBVSxDQUFDLElBQUksRUFBRTtRQUN4RSxPQUFPLE1BQU0sQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLENBQUMsQ0FBQztLQUMzQztJQUVELG1FQUFtRTtJQUNuRSwyRUFBMkU7SUFDM0UsNEVBQTRFO0lBQzVFLGtDQUFrQztJQUNsQyxJQUFJLE1BQU0sS0FBSyxDQUFDLElBQUksTUFBTSxLQUFLLEtBQUssQ0FBQyxVQUFVLEVBQUU7UUFDL0MsTUFBTSxJQUFJLEtBQUssQ0FBQyxvREFBa0QsT0FBTyxDQUFDLE9BQVMsQ0FBQyxDQUFDO0tBQ3RGO0lBQ0QsT0FBTyxJQUFJLE1BQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQztBQUMzQixDQUFDO0FBRUQsTUFBTSxVQUFVLFVBQVUsQ0FBQyxLQUFhLEVBQUUsUUFBeUI7SUFDakUsSUFBSSxPQUFPLEtBQUssS0FBSyxRQUFRLEVBQUU7UUFDN0IsTUFBTSxJQUFJLEtBQUssQ0FBQyxnREFBZ0QsQ0FBQyxDQUFDO0tBQ25FO0lBRUQsSUFBSSxPQUFPLE1BQU0sQ0FBQyxJQUFJLEtBQUssVUFBVSxJQUFJLE1BQU0sQ0FBQyxJQUFJLEtBQUssVUFBVSxDQUFDLElBQUksRUFBRTtRQUN4RSxPQUFPLE1BQU0sQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFLFFBQWUsQ0FBQyxDQUFDO0tBQzVDO0lBRUQsT0FBTyxJQUFJLE1BQU0sQ0FBQyxLQUFLLEVBQUUsUUFBZSxDQUFDLENBQUM7QUFDNUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGlzQXJyYXlCdWZmZXIgfSBmcm9tIFwiQGF3cy1zZGsvaXMtYXJyYXktYnVmZmVyXCI7XG5pbXBvcnQgeyBCdWZmZXIgfSBmcm9tIFwiYnVmZmVyXCI7XG5cbmV4cG9ydCBmdW5jdGlvbiBmcm9tQXJyYXlCdWZmZXIoaW5wdXQ6IEFycmF5QnVmZmVyLCBvZmZzZXQgPSAwLCBsZW5ndGg6IG51bWJlciA9IGlucHV0LmJ5dGVMZW5ndGggLSBvZmZzZXQpOiBCdWZmZXIge1xuICBpZiAoIWlzQXJyYXlCdWZmZXIoaW5wdXQpKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKFwiYXJndW1lbnQgcGFzc2VkIHRvIGZyb21BcnJheUJ1ZmZlciB3YXMgbm90IGFuIEFycmF5QnVmZmVyXCIpO1xuICB9XG5cbiAgaWYgKHR5cGVvZiBCdWZmZXIuZnJvbSA9PT0gXCJmdW5jdGlvblwiICYmIEJ1ZmZlci5mcm9tICE9PSBVaW50OEFycmF5LmZyb20pIHtcbiAgICByZXR1cm4gQnVmZmVyLmZyb20oaW5wdXQsIG9mZnNldCwgbGVuZ3RoKTtcbiAgfVxuXG4gIC8vIEFueSB2ZXJzaW9uIG9mIG5vZGUgdGhhdCBzdXBwb3J0cyB0aGUgb3B0aW9uYWwgb2Zmc2V0IGFuZCBsZW5ndGhcbiAgLy8gcGFyYW1ldGVycywgd2hpY2ggd2VyZSBhZGRlZCBpbiBOb2RlIDYuMC4wLCB3aWxsIHN1cHBvcnQgQnVmZmVyLmZyb20gYW5kXG4gIC8vIGhhdmUgYWxyZWFkeSByZXR1cm5lZC4gVGhyb3cgaWYgb2Zmc2V0IGlzIG5vdCAwIG9yIGlmIGxlbmd0aCBkaWZmZXJzIGZyb21cbiAgLy8gdGhlIHVuZGVybHlpbmcgYnVmZmVyJ3MgbGVuZ3RoLlxuICBpZiAob2Zmc2V0ICE9PSAwIHx8IGxlbmd0aCAhPT0gaW5wdXQuYnl0ZUxlbmd0aCkge1xuICAgIHRocm93IG5ldyBFcnJvcihgVW5hYmxlIHRvIGNvbnZlcnQgVHlwZWRBcnJheSB0byBCdWZmZXIgaW4gTm9kZSAke3Byb2Nlc3MudmVyc2lvbn1gKTtcbiAgfVxuICByZXR1cm4gbmV3IEJ1ZmZlcihpbnB1dCk7XG59XG5leHBvcnQgdHlwZSBTdHJpbmdFbmNvZGluZyA9IFwiYXNjaWlcIiB8IFwidXRmOFwiIHwgXCJ1dGYxNmxlXCIgfCBcInVjczJcIiB8IFwiYmFzZTY0XCIgfCBcImxhdGluMVwiIHwgXCJiaW5hcnlcIiB8IFwiaGV4XCI7XG5leHBvcnQgZnVuY3Rpb24gZnJvbVN0cmluZyhpbnB1dDogc3RyaW5nLCBlbmNvZGluZz86IFN0cmluZ0VuY29kaW5nKTogQnVmZmVyIHtcbiAgaWYgKHR5cGVvZiBpbnB1dCAhPT0gXCJzdHJpbmdcIikge1xuICAgIHRocm93IG5ldyBFcnJvcihcImFyZ3VtZW50IHBhc3NlZCB0byBmcm9tU3RyaW5nIHdhcyBub3QgYSBzdHJpbmdcIik7XG4gIH1cblxuICBpZiAodHlwZW9mIEJ1ZmZlci5mcm9tID09PSBcImZ1bmN0aW9uXCIgJiYgQnVmZmVyLmZyb20gIT09IFVpbnQ4QXJyYXkuZnJvbSkge1xuICAgIHJldHVybiBCdWZmZXIuZnJvbShpbnB1dCwgZW5jb2RpbmcgYXMgYW55KTtcbiAgfVxuXG4gIHJldHVybiBuZXcgQnVmZmVyKGlucHV0LCBlbmNvZGluZyBhcyBhbnkpO1xufVxuIl19 /***/ }), /***/ "Ducs": /*!******************************************************************!*\ !*** ./node_modules/@aws-sdk/smithy-client/dist/es/exception.js ***! \******************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhjZXB0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2V4Y2VwdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUmV0cnlhYmxlVHJhaXQgfSBmcm9tIFwiLi9yZXRyeWFibGUtdHJhaXRcIjtcblxuLyoqXG4gKiBUeXBlIHRoYXQgaXMgaW1wbGVtZW50ZWQgYnkgYWxsIFNtaXRoeSBzaGFwZXMgbWFya2VkIHdpdGggdGhlXG4gKiBlcnJvciB0cmFpdC5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBTbWl0aHlFeGNlcHRpb24ge1xuICAvKipcbiAgICogVGhlIHNoYXBlIElEIG5hbWUgb2YgdGhlIGV4Y2VwdGlvbi5cbiAgICovXG4gIHJlYWRvbmx5IG5hbWU6IHN0cmluZztcblxuICAvKipcbiAgICogV2hldGhlciB0aGUgY2xpZW50IG9yIHNlcnZlciBhcmUgYXQgZmF1bHQuXG4gICAqL1xuICByZWFkb25seSAkZmF1bHQ6IFwiY2xpZW50XCIgfCBcInNlcnZlclwiO1xuXG4gIC8qKlxuICAgKiBUaGUgc2VydmljZSB0aGF0IGVuY291bnRlcmVkIHRoZSBleGNlcHRpb24uXG4gICAqL1xuICByZWFkb25seSAkc2VydmljZT86IHN0cmluZztcblxuICAvKipcbiAgICogSW5kaWNhdGVzIHRoYXQgYW4gZXJyb3IgTUFZIGJlIHJldHJpZWQgYnkgdGhlIGNsaWVudC5cbiAgICovXG4gIHJlYWRvbmx5ICRyZXRyeWFibGU/OiBSZXRyeWFibGVUcmFpdDtcbn1cbiJdfQ== /***/ }), /***/ "DzY2": /*!**************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-personalize-events/dist/es/index.js ***! \**************************************************************************/ /*! exports provided: PersonalizeEventsClient, PersonalizeEvents, PutEventsCommand, Event, InvalidInputException, PutEventsRequest */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _PersonalizeEventsClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PersonalizeEventsClient */ "BWUp"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonalizeEventsClient", function() { return _PersonalizeEventsClient__WEBPACK_IMPORTED_MODULE_0__["PersonalizeEventsClient"]; }); /* harmony import */ var _PersonalizeEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PersonalizeEvents */ "ro3e"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonalizeEvents", function() { return _PersonalizeEvents__WEBPACK_IMPORTED_MODULE_1__["PersonalizeEvents"]; }); /* harmony import */ var _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/PutEventsCommand */ "S3bO"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsCommand", function() { return _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_2__["PutEventsCommand"]; }); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./models/index */ "vdbe"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Event", function() { return _models_index__WEBPACK_IMPORTED_MODULE_3__["Event"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidInputException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_3__["InvalidInputException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_3__["PutEventsRequest"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "E++1": /*!**********************************************************************!*\ !*** ./node_modules/graphql/validation/rules/KnownFragmentNames.mjs ***! \**********************************************************************/ /*! exports provided: unknownFragmentMessage, KnownFragmentNames */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unknownFragmentMessage", function() { return unknownFragmentMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KnownFragmentNames", function() { return KnownFragmentNames; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function unknownFragmentMessage(fragName) { return "Unknown fragment \"".concat(fragName, "\"."); } /** * Known fragment names * * A GraphQL document is only valid if all `...Fragment` fragment spreads refer * to fragments defined in the same document. */ function KnownFragmentNames(context) { return { FragmentSpread: function FragmentSpread(node) { var fragmentName = node.name.value; var fragment = context.getFragment(fragmentName); if (!fragment) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](unknownFragmentMessage(fragmentName), [node.name])); } } }; } /***/ }), /***/ "E+oP": /*!****************************************!*\ !*** ./node_modules/lodash/isEmpty.js ***! \****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseKeys = __webpack_require__(/*! ./_baseKeys */ "A90E"), getTag = __webpack_require__(/*! ./_getTag */ "QqLw"), isArguments = __webpack_require__(/*! ./isArguments */ "03A+"), isArray = __webpack_require__(/*! ./isArray */ "Z0cm"), isArrayLike = __webpack_require__(/*! ./isArrayLike */ "MMmD"), isBuffer = __webpack_require__(/*! ./isBuffer */ "DSRE"), isPrototype = __webpack_require__(/*! ./_isPrototype */ "6sVZ"), isTypedArray = __webpack_require__(/*! ./isTypedArray */ "c6wG"); /** `Object#toString` result references. */ var mapTag = '[object Map]', setTag = '[object Set]'; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Checks if `value` is an empty object, collection, map, or set. * * Objects are considered empty if they have no own enumerable string keyed * properties. * * Array-like values such as `arguments` objects, arrays, buffers, strings, or * jQuery-like collections are considered empty if they have a `length` of `0`. * Similarly, maps and sets are considered empty if they have a `size` of `0`. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is empty, else `false`. * @example * * _.isEmpty(null); * // => true * * _.isEmpty(true); * // => true * * _.isEmpty(1); * // => true * * _.isEmpty([1, 2, 3]); * // => false * * _.isEmpty({ 'a': 1 }); * // => false */ function isEmpty(value) { if (value == null) { return true; } if (isArrayLike(value) && (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || isBuffer(value) || isTypedArray(value) || isArguments(value))) { return !value.length; } var tag = getTag(value); if (tag == mapTag || tag == setTag) { return !value.size; } if (isPrototype(value)) { return !baseKeys(value).length; } for (var key in value) { if (hasOwnProperty.call(value, key)) { return false; } } return true; } module.exports = isEmpty; /***/ }), /***/ "E/Em": /*!****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/StartTopicsDetectionJobCommand.js ***! \****************************************************************************************************/ /*! exports provided: StartTopicsDetectionJobCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartTopicsDetectionJobCommand", function() { return StartTopicsDetectionJobCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StartTopicsDetectionJobCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartTopicsDetectionJobCommand, _super); // Start section: command_properties // End section: command_properties function StartTopicsDetectionJobCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StartTopicsDetectionJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartTopicsDetectionJobRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartTopicsDetectionJobResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StartTopicsDetectionJobCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartTopicsDetectionJobCommand"])(input, context); }; StartTopicsDetectionJobCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartTopicsDetectionJobCommand"])(output, context); }; return StartTopicsDetectionJobCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StartTopicsDetectionJobCommand.js.map /***/ }), /***/ "E1E9": /*!************************************************************!*\ !*** ./node_modules/fast-xml-parser/src/xmlstr2xmlnode.js ***! \************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const util = __webpack_require__(/*! ./util */ "4abu"); const buildOptions = __webpack_require__(/*! ./util */ "4abu").buildOptions; const xmlNode = __webpack_require__(/*! ./xmlNode */ "Y81X"); const regx = '<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)' .replace(/NAME/g, util.nameRegexp); //const tagsRegx = new RegExp("<(\\/?[\\w:\\-\._]+)([^>]*)>(\\s*"+cdataRegx+")*([^<]+)?","g"); //const tagsRegx = new RegExp("<(\\/?)((\\w*:)?([\\w:\\-\._]+))([^>]*)>([^<]*)("+cdataRegx+"([^<]*))*([^<]+)?","g"); //polyfill if (!Number.parseInt && window.parseInt) { Number.parseInt = window.parseInt; } if (!Number.parseFloat && window.parseFloat) { Number.parseFloat = window.parseFloat; } const defaultOptions = { attributeNamePrefix: '@_', attrNodeName: false, textNodeName: '#text', ignoreAttributes: true, ignoreNameSpace: false, allowBooleanAttributes: false, //a tag can have attributes without any value //ignoreRootElement : false, parseNodeValue: true, parseAttributeValue: false, arrayMode: false, trimValues: true, //Trim string values of tag and attributes cdataTagName: false, cdataPositionChar: '\\c', tagValueProcessor: function(a, tagName) { return a; }, attrValueProcessor: function(a, attrName) { return a; }, stopNodes: [] //decodeStrict: false, }; exports.defaultOptions = defaultOptions; const props = [ 'attributeNamePrefix', 'attrNodeName', 'textNodeName', 'ignoreAttributes', 'ignoreNameSpace', 'allowBooleanAttributes', 'parseNodeValue', 'parseAttributeValue', 'arrayMode', 'trimValues', 'cdataTagName', 'cdataPositionChar', 'tagValueProcessor', 'attrValueProcessor', 'parseTrueNumberOnly', 'stopNodes' ]; exports.props = props; /** * Trim -> valueProcessor -> parse value * @param {string} tagName * @param {string} val * @param {object} options */ function processTagValue(tagName, val, options) { if (val) { if (options.trimValues) { val = val.trim(); } val = options.tagValueProcessor(val, tagName); val = parseValue(val, options.parseNodeValue, options.parseTrueNumberOnly); } return val; } function resolveNameSpace(tagname, options) { if (options.ignoreNameSpace) { const tags = tagname.split(':'); const prefix = tagname.charAt(0) === '/' ? '/' : ''; if (tags[0] === 'xmlns') { return ''; } if (tags.length === 2) { tagname = prefix + tags[1]; } } return tagname; } function parseValue(val, shouldParse, parseTrueNumberOnly) { if (shouldParse && typeof val === 'string') { let parsed; if (val.trim() === '' || isNaN(val)) { parsed = val === 'true' ? true : val === 'false' ? false : val; } else { if (val.indexOf('0x') !== -1) { //support hexa decimal parsed = Number.parseInt(val, 16); } else if (val.indexOf('.') !== -1) { parsed = Number.parseFloat(val); val = val.replace(/\.?0+$/, ""); } else { parsed = Number.parseInt(val, 10); } if (parseTrueNumberOnly) { parsed = String(parsed) === val ? parsed : val; } } return parsed; } else { if (util.isExist(val)) { return val; } else { return ''; } } } //TODO: change regex to capture NS //const attrsRegx = new RegExp("([\\w\\-\\.\\:]+)\\s*=\\s*(['\"])((.|\n)*?)\\2","gm"); const attrsRegx = new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])(.*?)\\3)?', 'g'); function buildAttributesMap(attrStr, options) { if (!options.ignoreAttributes && typeof attrStr === 'string') { attrStr = attrStr.replace(/\r?\n/g, ' '); //attrStr = attrStr || attrStr.trim(); const matches = util.getAllMatches(attrStr, attrsRegx); const len = matches.length; //don't make it inline const attrs = {}; for (let i = 0; i < len; i++) { const attrName = resolveNameSpace(matches[i][1], options); if (attrName.length) { if (matches[i][4] !== undefined) { if (options.trimValues) { matches[i][4] = matches[i][4].trim(); } matches[i][4] = options.attrValueProcessor(matches[i][4], attrName); attrs[options.attributeNamePrefix + attrName] = parseValue( matches[i][4], options.parseAttributeValue, options.parseTrueNumberOnly ); } else if (options.allowBooleanAttributes) { attrs[options.attributeNamePrefix + attrName] = true; } } } if (!Object.keys(attrs).length) { return; } if (options.attrNodeName) { const attrCollection = {}; attrCollection[options.attrNodeName] = attrs; return attrCollection; } return attrs; } } const getTraversalObj = function(xmlData, options) { xmlData = xmlData.replace(/(\r\n)|\n/, " "); options = buildOptions(options, defaultOptions, props); const xmlObj = new xmlNode('!xml'); let currentNode = xmlObj; let textData = ""; //function match(xmlData){ for(let i=0; i< xmlData.length; i++){ const ch = xmlData[i]; if(ch === '<'){ if( xmlData[i+1] === '/') {//Closing Tag const closeIndex = findClosingIndex(xmlData, ">", i, "Closing Tag is not closed.") let tagName = xmlData.substring(i+2,closeIndex).trim(); if(options.ignoreNameSpace){ const colonIndex = tagName.indexOf(":"); if(colonIndex !== -1){ tagName = tagName.substr(colonIndex+1); } } /* if (currentNode.parent) { currentNode.parent.val = util.getValue(currentNode.parent.val) + '' + processTagValue2(tagName, textData , options); } */ if(currentNode){ if(currentNode.val){ currentNode.val = util.getValue(currentNode.val) + '' + processTagValue(tagName, textData , options); }else{ currentNode.val = processTagValue(tagName, textData , options); } } if (options.stopNodes.length && options.stopNodes.includes(currentNode.tagname)) { currentNode.child = [] if (currentNode.attrsMap == undefined) { currentNode.attrsMap = {}} currentNode.val = xmlData.substr(currentNode.startIndex + 1, i - currentNode.startIndex - 1) } currentNode = currentNode.parent; textData = ""; i = closeIndex; } else if( xmlData[i+1] === '?') { i = findClosingIndex(xmlData, "?>", i, "Pi Tag is not closed.") } else if(xmlData.substr(i + 1, 3) === '!--') { i = findClosingIndex(xmlData, "-->", i, "Comment is not closed.") } else if( xmlData.substr(i + 1, 2) === '!D') { const closeIndex = findClosingIndex(xmlData, ">", i, "DOCTYPE is not closed.") const tagExp = xmlData.substring(i, closeIndex); if(tagExp.indexOf("[") >= 0){ i = xmlData.indexOf("]>", i) + 1; }else{ i = closeIndex; } }else if(xmlData.substr(i + 1, 2) === '![') { const closeIndex = findClosingIndex(xmlData, "]]>", i, "CDATA is not closed.") - 2 const tagExp = xmlData.substring(i + 9,closeIndex); //considerations //1. CDATA will always have parent node //2. A tag with CDATA is not a leaf node so it's value would be string type. if(textData){ currentNode.val = util.getValue(currentNode.val) + '' + processTagValue(currentNode.tagname, textData , options); textData = ""; } if (options.cdataTagName) { //add cdata node const childNode = new xmlNode(options.cdataTagName, currentNode, tagExp); currentNode.addChild(childNode); //for backtracking currentNode.val = util.getValue(currentNode.val) + options.cdataPositionChar; //add rest value to parent node if (tagExp) { childNode.val = tagExp; } } else { currentNode.val = (currentNode.val || '') + (tagExp || ''); } i = closeIndex + 2; }else {//Opening tag const result = closingIndexForOpeningTag(xmlData, i+1) let tagExp = result.data; const closeIndex = result.index; const separatorIndex = tagExp.indexOf(" "); let tagName = tagExp; if(separatorIndex !== -1){ tagName = tagExp.substr(0, separatorIndex).trimRight(); tagExp = tagExp.substr(separatorIndex + 1); } if(options.ignoreNameSpace){ const colonIndex = tagName.indexOf(":"); if(colonIndex !== -1){ tagName = tagName.substr(colonIndex+1); } } //save text to parent node if (currentNode && textData) { if(currentNode.tagname !== '!xml'){ currentNode.val = util.getValue(currentNode.val) + '' + processTagValue( currentNode.tagname, textData, options); } } if(tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1){//selfClosing tag if(tagName[tagName.length - 1] === "/"){ //remove trailing '/' tagName = tagName.substr(0, tagName.length - 1); tagExp = tagName; }else{ tagExp = tagExp.substr(0, tagExp.length - 1); } const childNode = new xmlNode(tagName, currentNode, ''); if(tagName !== tagExp){ childNode.attrsMap = buildAttributesMap(tagExp, options); } currentNode.addChild(childNode); }else{//opening tag const childNode = new xmlNode( tagName, currentNode ); if (options.stopNodes.length && options.stopNodes.includes(childNode.tagname)) { childNode.startIndex=closeIndex; } if(tagName !== tagExp){ childNode.attrsMap = buildAttributesMap(tagExp, options); } currentNode.addChild(childNode); currentNode = childNode; } textData = ""; i = closeIndex; } }else{ textData += xmlData[i]; } } return xmlObj; } function closingIndexForOpeningTag(data, i){ let attrBoundary; let tagExp = ""; for (let index = i; index < data.length; index++) { let ch = data[index]; if (attrBoundary) { if (ch === attrBoundary) attrBoundary = "";//reset } else if (ch === '"' || ch === "'") { attrBoundary = ch; } else if (ch === '>') { return { data: tagExp, index: index } } else if (ch === '\t') { ch = " " } tagExp += ch; } } function findClosingIndex(xmlData, str, i, errMsg){ const closingIndex = xmlData.indexOf(str, i); if(closingIndex === -1){ throw new Error(errMsg) }else{ return closingIndex + str.length - 1; } } exports.getTraversalObj = getTraversalObj; /***/ }), /***/ "E2jh": /*!******************************************!*\ !*** ./node_modules/lodash/_isMasked.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var coreJsData = __webpack_require__(/*! ./_coreJsData */ "2gN3"); /** Used to detect methods masquerading as native. */ var maskSrcKey = (function() { var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); return uid ? ('Symbol(src)_1.' + uid) : ''; }()); /** * Checks if `func` has its source masked. * * @private * @param {Function} func The function to check. * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ function isMasked(func) { return !!maskSrcKey && (maskSrcKey in func); } module.exports = isMasked; /***/ }), /***/ "E3eL": /*!**********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/pagination/ListEntitiesDetectionJobsPaginator.js ***! \**********************************************************************************************************/ /*! exports provided: listEntitiesDetectionJobsPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "listEntitiesDetectionJobsPaginate", function() { return listEntitiesDetectionJobsPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Comprehend__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Comprehend */ "KcXj"); /* harmony import */ var _ComprehendClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ComprehendClient */ "8JFw"); /* harmony import */ var _commands_ListEntitiesDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/ListEntitiesDetectionJobsCommand */ "whfC"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_ListEntitiesDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_3__["ListEntitiesDetectionJobsCommand"].bind.apply(_commands_ListEntitiesDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_3__["ListEntitiesDetectionJobsCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.listEntitiesDetectionJobs.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function listEntitiesDetectionJobsPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function listEntitiesDetectionJobsPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Comprehend__WEBPACK_IMPORTED_MODULE_1__["Comprehend"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _ComprehendClient__WEBPACK_IMPORTED_MODULE_2__["ComprehendClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Comprehend | ComprehendClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=ListEntitiesDetectionJobsPaginator.js.map /***/ }), /***/ "E8o+": /*!**********************************************************!*\ !*** ./node_modules/@aws-amplify/auth/lib-esm/Errors.js ***! \**********************************************************/ /*! exports provided: AuthError, NoUserPoolError, authErrorMessages */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthError", function() { return AuthError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NoUserPoolError", function() { return NoUserPoolError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "authErrorMessages", function() { return authErrorMessages; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _common_AuthErrorStrings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./common/AuthErrorStrings */ "YKz8"); /* * Copyright 2019-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AuthError'); var AuthError = /** @class */ (function (_super) { __extends(AuthError, _super); function AuthError(type) { var _this = this; var _a = authErrorMessages[type], message = _a.message, log = _a.log; _this = _super.call(this, message) || this; // Hack for making the custom error class work when transpiled to es5 // TODO: Delete the following 2 lines after we change the build target to >= es2015 _this.constructor = AuthError; Object.setPrototypeOf(_this, AuthError.prototype); _this.name = 'AuthError'; _this.log = log || message; logger.error(_this.log); return _this; } return AuthError; }(Error)); var NoUserPoolError = /** @class */ (function (_super) { __extends(NoUserPoolError, _super); function NoUserPoolError(type) { var _this = _super.call(this, type) || this; // Hack for making the custom error class work when transpiled to es5 // TODO: Delete the following 2 lines after we change the build target to >= es2015 _this.constructor = NoUserPoolError; Object.setPrototypeOf(_this, NoUserPoolError.prototype); _this.name = 'NoUserPoolError'; return _this; } return NoUserPoolError; }(AuthError)); var authErrorMessages = { noConfig: { message: _common_AuthErrorStrings__WEBPACK_IMPORTED_MODULE_1__["AuthErrorStrings"].DEFAULT_MSG, log: "\n Error: Amplify has not been configured correctly.\n This error is typically caused by one of the following scenarios:\n\n 1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point\n See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information\n \n 2. There might be multiple conflicting versions of aws-amplify or amplify packages in your node_modules.\n Try deleting your node_modules folder and reinstalling the dependencies with `yarn install`\n ", }, missingAuthConfig: { message: _common_AuthErrorStrings__WEBPACK_IMPORTED_MODULE_1__["AuthErrorStrings"].DEFAULT_MSG, log: "\n Error: Amplify has not been configured correctly. \n The configuration object is missing required auth properties. \n Did you run `amplify push` after adding auth via `amplify add auth`?\n See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information\n ", }, emptyUsername: { message: _common_AuthErrorStrings__WEBPACK_IMPORTED_MODULE_1__["AuthErrorStrings"].EMPTY_USERNAME, }, // TODO: should include a list of valid sign-in types invalidUsername: { message: _common_AuthErrorStrings__WEBPACK_IMPORTED_MODULE_1__["AuthErrorStrings"].INVALID_USERNAME, }, emptyPassword: { message: _common_AuthErrorStrings__WEBPACK_IMPORTED_MODULE_1__["AuthErrorStrings"].EMPTY_PASSWORD, }, emptyCode: { message: _common_AuthErrorStrings__WEBPACK_IMPORTED_MODULE_1__["AuthErrorStrings"].EMPTY_CODE, }, signUpError: { message: _common_AuthErrorStrings__WEBPACK_IMPORTED_MODULE_1__["AuthErrorStrings"].SIGN_UP_ERROR, log: 'The first parameter should either be non-null string or object', }, noMFA: { message: _common_AuthErrorStrings__WEBPACK_IMPORTED_MODULE_1__["AuthErrorStrings"].NO_MFA, }, invalidMFA: { message: _common_AuthErrorStrings__WEBPACK_IMPORTED_MODULE_1__["AuthErrorStrings"].INVALID_MFA, }, emptyChallengeResponse: { message: _common_AuthErrorStrings__WEBPACK_IMPORTED_MODULE_1__["AuthErrorStrings"].EMPTY_CHALLENGE, }, noUserSession: { message: _common_AuthErrorStrings__WEBPACK_IMPORTED_MODULE_1__["AuthErrorStrings"].NO_USER_SESSION, }, default: { message: _common_AuthErrorStrings__WEBPACK_IMPORTED_MODULE_1__["AuthErrorStrings"].DEFAULT_MSG, }, }; //# sourceMappingURL=Errors.js.map /***/ }), /***/ "EAju": /*!*************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-polly/dist/es/commands/DeleteLexiconCommand.js ***! \*************************************************************************************/ /*! exports provided: DeleteLexiconCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteLexiconCommand", function() { return DeleteLexiconCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "uUVK"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "h3LU"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteLexiconCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteLexiconCommand, _super); // Start section: command_properties // End section: command_properties function DeleteLexiconCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteLexiconCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteLexiconInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteLexiconOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteLexiconCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteLexiconCommand"])(input, context); }; DeleteLexiconCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteLexiconCommand"])(output, context); }; return DeleteLexiconCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteLexiconCommand.js.map /***/ }), /***/ "EDEm": /*!************************************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-bucket-endpoint/dist/es/bucketHostname.js ***! \************************************************************************************/ /*! exports provided: bucketHostname */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bucketHostname", function() { return bucketHostname; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _bucketHostnameUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bucketHostnameUtils */ "Aa5G"); var bucketHostname = function (options) { var baseHostname = options.baseHostname; if (!_bucketHostnameUtils__WEBPACK_IMPORTED_MODULE_1__["S3_HOSTNAME_PATTERN"].test(baseHostname)) { return { bucketEndpoint: false, hostname: baseHostname, }; } if (Object(_bucketHostnameUtils__WEBPACK_IMPORTED_MODULE_1__["isBucketNameOptions"])(options)) { // Construct endpoint when bucketName is a string referring to a bucket name return getEndpointFromBucketName(options); } else { // Construct endpoint when bucketName is an ARN referring to an S3 resource like Access Point return { bucketEndpoint: true, hostname: getEndpointFromAccessPoint(options), }; } }; var getEndpointFromAccessPoint = function (options) { // Infer client region and hostname suffix from hostname from endpoints.json, like `s3.us-west-2.amazonaws.com` var _a = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(Object(_bucketHostnameUtils__WEBPACK_IMPORTED_MODULE_1__["getSuffixForArnEndpoint"])(options.baseHostname), 2), clientRegion = _a[0], hostnameSuffix = _a[1]; var pathStyleEndpoint = options.pathStyleEndpoint, dualstackEndpoint = options.dualstackEndpoint, accelerateEndpoint = options.accelerateEndpoint, _b = options.tlsCompatible, tlsCompatible = _b === void 0 ? true : _b, useArnRegion = options.useArnRegion, bucketName = options.bucketName, _c = options.clientPartition, clientPartition = _c === void 0 ? "aws" : _c, _d = options.clientSigningRegion, clientSigningRegion = _d === void 0 ? clientRegion : _d; if (pathStyleEndpoint) { throw new Error("Path-style S3 endpoint is not supported when bucket is an Access Point ARN"); } if (accelerateEndpoint) { throw new Error("Accelerate is not supported when bucket is an Access Point ARN"); } if (!tlsCompatible) { throw new Error("Access Point can only be used with https"); } // Validate and parse the ARN supplied as a bucket name var service = bucketName.service, partition = bucketName.partition, accountId = bucketName.accountId, region = bucketName.region, resource = bucketName.resource; Object(_bucketHostnameUtils__WEBPACK_IMPORTED_MODULE_1__["validateService"])(service); Object(_bucketHostnameUtils__WEBPACK_IMPORTED_MODULE_1__["validateRegion"])(region, { useArnRegion: useArnRegion, clientRegion: clientRegion, clientSigningRegion: clientSigningRegion }); Object(_bucketHostnameUtils__WEBPACK_IMPORTED_MODULE_1__["validatePartition"])(partition, { clientPartition: clientPartition }); Object(_bucketHostnameUtils__WEBPACK_IMPORTED_MODULE_1__["validateAccountId"])(accountId); var accessPointName = Object(_bucketHostnameUtils__WEBPACK_IMPORTED_MODULE_1__["getAccessPointName"])(resource); Object(_bucketHostnameUtils__WEBPACK_IMPORTED_MODULE_1__["validateDNSHostLabel"])(accessPointName + "-" + accountId, { tlsCompatible: tlsCompatible }); return accessPointName + "-" + accountId + ".s3-accesspoint" + (dualstackEndpoint ? ".dualstack" : "") + "." + (useArnRegion ? region : clientRegion) + "." + hostnameSuffix; }; var getEndpointFromBucketName = function (_a) { var _b = _a.accelerateEndpoint, accelerateEndpoint = _b === void 0 ? false : _b, baseHostname = _a.baseHostname, bucketName = _a.bucketName, _c = _a.dualstackEndpoint, dualstackEndpoint = _c === void 0 ? false : _c, _d = _a.pathStyleEndpoint, pathStyleEndpoint = _d === void 0 ? false : _d, _e = _a.tlsCompatible, tlsCompatible = _e === void 0 ? true : _e; var _f = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(Object(_bucketHostnameUtils__WEBPACK_IMPORTED_MODULE_1__["getSuffix"])(baseHostname), 2), clientRegion = _f[0], hostnameSuffix = _f[1]; if (pathStyleEndpoint || !Object(_bucketHostnameUtils__WEBPACK_IMPORTED_MODULE_1__["isDnsCompatibleBucketName"])(bucketName) || (tlsCompatible && _bucketHostnameUtils__WEBPACK_IMPORTED_MODULE_1__["DOT_PATTERN"].test(bucketName))) { return { bucketEndpoint: false, hostname: dualstackEndpoint ? "s3.dualstack." + clientRegion + "." + hostnameSuffix : baseHostname, }; } if (accelerateEndpoint) { baseHostname = "s3-accelerate" + (dualstackEndpoint ? ".dualstack" : "") + "." + hostnameSuffix; } else if (dualstackEndpoint) { baseHostname = "s3.dualstack." + clientRegion + "." + hostnameSuffix; } return { bucketEndpoint: true, hostname: bucketName + "." + baseHostname, }; }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVja2V0SG9zdG5hbWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYnVja2V0SG9zdG5hbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFHTCxXQUFXLEVBQ1gsa0JBQWtCLEVBQ2xCLFNBQVMsRUFDVCx1QkFBdUIsRUFDdkIsbUJBQW1CLEVBQ25CLHlCQUF5QixFQUN6QixtQkFBbUIsRUFDbkIsaUJBQWlCLEVBQ2pCLG9CQUFvQixFQUNwQixpQkFBaUIsRUFDakIsY0FBYyxFQUNkLGVBQWUsR0FDaEIsTUFBTSx1QkFBdUIsQ0FBQztBQU8vQixNQUFNLENBQUMsSUFBTSxjQUFjLEdBQUcsVUFBQyxPQUFpRDtJQUN0RSxJQUFBLFlBQVksR0FBSyxPQUFPLGFBQVosQ0FBYTtJQUNqQyxJQUFJLENBQUMsbUJBQW1CLENBQUMsSUFBSSxDQUFDLFlBQVksQ0FBQyxFQUFFO1FBQzNDLE9BQU87WUFDTCxjQUFjLEVBQUUsS0FBSztZQUNyQixRQUFRLEVBQUUsWUFBWTtTQUN2QixDQUFDO0tBQ0g7SUFDRCxJQUFJLG1CQUFtQixDQUFDLE9BQU8sQ0FBQyxFQUFFO1FBQ2hDLDRFQUE0RTtRQUM1RSxPQUFPLHlCQUF5QixDQUFDLE9BQU8sQ0FBQyxDQUFDO0tBQzNDO1NBQU07UUFDTCw2RkFBNkY7UUFDN0YsT0FBTztZQUNMLGNBQWMsRUFBRSxJQUFJO1lBQ3BCLFFBQVEsRUFBRSwwQkFBMEIsQ0FBQyxPQUFPLENBQUM7U0FDOUMsQ0FBQztLQUNIO0FBQ0gsQ0FBQyxDQUFDO0FBRUYsSUFBTSwwQkFBMEIsR0FBRyxVQUFDLE9BQTBCO0lBQzVELCtHQUErRztJQUN6RyxJQUFBLEtBQUEsT0FBaUMsdUJBQXVCLENBQUMsT0FBTyxDQUFDLFlBQVksQ0FBQyxJQUFBLEVBQTdFLFlBQVksUUFBQSxFQUFFLGNBQWMsUUFBaUQsQ0FBQztJQUVuRixJQUFBLGlCQUFpQixHQVFmLE9BQU8sa0JBUlEsRUFDakIsaUJBQWlCLEdBT2YsT0FBTyxrQkFQUSxFQUNqQixrQkFBa0IsR0FNaEIsT0FBTyxtQkFOUyxFQUNsQixLQUtFLE9BQU8sY0FMVyxFQUFwQixhQUFhLG1CQUFHLElBQUksS0FBQSxFQUNwQixZQUFZLEdBSVYsT0FBTyxhQUpHLEVBQ1osVUFBVSxHQUdSLE9BQU8sV0FIQyxFQUNWLEtBRUUsT0FBTyxnQkFGYyxFQUF2QixlQUFlLG1CQUFHLEtBQUssS0FBQSxFQUN2QixLQUNFLE9BQU8sb0JBRHlCLEVBQWxDLG1CQUFtQixtQkFBRyxZQUFZLEtBQUEsQ0FDeEI7SUFFWixJQUFJLGlCQUFpQixFQUFFO1FBQ3JCLE1BQU0sSUFBSSxLQUFLLENBQUMsNEVBQTRFLENBQUMsQ0FBQztLQUMvRjtJQUNELElBQUksa0JBQWtCLEVBQUU7UUFDdEIsTUFBTSxJQUFJLEtBQUssQ0FBQyxnRUFBZ0UsQ0FBQyxDQUFDO0tBQ25GO0lBQ0QsSUFBSSxDQUFDLGFBQWEsRUFBRTtRQUNsQixNQUFNLElBQUksS0FBSyxDQUFDLDBDQUEwQyxDQUFDLENBQUM7S0FDN0Q7SUFDRCx1REFBdUQ7SUFDL0MsSUFBQSxPQUFPLEdBQTZDLFVBQVUsUUFBdkQsRUFBRSxTQUFTLEdBQWtDLFVBQVUsVUFBNUMsRUFBRSxTQUFTLEdBQXVCLFVBQVUsVUFBakMsRUFBRSxNQUFNLEdBQWUsVUFBVSxPQUF6QixFQUFFLFFBQVEsR0FBSyxVQUFVLFNBQWYsQ0FBZ0I7SUFDdkUsZUFBZSxDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQ3pCLGNBQWMsQ0FBQyxNQUFNLEVBQUUsRUFBRSxZQUFZLGNBQUEsRUFBRSxZQUFZLGNBQUEsRUFBRSxtQkFBbUIscUJBQUEsRUFBRSxDQUFDLENBQUM7SUFDNUUsaUJBQWlCLENBQUMsU0FBUyxFQUFFLEVBQUUsZUFBZSxpQkFBQSxFQUFFLENBQUMsQ0FBQztJQUNsRCxpQkFBaUIsQ0FBQyxTQUFTLENBQUMsQ0FBQztJQUM3QixJQUFNLGVBQWUsR0FBRyxrQkFBa0IsQ0FBQyxRQUFRLENBQUMsQ0FBQztJQUNyRCxvQkFBb0IsQ0FBSSxlQUFlLFNBQUksU0FBVyxFQUFFLEVBQUUsYUFBYSxlQUFBLEVBQUUsQ0FBQyxDQUFDO0lBRTNFLE9BQVUsZUFBZSxTQUFJLFNBQVMsd0JBQWtCLGlCQUFpQixDQUFDLENBQUMsQ0FBQyxZQUFZLENBQUMsQ0FBQyxDQUFDLEVBQUUsV0FDM0YsWUFBWSxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLFlBQVksVUFDbEMsY0FBZ0IsQ0FBQztBQUN2QixDQUFDLENBQUM7QUFFRixJQUFNLHlCQUF5QixHQUFHLFVBQUMsRUFPWjtRQU5yQiwwQkFBMEIsRUFBMUIsa0JBQWtCLG1CQUFHLEtBQUssS0FBQSxFQUMxQixZQUFZLGtCQUFBLEVBQ1osVUFBVSxnQkFBQSxFQUNWLHlCQUF5QixFQUF6QixpQkFBaUIsbUJBQUcsS0FBSyxLQUFBLEVBQ3pCLHlCQUF5QixFQUF6QixpQkFBaUIsbUJBQUcsS0FBSyxLQUFBLEVBQ3pCLHFCQUFvQixFQUFwQixhQUFhLG1CQUFHLElBQUksS0FBQTtJQUVkLElBQUEsS0FBQSxPQUFpQyxTQUFTLENBQUMsWUFBWSxDQUFDLElBQUEsRUFBdkQsWUFBWSxRQUFBLEVBQUUsY0FBYyxRQUEyQixDQUFDO0lBQy9ELElBQUksaUJBQWlCLElBQUksQ0FBQyx5QkFBeUIsQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLGFBQWEsSUFBSSxXQUFXLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxDQUFDLEVBQUU7UUFDbEgsT0FBTztZQUNMLGNBQWMsRUFBRSxLQUFLO1lBQ3JCLFFBQVEsRUFBRSxpQkFBaUIsQ0FBQyxDQUFDLENBQUMsa0JBQWdCLFlBQVksU0FBSSxjQUFnQixDQUFDLENBQUMsQ0FBQyxZQUFZO1NBQzlGLENBQUM7S0FDSDtJQUVELElBQUksa0JBQWtCLEVBQUU7UUFDdEIsWUFBWSxHQUFHLG1CQUFnQixpQkFBaUIsQ0FBQyxDQUFDLENBQUMsWUFBWSxDQUFDLENBQUMsQ0FBQyxFQUFFLFVBQUksY0FBZ0IsQ0FBQztLQUMxRjtTQUFNLElBQUksaUJBQWlCLEVBQUU7UUFDNUIsWUFBWSxHQUFHLGtCQUFnQixZQUFZLFNBQUksY0FBZ0IsQ0FBQztLQUNqRTtJQUVELE9BQU87UUFDTCxjQUFjLEVBQUUsSUFBSTtRQUNwQixRQUFRLEVBQUssVUFBVSxTQUFJLFlBQWM7S0FDMUMsQ0FBQztBQUNKLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIEFybkhvc3RuYW1lUGFyYW1zLFxuICBCdWNrZXRIb3N0bmFtZVBhcmFtcyxcbiAgRE9UX1BBVFRFUk4sXG4gIGdldEFjY2Vzc1BvaW50TmFtZSxcbiAgZ2V0U3VmZml4LFxuICBnZXRTdWZmaXhGb3JBcm5FbmRwb2ludCxcbiAgaXNCdWNrZXROYW1lT3B0aW9ucyxcbiAgaXNEbnNDb21wYXRpYmxlQnVja2V0TmFtZSxcbiAgUzNfSE9TVE5BTUVfUEFUVEVSTixcbiAgdmFsaWRhdGVBY2NvdW50SWQsXG4gIHZhbGlkYXRlRE5TSG9zdExhYmVsLFxuICB2YWxpZGF0ZVBhcnRpdGlvbixcbiAgdmFsaWRhdGVSZWdpb24sXG4gIHZhbGlkYXRlU2VydmljZSxcbn0gZnJvbSBcIi4vYnVja2V0SG9zdG5hbWVVdGlsc1wiO1xuXG5leHBvcnQgaW50ZXJmYWNlIEJ1Y2tldEhvc3RuYW1lIHtcbiAgaG9zdG5hbWU6IHN0cmluZztcbiAgYnVja2V0RW5kcG9pbnQ6IGJvb2xlYW47XG59XG5cbmV4cG9ydCBjb25zdCBidWNrZXRIb3N0bmFtZSA9IChvcHRpb25zOiBCdWNrZXRIb3N0bmFtZVBhcmFtcyB8IEFybkhvc3RuYW1lUGFyYW1zKTogQnVja2V0SG9zdG5hbWUgPT4ge1xuICBjb25zdCB7IGJhc2VIb3N0bmFtZSB9ID0gb3B0aW9ucztcbiAgaWYgKCFTM19IT1NUTkFNRV9QQVRURVJOLnRlc3QoYmFzZUhvc3RuYW1lKSkge1xuICAgIHJldHVybiB7XG4gICAgICBidWNrZXRFbmRwb2ludDogZmFsc2UsXG4gICAgICBob3N0bmFtZTogYmFzZUhvc3RuYW1lLFxuICAgIH07XG4gIH1cbiAgaWYgKGlzQnVja2V0TmFtZU9wdGlvbnMob3B0aW9ucykpIHtcbiAgICAvLyBDb25zdHJ1Y3QgZW5kcG9pbnQgd2hlbiBidWNrZXROYW1lIGlzIGEgc3RyaW5nIHJlZmVycmluZyB0byBhIGJ1Y2tldCBuYW1lXG4gICAgcmV0dXJuIGdldEVuZHBvaW50RnJvbUJ1Y2tldE5hbWUob3B0aW9ucyk7XG4gIH0gZWxzZSB7XG4gICAgLy8gQ29uc3RydWN0IGVuZHBvaW50IHdoZW4gYnVja2V0TmFtZSBpcyBhbiBBUk4gcmVmZXJyaW5nIHRvIGFuIFMzIHJlc291cmNlIGxpa2UgQWNjZXNzIFBvaW50XG4gICAgcmV0dXJuIHtcbiAgICAgIGJ1Y2tldEVuZHBvaW50OiB0cnVlLFxuICAgICAgaG9zdG5hbWU6IGdldEVuZHBvaW50RnJvbUFjY2Vzc1BvaW50KG9wdGlvbnMpLFxuICAgIH07XG4gIH1cbn07XG5cbmNvbnN0IGdldEVuZHBvaW50RnJvbUFjY2Vzc1BvaW50ID0gKG9wdGlvbnM6IEFybkhvc3RuYW1lUGFyYW1zKTogc3RyaW5nID0+IHtcbiAgLy8gSW5mZXIgY2xpZW50IHJlZ2lvbiBhbmQgaG9zdG5hbWUgc3VmZml4IGZyb20gaG9zdG5hbWUgZnJvbSBlbmRwb2ludHMuanNvbiwgbGlrZSBgczMudXMtd2VzdC0yLmFtYXpvbmF3cy5jb21gXG4gIGNvbnN0IFtjbGllbnRSZWdpb24sIGhvc3RuYW1lU3VmZml4XSA9IGdldFN1ZmZpeEZvckFybkVuZHBvaW50KG9wdGlvbnMuYmFzZUhvc3RuYW1lKTtcbiAgY29uc3Qge1xuICAgIHBhdGhTdHlsZUVuZHBvaW50LFxuICAgIGR1YWxzdGFja0VuZHBvaW50LFxuICAgIGFjY2VsZXJhdGVFbmRwb2ludCxcbiAgICB0bHNDb21wYXRpYmxlID0gdHJ1ZSxcbiAgICB1c2VBcm5SZWdpb24sXG4gICAgYnVja2V0TmFtZSxcbiAgICBjbGllbnRQYXJ0aXRpb24gPSBcImF3c1wiLFxuICAgIGNsaWVudFNpZ25pbmdSZWdpb24gPSBjbGllbnRSZWdpb24sXG4gIH0gPSBvcHRpb25zO1xuXG4gIGlmIChwYXRoU3R5bGVFbmRwb2ludCkge1xuICAgIHRocm93IG5ldyBFcnJvcihcIlBhdGgtc3R5bGUgUzMgZW5kcG9pbnQgaXMgbm90IHN1cHBvcnRlZCB3aGVuIGJ1Y2tldCBpcyBhbiBBY2Nlc3MgUG9pbnQgQVJOXCIpO1xuICB9XG4gIGlmIChhY2NlbGVyYXRlRW5kcG9pbnQpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJBY2NlbGVyYXRlIGlzIG5vdCBzdXBwb3J0ZWQgd2hlbiBidWNrZXQgaXMgYW4gQWNjZXNzIFBvaW50IEFSTlwiKTtcbiAgfVxuICBpZiAoIXRsc0NvbXBhdGlibGUpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJBY2Nlc3MgUG9pbnQgY2FuIG9ubHkgYmUgdXNlZCB3aXRoIGh0dHBzXCIpO1xuICB9XG4gIC8vIFZhbGlkYXRlIGFuZCBwYXJzZSB0aGUgQVJOIHN1cHBsaWVkIGFzIGEgYnVja2V0IG5hbWVcbiAgY29uc3QgeyBzZXJ2aWNlLCBwYXJ0aXRpb24sIGFjY291bnRJZCwgcmVnaW9uLCByZXNvdXJjZSB9ID0gYnVja2V0TmFtZTtcbiAgdmFsaWRhdGVTZXJ2aWNlKHNlcnZpY2UpO1xuICB2YWxpZGF0ZVJlZ2lvbihyZWdpb24sIHsgdXNlQXJuUmVnaW9uLCBjbGllbnRSZWdpb24sIGNsaWVudFNpZ25pbmdSZWdpb24gfSk7XG4gIHZhbGlkYXRlUGFydGl0aW9uKHBhcnRpdGlvbiwgeyBjbGllbnRQYXJ0aXRpb24gfSk7XG4gIHZhbGlkYXRlQWNjb3VudElkKGFjY291bnRJZCk7XG4gIGNvbnN0IGFjY2Vzc1BvaW50TmFtZSA9IGdldEFjY2Vzc1BvaW50TmFtZShyZXNvdXJjZSk7XG4gIHZhbGlkYXRlRE5TSG9zdExhYmVsKGAke2FjY2Vzc1BvaW50TmFtZX0tJHthY2NvdW50SWR9YCwgeyB0bHNDb21wYXRpYmxlIH0pO1xuXG4gIHJldHVybiBgJHthY2Nlc3NQb2ludE5hbWV9LSR7YWNjb3VudElkfS5zMy1hY2Nlc3Nwb2ludCR7ZHVhbHN0YWNrRW5kcG9pbnQgPyBcIi5kdWFsc3RhY2tcIiA6IFwiXCJ9LiR7XG4gICAgdXNlQXJuUmVnaW9uID8gcmVnaW9uIDogY2xpZW50UmVnaW9uXG4gIH0uJHtob3N0bmFtZVN1ZmZpeH1gO1xufTtcblxuY29uc3QgZ2V0RW5kcG9pbnRGcm9tQnVja2V0TmFtZSA9ICh7XG4gIGFjY2VsZXJhdGVFbmRwb2ludCA9IGZhbHNlLFxuICBiYXNlSG9zdG5hbWUsXG4gIGJ1Y2tldE5hbWUsXG4gIGR1YWxzdGFja0VuZHBvaW50ID0gZmFsc2UsXG4gIHBhdGhTdHlsZUVuZHBvaW50ID0gZmFsc2UsXG4gIHRsc0NvbXBhdGlibGUgPSB0cnVlLFxufTogQnVja2V0SG9zdG5hbWVQYXJhbXMpOiBCdWNrZXRIb3N0bmFtZSA9PiB7XG4gIGNvbnN0IFtjbGllbnRSZWdpb24sIGhvc3RuYW1lU3VmZml4XSA9IGdldFN1ZmZpeChiYXNlSG9zdG5hbWUpO1xuICBpZiAocGF0aFN0eWxlRW5kcG9pbnQgfHwgIWlzRG5zQ29tcGF0aWJsZUJ1Y2tldE5hbWUoYnVja2V0TmFtZSkgfHwgKHRsc0NvbXBhdGlibGUgJiYgRE9UX1BBVFRFUk4udGVzdChidWNrZXROYW1lKSkpIHtcbiAgICByZXR1cm4ge1xuICAgICAgYnVja2V0RW5kcG9pbnQ6IGZhbHNlLFxuICAgICAgaG9zdG5hbWU6IGR1YWxzdGFja0VuZHBvaW50ID8gYHMzLmR1YWxzdGFjay4ke2NsaWVudFJlZ2lvbn0uJHtob3N0bmFtZVN1ZmZpeH1gIDogYmFzZUhvc3RuYW1lLFxuICAgIH07XG4gIH1cblxuICBpZiAoYWNjZWxlcmF0ZUVuZHBvaW50KSB7XG4gICAgYmFzZUhvc3RuYW1lID0gYHMzLWFjY2VsZXJhdGUke2R1YWxzdGFja0VuZHBvaW50ID8gXCIuZHVhbHN0YWNrXCIgOiBcIlwifS4ke2hvc3RuYW1lU3VmZml4fWA7XG4gIH0gZWxzZSBpZiAoZHVhbHN0YWNrRW5kcG9pbnQpIHtcbiAgICBiYXNlSG9zdG5hbWUgPSBgczMuZHVhbHN0YWNrLiR7Y2xpZW50UmVnaW9ufS4ke2hvc3RuYW1lU3VmZml4fWA7XG4gIH1cblxuICByZXR1cm4ge1xuICAgIGJ1Y2tldEVuZHBvaW50OiB0cnVlLFxuICAgIGhvc3RuYW1lOiBgJHtidWNrZXROYW1lfS4ke2Jhc2VIb3N0bmFtZX1gLFxuICB9O1xufTtcbiJdfQ== /***/ }), /***/ "EGfy": /*!*******************************************************************!*\ !*** ./node_modules/@aws-sdk/client-polly/dist/es/PollyClient.js ***! \*******************************************************************/ /*! exports provided: PollyClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PollyClient", function() { return PollyClient; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./runtimeConfig */ "S3Ut"); /* harmony import */ var _aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/config-resolver */ "NtRE"); /* harmony import */ var _aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-content-length */ "naxo"); /* harmony import */ var _aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-host-header */ "Nl9j"); /* harmony import */ var _aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-logger */ "+tRG"); /* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "UMev"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/middleware-user-agent */ "87YT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); /** *

Amazon Polly is a web service that makes it easy to synthesize speech from text.

*

The Amazon Polly service provides API operations for synthesizing high-quality speech from plain text and Speech Synthesis Markup Language (SSML), * along with managing pronunciations lexicons that enable you to get the best results for your application domain.

*/ var PollyClient = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PollyClient, _super); function PollyClient(configuration) { var _this = this; var _config_0 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__["ClientDefaultValues"]), configuration); var _config_1 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveRegionConfig"])(_config_0); var _config_2 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveEndpointsConfig"])(_config_1); var _config_3 = Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["resolveAwsAuthConfig"])(_config_2); var _config_4 = Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["resolveRetryConfig"])(_config_3); var _config_5 = Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["resolveUserAgentConfig"])(_config_4); var _config_6 = Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["resolveHostHeaderConfig"])(_config_5); var _config_7 = Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__["resolveLoggerConfig"])(_config_6); _this = _super.call(this, _config_7) || this; _this.config = _config_7; _this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["getAwsAuthPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["getRetryPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["getUserAgentPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__["getContentLengthPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["getHostHeaderPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__["getLoggerPlugin"])(_this.config)); return _this; } PollyClient.prototype.destroy = function () { _super.prototype.destroy.call(this); }; return PollyClient; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__["Client"])); //# sourceMappingURL=PollyClient.js.map /***/ }), /***/ "EHoG": /*!********************************************************************!*\ !*** ./node_modules/@aws-sdk/util-create-request/dist/es/index.js ***! \********************************************************************/ /*! exports provided: createRequest */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createRequest", function() { return createRequest; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); function createRequest(client, command) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var interceptMiddleware, clientStack, handler; var _this = this; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: interceptMiddleware = function (next) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, { output: { request: args.request }, response: undefined }]; }); }); }; }; clientStack = client.middlewareStack.clone(); //add middleware to the last of 'build' step clientStack.add(interceptMiddleware, { step: "build", priority: "low", }); handler = command.resolveMiddleware(clientStack, client.config, undefined); return [4 /*yield*/, handler(command).then(function (output) { return output.output.request; })]; case 1: //@ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUdBLE1BQU0sVUFBZ0IsYUFBYSxDQUtqQyxNQUF5RCxFQUN6RCxPQUE2RTs7Ozs7OztvQkFHdkUsbUJBQW1CLEdBQTJDLFVBQUMsSUFBSSxJQUFLLE9BQUEsVUFBTyxJQUFJOzs0QkFDdkYsc0JBQU8sRUFBRSxNQUFNLEVBQUUsRUFBRSxPQUFPLEVBQUUsSUFBSSxDQUFDLE9BQU8sRUFBUyxFQUFFLFFBQVEsRUFBRSxTQUFTLEVBQUUsRUFBQzs7eUJBQzFFLEVBRjZFLENBRTdFLENBQUM7b0JBQ0ksV0FBVyxHQUFHLE1BQU0sQ0FBQyxlQUFlLENBQUMsS0FBSyxFQUFFLENBQUM7b0JBRW5ELDRDQUE0QztvQkFDNUMsV0FBVyxDQUFDLEdBQUcsQ0FBQyxtQkFBbUIsRUFBRTt3QkFDbkMsSUFBSSxFQUFFLE9BQU87d0JBQ2IsUUFBUSxFQUFFLEtBQUs7cUJBQ2hCLENBQUMsQ0FBQztvQkFFRyxPQUFPLEdBQUcsT0FBTyxDQUFDLGlCQUFpQixDQUFDLFdBQVcsRUFBRSxNQUFNLENBQUMsTUFBTSxFQUFFLFNBQVMsQ0FBQyxDQUFDO29CQUcxRSxxQkFBTSxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUMsSUFBSSxDQUFDLFVBQUMsTUFBTSxJQUFLLE9BQUEsTUFBTSxDQUFDLE1BQU0sQ0FBQyxPQUFPLEVBQXJCLENBQXFCLENBQUMsRUFBQTs7Z0JBRHJFLFlBQVk7Z0JBQ1osc0JBQU8sU0FBOEQsRUFBQzs7OztDQUN2RSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENsaWVudCwgQ29tbWFuZCB9IGZyb20gXCJAYXdzLXNkay9zbWl0aHktY2xpZW50XCI7XG5pbXBvcnQgeyBCdWlsZE1pZGRsZXdhcmUsIEh0dHBSZXF1ZXN0LCBNZXRhZGF0YUJlYXJlciB9IGZyb20gXCJAYXdzLXNkay90eXBlc1wiO1xuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gY3JlYXRlUmVxdWVzdDxcbiAgSW5wdXRUeXBlc1VuaW9uIGV4dGVuZHMgb2JqZWN0LFxuICBJbnB1dFR5cGUgZXh0ZW5kcyBJbnB1dFR5cGVzVW5pb24sXG4gIE91dHB1dFR5cGUgZXh0ZW5kcyBNZXRhZGF0YUJlYXJlciA9IE1ldGFkYXRhQmVhcmVyXG4+KFxuICBjbGllbnQ6IENsaWVudDxhbnksIElucHV0VHlwZXNVbmlvbiwgTWV0YWRhdGFCZWFyZXIsIGFueT4sXG4gIGNvbW1hbmQ6IENvbW1hbmQ8SW5wdXRUeXBlLCBPdXRwdXRUeXBlLCBhbnksIElucHV0VHlwZXNVbmlvbiwgTWV0YWRhdGFCZWFyZXI+XG4pOiBQcm9taXNlPEh0dHBSZXF1ZXN0PiB7XG4gIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tdW51c2VkLXZhcnNcbiAgY29uc3QgaW50ZXJjZXB0TWlkZGxld2FyZTogQnVpbGRNaWRkbGV3YXJlPElucHV0VHlwZSwgT3V0cHV0VHlwZT4gPSAobmV4dCkgPT4gYXN5bmMgKGFyZ3MpID0+IHtcbiAgICByZXR1cm4geyBvdXRwdXQ6IHsgcmVxdWVzdDogYXJncy5yZXF1ZXN0IH0gYXMgYW55LCByZXNwb25zZTogdW5kZWZpbmVkIH07XG4gIH07XG4gIGNvbnN0IGNsaWVudFN0YWNrID0gY2xpZW50Lm1pZGRsZXdhcmVTdGFjay5jbG9uZSgpO1xuXG4gIC8vYWRkIG1pZGRsZXdhcmUgdG8gdGhlIGxhc3Qgb2YgJ2J1aWxkJyBzdGVwXG4gIGNsaWVudFN0YWNrLmFkZChpbnRlcmNlcHRNaWRkbGV3YXJlLCB7XG4gICAgc3RlcDogXCJidWlsZFwiLFxuICAgIHByaW9yaXR5OiBcImxvd1wiLFxuICB9KTtcblxuICBjb25zdCBoYW5kbGVyID0gY29tbWFuZC5yZXNvbHZlTWlkZGxld2FyZShjbGllbnRTdGFjaywgY2xpZW50LmNvbmZpZywgdW5kZWZpbmVkKTtcblxuICAvL0B0cy1pZ25vcmVcbiAgcmV0dXJuIGF3YWl0IGhhbmRsZXIoY29tbWFuZCkudGhlbigob3V0cHV0KSA9PiBvdXRwdXQub3V0cHV0LnJlcXVlc3QpO1xufVxuIl19 /***/ }), /***/ "EI00": /*!**************************************************************!*\ !*** ./node_modules/@aws-sdk/smithy-client/dist/es/index.js ***! \**************************************************************/ /*! exports provided: Client, Command, extendedEncodeURIComponent, getArrayIfSingleItem, getValueFromTextNode, isa, StringWrapper, LazyJsonString, dateToUtcString, splitEvery, SENSITIVE_STRING */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./client */ "ixHo"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Client", function() { return _client__WEBPACK_IMPORTED_MODULE_0__["Client"]; }); /* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./command */ "/LVy"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Command", function() { return _command__WEBPACK_IMPORTED_MODULE_1__["Command"]; }); /* harmony import */ var _document_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./document-type */ "kN07"); /* empty/unused harmony star reexport *//* harmony import */ var _exception__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./exception */ "Ducs"); /* empty/unused harmony star reexport *//* harmony import */ var _extended_encode_uri_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./extended-encode-uri-component */ "jSGj"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extendedEncodeURIComponent", function() { return _extended_encode_uri_component__WEBPACK_IMPORTED_MODULE_4__["extendedEncodeURIComponent"]; }); /* harmony import */ var _get_array_if_single_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./get-array-if-single-item */ "uCOA"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getArrayIfSingleItem", function() { return _get_array_if_single_item__WEBPACK_IMPORTED_MODULE_5__["getArrayIfSingleItem"]; }); /* harmony import */ var _get_value_from_text_node__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./get-value-from-text-node */ "XE+A"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getValueFromTextNode", function() { return _get_value_from_text_node__WEBPACK_IMPORTED_MODULE_6__["getValueFromTextNode"]; }); /* harmony import */ var _isa__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./isa */ "13g7"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isa", function() { return _isa__WEBPACK_IMPORTED_MODULE_7__["isa"]; }); /* harmony import */ var _lazy_json__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./lazy-json */ "K2UE"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringWrapper", function() { return _lazy_json__WEBPACK_IMPORTED_MODULE_8__["StringWrapper"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LazyJsonString", function() { return _lazy_json__WEBPACK_IMPORTED_MODULE_8__["LazyJsonString"]; }); /* harmony import */ var _date_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./date-utils */ "qAVt"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dateToUtcString", function() { return _date_utils__WEBPACK_IMPORTED_MODULE_9__["dateToUtcString"]; }); /* harmony import */ var _split_every__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./split-every */ "Xcrs"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "splitEvery", function() { return _split_every__WEBPACK_IMPORTED_MODULE_10__["splitEvery"]; }); /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./constants */ "Egte"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SENSITIVE_STRING", function() { return _constants__WEBPACK_IMPORTED_MODULE_11__["SENSITIVE_STRING"]; }); /* harmony import */ var _retryable_trait__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./retryable-trait */ "nQIS"); /* empty/unused harmony star reexport *//* harmony import */ var _sdk_error__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./sdk-error */ "WqcR"); /* empty/unused harmony star reexport */ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxVQUFVLENBQUM7QUFDekIsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLE9BQU8sQ0FBQztBQUN0QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsYUFBYSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY2xpZW50XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9jb21tYW5kXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kb2N1bWVudC10eXBlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9leGNlcHRpb25cIjtcbmV4cG9ydCAqIGZyb20gXCIuL2V4dGVuZGVkLWVuY29kZS11cmktY29tcG9uZW50XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9nZXQtYXJyYXktaWYtc2luZ2xlLWl0ZW1cIjtcbmV4cG9ydCAqIGZyb20gXCIuL2dldC12YWx1ZS1mcm9tLXRleHQtbm9kZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vaXNhXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9sYXp5LWpzb25cIjtcbmV4cG9ydCAqIGZyb20gXCIuL2RhdGUtdXRpbHNcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3NwbGl0LWV2ZXJ5XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9jb25zdGFudHNcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3JldHJ5YWJsZS10cmFpdFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vc2RrLWVycm9yXCI7XG4iXX0= /***/ }), /***/ "EMfu": /*!********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-personalize-events/dist/es/protocols/Aws_restJson1.js ***! \********************************************************************************************/ /*! exports provided: serializeAws_restJson1PutEventsCommand, deserializeAws_restJson1PutEventsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PutEventsCommand", function() { return serializeAws_restJson1PutEventsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PutEventsCommand", function() { return deserializeAws_restJson1PutEventsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "Enk7"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var serializeAws_restJson1PutEventsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/events"; body = JSON.stringify(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.eventList !== undefined && { eventList: serializeAws_restJson1EventList(input.eventList, context) })), (input.sessionId !== undefined && { sessionId: input.sessionId })), (input.trackingId !== undefined && { trackingId: input.trackingId })), (input.userId !== undefined && { userId: input.userId }))); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var deserializeAws_restJson1PutEventsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1PutEventsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), }; return [4 /*yield*/, collectBody(output.body, context)]; case 1: _a.sent(); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1PutEventsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message; var _d; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) { switch (_e.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _d = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_d.body = _e.sent(), _d)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "InvalidInputException": return [3 /*break*/, 2]; case "com.amazonaws.personalizeevents#InvalidInputException": return [3 /*break*/, 2]; } return [3 /*break*/, 4]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 5]; case 4: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _e.label = 5; case 5: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1InvalidInputExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "InvalidInputException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), message: undefined, }; data = parsedOutput.body; if (data.message !== undefined && data.message !== null) { contents.message = data.message; } return [2 /*return*/, contents]; }); }); }; var serializeAws_restJson1Event = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.eventId !== undefined && { eventId: input.eventId })), (input.eventType !== undefined && { eventType: input.eventType })), (input.properties !== undefined && { properties: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["LazyJsonString"].fromObject(input.properties) })), (input.sentAt !== undefined && { sentAt: Math.round(input.sentAt.getTime() / 1000) })); }; var serializeAws_restJson1EventList = function (input, context) { return input.map(function (entry) { return serializeAws_restJson1Event(entry, context); }); }; var deserializeMetadata = function (output) { return ({ httpStatusCode: output.statusCode, httpHeaders: output.headers, requestId: output.headers["x-amzn-requestid"], }); }; // Collect low-level response body stream to Uint8Array. var collectBody = function (streamBody, context) { if (streamBody === void 0) { streamBody = new Uint8Array(); } if (streamBody instanceof Uint8Array) { return Promise.resolve(streamBody); } return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); }; // Encode Uint8Array data into string with utf-8. var collectBodyString = function (streamBody, context) { return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); }); }; var isSerializableHeaderValue = function (value) { return value !== undefined && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); }; var parseBody = function (streamBody, context) { return collectBodyString(streamBody, context).then(function (encoded) { if (encoded.length) { return JSON.parse(encoded); } return {}; }); }; /** * Load an error code for the aws.rest-json-1.1 protocol. */ var loadRestJsonErrorCode = function (output, data) { var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); }; var sanitizeErrorCode = function (rawValue) { var cleanValue = rawValue; if (cleanValue.indexOf(":") >= 0) { cleanValue = cleanValue.split(":")[0]; } if (cleanValue.indexOf("#") >= 0) { cleanValue = cleanValue.split("#")[1]; } return cleanValue; }; var headerKey = findKey(output.headers, "x-amzn-errortype"); if (headerKey !== undefined) { return sanitizeErrorCode(output.headers[headerKey]); } if (data.code !== undefined) { return sanitizeErrorCode(data.code); } if (data["__type"] !== undefined) { return sanitizeErrorCode(data["__type"]); } return ""; }; //# sourceMappingURL=Aws_restJson1.js.map /***/ }), /***/ "EMzn": /*!**************************************************!*\ !*** ./node_modules/graphql/language/parser.mjs ***! \**************************************************/ /*! exports provided: parse, parseValue, parseType, parseConstValue, parseTypeReference, parseNamedType */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return parse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseValue", function() { return parseValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseType", function() { return parseType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseConstValue", function() { return parseConstValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseTypeReference", function() { return parseTypeReference; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseNamedType", function() { return parseNamedType; }); /* harmony import */ var _jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/inspect */ "rWdj"); /* harmony import */ var _source__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./source */ "neE4"); /* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error */ "miOx"); /* harmony import */ var _lexer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lexer */ "CbW8"); /* harmony import */ var _kinds__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./kinds */ "/jXB"); /* harmony import */ var _directiveLocation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./directiveLocation */ "F8X2"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Configuration options to control parser behavior */ /** * Given a GraphQL source, parses it into a Document. * Throws GraphQLError if a syntax error is encountered. */ function parse(source, options) { var sourceObj = typeof source === 'string' ? new _source__WEBPACK_IMPORTED_MODULE_1__["Source"](source) : source; if (!(sourceObj instanceof _source__WEBPACK_IMPORTED_MODULE_1__["Source"])) { throw new TypeError("Must provide Source. Received: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(sourceObj))); } var lexer = Object(_lexer__WEBPACK_IMPORTED_MODULE_3__["createLexer"])(sourceObj, options || {}); return parseDocument(lexer); } /** * Given a string containing a GraphQL value (ex. `[42]`), parse the AST for * that value. * Throws GraphQLError if a syntax error is encountered. * * This is useful within tools that operate upon GraphQL Values directly and * in isolation of complete GraphQL documents. * * Consider providing the results to the utility function: valueFromAST(). */ function parseValue(source, options) { var sourceObj = typeof source === 'string' ? new _source__WEBPACK_IMPORTED_MODULE_1__["Source"](source) : source; var lexer = Object(_lexer__WEBPACK_IMPORTED_MODULE_3__["createLexer"])(sourceObj, options || {}); expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].SOF); var value = parseValueLiteral(lexer, false); expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].EOF); return value; } /** * Given a string containing a GraphQL Type (ex. `[Int!]`), parse the AST for * that type. * Throws GraphQLError if a syntax error is encountered. * * This is useful within tools that operate upon GraphQL Types directly and * in isolation of complete GraphQL documents. * * Consider providing the results to the utility function: typeFromAST(). */ function parseType(source, options) { var sourceObj = typeof source === 'string' ? new _source__WEBPACK_IMPORTED_MODULE_1__["Source"](source) : source; var lexer = Object(_lexer__WEBPACK_IMPORTED_MODULE_3__["createLexer"])(sourceObj, options || {}); expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].SOF); var type = parseTypeReference(lexer); expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].EOF); return type; } /** * Converts a name lex token into a name parse node. */ function parseName(lexer) { var token = expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].NAME); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].NAME, value: token.value, loc: loc(lexer, token) }; } // Implements the parsing rules in the Document section. /** * Document : Definition+ */ function parseDocument(lexer) { var start = lexer.token; return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].DOCUMENT, definitions: many(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].SOF, parseDefinition, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].EOF), loc: loc(lexer, start) }; } /** * Definition : * - ExecutableDefinition * - TypeSystemDefinition * - TypeSystemExtension */ function parseDefinition(lexer) { if (peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].NAME)) { switch (lexer.token.value) { case 'query': case 'mutation': case 'subscription': case 'fragment': return parseExecutableDefinition(lexer); case 'schema': case 'scalar': case 'type': case 'interface': case 'union': case 'enum': case 'input': case 'directive': return parseTypeSystemDefinition(lexer); case 'extend': return parseTypeSystemExtension(lexer); } } else if (peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L)) { return parseExecutableDefinition(lexer); } else if (peekDescription(lexer)) { return parseTypeSystemDefinition(lexer); } throw unexpected(lexer); } /** * ExecutableDefinition : * - OperationDefinition * - FragmentDefinition */ function parseExecutableDefinition(lexer) { if (peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].NAME)) { switch (lexer.token.value) { case 'query': case 'mutation': case 'subscription': return parseOperationDefinition(lexer); case 'fragment': return parseFragmentDefinition(lexer); } } else if (peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L)) { return parseOperationDefinition(lexer); } throw unexpected(lexer); } // Implements the parsing rules in the Operations section. /** * OperationDefinition : * - SelectionSet * - OperationType Name? VariableDefinitions? Directives? SelectionSet */ function parseOperationDefinition(lexer) { var start = lexer.token; if (peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L)) { return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].OPERATION_DEFINITION, operation: 'query', name: undefined, variableDefinitions: [], directives: [], selectionSet: parseSelectionSet(lexer), loc: loc(lexer, start) }; } var operation = parseOperationType(lexer); var name; if (peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].NAME)) { name = parseName(lexer); } return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].OPERATION_DEFINITION, operation: operation, name: name, variableDefinitions: parseVariableDefinitions(lexer), directives: parseDirectives(lexer, false), selectionSet: parseSelectionSet(lexer), loc: loc(lexer, start) }; } /** * OperationType : one of query mutation subscription */ function parseOperationType(lexer) { var operationToken = expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].NAME); switch (operationToken.value) { case 'query': return 'query'; case 'mutation': return 'mutation'; case 'subscription': return 'subscription'; } throw unexpected(lexer, operationToken); } /** * VariableDefinitions : ( VariableDefinition+ ) */ function parseVariableDefinitions(lexer) { return peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PAREN_L) ? many(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PAREN_L, parseVariableDefinition, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PAREN_R) : []; } /** * VariableDefinition : Variable : Type DefaultValue? Directives[Const]? */ function parseVariableDefinition(lexer) { var start = lexer.token; if (lexer.options.experimentalVariableDefinitionDirectives) { return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].VARIABLE_DEFINITION, variable: parseVariable(lexer), type: (expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].COLON), parseTypeReference(lexer)), defaultValue: skip(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].EQUALS) ? parseValueLiteral(lexer, true) : undefined, directives: parseDirectives(lexer, true), loc: loc(lexer, start) }; } return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].VARIABLE_DEFINITION, variable: parseVariable(lexer), type: (expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].COLON), parseTypeReference(lexer)), defaultValue: skip(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].EQUALS) ? parseValueLiteral(lexer, true) : undefined, loc: loc(lexer, start) }; } /** * Variable : $ Name */ function parseVariable(lexer) { var start = lexer.token; expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].DOLLAR); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].VARIABLE, name: parseName(lexer), loc: loc(lexer, start) }; } /** * SelectionSet : { Selection+ } */ function parseSelectionSet(lexer) { var start = lexer.token; return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].SELECTION_SET, selections: many(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L, parseSelection, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_R), loc: loc(lexer, start) }; } /** * Selection : * - Field * - FragmentSpread * - InlineFragment */ function parseSelection(lexer) { return peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].SPREAD) ? parseFragment(lexer) : parseField(lexer); } /** * Field : Alias? Name Arguments? Directives? SelectionSet? * * Alias : Name : */ function parseField(lexer) { var start = lexer.token; var nameOrAlias = parseName(lexer); var alias; var name; if (skip(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].COLON)) { alias = nameOrAlias; name = parseName(lexer); } else { name = nameOrAlias; } return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].FIELD, alias: alias, name: name, arguments: parseArguments(lexer, false), directives: parseDirectives(lexer, false), selectionSet: peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L) ? parseSelectionSet(lexer) : undefined, loc: loc(lexer, start) }; } /** * Arguments[Const] : ( Argument[?Const]+ ) */ function parseArguments(lexer, isConst) { var item = isConst ? parseConstArgument : parseArgument; return peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PAREN_L) ? many(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PAREN_L, item, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PAREN_R) : []; } /** * Argument[Const] : Name : Value[?Const] */ function parseArgument(lexer) { var start = lexer.token; return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].ARGUMENT, name: parseName(lexer), value: (expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].COLON), parseValueLiteral(lexer, false)), loc: loc(lexer, start) }; } function parseConstArgument(lexer) { var start = lexer.token; return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].ARGUMENT, name: parseName(lexer), value: (expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].COLON), parseConstValue(lexer)), loc: loc(lexer, start) }; } // Implements the parsing rules in the Fragments section. /** * Corresponds to both FragmentSpread and InlineFragment in the spec. * * FragmentSpread : ... FragmentName Directives? * * InlineFragment : ... TypeCondition? Directives? SelectionSet */ function parseFragment(lexer) { var start = lexer.token; expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].SPREAD); if (peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].NAME) && lexer.token.value !== 'on') { return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].FRAGMENT_SPREAD, name: parseFragmentName(lexer), directives: parseDirectives(lexer, false), loc: loc(lexer, start) }; } var typeCondition; if (lexer.token.value === 'on') { lexer.advance(); typeCondition = parseNamedType(lexer); } return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INLINE_FRAGMENT, typeCondition: typeCondition, directives: parseDirectives(lexer, false), selectionSet: parseSelectionSet(lexer), loc: loc(lexer, start) }; } /** * FragmentDefinition : * - fragment FragmentName on TypeCondition Directives? SelectionSet * * TypeCondition : NamedType */ function parseFragmentDefinition(lexer) { var start = lexer.token; expectKeyword(lexer, 'fragment'); // Experimental support for defining variables within fragments changes // the grammar of FragmentDefinition: // - fragment FragmentName VariableDefinitions? on TypeCondition Directives? SelectionSet if (lexer.options.experimentalFragmentVariables) { return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].FRAGMENT_DEFINITION, name: parseFragmentName(lexer), variableDefinitions: parseVariableDefinitions(lexer), typeCondition: (expectKeyword(lexer, 'on'), parseNamedType(lexer)), directives: parseDirectives(lexer, false), selectionSet: parseSelectionSet(lexer), loc: loc(lexer, start) }; } return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].FRAGMENT_DEFINITION, name: parseFragmentName(lexer), typeCondition: (expectKeyword(lexer, 'on'), parseNamedType(lexer)), directives: parseDirectives(lexer, false), selectionSet: parseSelectionSet(lexer), loc: loc(lexer, start) }; } /** * FragmentName : Name but not `on` */ function parseFragmentName(lexer) { if (lexer.token.value === 'on') { throw unexpected(lexer); } return parseName(lexer); } // Implements the parsing rules in the Values section. /** * Value[Const] : * - [~Const] Variable * - IntValue * - FloatValue * - StringValue * - BooleanValue * - NullValue * - EnumValue * - ListValue[?Const] * - ObjectValue[?Const] * * BooleanValue : one of `true` `false` * * NullValue : `null` * * EnumValue : Name but not `true`, `false` or `null` */ function parseValueLiteral(lexer, isConst) { var token = lexer.token; switch (token.kind) { case _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACKET_L: return parseList(lexer, isConst); case _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L: return parseObject(lexer, isConst); case _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].INT: lexer.advance(); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INT, value: token.value, loc: loc(lexer, token) }; case _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].FLOAT: lexer.advance(); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].FLOAT, value: token.value, loc: loc(lexer, token) }; case _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].STRING: case _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BLOCK_STRING: return parseStringLiteral(lexer); case _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].NAME: if (token.value === 'true' || token.value === 'false') { lexer.advance(); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].BOOLEAN, value: token.value === 'true', loc: loc(lexer, token) }; } else if (token.value === 'null') { lexer.advance(); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].NULL, loc: loc(lexer, token) }; } lexer.advance(); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].ENUM, value: token.value, loc: loc(lexer, token) }; case _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].DOLLAR: if (!isConst) { return parseVariable(lexer); } break; } throw unexpected(lexer); } function parseStringLiteral(lexer) { var token = lexer.token; lexer.advance(); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].STRING, value: token.value, block: token.kind === _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BLOCK_STRING, loc: loc(lexer, token) }; } function parseConstValue(lexer) { return parseValueLiteral(lexer, true); } function parseValueValue(lexer) { return parseValueLiteral(lexer, false); } /** * ListValue[Const] : * - [ ] * - [ Value[?Const]+ ] */ function parseList(lexer, isConst) { var start = lexer.token; var item = isConst ? parseConstValue : parseValueValue; return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].LIST, values: any(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACKET_L, item, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACKET_R), loc: loc(lexer, start) }; } /** * ObjectValue[Const] : * - { } * - { ObjectField[?Const]+ } */ function parseObject(lexer, isConst) { var start = lexer.token; expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L); var fields = []; while (!skip(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_R)) { fields.push(parseObjectField(lexer, isConst)); } return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].OBJECT, fields: fields, loc: loc(lexer, start) }; } /** * ObjectField[Const] : Name : Value[?Const] */ function parseObjectField(lexer, isConst) { var start = lexer.token; return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].OBJECT_FIELD, name: parseName(lexer), value: (expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].COLON), parseValueLiteral(lexer, isConst)), loc: loc(lexer, start) }; } // Implements the parsing rules in the Directives section. /** * Directives[Const] : Directive[?Const]+ */ function parseDirectives(lexer, isConst) { var directives = []; while (peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].AT)) { directives.push(parseDirective(lexer, isConst)); } return directives; } /** * Directive[Const] : @ Name Arguments[?Const]? */ function parseDirective(lexer, isConst) { var start = lexer.token; expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].AT); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].DIRECTIVE, name: parseName(lexer), arguments: parseArguments(lexer, isConst), loc: loc(lexer, start) }; } // Implements the parsing rules in the Types section. /** * Type : * - NamedType * - ListType * - NonNullType */ function parseTypeReference(lexer) { var start = lexer.token; var type; if (skip(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACKET_L)) { type = parseTypeReference(lexer); expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACKET_R); type = { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].LIST_TYPE, type: type, loc: loc(lexer, start) }; } else { type = parseNamedType(lexer); } if (skip(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BANG)) { return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].NON_NULL_TYPE, type: type, loc: loc(lexer, start) }; } return type; } /** * NamedType : Name */ function parseNamedType(lexer) { var start = lexer.token; return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].NAMED_TYPE, name: parseName(lexer), loc: loc(lexer, start) }; } // Implements the parsing rules in the Type Definition section. /** * TypeSystemDefinition : * - SchemaDefinition * - TypeDefinition * - DirectiveDefinition * * TypeDefinition : * - ScalarTypeDefinition * - ObjectTypeDefinition * - InterfaceTypeDefinition * - UnionTypeDefinition * - EnumTypeDefinition * - InputObjectTypeDefinition */ function parseTypeSystemDefinition(lexer) { // Many definitions begin with a description and require a lookahead. var keywordToken = peekDescription(lexer) ? lexer.lookahead() : lexer.token; if (keywordToken.kind === _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].NAME) { switch (keywordToken.value) { case 'schema': return parseSchemaDefinition(lexer); case 'scalar': return parseScalarTypeDefinition(lexer); case 'type': return parseObjectTypeDefinition(lexer); case 'interface': return parseInterfaceTypeDefinition(lexer); case 'union': return parseUnionTypeDefinition(lexer); case 'enum': return parseEnumTypeDefinition(lexer); case 'input': return parseInputObjectTypeDefinition(lexer); case 'directive': return parseDirectiveDefinition(lexer); } } throw unexpected(lexer, keywordToken); } function peekDescription(lexer) { return peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].STRING) || peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BLOCK_STRING); } /** * Description : StringValue */ function parseDescription(lexer) { if (peekDescription(lexer)) { return parseStringLiteral(lexer); } } /** * SchemaDefinition : schema Directives[Const]? { OperationTypeDefinition+ } */ function parseSchemaDefinition(lexer) { var start = lexer.token; expectKeyword(lexer, 'schema'); var directives = parseDirectives(lexer, true); var operationTypes = many(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L, parseOperationTypeDefinition, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_R); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].SCHEMA_DEFINITION, directives: directives, operationTypes: operationTypes, loc: loc(lexer, start) }; } /** * OperationTypeDefinition : OperationType : NamedType */ function parseOperationTypeDefinition(lexer) { var start = lexer.token; var operation = parseOperationType(lexer); expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].COLON); var type = parseNamedType(lexer); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].OPERATION_TYPE_DEFINITION, operation: operation, type: type, loc: loc(lexer, start) }; } /** * ScalarTypeDefinition : Description? scalar Name Directives[Const]? */ function parseScalarTypeDefinition(lexer) { var start = lexer.token; var description = parseDescription(lexer); expectKeyword(lexer, 'scalar'); var name = parseName(lexer); var directives = parseDirectives(lexer, true); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].SCALAR_TYPE_DEFINITION, description: description, name: name, directives: directives, loc: loc(lexer, start) }; } /** * ObjectTypeDefinition : * Description? * type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition? */ function parseObjectTypeDefinition(lexer) { var start = lexer.token; var description = parseDescription(lexer); expectKeyword(lexer, 'type'); var name = parseName(lexer); var interfaces = parseImplementsInterfaces(lexer); var directives = parseDirectives(lexer, true); var fields = parseFieldsDefinition(lexer); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].OBJECT_TYPE_DEFINITION, description: description, name: name, interfaces: interfaces, directives: directives, fields: fields, loc: loc(lexer, start) }; } /** * ImplementsInterfaces : * - implements `&`? NamedType * - ImplementsInterfaces & NamedType */ function parseImplementsInterfaces(lexer) { var types = []; if (lexer.token.value === 'implements') { lexer.advance(); // Optional leading ampersand skip(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].AMP); do { types.push(parseNamedType(lexer)); } while (skip(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].AMP) || // Legacy support for the SDL? lexer.options.allowLegacySDLImplementsInterfaces && peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].NAME)); } return types; } /** * FieldsDefinition : { FieldDefinition+ } */ function parseFieldsDefinition(lexer) { // Legacy support for the SDL? if (lexer.options.allowLegacySDLEmptyFields && peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L) && lexer.lookahead().kind === _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_R) { lexer.advance(); lexer.advance(); return []; } return peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L) ? many(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L, parseFieldDefinition, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_R) : []; } /** * FieldDefinition : * - Description? Name ArgumentsDefinition? : Type Directives[Const]? */ function parseFieldDefinition(lexer) { var start = lexer.token; var description = parseDescription(lexer); var name = parseName(lexer); var args = parseArgumentDefs(lexer); expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].COLON); var type = parseTypeReference(lexer); var directives = parseDirectives(lexer, true); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].FIELD_DEFINITION, description: description, name: name, arguments: args, type: type, directives: directives, loc: loc(lexer, start) }; } /** * ArgumentsDefinition : ( InputValueDefinition+ ) */ function parseArgumentDefs(lexer) { if (!peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PAREN_L)) { return []; } return many(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PAREN_L, parseInputValueDef, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PAREN_R); } /** * InputValueDefinition : * - Description? Name : Type DefaultValue? Directives[Const]? */ function parseInputValueDef(lexer) { var start = lexer.token; var description = parseDescription(lexer); var name = parseName(lexer); expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].COLON); var type = parseTypeReference(lexer); var defaultValue; if (skip(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].EQUALS)) { defaultValue = parseConstValue(lexer); } var directives = parseDirectives(lexer, true); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INPUT_VALUE_DEFINITION, description: description, name: name, type: type, defaultValue: defaultValue, directives: directives, loc: loc(lexer, start) }; } /** * InterfaceTypeDefinition : * - Description? interface Name Directives[Const]? FieldsDefinition? */ function parseInterfaceTypeDefinition(lexer) { var start = lexer.token; var description = parseDescription(lexer); expectKeyword(lexer, 'interface'); var name = parseName(lexer); var directives = parseDirectives(lexer, true); var fields = parseFieldsDefinition(lexer); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INTERFACE_TYPE_DEFINITION, description: description, name: name, directives: directives, fields: fields, loc: loc(lexer, start) }; } /** * UnionTypeDefinition : * - Description? union Name Directives[Const]? UnionMemberTypes? */ function parseUnionTypeDefinition(lexer) { var start = lexer.token; var description = parseDescription(lexer); expectKeyword(lexer, 'union'); var name = parseName(lexer); var directives = parseDirectives(lexer, true); var types = parseUnionMemberTypes(lexer); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].UNION_TYPE_DEFINITION, description: description, name: name, directives: directives, types: types, loc: loc(lexer, start) }; } /** * UnionMemberTypes : * - = `|`? NamedType * - UnionMemberTypes | NamedType */ function parseUnionMemberTypes(lexer) { var types = []; if (skip(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].EQUALS)) { // Optional leading pipe skip(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PIPE); do { types.push(parseNamedType(lexer)); } while (skip(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PIPE)); } return types; } /** * EnumTypeDefinition : * - Description? enum Name Directives[Const]? EnumValuesDefinition? */ function parseEnumTypeDefinition(lexer) { var start = lexer.token; var description = parseDescription(lexer); expectKeyword(lexer, 'enum'); var name = parseName(lexer); var directives = parseDirectives(lexer, true); var values = parseEnumValuesDefinition(lexer); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].ENUM_TYPE_DEFINITION, description: description, name: name, directives: directives, values: values, loc: loc(lexer, start) }; } /** * EnumValuesDefinition : { EnumValueDefinition+ } */ function parseEnumValuesDefinition(lexer) { return peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L) ? many(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L, parseEnumValueDefinition, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_R) : []; } /** * EnumValueDefinition : Description? EnumValue Directives[Const]? * * EnumValue : Name */ function parseEnumValueDefinition(lexer) { var start = lexer.token; var description = parseDescription(lexer); var name = parseName(lexer); var directives = parseDirectives(lexer, true); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].ENUM_VALUE_DEFINITION, description: description, name: name, directives: directives, loc: loc(lexer, start) }; } /** * InputObjectTypeDefinition : * - Description? input Name Directives[Const]? InputFieldsDefinition? */ function parseInputObjectTypeDefinition(lexer) { var start = lexer.token; var description = parseDescription(lexer); expectKeyword(lexer, 'input'); var name = parseName(lexer); var directives = parseDirectives(lexer, true); var fields = parseInputFieldsDefinition(lexer); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INPUT_OBJECT_TYPE_DEFINITION, description: description, name: name, directives: directives, fields: fields, loc: loc(lexer, start) }; } /** * InputFieldsDefinition : { InputValueDefinition+ } */ function parseInputFieldsDefinition(lexer) { return peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L) ? many(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L, parseInputValueDef, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_R) : []; } /** * TypeSystemExtension : * - SchemaExtension * - TypeExtension * * TypeExtension : * - ScalarTypeExtension * - ObjectTypeExtension * - InterfaceTypeExtension * - UnionTypeExtension * - EnumTypeExtension * - InputObjectTypeDefinition */ function parseTypeSystemExtension(lexer) { var keywordToken = lexer.lookahead(); if (keywordToken.kind === _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].NAME) { switch (keywordToken.value) { case 'schema': return parseSchemaExtension(lexer); case 'scalar': return parseScalarTypeExtension(lexer); case 'type': return parseObjectTypeExtension(lexer); case 'interface': return parseInterfaceTypeExtension(lexer); case 'union': return parseUnionTypeExtension(lexer); case 'enum': return parseEnumTypeExtension(lexer); case 'input': return parseInputObjectTypeExtension(lexer); } } throw unexpected(lexer, keywordToken); } /** * SchemaExtension : * - extend schema Directives[Const]? { OperationTypeDefinition+ } * - extend schema Directives[Const] */ function parseSchemaExtension(lexer) { var start = lexer.token; expectKeyword(lexer, 'extend'); expectKeyword(lexer, 'schema'); var directives = parseDirectives(lexer, true); var operationTypes = peek(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L) ? many(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_L, parseOperationTypeDefinition, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].BRACE_R) : []; if (directives.length === 0 && operationTypes.length === 0) { throw unexpected(lexer); } return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].SCHEMA_EXTENSION, directives: directives, operationTypes: operationTypes, loc: loc(lexer, start) }; } /** * ScalarTypeExtension : * - extend scalar Name Directives[Const] */ function parseScalarTypeExtension(lexer) { var start = lexer.token; expectKeyword(lexer, 'extend'); expectKeyword(lexer, 'scalar'); var name = parseName(lexer); var directives = parseDirectives(lexer, true); if (directives.length === 0) { throw unexpected(lexer); } return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].SCALAR_TYPE_EXTENSION, name: name, directives: directives, loc: loc(lexer, start) }; } /** * ObjectTypeExtension : * - extend type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition * - extend type Name ImplementsInterfaces? Directives[Const] * - extend type Name ImplementsInterfaces */ function parseObjectTypeExtension(lexer) { var start = lexer.token; expectKeyword(lexer, 'extend'); expectKeyword(lexer, 'type'); var name = parseName(lexer); var interfaces = parseImplementsInterfaces(lexer); var directives = parseDirectives(lexer, true); var fields = parseFieldsDefinition(lexer); if (interfaces.length === 0 && directives.length === 0 && fields.length === 0) { throw unexpected(lexer); } return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].OBJECT_TYPE_EXTENSION, name: name, interfaces: interfaces, directives: directives, fields: fields, loc: loc(lexer, start) }; } /** * InterfaceTypeExtension : * - extend interface Name Directives[Const]? FieldsDefinition * - extend interface Name Directives[Const] */ function parseInterfaceTypeExtension(lexer) { var start = lexer.token; expectKeyword(lexer, 'extend'); expectKeyword(lexer, 'interface'); var name = parseName(lexer); var directives = parseDirectives(lexer, true); var fields = parseFieldsDefinition(lexer); if (directives.length === 0 && fields.length === 0) { throw unexpected(lexer); } return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INTERFACE_TYPE_EXTENSION, name: name, directives: directives, fields: fields, loc: loc(lexer, start) }; } /** * UnionTypeExtension : * - extend union Name Directives[Const]? UnionMemberTypes * - extend union Name Directives[Const] */ function parseUnionTypeExtension(lexer) { var start = lexer.token; expectKeyword(lexer, 'extend'); expectKeyword(lexer, 'union'); var name = parseName(lexer); var directives = parseDirectives(lexer, true); var types = parseUnionMemberTypes(lexer); if (directives.length === 0 && types.length === 0) { throw unexpected(lexer); } return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].UNION_TYPE_EXTENSION, name: name, directives: directives, types: types, loc: loc(lexer, start) }; } /** * EnumTypeExtension : * - extend enum Name Directives[Const]? EnumValuesDefinition * - extend enum Name Directives[Const] */ function parseEnumTypeExtension(lexer) { var start = lexer.token; expectKeyword(lexer, 'extend'); expectKeyword(lexer, 'enum'); var name = parseName(lexer); var directives = parseDirectives(lexer, true); var values = parseEnumValuesDefinition(lexer); if (directives.length === 0 && values.length === 0) { throw unexpected(lexer); } return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].ENUM_TYPE_EXTENSION, name: name, directives: directives, values: values, loc: loc(lexer, start) }; } /** * InputObjectTypeExtension : * - extend input Name Directives[Const]? InputFieldsDefinition * - extend input Name Directives[Const] */ function parseInputObjectTypeExtension(lexer) { var start = lexer.token; expectKeyword(lexer, 'extend'); expectKeyword(lexer, 'input'); var name = parseName(lexer); var directives = parseDirectives(lexer, true); var fields = parseInputFieldsDefinition(lexer); if (directives.length === 0 && fields.length === 0) { throw unexpected(lexer); } return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].INPUT_OBJECT_TYPE_EXTENSION, name: name, directives: directives, fields: fields, loc: loc(lexer, start) }; } /** * DirectiveDefinition : * - Description? directive @ Name ArgumentsDefinition? on DirectiveLocations */ function parseDirectiveDefinition(lexer) { var start = lexer.token; var description = parseDescription(lexer); expectKeyword(lexer, 'directive'); expect(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].AT); var name = parseName(lexer); var args = parseArgumentDefs(lexer); expectKeyword(lexer, 'on'); var locations = parseDirectiveLocations(lexer); return { kind: _kinds__WEBPACK_IMPORTED_MODULE_4__["Kind"].DIRECTIVE_DEFINITION, description: description, name: name, arguments: args, locations: locations, loc: loc(lexer, start) }; } /** * DirectiveLocations : * - `|`? DirectiveLocation * - DirectiveLocations | DirectiveLocation */ function parseDirectiveLocations(lexer) { // Optional leading pipe skip(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PIPE); var locations = []; do { locations.push(parseDirectiveLocation(lexer)); } while (skip(lexer, _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].PIPE)); return locations; } /* * DirectiveLocation : * - ExecutableDirectiveLocation * - TypeSystemDirectiveLocation * * ExecutableDirectiveLocation : one of * `QUERY` * `MUTATION` * `SUBSCRIPTION` * `FIELD` * `FRAGMENT_DEFINITION` * `FRAGMENT_SPREAD` * `INLINE_FRAGMENT` * * TypeSystemDirectiveLocation : one of * `SCHEMA` * `SCALAR` * `OBJECT` * `FIELD_DEFINITION` * `ARGUMENT_DEFINITION` * `INTERFACE` * `UNION` * `ENUM` * `ENUM_VALUE` * `INPUT_OBJECT` * `INPUT_FIELD_DEFINITION` */ function parseDirectiveLocation(lexer) { var start = lexer.token; var name = parseName(lexer); if (_directiveLocation__WEBPACK_IMPORTED_MODULE_5__["DirectiveLocation"].hasOwnProperty(name.value)) { return name; } throw unexpected(lexer, start); } // Core parsing utility functions /** * Returns a location object, used to identify the place in * the source that created a given parsed object. */ function loc(lexer, startToken) { if (!lexer.options.noLocation) { return new Loc(startToken, lexer.lastToken, lexer.source); } } function Loc(startToken, endToken, source) { this.start = startToken.start; this.end = endToken.end; this.startToken = startToken; this.endToken = endToken; this.source = source; } // Print a simplified form when appearing in JSON/util.inspect. Loc.prototype.toJSON = Loc.prototype.inspect = function toJSON() { return { start: this.start, end: this.end }; }; /** * Determines if the next token is of a given kind */ function peek(lexer, kind) { return lexer.token.kind === kind; } /** * If the next token is of the given kind, return true after advancing * the lexer. Otherwise, do not change the parser state and return false. */ function skip(lexer, kind) { var match = lexer.token.kind === kind; if (match) { lexer.advance(); } return match; } /** * If the next token is of the given kind, return that token after advancing * the lexer. Otherwise, do not change the parser state and throw an error. */ function expect(lexer, kind) { var token = lexer.token; if (token.kind === kind) { lexer.advance(); return token; } throw Object(_error__WEBPACK_IMPORTED_MODULE_2__["syntaxError"])(lexer.source, token.start, "Expected ".concat(kind, ", found ").concat(Object(_lexer__WEBPACK_IMPORTED_MODULE_3__["getTokenDesc"])(token))); } /** * If the next token is a keyword with the given value, return that token after * advancing the lexer. Otherwise, do not change the parser state and return * false. */ function expectKeyword(lexer, value) { var token = lexer.token; if (token.kind === _lexer__WEBPACK_IMPORTED_MODULE_3__["TokenKind"].NAME && token.value === value) { lexer.advance(); return token; } throw Object(_error__WEBPACK_IMPORTED_MODULE_2__["syntaxError"])(lexer.source, token.start, "Expected \"".concat(value, "\", found ").concat(Object(_lexer__WEBPACK_IMPORTED_MODULE_3__["getTokenDesc"])(token))); } /** * Helper function for creating an error when an unexpected lexed token * is encountered. */ function unexpected(lexer, atToken) { var token = atToken || lexer.token; return Object(_error__WEBPACK_IMPORTED_MODULE_2__["syntaxError"])(lexer.source, token.start, "Unexpected ".concat(Object(_lexer__WEBPACK_IMPORTED_MODULE_3__["getTokenDesc"])(token))); } /** * Returns a possibly empty list of parse nodes, determined by * the parseFn. This list begins with a lex token of openKind * and ends with a lex token of closeKind. Advances the parser * to the next lex token after the closing token. */ function any(lexer, openKind, parseFn, closeKind) { expect(lexer, openKind); var nodes = []; while (!skip(lexer, closeKind)) { nodes.push(parseFn(lexer)); } return nodes; } /** * Returns a non-empty list of parse nodes, determined by * the parseFn. This list begins with a lex token of openKind * and ends with a lex token of closeKind. Advances the parser * to the next lex token after the closing token. */ function many(lexer, openKind, parseFn, closeKind) { expect(lexer, openKind); var nodes = [parseFn(lexer)]; while (!skip(lexer, closeKind)) { nodes.push(parseFn(lexer)); } return nodes; } /***/ }), /***/ "ENBt": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-textract/dist/es/commands/DetectDocumentTextCommand.js ***! \*********************************************************************************************/ /*! exports provided: DetectDocumentTextCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectDocumentTextCommand", function() { return DetectDocumentTextCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "glqB"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "doVe"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DetectDocumentTextCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DetectDocumentTextCommand, _super); // Start section: command_properties // End section: command_properties function DetectDocumentTextCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DetectDocumentTextCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DetectDocumentTextRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DetectDocumentTextResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DetectDocumentTextCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DetectDocumentTextCommand"])(input, context); }; DetectDocumentTextCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DetectDocumentTextCommand"])(output, context); }; return DetectDocumentTextCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DetectDocumentTextCommand.js.map /***/ }), /***/ "EQ5u": /*!*********************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/ConnectableObservable.js ***! \*********************************************************************************/ /*! exports provided: ConnectableObservable, connectableObservableDescriptor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConnectableObservable", function() { return ConnectableObservable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "connectableObservableDescriptor", function() { return connectableObservableDescriptor; }); /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subject */ "XNiG"); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Subscription */ "quSY"); /* harmony import */ var _operators_refCount__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../operators/refCount */ "x+ZX"); class ConnectableObservable extends _Observable__WEBPACK_IMPORTED_MODULE_1__["Observable"] { constructor(source, subjectFactory) { super(); this.source = source; this.subjectFactory = subjectFactory; this._refCount = 0; this._isComplete = false; } _subscribe(subscriber) { return this.getSubject().subscribe(subscriber); } getSubject() { const subject = this._subject; if (!subject || subject.isStopped) { this._subject = this.subjectFactory(); } return this._subject; } connect() { let connection = this._connection; if (!connection) { this._isComplete = false; connection = this._connection = new _Subscription__WEBPACK_IMPORTED_MODULE_3__["Subscription"](); connection.add(this.source .subscribe(new ConnectableSubscriber(this.getSubject(), this))); if (connection.closed) { this._connection = null; connection = _Subscription__WEBPACK_IMPORTED_MODULE_3__["Subscription"].EMPTY; } } return connection; } refCount() { return Object(_operators_refCount__WEBPACK_IMPORTED_MODULE_4__["refCount"])()(this); } } const connectableObservableDescriptor = (() => { const connectableProto = ConnectableObservable.prototype; return { operator: { value: null }, _refCount: { value: 0, writable: true }, _subject: { value: null, writable: true }, _connection: { value: null, writable: true }, _subscribe: { value: connectableProto._subscribe }, _isComplete: { value: connectableProto._isComplete, writable: true }, getSubject: { value: connectableProto.getSubject }, connect: { value: connectableProto.connect }, refCount: { value: connectableProto.refCount } }; })(); class ConnectableSubscriber extends _Subject__WEBPACK_IMPORTED_MODULE_0__["SubjectSubscriber"] { constructor(destination, connectable) { super(destination); this.connectable = connectable; } _error(err) { this._unsubscribe(); super._error(err); } _complete() { this.connectable._isComplete = true; this._unsubscribe(); super._complete(); } _unsubscribe() { const connectable = this.connectable; if (connectable) { this.connectable = null; const connection = connectable._connection; connectable._refCount = 0; connectable._subject = null; connectable._connection = null; if (connection) { connection.unsubscribe(); } } } } class RefCountOperator { constructor(connectable) { this.connectable = connectable; } call(subscriber, source) { const { connectable } = this; connectable._refCount++; const refCounter = new RefCountSubscriber(subscriber, connectable); const subscription = source.subscribe(refCounter); if (!refCounter.closed) { refCounter.connection = connectable.connect(); } return subscription; } } class RefCountSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_2__["Subscriber"] { constructor(destination, connectable) { super(destination); this.connectable = connectable; } _unsubscribe() { const { connectable } = this; if (!connectable) { this.connection = null; return; } this.connectable = null; const refCount = connectable._refCount; if (refCount <= 0) { this.connection = null; return; } connectable._refCount = refCount - 1; if (refCount > 1) { this.connection = null; return; } const { connection } = this; const sharedConnection = connectable._connection; this.connection = null; if (sharedConnection && (!connection || sharedConnection === connection)) { sharedConnection.unsubscribe(); } } } //# sourceMappingURL=ConnectableObservable.js.map /***/ }), /***/ "ETIr": /*!**********************************************!*\ !*** ./node_modules/crypto-js/enc-base64.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { ;(function (root, factory) { if (true) { // CommonJS module.exports = exports = factory(__webpack_require__(/*! ./core */ "Ib8C")); } else {} }(this, function (CryptoJS) { (function () { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var WordArray = C_lib.WordArray; var C_enc = C.enc; /** * Base64 encoding strategy. */ var Base64 = C_enc.Base64 = { /** * Converts a word array to a Base64 string. * * @param {WordArray} wordArray The word array. * * @return {string} The Base64 string. * * @static * * @example * * var base64String = CryptoJS.enc.Base64.stringify(wordArray); */ stringify: function (wordArray) { // Shortcuts var words = wordArray.words; var sigBytes = wordArray.sigBytes; var map = this._map; // Clamp excess bits wordArray.clamp(); // Convert var base64Chars = []; for (var i = 0; i < sigBytes; i += 3) { var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff; var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff; var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff; var triplet = (byte1 << 16) | (byte2 << 8) | byte3; for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) { base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f)); } } // Add padding var paddingChar = map.charAt(64); if (paddingChar) { while (base64Chars.length % 4) { base64Chars.push(paddingChar); } } return base64Chars.join(''); }, /** * Converts a Base64 string to a word array. * * @param {string} base64Str The Base64 string. * * @return {WordArray} The word array. * * @static * * @example * * var wordArray = CryptoJS.enc.Base64.parse(base64String); */ parse: function (base64Str) { // Shortcuts var base64StrLength = base64Str.length; var map = this._map; var reverseMap = this._reverseMap; if (!reverseMap) { reverseMap = this._reverseMap = []; for (var j = 0; j < map.length; j++) { reverseMap[map.charCodeAt(j)] = j; } } // Ignore padding var paddingChar = map.charAt(64); if (paddingChar) { var paddingIndex = base64Str.indexOf(paddingChar); if (paddingIndex !== -1) { base64StrLength = paddingIndex; } } // Convert return parseLoop(base64Str, base64StrLength, reverseMap); }, _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=' }; function parseLoop(base64Str, base64StrLength, reverseMap) { var words = []; var nBytes = 0; for (var i = 0; i < base64StrLength; i++) { if (i % 4) { var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2); var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2); words[nBytes >>> 2] |= (bits1 | bits2) << (24 - (nBytes % 4) * 8); nBytes++; } } return WordArray.create(words, nBytes); } }()); return CryptoJS.enc.Base64; })); /***/ }), /***/ "ETO7": /*!**************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/lib-esm/index.js ***! \**************************************************************/ /*! exports provided: DataStore, DataStoreClass, initSchema, Predicates, isSchemaModel, isAssociatedWith, isTargetNameAssociation, GraphQLScalarType, isGraphQLScalarType, isModelFieldType, isNonModelFieldType, isEnumFieldType, OpType, isPredicateObj, isPredicateGroup, QueryOne, SortDirection, DISCARD */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _datastore_datastore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./datastore/datastore */ "KUjx"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DataStore", function() { return _datastore_datastore__WEBPACK_IMPORTED_MODULE_0__["DataStore"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DataStoreClass", function() { return _datastore_datastore__WEBPACK_IMPORTED_MODULE_0__["DataStoreClass"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initSchema", function() { return _datastore_datastore__WEBPACK_IMPORTED_MODULE_0__["initSchema"]; }); /* harmony import */ var _predicates__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./predicates */ "0VOl"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Predicates", function() { return _predicates__WEBPACK_IMPORTED_MODULE_1__["Predicates"]; }); /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./types */ "+eag"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isSchemaModel", function() { return _types__WEBPACK_IMPORTED_MODULE_2__["isSchemaModel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isAssociatedWith", function() { return _types__WEBPACK_IMPORTED_MODULE_2__["isAssociatedWith"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isTargetNameAssociation", function() { return _types__WEBPACK_IMPORTED_MODULE_2__["isTargetNameAssociation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLScalarType", function() { return _types__WEBPACK_IMPORTED_MODULE_2__["GraphQLScalarType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isGraphQLScalarType", function() { return _types__WEBPACK_IMPORTED_MODULE_2__["isGraphQLScalarType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isModelFieldType", function() { return _types__WEBPACK_IMPORTED_MODULE_2__["isModelFieldType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isNonModelFieldType", function() { return _types__WEBPACK_IMPORTED_MODULE_2__["isNonModelFieldType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isEnumFieldType", function() { return _types__WEBPACK_IMPORTED_MODULE_2__["isEnumFieldType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OpType", function() { return _types__WEBPACK_IMPORTED_MODULE_2__["OpType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isPredicateObj", function() { return _types__WEBPACK_IMPORTED_MODULE_2__["isPredicateObj"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isPredicateGroup", function() { return _types__WEBPACK_IMPORTED_MODULE_2__["isPredicateGroup"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QueryOne", function() { return _types__WEBPACK_IMPORTED_MODULE_2__["QueryOne"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SortDirection", function() { return _types__WEBPACK_IMPORTED_MODULE_2__["SortDirection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DISCARD", function() { return _types__WEBPACK_IMPORTED_MODULE_2__["DISCARD"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "ETva": /*!**************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/CreateStreamCommand.js ***! \**************************************************************************************/ /*! exports provided: CreateStreamCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateStreamCommand", function() { return CreateStreamCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CreateStreamCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateStreamCommand, _super); // Start section: command_properties // End section: command_properties function CreateStreamCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CreateStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateStreamInput"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CreateStreamCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1CreateStreamCommand"])(input, context); }; CreateStreamCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1CreateStreamCommand"])(output, context); }; return CreateStreamCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=CreateStreamCommand.js.map /***/ }), /***/ "EY2u": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/empty.js ***! \*****************************************************************/ /*! exports provided: EMPTY, empty */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EMPTY", function() { return EMPTY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "empty", function() { return empty; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); const EMPTY = new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => subscriber.complete()); function empty(scheduler) { return scheduler ? emptyScheduled(scheduler) : EMPTY; } function emptyScheduled(scheduler) { return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => scheduler.schedule(() => subscriber.complete())); } //# sourceMappingURL=empty.js.map /***/ }), /***/ "EYhj": /*!**************************************************************************************!*\ !*** ./node_modules/@aws-amplify/analytics/lib-esm/Providers/AWSPinpointProvider.js ***! \**************************************************************************************/ /*! exports provided: AWSPinpointProvider, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AWSPinpointProvider", function() { return AWSPinpointProvider; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/client-pinpoint */ "NTFb"); /* harmony import */ var _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-amplify/cache */ "gr/K"); /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! uuid */ "EcEN"); /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _EventBuffer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EventBuffer */ "Tujd"); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __rest = (undefined && undefined.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; var AMPLIFY_SYMBOL = (typeof Symbol !== 'undefined' && typeof Symbol.for === 'function' ? Symbol.for('amplify_default') : '@@amplify_default'); var dispatchAnalyticsEvent = function (event, data) { _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].dispatch('analytics', { event: event, data: data }, 'Analytics', AMPLIFY_SYMBOL); }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AWSPinpointProvider'); var RETRYABLE_CODES = [429, 500]; var ACCEPTED_CODES = [202]; var FORBIDDEN_CODE = 403; var BAD_REQUEST_CODE = 400; var MOBILE_SERVICE_NAME = 'mobiletargeting'; var EXPIRED_TOKEN_CODE = 'ExpiredTokenException'; var UPDATE_ENDPOINT = '_update_endpoint'; var SESSION_START = '_session.start'; var SESSION_STOP = '_session.stop'; var BEACON_SUPPORTED = typeof navigator !== 'undefined' && navigator && typeof navigator.sendBeacon === 'function'; // events buffer var BUFFER_SIZE = 1000; var FLUSH_SIZE = 100; var FLUSH_INTERVAL = 5 * 1000; // 5s var RESEND_LIMIT = 5; // params: { event: {name: , .... }, timeStamp, config, resendLimits } var AWSPinpointProvider = /** @class */ (function () { function AWSPinpointProvider(config) { this._endpointGenerating = true; this._endpointUpdateInProgress = false; this._buffer = null; this._endpointBuffer = []; this._config = config ? config : {}; this._config.bufferSize = this._config.bufferSize || BUFFER_SIZE; this._config.flushSize = this._config.flushSize || FLUSH_SIZE; this._config.flushInterval = this._config.flushInterval || FLUSH_INTERVAL; this._config.resendLimit = this._config.resendLimit || RESEND_LIMIT; this._clientInfo = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ClientDevice"].clientInfo(); } /** * get the category of the plugin */ AWSPinpointProvider.prototype.getCategory = function () { return AWSPinpointProvider.category; }; /** * get provider name of the plugin */ AWSPinpointProvider.prototype.getProviderName = function () { return AWSPinpointProvider.providerName; }; /** * configure the plugin * @param {Object} config - configuration */ AWSPinpointProvider.prototype.configure = function (config) { var _this = this; logger.debug('configure Analytics', config); var conf = config || {}; this._config = Object.assign({}, this._config, conf); if (this._config.appId && !this._config.disabled) { if (!this._config.endpointId) { var cacheKey = this.getProviderName() + '_' + this._config.appId; this._getEndpointId(cacheKey) .then(function (endpointId) { logger.debug('setting endpoint id from the cache', endpointId); _this._config.endpointId = endpointId; dispatchAnalyticsEvent('pinpointProvider_configured', null); }) .catch(function (err) { logger.debug('Failed to generate endpointId', err); }); } else { dispatchAnalyticsEvent('pinpointProvider_configured', null); } } else { this._flushBuffer(); } return this._config; }; /** * record an event * @param {Object} params - the params of an event */ AWSPinpointProvider.prototype.record = function (params, handlers) { return __awaiter(this, void 0, void 0, function () { var credentials, timestamp; return __generator(this, function (_a) { switch (_a.label) { case 0: logger.debug('_public record', params); return [4 /*yield*/, this._getCredentials()]; case 1: credentials = _a.sent(); if (!credentials || !this._config.appId || !this._config.region) { logger.debug('cannot send events without credentials, applicationId or region'); return [2 /*return*/, handlers.reject(new Error('No credentials, applicationId or region'))]; } this._initClients(credentials); timestamp = new Date().getTime(); // attach the session and eventId this._generateSession(params); params.event.eventId = Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])(); Object.assign(params, { timestamp: timestamp, config: this._config }); if (params.event.immediate) { return [2 /*return*/, this._send(params, handlers)]; } else { this._putToBuffer(params, handlers); } return [2 /*return*/]; } }); }); }; AWSPinpointProvider.prototype._sendEndpointUpdate = function (endpointObject) { return __awaiter(this, void 0, void 0, function () { var next; return __generator(this, function (_a) { switch (_a.label) { case 0: if (this._endpointUpdateInProgress) { this._endpointBuffer.push(endpointObject); return [2 /*return*/]; } this._endpointUpdateInProgress = true; return [4 /*yield*/, this._updateEndpoint(endpointObject)]; case 1: _a.sent(); next = this._endpointBuffer.shift(); this._endpointUpdateInProgress = false; next && this._sendEndpointUpdate(next); return [2 /*return*/]; } }); }); }; /** * @private * @param params - params for event recording * Put events into buffer */ AWSPinpointProvider.prototype._putToBuffer = function (params, handlers) { if (params.event.name === UPDATE_ENDPOINT) { this._sendEndpointUpdate({ params: params, handlers: handlers }); return; } this._buffer && this._buffer.push({ params: params, handlers: handlers }); }; AWSPinpointProvider.prototype._generateSession = function (params) { this._sessionId = this._sessionId || Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])(); var event = params.event; switch (event.name) { case SESSION_START: // refresh the session id and session start time this._sessionStartTimestamp = new Date().getTime(); this._sessionId = Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])(); event.session = { Id: this._sessionId, StartTimestamp: new Date(this._sessionStartTimestamp).toISOString(), }; break; case SESSION_STOP: var stopTimestamp = new Date().getTime(); this._sessionStartTimestamp = this._sessionStartTimestamp || new Date().getTime(); this._sessionId = this._sessionId || Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])(); event.session = { Id: this._sessionId, Duration: stopTimestamp - this._sessionStartTimestamp, StartTimestamp: new Date(this._sessionStartTimestamp).toISOString(), StopTimestamp: new Date(stopTimestamp).toISOString(), }; this._sessionId = undefined; this._sessionStartTimestamp = undefined; break; default: this._sessionStartTimestamp = this._sessionStartTimestamp || new Date().getTime(); this._sessionId = this._sessionId || Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])(); event.session = { Id: this._sessionId, StartTimestamp: new Date(this._sessionStartTimestamp).toISOString(), }; } }; AWSPinpointProvider.prototype._send = function (params, handlers) { return __awaiter(this, void 0, void 0, function () { var event; return __generator(this, function (_a) { event = params.event; switch (event.name) { case UPDATE_ENDPOINT: return [2 /*return*/, this._updateEndpoint({ params: params, handlers: handlers })]; case SESSION_STOP: return [2 /*return*/, this._pinpointSendStopSession(params, handlers)]; default: return [2 /*return*/, this._pinpointPutEvents(params, handlers)]; } return [2 /*return*/]; }); }); }; AWSPinpointProvider.prototype._generateBatchItemContext = function (params) { var _a; var event = params.event, timestamp = params.timestamp, config = params.config; var name = event.name, attributes = event.attributes, metrics = event.metrics, eventId = event.eventId, session = event.session; var appId = config.appId, endpointId = config.endpointId; var endpointContext = {}; var eventParams = { ApplicationId: appId, EventsRequest: { BatchItem: {}, }, }; var endpointObj = {}; endpointObj.Endpoint = endpointContext; endpointObj.Events = (_a = {}, _a[eventId] = { EventType: name, Timestamp: new Date(timestamp).toISOString(), Attributes: attributes, Metrics: metrics, Session: session, }, _a); eventParams.EventsRequest.BatchItem[endpointId] = endpointObj; return eventParams; }; AWSPinpointProvider.prototype._pinpointPutEvents = function (params, handlers) { return __awaiter(this, void 0, void 0, function () { var eventId, endpointId, eventParams, command, data, _a, _b, _c, StatusCode, Message, err_1; return __generator(this, function (_d) { switch (_d.label) { case 0: eventId = params.event.eventId, endpointId = params.config.endpointId; eventParams = this._generateBatchItemContext(params); command = new _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__["PutEventsCommand"](eventParams); _d.label = 1; case 1: _d.trys.push([1, 3, , 4]); return [4 /*yield*/, this.pinpointClient.send(command)]; case 2: data = _d.sent(); _a = endpointId, _b = eventId, _c = data.EventsResponse.Results[_a].EventsItemResponse[_b], StatusCode = _c.StatusCode, Message = _c.Message; if (ACCEPTED_CODES.includes(StatusCode)) { logger.debug('record event success. ', data); return [2 /*return*/, handlers.resolve(data)]; } else { if (RETRYABLE_CODES.includes(StatusCode)) { this._retry(params, handlers); } else { logger.error("Event " + eventId + " is not accepted, the error is " + Message); return [2 /*return*/, handlers.reject(data)]; } } return [3 /*break*/, 4]; case 3: err_1 = _d.sent(); this._eventError(err_1); return [2 /*return*/, handlers.reject(err_1)]; case 4: return [2 /*return*/]; } }); }); }; AWSPinpointProvider.prototype._pinpointSendStopSession = function (params, handlers) { if (!BEACON_SUPPORTED) { this._pinpointPutEvents(params, handlers); return; } var eventParams = this._generateBatchItemContext(params); var region = this._config.region; var ApplicationId = eventParams.ApplicationId, EventsRequest = eventParams.EventsRequest; var accessInfo = { secret_key: this._config.credentials.secretAccessKey, access_key: this._config.credentials.accessKeyId, session_token: this._config.credentials.sessionToken, }; var url = "https://pinpoint." + region + ".amazonaws.com/v1/apps/" + ApplicationId + "/events/legacy"; var body = JSON.stringify(EventsRequest); var method = 'POST'; var request = { url: url, body: body, method: method, }; var serviceInfo = { region: region, service: MOBILE_SERVICE_NAME }; var requestUrl = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Signer"].signUrl(request, accessInfo, serviceInfo, null); var success = navigator.sendBeacon(requestUrl, body); if (success) { return handlers.resolve('sendBeacon success'); } return handlers.reject('sendBeacon failure'); }; AWSPinpointProvider.prototype._retry = function (params, handlers) { var resendLimit = params.config.resendLimit; // For backward compatibility params.resendLimit = typeof params.resendLimit === 'number' ? params.resendLimit : resendLimit; if (params.resendLimit-- > 0) { logger.debug("resending event " + params.eventName + " with " + params.resendLimit + " retry times left"); this._pinpointPutEvents(params, handlers); } else { logger.debug("retry times used up for event " + params.eventName); } }; AWSPinpointProvider.prototype._updateEndpoint = function (endpointObject) { return __awaiter(this, void 0, void 0, function () { var params, handlers, config, event, appId, endpointId, request, update_params, command, data, err_2, failureData; return __generator(this, function (_a) { switch (_a.label) { case 0: params = endpointObject.params, handlers = endpointObject.handlers; config = params.config, event = params.event; appId = config.appId, endpointId = config.endpointId; request = this._endpointRequest(config, _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].transferKeyToLowerCase(event, [], ['attributes', 'userAttributes', 'Attributes', 'UserAttributes'])); update_params = { ApplicationId: appId, EndpointId: endpointId, EndpointRequest: request, }; _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); command = new _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointCommand"](update_params); return [4 /*yield*/, this.pinpointClient.send(command)]; case 2: data = _a.sent(); logger.debug('updateEndpoint success', data); this._endpointGenerating = false; this._resumeBuffer(); handlers.resolve(data); return [2 /*return*/]; case 3: err_2 = _a.sent(); failureData = { err: err_2, update_params: update_params, endpointObject: endpointObject, }; return [2 /*return*/, this._handleEndpointUpdateFailure(failureData)]; case 4: return [2 /*return*/]; } }); }); }; AWSPinpointProvider.prototype._handleEndpointUpdateFailure = function (failureData) { return __awaiter(this, void 0, void 0, function () { var err, endpointObject, statusCode, exponential; return __generator(this, function (_a) { err = failureData.err, endpointObject = failureData.endpointObject; statusCode = err.$metadata && err.$metadata.httpStatusCode; logger.debug('updateEndpoint failed', err); switch (statusCode) { case BAD_REQUEST_CODE: return [2 /*return*/, this._handleEndpointUpdateBadRequest(failureData)]; case FORBIDDEN_CODE: return [2 /*return*/, this._handleEndpointUpdateForbidden(failureData)]; default: if (RETRYABLE_CODES.includes(statusCode)) { exponential = true; return [2 /*return*/, this._retryEndpointUpdate(endpointObject, exponential)]; } endpointObject.handlers.reject(err); } return [2 /*return*/]; }); }); }; AWSPinpointProvider.prototype._handleEndpointUpdateBadRequest = function (failureData) { return __awaiter(this, void 0, void 0, function () { var err, update_params, endpointObject, message, ApplicationId, EndpointRequest, err_3; return __generator(this, function (_a) { switch (_a.label) { case 0: err = failureData.err, update_params = failureData.update_params, endpointObject = failureData.endpointObject; message = err.message; ApplicationId = update_params.ApplicationId, EndpointRequest = update_params.EndpointRequest; if (!String(message).startsWith('Exceeded maximum endpoint per user count')) { return [2 /*return*/, endpointObject.handlers.reject(err)]; } _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); return [4 /*yield*/, this._removeUnusedEndpoints(ApplicationId, EndpointRequest.User.UserId)]; case 2: _a.sent(); logger.debug('Removed unused endpoints successfully'); this._retryEndpointUpdate(endpointObject); return [3 /*break*/, 4]; case 3: err_3 = _a.sent(); logger.warn("Failed to remove unused endpoints with error: " + err_3); logger.warn("Please ensure you have updated your Pinpoint IAM Policy " + "with the Action: \"mobiletargeting:GetUserEndpoints\" " + "in order to get endpoints info of the user"); return [2 /*return*/, endpointObject.handlers.reject(err_3)]; case 4: return [2 /*return*/]; } }); }); }; AWSPinpointProvider.prototype._handleEndpointUpdateForbidden = function (failureData) { var err = failureData.err, endpointObject = failureData.endpointObject; var code = err.code, retryable = err.retryable; if (code !== EXPIRED_TOKEN_CODE && !retryable) { return endpointObject.handlers.reject(err); } this._retryEndpointUpdate(endpointObject); }; AWSPinpointProvider.prototype._retryEndpointUpdate = function (endpointObject, exponential) { if (exponential === void 0) { exponential = false; } logger.debug('_retryEndpointUpdate', endpointObject); var params = endpointObject.params; // TODO: implement retry with exp back off once exp function is available var resendLimit = params.config.resendLimit; params.resendLimit = typeof params.resendLimit === 'number' ? params.resendLimit : resendLimit; if (params.resendLimit-- > 0) { logger.debug("resending endpoint update " + params.event.eventId + " with " + params.resendLimit + " retry attempts remaining"); // insert at the front of endpointBuffer this._endpointBuffer.length ? this._endpointBuffer.unshift(endpointObject) : this._updateEndpoint(endpointObject); return; } logger.warn("resending endpoint update " + params.event.eventId + " failed after " + params.config.resendLimit + " attempts"); if (this._endpointGenerating) { logger.error('Initial endpoint update failed. '); } }; AWSPinpointProvider.prototype._removeUnusedEndpoints = function (appId, userId) { return __awaiter(this, void 0, void 0, function () { var command, data, endpoints, endpointToBeDeleted, i, timeStamp1, timeStamp2, update_params, updateEndPointcommand, updateEndPointData, err_4, err_5; return __generator(this, function (_a) { switch (_a.label) { case 0: _a.trys.push([0, 6, , 7]); command = new _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__["GetUserEndpointsCommand"]({ ApplicationId: appId, UserId: userId, }); return [4 /*yield*/, this.pinpointClient.send(command)]; case 1: data = _a.sent(); endpoints = data.EndpointsResponse.Item; logger.debug("get endpoints associated with the userId: " + userId + " with data", endpoints); endpointToBeDeleted = endpoints[0]; for (i = 1; i < endpoints.length; i++) { timeStamp1 = Date.parse(endpointToBeDeleted['EffectiveDate']); timeStamp2 = Date.parse(endpoints[i]['EffectiveDate']); // delete the one with invalid effective date if (isNaN(timeStamp1)) break; if (isNaN(timeStamp2)) { endpointToBeDeleted = endpoints[i]; break; } if (timeStamp2 < timeStamp1) { endpointToBeDeleted = endpoints[i]; } } update_params = { ApplicationId: appId, EndpointId: endpointToBeDeleted['Id'], EndpointRequest: { User: { UserId: '', }, }, }; _a.label = 2; case 2: _a.trys.push([2, 4, , 5]); updateEndPointcommand = new _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointCommand"](update_params); return [4 /*yield*/, this.pinpointClient.send(updateEndPointcommand)]; case 3: updateEndPointData = _a.sent(); logger.debug('The old endpoint is updated with an empty string for user id'); return [2 /*return*/, updateEndPointData]; case 4: err_4 = _a.sent(); logger.debug('Failed to update the endpoint', err_4); throw err_4; case 5: return [3 /*break*/, 7]; case 6: err_5 = _a.sent(); logger.debug("Failed to get endpoints associated with the userId: " + userId + " with error", err_5); throw err_5; case 7: return [2 /*return*/]; } }); }); }; /** * @private * @param config * Init the clients */ AWSPinpointProvider.prototype._initClients = function (credentials) { return __awaiter(this, void 0, void 0, function () { var identityId, region; return __generator(this, function (_a) { logger.debug('init clients'); if (this.pinpointClient && this._config.credentials && this._config.credentials.sessionToken === credentials.sessionToken && this._config.credentials.identityId === credentials.identityId) { logger.debug('no change for aws credentials, directly return from init'); return [2 /*return*/]; } identityId = this._config.credentials ? this._config.credentials.identityId : null; this._config.credentials = credentials; region = this._config.region; logger.debug('init clients with credentials', credentials); this.pinpointClient = new _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__["PinpointClient"]({ region: region, credentials: credentials, customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["getAmplifyUserAgent"])(), }); // TODO: remove this middleware once a long term fix is implemented by aws-sdk-js team. this.pinpointClient.middlewareStack.addRelativeTo(function (next) { return function (args) { delete args.request.headers['amz-sdk-invocation-id']; delete args.request.headers['amz-sdk-request']; return next(args); }; }, { step: 'finalizeRequest', relation: 'after', toMiddleware: 'retryMiddleware', }); if (this._bufferExists() && identityId === credentials.identityId) { // if the identity has remained the same, pass the updated client to the buffer this._updateBufferClient(); } else { // otherwise flush the buffer and instantiate a new one // this will cause the old buffer to send any remaining events // with the old credentials and then stop looping and shortly thereafter get picked up by GC this._initBuffer(); } this._customizePinpointClientReq(); return [2 /*return*/]; }); }); }; AWSPinpointProvider.prototype._bufferExists = function () { return this._buffer && this._buffer instanceof _EventBuffer__WEBPACK_IMPORTED_MODULE_4__["default"]; }; AWSPinpointProvider.prototype._initBuffer = function () { if (this._bufferExists()) { this._flushBuffer(); } this._buffer = new _EventBuffer__WEBPACK_IMPORTED_MODULE_4__["default"](this.pinpointClient, this._config); // if the first endpoint update hasn't yet resolved pause the buffer to // prevent race conditions. It will be resumed as soon as that request succeeds if (this._endpointGenerating) { this._buffer.pause(); } }; AWSPinpointProvider.prototype._updateBufferClient = function () { if (this._bufferExists()) { this._buffer.updateClient(this.pinpointClient); } }; AWSPinpointProvider.prototype._flushBuffer = function () { if (this._bufferExists()) { this._buffer.flush(); this._buffer = null; } }; AWSPinpointProvider.prototype._resumeBuffer = function () { if (this._bufferExists()) { this._buffer.resume(); } }; AWSPinpointProvider.prototype._customizePinpointClientReq = function () { // TODO FIXME: Find a middleware to do this with AWS V3 SDK // if (Platform.isReactNative) { // this.pinpointClient.customizeRequests(request => { // request.on('build', req => { // req.httpRequest.headers['user-agent'] = Platform.userAgent; // }); // }); // } }; AWSPinpointProvider.prototype._getEndpointId = function (cacheKey) { return __awaiter(this, void 0, void 0, function () { var endpointId; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2__["default"].getItem(cacheKey)]; case 1: endpointId = _a.sent(); logger.debug('endpointId from cache', endpointId, 'type', typeof endpointId); if (!endpointId) { endpointId = Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])(); _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2__["default"].setItem(cacheKey, endpointId); } return [2 /*return*/, endpointId]; } }); }); }; /** * EndPoint request * @return {Object} - The request of updating endpoint */ AWSPinpointProvider.prototype._endpointRequest = function (config, event) { var credentials = config.credentials; var clientInfo = this._clientInfo || {}; var clientContext = config.clientContext || {}; // for now we have three different ways for default endpoint configurations // clientInfo // clientContext (deprecated) // config.endpoint var defaultEndpointConfig = config.endpoint || {}; var demographicByClientInfo = { appVersion: clientInfo.appVersion, make: clientInfo.make, model: clientInfo.model, modelVersion: clientInfo.version, platform: clientInfo.platform, }; // for backward compatibility var clientId = clientContext.clientId, appTitle = clientContext.appTitle, appVersionName = clientContext.appVersionName, appVersionCode = clientContext.appVersionCode, appPackageName = clientContext.appPackageName, demographicByClientContext = __rest(clientContext, ["clientId", "appTitle", "appVersionName", "appVersionCode", "appPackageName"]); var channelType = event.address ? clientInfo.platform === 'android' ? 'GCM' : 'APNS' : undefined; var tmp = __assign(__assign(__assign({ channelType: channelType, requestId: Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])(), effectiveDate: new Date().toISOString() }, defaultEndpointConfig), event), { attributes: __assign(__assign({}, defaultEndpointConfig.attributes), event.attributes), demographic: __assign(__assign(__assign(__assign({}, demographicByClientInfo), demographicByClientContext), defaultEndpointConfig.demographic), event.demographic), location: __assign(__assign({}, defaultEndpointConfig.location), event.location), metrics: __assign(__assign({}, defaultEndpointConfig.metrics), event.metrics), user: { userId: event.userId || defaultEndpointConfig.userId || credentials.identityId, userAttributes: __assign(__assign({}, defaultEndpointConfig.userAttributes), event.userAttributes), } }); // eliminate unnecessary params var userId = tmp.userId, userAttributes = tmp.userAttributes, name = tmp.name, session = tmp.session, eventId = tmp.eventId, immediate = tmp.immediate, ret = __rest(tmp, ["userId", "userAttributes", "name", "session", "eventId", "immediate"]); return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].transferKeyToUpperCase(ret, [], ['metrics', 'userAttributes', 'attributes']); }; AWSPinpointProvider.prototype._eventError = function (err) { logger.error('record event failed.', err); logger.warn("Please ensure you have updated your Pinpoint IAM Policy " + "with the Action: \"mobiletargeting:PutEvents\" " + "in order to record events"); }; AWSPinpointProvider.prototype._getCredentials = function () { return __awaiter(this, void 0, void 0, function () { var credentials, err_6; return __generator(this, function (_a) { switch (_a.label) { case 0: _a.trys.push([0, 2, , 3]); return [4 /*yield*/, _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].get()]; case 1: credentials = _a.sent(); if (!credentials) return [2 /*return*/, null]; logger.debug('set credentials for analytics', credentials); return [2 /*return*/, _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].shear(credentials)]; case 2: err_6 = _a.sent(); logger.debug('ensure credentials error', err_6); return [2 /*return*/, null]; case 3: return [2 /*return*/]; } }); }); }; AWSPinpointProvider.category = 'Analytics'; AWSPinpointProvider.providerName = 'AWSPinpoint'; return AWSPinpointProvider; }()); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (AWSPinpointProvider); //# sourceMappingURL=AWSPinpointProvider.js.map /***/ }), /***/ "Eau9": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/SetIdentityPoolRolesCommand.js ***! \*******************************************************************************************************/ /*! exports provided: SetIdentityPoolRolesCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SetIdentityPoolRolesCommand", function() { return SetIdentityPoolRolesCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var SetIdentityPoolRolesCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SetIdentityPoolRolesCommand, _super); // Start section: command_properties // End section: command_properties function SetIdentityPoolRolesCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } SetIdentityPoolRolesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__["getAwsAuthPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["SetIdentityPoolRolesInput"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; SetIdentityPoolRolesCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1SetIdentityPoolRolesCommand"])(input, context); }; SetIdentityPoolRolesCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1SetIdentityPoolRolesCommand"])(output, context); }; return SetIdentityPoolRolesCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=SetIdentityPoolRolesCommand.js.map /***/ }), /***/ "EayL": /*!**********************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/RNComponents/index.js ***! \**********************************************************************/ /*! exports provided: Linking, AppState, AsyncStorage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Linking", function() { return Linking; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppState", function() { return AppState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncStorage", function() { return AsyncStorage; }); /* harmony import */ var _JS__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../JS */ "HzrR"); /* harmony import */ var _StorageHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../StorageHelper */ "2Lx6"); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var Linking = {}; var AppState = { addEventListener: function (action, handler) { return undefined; }, }; // if not in react native, just use local storage var AsyncStorage = Object(_JS__WEBPACK_IMPORTED_MODULE_0__["browserOrNode"])().isBrowser ? new _StorageHelper__WEBPACK_IMPORTED_MODULE_1__["StorageHelper"]().getStorage() : undefined; //# sourceMappingURL=index.js.map /***/ }), /***/ "EcEN": /*!************************************!*\ !*** ./node_modules/uuid/index.js ***! \************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var v1 = __webpack_require__(/*! ./v1 */ "xDdU"); var v4 = __webpack_require__(/*! ./v4 */ "xk4V"); var uuid = v4; uuid.v1 = v1; uuid.v4 = v4; module.exports = uuid; /***/ }), /***/ "Eds4": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateVoiceTemplateCommand.js ***! \**********************************************************************************************/ /*! exports provided: CreateVoiceTemplateCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateCommand", function() { return CreateVoiceTemplateCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CreateVoiceTemplateCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateVoiceTemplateCommand, _super); // Start section: command_properties // End section: command_properties function CreateVoiceTemplateCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CreateVoiceTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateVoiceTemplateRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateVoiceTemplateResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CreateVoiceTemplateCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateVoiceTemplateCommand"])(input, context); }; CreateVoiceTemplateCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateVoiceTemplateCommand"])(output, context); }; return CreateVoiceTemplateCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=CreateVoiceTemplateCommand.js.map /***/ }), /***/ "Egte": /*!******************************************************************!*\ !*** ./node_modules/@aws-sdk/smithy-client/dist/es/constants.js ***! \******************************************************************/ /*! exports provided: SENSITIVE_STRING */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SENSITIVE_STRING", function() { return SENSITIVE_STRING; }); var SENSITIVE_STRING = "***SensitiveInformation***"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBTSxnQkFBZ0IsR0FBRyw0QkFBNEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBTRU5TSVRJVkVfU1RSSU5HID0gXCIqKipTZW5zaXRpdmVJbmZvcm1hdGlvbioqKlwiO1xuIl19 /***/ }), /***/ "Ei2f": /*!*******************************************************!*\ !*** ./node_modules/graphql/jsutils/quotedOrList.mjs ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return quotedOrList; }); /* harmony import */ var _orList__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./orList */ "7AeT"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Given [ A, B, C ] return '"A", "B", or "C"'. */ function quotedOrList(items) { return Object(_orList__WEBPACK_IMPORTED_MODULE_0__["default"])(items.map(function (item) { return "\"".concat(item, "\""); })); } /***/ }), /***/ "EjyU": /*!*********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-translate/dist/es/pagination/Interfaces.js ***! \*********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Interfaces.js.map /***/ }), /***/ "EkME": /*!******************************************************!*\ !*** ./node_modules/graphql/validation/validate.mjs ***! \******************************************************/ /*! exports provided: validate, validateSDL, assertValidSDL, assertValidSDLExtension */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validate", function() { return validate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateSDL", function() { return validateSDL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertValidSDL", function() { return assertValidSDL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertValidSDLExtension", function() { return assertValidSDLExtension; }); /* harmony import */ var _jsutils_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/invariant */ "2C6G"); /* harmony import */ var _language_visitor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../language/visitor */ "L2ys"); /* harmony import */ var _type_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../type/validate */ "93gR"); /* harmony import */ var _utilities_TypeInfo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utilities/TypeInfo */ "4RMZ"); /* harmony import */ var _specifiedRules__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./specifiedRules */ "FQ53"); /* harmony import */ var _ValidationContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ValidationContext */ "jOXf"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Implements the "Validation" section of the spec. * * Validation runs synchronously, returning an array of encountered errors, or * an empty array if no errors were encountered and the document is valid. * * A list of specific validation rules may be provided. If not provided, the * default list of rules defined by the GraphQL specification will be used. * * Each validation rules is a function which returns a visitor * (see the language/visitor API). Visitor methods are expected to return * GraphQLErrors, or Arrays of GraphQLErrors when invalid. * * Optionally a custom TypeInfo instance may be provided. If not provided, one * will be created from the provided schema. */ function validate(schema, documentAST) { var rules = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _specifiedRules__WEBPACK_IMPORTED_MODULE_4__["specifiedRules"]; var typeInfo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : new _utilities_TypeInfo__WEBPACK_IMPORTED_MODULE_3__["TypeInfo"](schema); !documentAST ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_0__["default"])(0, 'Must provide document') : void 0; // If the schema used for validation is invalid, throw an error. Object(_type_validate__WEBPACK_IMPORTED_MODULE_2__["assertValidSchema"])(schema); var context = new _ValidationContext__WEBPACK_IMPORTED_MODULE_5__["ValidationContext"](schema, documentAST, typeInfo); // This uses a specialized visitor which runs multiple visitors in parallel, // while maintaining the visitor skip and break API. var visitor = Object(_language_visitor__WEBPACK_IMPORTED_MODULE_1__["visitInParallel"])(rules.map(function (rule) { return rule(context); })); // Visit the whole document with each instance of all provided rules. Object(_language_visitor__WEBPACK_IMPORTED_MODULE_1__["visit"])(documentAST, Object(_language_visitor__WEBPACK_IMPORTED_MODULE_1__["visitWithTypeInfo"])(typeInfo, visitor)); return context.getErrors(); } // @internal function validateSDL(documentAST, schemaToExtend) { var rules = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _specifiedRules__WEBPACK_IMPORTED_MODULE_4__["specifiedSDLRules"]; var context = new _ValidationContext__WEBPACK_IMPORTED_MODULE_5__["SDLValidationContext"](documentAST, schemaToExtend); var visitors = rules.map(function (rule) { return rule(context); }); Object(_language_visitor__WEBPACK_IMPORTED_MODULE_1__["visit"])(documentAST, Object(_language_visitor__WEBPACK_IMPORTED_MODULE_1__["visitInParallel"])(visitors)); return context.getErrors(); } /** * Utility function which asserts a SDL document is valid by throwing an error * if it is invalid. * * @internal */ function assertValidSDL(documentAST) { var errors = validateSDL(documentAST); if (errors.length !== 0) { throw new Error(errors.map(function (error) { return error.message; }).join('\n\n')); } } /** * Utility function which asserts a SDL document is valid by throwing an error * if it is invalid. * * @internal */ function assertValidSDLExtension(documentAST, schema) { var errors = validateSDL(documentAST, schema); if (errors.length !== 0) { throw new Error(errors.map(function (error) { return error.message; }).join('\n\n')); } } /***/ }), /***/ "EkS5": /*!****************************************!*\ !*** ./node_modules/iterall/index.mjs ***! \****************************************/ /*! exports provided: $$iterator, isIterable, isArrayLike, isCollection, getIterator, getIteratorMethod, createIterator, forEach, $$asyncIterator, isAsyncIterable, getAsyncIterator, getAsyncIteratorMethod, createAsyncIterator, forAwaitEach */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "$$iterator", function() { return $$iterator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIterable", function() { return isIterable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isArrayLike", function() { return isArrayLike; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCollection", function() { return isCollection; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getIterator", function() { return getIterator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getIteratorMethod", function() { return getIteratorMethod; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createIterator", function() { return createIterator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "forEach", function() { return forEach; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "$$asyncIterator", function() { return $$asyncIterator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAsyncIterable", function() { return isAsyncIterable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAsyncIterator", function() { return getAsyncIterator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAsyncIteratorMethod", function() { return getAsyncIteratorMethod; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createAsyncIterator", function() { return createAsyncIterator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "forAwaitEach", function() { return forAwaitEach; }); /** * Copyright (c) 2016, Lee Byron * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @ignore */ /** * [Iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#iterator) * is a *protocol* which describes a standard way to produce a sequence of * values, typically the values of the Iterable represented by this Iterator. * * While described by the [ES2015 version of JavaScript](http://www.ecma-international.org/ecma-262/6.0/#sec-iterator-interface) * it can be utilized by any version of JavaScript. * * @external Iterator * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#iterator|MDN Iteration protocols} */ /** * [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#iterable) * is a *protocol* which when implemented allows a JavaScript object to define * their iteration behavior, such as what values are looped over in a * [`for...of`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of) * loop or `iterall`'s `forEach` function. Many [built-in types](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#Builtin_iterables) * implement the Iterable protocol, including `Array` and `Map`. * * While described by the [ES2015 version of JavaScript](http://www.ecma-international.org/ecma-262/6.0/#sec-iterable-interface) * it can be utilized by any version of JavaScript. * * @external Iterable * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#iterable|MDN Iteration protocols} */ // In ES2015 environments, Symbol exists var SYMBOL /*: any */ = typeof Symbol === 'function' ? Symbol : void 0 // In ES2015 (or a polyfilled) environment, this will be Symbol.iterator var SYMBOL_ITERATOR = SYMBOL && SYMBOL.iterator /** * A property name to be used as the name of an Iterable's method responsible * for producing an Iterator, referred to as `@@iterator`. Typically represents * the value `Symbol.iterator` but falls back to the string `"@@iterator"` when * `Symbol.iterator` is not defined. * * Use `$$iterator` for defining new Iterables instead of `Symbol.iterator`, * but do not use it for accessing existing Iterables, instead use * {@link getIterator} or {@link isIterable}. * * @example * * var $$iterator = require('iterall').$$iterator * * function Counter (to) { * this.to = to * } * * Counter.prototype[$$iterator] = function () { * return { * to: this.to, * num: 0, * next () { * if (this.num >= this.to) { * return { value: undefined, done: true } * } * return { value: this.num++, done: false } * } * } * } * * var counter = new Counter(3) * for (var number of counter) { * console.log(number) // 0 ... 1 ... 2 * } * * @type {Symbol|string} */ /*:: declare export var $$iterator: '@@iterator'; */ var $$iterator = SYMBOL_ITERATOR || '@@iterator' /** * Returns true if the provided object implements the Iterator protocol via * either implementing a `Symbol.iterator` or `"@@iterator"` method. * * @example * * var isIterable = require('iterall').isIterable * isIterable([ 1, 2, 3 ]) // true * isIterable('ABC') // true * isIterable({ length: 1, 0: 'Alpha' }) // false * isIterable({ key: 'value' }) // false * isIterable(new Map()) // true * * @param obj * A value which might implement the Iterable protocol. * @return {boolean} true if Iterable. */ /*:: declare export function isIterable(obj: any): boolean; */ function isIterable(obj) { return !!getIteratorMethod(obj) } /** * Returns true if the provided object implements the Array-like protocol via * defining a positive-integer `length` property. * * @example * * var isArrayLike = require('iterall').isArrayLike * isArrayLike([ 1, 2, 3 ]) // true * isArrayLike('ABC') // true * isArrayLike({ length: 1, 0: 'Alpha' }) // true * isArrayLike({ key: 'value' }) // false * isArrayLike(new Map()) // false * * @param obj * A value which might implement the Array-like protocol. * @return {boolean} true if Array-like. */ /*:: declare export function isArrayLike(obj: any): boolean; */ function isArrayLike(obj) { var length = obj != null && obj.length return typeof length === 'number' && length >= 0 && length % 1 === 0 } /** * Returns true if the provided object is an Object (i.e. not a string literal) * and is either Iterable or Array-like. * * This may be used in place of [Array.isArray()][isArray] to determine if an * object should be iterated-over. It always excludes string literals and * includes Arrays (regardless of if it is Iterable). It also includes other * Array-like objects such as NodeList, TypedArray, and Buffer. * * @example * * var isCollection = require('iterall').isCollection * isCollection([ 1, 2, 3 ]) // true * isCollection('ABC') // false * isCollection({ length: 1, 0: 'Alpha' }) // true * isCollection({ key: 'value' }) // false * isCollection(new Map()) // true * * @example * * var forEach = require('iterall').forEach * if (isCollection(obj)) { * forEach(obj, function (value) { * console.log(value) * }) * } * * @param obj * An Object value which might implement the Iterable or Array-like protocols. * @return {boolean} true if Iterable or Array-like Object. */ /*:: declare export function isCollection(obj: any): boolean; */ function isCollection(obj) { return Object(obj) === obj && (isArrayLike(obj) || isIterable(obj)) } /** * If the provided object implements the Iterator protocol, its Iterator object * is returned. Otherwise returns undefined. * * @example * * var getIterator = require('iterall').getIterator * var iterator = getIterator([ 1, 2, 3 ]) * iterator.next() // { value: 1, done: false } * iterator.next() // { value: 2, done: false } * iterator.next() // { value: 3, done: false } * iterator.next() // { value: undefined, done: true } * * @template T the type of each iterated value * @param {Iterable} iterable * An Iterable object which is the source of an Iterator. * @return {Iterator} new Iterator instance. */ /*:: declare export var getIterator: & (<+TValue>(iterable: Iterable) => Iterator) & ((iterable: mixed) => void | Iterator); */ function getIterator(iterable) { var method = getIteratorMethod(iterable) if (method) { return method.call(iterable) } } /** * If the provided object implements the Iterator protocol, the method * responsible for producing its Iterator object is returned. * * This is used in rare cases for performance tuning. This method must be called * with obj as the contextual this-argument. * * @example * * var getIteratorMethod = require('iterall').getIteratorMethod * var myArray = [ 1, 2, 3 ] * var method = getIteratorMethod(myArray) * if (method) { * var iterator = method.call(myArray) * } * * @template T the type of each iterated value * @param {Iterable} iterable * An Iterable object which defines an `@@iterator` method. * @return {function(): Iterator} `@@iterator` method. */ /*:: declare export var getIteratorMethod: & (<+TValue>(iterable: Iterable) => (() => Iterator)) & ((iterable: mixed) => (void | (() => Iterator))); */ function getIteratorMethod(iterable) { if (iterable != null) { var method = (SYMBOL_ITERATOR && iterable[SYMBOL_ITERATOR]) || iterable['@@iterator'] if (typeof method === 'function') { return method } } } /** * Similar to {@link getIterator}, this method returns a new Iterator given an * Iterable. However it will also create an Iterator for a non-Iterable * Array-like collection, such as Array in a non-ES2015 environment. * * `createIterator` is complimentary to `forEach`, but allows a "pull"-based * iteration as opposed to `forEach`'s "push"-based iteration. * * `createIterator` produces an Iterator for Array-likes with the same behavior * as ArrayIteratorPrototype described in the ECMAScript specification, and * does *not* skip over "holes". * * @example * * var createIterator = require('iterall').createIterator * * var myArraylike = { length: 3, 0: 'Alpha', 1: 'Bravo', 2: 'Charlie' } * var iterator = createIterator(myArraylike) * iterator.next() // { value: 'Alpha', done: false } * iterator.next() // { value: 'Bravo', done: false } * iterator.next() // { value: 'Charlie', done: false } * iterator.next() // { value: undefined, done: true } * * @template T the type of each iterated value * @param {Iterable|{ length: number }} collection * An Iterable or Array-like object to produce an Iterator. * @return {Iterator} new Iterator instance. */ /*:: declare export var createIterator: & (<+TValue>(collection: Iterable) => Iterator) & ((collection: {length: number}) => Iterator) & ((collection: mixed) => (void | Iterator)); */ function createIterator(collection) { if (collection != null) { var iterator = getIterator(collection) if (iterator) { return iterator } if (isArrayLike(collection)) { return new ArrayLikeIterator(collection) } } } // When the object provided to `createIterator` is not Iterable but is // Array-like, this simple Iterator is created. function ArrayLikeIterator(obj) { this._o = obj this._i = 0 } // Note: all Iterators are themselves Iterable. ArrayLikeIterator.prototype[$$iterator] = function() { return this } // A simple state-machine determines the IteratorResult returned, yielding // each value in the Array-like object in order of their indicies. ArrayLikeIterator.prototype.next = function() { if (this._o === void 0 || this._i >= this._o.length) { this._o = void 0 return { value: void 0, done: true } } return { value: this._o[this._i++], done: false } } /** * Given an object which either implements the Iterable protocol or is * Array-like, iterate over it, calling the `callback` at each iteration. * * Use `forEach` where you would expect to use a `for ... of` loop in ES6. * However `forEach` adheres to the behavior of [Array#forEach][] described in * the ECMAScript specification, skipping over "holes" in Array-likes. It will * also delegate to a `forEach` method on `collection` if one is defined, * ensuring native performance for `Arrays`. * * Similar to [Array#forEach][], the `callback` function accepts three * arguments, and is provided with `thisArg` as the calling context. * * Note: providing an infinite Iterator to forEach will produce an error. * * [Array#forEach]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach * * @example * * var forEach = require('iterall').forEach * * forEach(myIterable, function (value, index, iterable) { * console.log(value, index, iterable === myIterable) * }) * * @example * * // ES6: * for (let value of myIterable) { * console.log(value) * } * * // Any JavaScript environment: * forEach(myIterable, function (value) { * console.log(value) * }) * * @template T the type of each iterated value * @param {Iterable|{ length: number }} collection * The Iterable or array to iterate over. * @param {function(T, number, object)} callback * Function to execute for each iteration, taking up to three arguments * @param [thisArg] * Optional. Value to use as `this` when executing `callback`. */ /*:: declare export var forEach: & (<+TValue, TCollection: Iterable>( collection: TCollection, callbackFn: (value: TValue, index: number, collection: TCollection) => any, thisArg?: any ) => void) & (( collection: TCollection, callbackFn: (value: mixed, index: number, collection: TCollection) => any, thisArg?: any ) => void); */ function forEach(collection, callback, thisArg) { if (collection != null) { if (typeof collection.forEach === 'function') { return collection.forEach(callback, thisArg) } var i = 0 var iterator = getIterator(collection) if (iterator) { var step while (!(step = iterator.next()).done) { callback.call(thisArg, step.value, i++, collection) // Infinite Iterators could cause forEach to run forever. // After a very large number of iterations, produce an error. /* istanbul ignore if */ if (i > 9999999) { throw new TypeError('Near-infinite iteration.') } } } else if (isArrayLike(collection)) { for (; i < collection.length; i++) { if (collection.hasOwnProperty(i)) { callback.call(thisArg, collection[i], i, collection) } } } } } ///////////////////////////////////////////////////// // // // ASYNC ITERATORS // // // ///////////////////////////////////////////////////// /** * [AsyncIterable](https://tc39.github.io/proposal-async-iteration/#sec-asynciterable-interface) * is a *protocol* which when implemented allows a JavaScript object to define * an asynchronous iteration behavior, such as what values are looped over in * a [`for-await-of`](https://tc39.github.io/proposal-async-iteration/#sec-for-in-and-for-of-statements) * loop or `iterall`'s {@link forAwaitEach} function. * * While described as a proposed addition to the [ES2017 version of JavaScript](https://tc39.github.io/proposal-async-iteration/) * it can be utilized by any version of JavaScript. * * @external AsyncIterable * @see {@link https://tc39.github.io/proposal-async-iteration/#sec-asynciterable-interface|Async Iteration Proposal} * @template T The type of each iterated value * @property {function (): AsyncIterator} Symbol.asyncIterator * A method which produces an AsyncIterator for this AsyncIterable. */ /** * [AsyncIterator](https://tc39.github.io/proposal-async-iteration/#sec-asynciterator-interface) * is a *protocol* which describes a standard way to produce and consume an * asynchronous sequence of values, typically the values of the * {@link AsyncIterable} represented by this {@link AsyncIterator}. * * AsyncIterator is similar to Observable or Stream. Like an {@link Iterator} it * also as a `next()` method, however instead of an IteratorResult, * calling this method returns a {@link Promise} for a IteratorResult. * * While described as a proposed addition to the [ES2017 version of JavaScript](https://tc39.github.io/proposal-async-iteration/) * it can be utilized by any version of JavaScript. * * @external AsyncIterator * @see {@link https://tc39.github.io/proposal-async-iteration/#sec-asynciterator-interface|Async Iteration Proposal} */ // In ES2017 (or a polyfilled) environment, this will be Symbol.asyncIterator var SYMBOL_ASYNC_ITERATOR = SYMBOL && SYMBOL.asyncIterator /** * A property name to be used as the name of an AsyncIterable's method * responsible for producing an Iterator, referred to as `@@asyncIterator`. * Typically represents the value `Symbol.asyncIterator` but falls back to the * string `"@@asyncIterator"` when `Symbol.asyncIterator` is not defined. * * Use `$$asyncIterator` for defining new AsyncIterables instead of * `Symbol.asyncIterator`, but do not use it for accessing existing Iterables, * instead use {@link getAsyncIterator} or {@link isAsyncIterable}. * * @example * * var $$asyncIterator = require('iterall').$$asyncIterator * * function Chirper (to) { * this.to = to * } * * Chirper.prototype[$$asyncIterator] = function () { * return { * to: this.to, * num: 0, * next () { * return new Promise(resolve => { * if (this.num >= this.to) { * resolve({ value: undefined, done: true }) * } else { * setTimeout(() => { * resolve({ value: this.num++, done: false }) * }, 1000) * } * }) * } * } * } * * var chirper = new Chirper(3) * for await (var number of chirper) { * console.log(number) // 0 ...wait... 1 ...wait... 2 * } * * @type {Symbol|string} */ /*:: declare export var $$asyncIterator: '@@asyncIterator'; */ var $$asyncIterator = SYMBOL_ASYNC_ITERATOR || '@@asyncIterator' /** * Returns true if the provided object implements the AsyncIterator protocol via * either implementing a `Symbol.asyncIterator` or `"@@asyncIterator"` method. * * @example * * var isAsyncIterable = require('iterall').isAsyncIterable * isAsyncIterable(myStream) // true * isAsyncIterable('ABC') // false * * @param obj * A value which might implement the AsyncIterable protocol. * @return {boolean} true if AsyncIterable. */ /*:: declare export function isAsyncIterable(obj: any): boolean; */ function isAsyncIterable(obj) { return !!getAsyncIteratorMethod(obj) } /** * If the provided object implements the AsyncIterator protocol, its * AsyncIterator object is returned. Otherwise returns undefined. * * @example * * var getAsyncIterator = require('iterall').getAsyncIterator * var asyncIterator = getAsyncIterator(myStream) * asyncIterator.next().then(console.log) // { value: 1, done: false } * asyncIterator.next().then(console.log) // { value: 2, done: false } * asyncIterator.next().then(console.log) // { value: 3, done: false } * asyncIterator.next().then(console.log) // { value: undefined, done: true } * * @template T the type of each iterated value * @param {AsyncIterable} asyncIterable * An AsyncIterable object which is the source of an AsyncIterator. * @return {AsyncIterator} new AsyncIterator instance. */ /*:: declare export var getAsyncIterator: & (<+TValue>(asyncIterable: AsyncIterable) => AsyncIterator) & ((asyncIterable: mixed) => (void | AsyncIterator)); */ function getAsyncIterator(asyncIterable) { var method = getAsyncIteratorMethod(asyncIterable) if (method) { return method.call(asyncIterable) } } /** * If the provided object implements the AsyncIterator protocol, the method * responsible for producing its AsyncIterator object is returned. * * This is used in rare cases for performance tuning. This method must be called * with obj as the contextual this-argument. * * @example * * var getAsyncIteratorMethod = require('iterall').getAsyncIteratorMethod * var method = getAsyncIteratorMethod(myStream) * if (method) { * var asyncIterator = method.call(myStream) * } * * @template T the type of each iterated value * @param {AsyncIterable} asyncIterable * An AsyncIterable object which defines an `@@asyncIterator` method. * @return {function(): AsyncIterator} `@@asyncIterator` method. */ /*:: declare export var getAsyncIteratorMethod: & (<+TValue>(asyncIterable: AsyncIterable) => (() => AsyncIterator)) & ((asyncIterable: mixed) => (void | (() => AsyncIterator))); */ function getAsyncIteratorMethod(asyncIterable) { if (asyncIterable != null) { var method = (SYMBOL_ASYNC_ITERATOR && asyncIterable[SYMBOL_ASYNC_ITERATOR]) || asyncIterable['@@asyncIterator'] if (typeof method === 'function') { return method } } } /** * Similar to {@link getAsyncIterator}, this method returns a new AsyncIterator * given an AsyncIterable. However it will also create an AsyncIterator for a * non-async Iterable as well as non-Iterable Array-like collection, such as * Array in a pre-ES2015 environment. * * `createAsyncIterator` is complimentary to `forAwaitEach`, but allows a * buffering "pull"-based iteration as opposed to `forAwaitEach`'s * "push"-based iteration. * * `createAsyncIterator` produces an AsyncIterator for non-async Iterables as * described in the ECMAScript proposal [Async-from-Sync Iterator Objects](https://tc39.github.io/proposal-async-iteration/#sec-async-from-sync-iterator-objects). * * > Note: Creating `AsyncIterator`s requires the existence of `Promise`. * > While `Promise` has been available in modern browsers for a number of * > years, legacy browsers (like IE 11) may require a polyfill. * * @example * * var createAsyncIterator = require('iterall').createAsyncIterator * * var myArraylike = { length: 3, 0: 'Alpha', 1: 'Bravo', 2: 'Charlie' } * var iterator = createAsyncIterator(myArraylike) * iterator.next().then(console.log) // { value: 'Alpha', done: false } * iterator.next().then(console.log) // { value: 'Bravo', done: false } * iterator.next().then(console.log) // { value: 'Charlie', done: false } * iterator.next().then(console.log) // { value: undefined, done: true } * * @template T the type of each iterated value * @param {AsyncIterable|Iterable|{ length: number }} source * An AsyncIterable, Iterable, or Array-like object to produce an Iterator. * @return {AsyncIterator} new AsyncIterator instance. */ /*:: declare export var createAsyncIterator: & (<+TValue>( collection: Iterable | TValue> | AsyncIterable ) => AsyncIterator) & ((collection: {length: number}) => AsyncIterator) & ((collection: mixed) => (void | AsyncIterator)); */ function createAsyncIterator(source) { if (source != null) { var asyncIterator = getAsyncIterator(source) if (asyncIterator) { return asyncIterator } var iterator = createIterator(source) if (iterator) { return new AsyncFromSyncIterator(iterator) } } } // When the object provided to `createAsyncIterator` is not AsyncIterable but is // sync Iterable, this simple wrapper is created. function AsyncFromSyncIterator(iterator) { this._i = iterator } // Note: all AsyncIterators are themselves AsyncIterable. AsyncFromSyncIterator.prototype[$$asyncIterator] = function() { return this } // A simple state-machine determines the IteratorResult returned, yielding // each value in the Array-like object in order of their indicies. AsyncFromSyncIterator.prototype.next = function(value) { return unwrapAsyncFromSync(this._i, 'next', value) } AsyncFromSyncIterator.prototype.return = function(value) { return this._i.return ? unwrapAsyncFromSync(this._i, 'return', value) : Promise.resolve({ value: value, done: true }) } AsyncFromSyncIterator.prototype.throw = function(value) { return this._i.throw ? unwrapAsyncFromSync(this._i, 'throw', value) : Promise.reject(value) } function unwrapAsyncFromSync(iterator, fn, value) { var step return new Promise(function(resolve) { step = iterator[fn](value) resolve(step.value) }).then(function(value) { return { value: value, done: step.done } }) } /** * Given an object which either implements the AsyncIterable protocol or is * Array-like, iterate over it, calling the `callback` at each iteration. * * Use `forAwaitEach` where you would expect to use a [for-await-of](https://tc39.github.io/proposal-async-iteration/#sec-for-in-and-for-of-statements) loop. * * Similar to [Array#forEach][], the `callback` function accepts three * arguments, and is provided with `thisArg` as the calling context. * * > Note: Using `forAwaitEach` requires the existence of `Promise`. * > While `Promise` has been available in modern browsers for a number of * > years, legacy browsers (like IE 11) may require a polyfill. * * @example * * var forAwaitEach = require('iterall').forAwaitEach * * forAwaitEach(myIterable, function (value, index, iterable) { * console.log(value, index, iterable === myIterable) * }) * * @example * * // ES2017: * for await (let value of myAsyncIterable) { * console.log(await doSomethingAsync(value)) * } * console.log('done') * * // Any JavaScript environment: * forAwaitEach(myAsyncIterable, function (value) { * return doSomethingAsync(value).then(console.log) * }).then(function () { * console.log('done') * }) * * @template T the type of each iterated value * @param {AsyncIterable|Iterable | T>|{ length: number }} source * The AsyncIterable or array to iterate over. * @param {function(T, number, object)} callback * Function to execute for each iteration, taking up to three arguments * @param [thisArg] * Optional. Value to use as `this` when executing `callback`. */ /*:: declare export var forAwaitEach: & (<+TValue, TCollection: Iterable | TValue> | AsyncIterable>( collection: TCollection, callbackFn: (value: TValue, index: number, collection: TCollection) => any, thisArg?: any ) => Promise) & (( collection: TCollection, callbackFn: (value: mixed, index: number, collection: TCollection) => any, thisArg?: any ) => Promise); */ function forAwaitEach(source, callback, thisArg) { var asyncIterator = createAsyncIterator(source) if (asyncIterator) { var i = 0 return new Promise(function(resolve, reject) { function next() { asyncIterator .next() .then(function(step) { if (!step.done) { Promise.resolve(callback.call(thisArg, step.value, i++, source)) .then(next) .catch(reject) } else { resolve() } // Explicitly return null, silencing bluebird-style warnings. return null }) .catch(reject) // Explicitly return null, silencing bluebird-style warnings. return null } next() }) } } /***/ }), /***/ "EkgW": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignActivitiesCommand.js ***! \************************************************************************************************/ /*! exports provided: GetCampaignActivitiesCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesCommand", function() { return GetCampaignActivitiesCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetCampaignActivitiesCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignActivitiesCommand, _super); // Start section: command_properties // End section: command_properties function GetCampaignActivitiesCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetCampaignActivitiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCampaignActivitiesRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCampaignActivitiesResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetCampaignActivitiesCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignActivitiesCommand"])(input, context); }; GetCampaignActivitiesCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignActivitiesCommand"])(output, context); }; return GetCampaignActivitiesCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetCampaignActivitiesCommand.js.map /***/ }), /***/ "EmLY": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyCommand.js ***! \****************************************************************************************/ /*! exports provided: UpdateJourneyCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyCommand", function() { return UpdateJourneyCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UpdateJourneyCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateJourneyCommand, _super); // Start section: command_properties // End section: command_properties function UpdateJourneyCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UpdateJourneyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UpdateJourneyCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateJourneyCommand"])(input, context); }; UpdateJourneyCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateJourneyCommand"])(output, context); }; return UpdateJourneyCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=UpdateJourneyCommand.js.map /***/ }), /***/ "Enk7": /*!**************************************************************!*\ !*** ./node_modules/@aws-sdk/protocol-http/dist/es/index.js ***! \**************************************************************/ /*! exports provided: HttpResponse, HttpRequest, isValidHostname */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _httpResponse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./httpResponse */ "0Og2"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpResponse", function() { return _httpResponse__WEBPACK_IMPORTED_MODULE_0__["HttpResponse"]; }); /* harmony import */ var _httpRequest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./httpRequest */ "3hRD"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpRequest", function() { return _httpRequest__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]; }); /* harmony import */ var _httpHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./httpHandler */ "2Izi"); /* empty/unused harmony star reexport *//* harmony import */ var _isValidHostname__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isValidHostname */ "vIPG"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isValidHostname", function() { return _isValidHostname__WEBPACK_IMPORTED_MODULE_3__["isValidHostname"]; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vaHR0cFJlc3BvbnNlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9odHRwUmVxdWVzdFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vaHR0cEhhbmRsZXJcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2lzVmFsaWRIb3N0bmFtZVwiO1xuIl19 /***/ }), /***/ "EpBk": /*!*******************************************!*\ !*** ./node_modules/lodash/_isKeyable.js ***! \*******************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Checks if `value` is suitable for use as unique object key. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ function isKeyable(value) { var type = typeof value; return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') ? (value !== '__proto__') : (value === null); } module.exports = isKeyable; /***/ }), /***/ "ErHT": /*!********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/DeleteBucketReplicationCommand.js ***! \********************************************************************************************/ /*! exports provided: DeleteBucketReplicationCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketReplicationCommand", function() { return DeleteBucketReplicationCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteBucketReplicationCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteBucketReplicationCommand, _super); // Start section: command_properties // End section: command_properties function DeleteBucketReplicationCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteBucketReplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteBucketReplicationRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteBucketReplicationCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlDeleteBucketReplicationCommand"])(input, context); }; DeleteBucketReplicationCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlDeleteBucketReplicationCommand"])(output, context); }; return DeleteBucketReplicationCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=DeleteBucketReplicationCommand.js.map /***/ }), /***/ "ExA7": /*!*********************************************!*\ !*** ./node_modules/lodash/isObjectLike.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * _.isObjectLike({}); * // => true * * _.isObjectLike([1, 2, 3]); * // => true * * _.isObjectLike(_.noop); * // => false * * _.isObjectLike(null); * // => false */ function isObjectLike(value) { return value != null && typeof value == 'object'; } module.exports = isObjectLike; /***/ }), /***/ "F+F2": /*!***************************************************!*\ !*** ./node_modules/crypto-js/lib-typedarrays.js ***! \***************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { ;(function (root, factory) { if (true) { // CommonJS module.exports = exports = factory(__webpack_require__(/*! ./core */ "Ib8C")); } else {} }(this, function (CryptoJS) { (function () { // Check if typed arrays are supported if (typeof ArrayBuffer != 'function') { return; } // Shortcuts var C = CryptoJS; var C_lib = C.lib; var WordArray = C_lib.WordArray; // Reference original init var superInit = WordArray.init; // Augment WordArray.init to handle typed arrays var subInit = WordArray.init = function (typedArray) { // Convert buffers to uint8 if (typedArray instanceof ArrayBuffer) { typedArray = new Uint8Array(typedArray); } // Convert other array views to uint8 if ( typedArray instanceof Int8Array || (typeof Uint8ClampedArray !== "undefined" && typedArray instanceof Uint8ClampedArray) || typedArray instanceof Int16Array || typedArray instanceof Uint16Array || typedArray instanceof Int32Array || typedArray instanceof Uint32Array || typedArray instanceof Float32Array || typedArray instanceof Float64Array ) { typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength); } // Handle Uint8Array if (typedArray instanceof Uint8Array) { // Shortcut var typedArrayByteLength = typedArray.byteLength; // Extract bytes var words = []; for (var i = 0; i < typedArrayByteLength; i++) { words[i >>> 2] |= typedArray[i] << (24 - (i % 4) * 8); } // Initialize this word array superInit.call(this, words, typedArrayByteLength); } else { // Else call normal init superInit.apply(this, arguments); } }; subInit.prototype = WordArray; }()); return CryptoJS.lib.WordArray; })); /***/ }), /***/ "F0qz": /*!********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsTemplateCommand.js ***! \********************************************************************************************/ /*! exports provided: DeleteSmsTemplateCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateCommand", function() { return DeleteSmsTemplateCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteSmsTemplateCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteSmsTemplateCommand, _super); // Start section: command_properties // End section: command_properties function DeleteSmsTemplateCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteSmsTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteSmsTemplateRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteSmsTemplateResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteSmsTemplateCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteSmsTemplateCommand"])(input, context); }; DeleteSmsTemplateCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteSmsTemplateCommand"])(output, context); }; return DeleteSmsTemplateCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteSmsTemplateCommand.js.map /***/ }), /***/ "F5/f": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSegmentCommand.js ***! \****************************************************************************************/ /*! exports provided: UpdateSegmentCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentCommand", function() { return UpdateSegmentCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UpdateSegmentCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateSegmentCommand, _super); // Start section: command_properties // End section: command_properties function UpdateSegmentCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UpdateSegmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateSegmentRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateSegmentResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UpdateSegmentCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateSegmentCommand"])(input, context); }; UpdateSegmentCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateSegmentCommand"])(output, context); }; return UpdateSegmentCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=UpdateSegmentCommand.js.map /***/ }), /***/ "F6Ln": /*!******************************************************************************!*\ !*** ./node_modules/@aws-sdk/eventstream-marshaller/dist/es/splitMessage.js ***! \******************************************************************************/ /*! exports provided: splitMessage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "splitMessage", function() { return splitMessage; }); /* harmony import */ var _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-crypto/crc32 */ "mX1g"); /* harmony import */ var _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__); // All prelude components are unsigned, 32-bit integers var PRELUDE_MEMBER_LENGTH = 4; // The prelude consists of two components var PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2; // Checksums are always CRC32 hashes. var CHECKSUM_LENGTH = 4; // Messages must include a full prelude, a prelude checksum, and a message checksum var MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2; /** * @internal */ function splitMessage(_a) { var byteLength = _a.byteLength, byteOffset = _a.byteOffset, buffer = _a.buffer; if (byteLength < MINIMUM_MESSAGE_LENGTH) { throw new Error("Provided message too short to accommodate event stream message overhead"); } var view = new DataView(buffer, byteOffset, byteLength); var messageLength = view.getUint32(0, false); if (byteLength !== messageLength) { throw new Error("Reported message length does not match received message length"); } var headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false); var expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false); var expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false); var checksummer = new _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__["Crc32"]().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH)); if (expectedPreludeChecksum !== checksummer.digest()) { throw new Error("The prelude checksum specified in the message (" + expectedPreludeChecksum + ") does not match the calculated CRC32 checksum (" + checksummer.digest() + ")"); } checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH))); if (expectedMessageChecksum !== checksummer.digest()) { throw new Error("The message checksum (" + checksummer.digest() + ") did not match the expected value of " + expectedMessageChecksum); } return { headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength), body: new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength, messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH)), }; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BsaXRNZXNzYWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NwbGl0TWVzc2FnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFFMUMsdURBQXVEO0FBQ3ZELElBQU0scUJBQXFCLEdBQUcsQ0FBQyxDQUFDO0FBQ2hDLHlDQUF5QztBQUN6QyxJQUFNLGNBQWMsR0FBRyxxQkFBcUIsR0FBRyxDQUFDLENBQUM7QUFDakQscUNBQXFDO0FBQ3JDLElBQU0sZUFBZSxHQUFHLENBQUMsQ0FBQztBQUMxQixtRkFBbUY7QUFDbkYsSUFBTSxzQkFBc0IsR0FBRyxjQUFjLEdBQUcsZUFBZSxHQUFHLENBQUMsQ0FBQztBQVVwRTs7R0FFRztBQUNILE1BQU0sVUFBVSxZQUFZLENBQUMsRUFBbUQ7UUFBakQsVUFBVSxnQkFBQSxFQUFFLFVBQVUsZ0JBQUEsRUFBRSxNQUFNLFlBQUE7SUFDM0QsSUFBSSxVQUFVLEdBQUcsc0JBQXNCLEVBQUU7UUFDdkMsTUFBTSxJQUFJLEtBQUssQ0FBQyx5RUFBeUUsQ0FBQyxDQUFDO0tBQzVGO0lBRUQsSUFBTSxJQUFJLEdBQUcsSUFBSSxRQUFRLENBQUMsTUFBTSxFQUFFLFVBQVUsRUFBRSxVQUFVLENBQUMsQ0FBQztJQUUxRCxJQUFNLGFBQWEsR0FBRyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUMsRUFBRSxLQUFLLENBQUMsQ0FBQztJQUUvQyxJQUFJLFVBQVUsS0FBSyxhQUFhLEVBQUU7UUFDaEMsTUFBTSxJQUFJLEtBQUssQ0FBQyxnRUFBZ0UsQ0FBQyxDQUFDO0tBQ25GO0lBRUQsSUFBTSxZQUFZLEdBQUcsSUFBSSxDQUFDLFNBQVMsQ0FBQyxxQkFBcUIsRUFBRSxLQUFLLENBQUMsQ0FBQztJQUNsRSxJQUFNLHVCQUF1QixHQUFHLElBQUksQ0FBQyxTQUFTLENBQUMsY0FBYyxFQUFFLEtBQUssQ0FBQyxDQUFDO0lBQ3RFLElBQU0sdUJBQXVCLEdBQUcsSUFBSSxDQUFDLFNBQVMsQ0FBQyxVQUFVLEdBQUcsZUFBZSxFQUFFLEtBQUssQ0FBQyxDQUFDO0lBRXBGLElBQU0sV0FBVyxHQUFHLElBQUksS0FBSyxFQUFFLENBQUMsTUFBTSxDQUFDLElBQUksVUFBVSxDQUFDLE1BQU0sRUFBRSxVQUFVLEVBQUUsY0FBYyxDQUFDLENBQUMsQ0FBQztJQUMzRixJQUFJLHVCQUF1QixLQUFLLFdBQVcsQ0FBQyxNQUFNLEVBQUUsRUFBRTtRQUNwRCxNQUFNLElBQUksS0FBSyxDQUNiLG9EQUFrRCx1QkFBdUIsd0RBQW1ELFdBQVcsQ0FBQyxNQUFNLEVBQUUsTUFBRyxDQUNwSixDQUFDO0tBQ0g7SUFFRCxXQUFXLENBQUMsTUFBTSxDQUNoQixJQUFJLFVBQVUsQ0FBQyxNQUFNLEVBQUUsVUFBVSxHQUFHLGNBQWMsRUFBRSxVQUFVLEdBQUcsQ0FBQyxjQUFjLEdBQUcsZUFBZSxDQUFDLENBQUMsQ0FDckcsQ0FBQztJQUNGLElBQUksdUJBQXVCLEtBQUssV0FBVyxDQUFDLE1BQU0sRUFBRSxFQUFFO1FBQ3BELE1BQU0sSUFBSSxLQUFLLENBQ2IsMkJBQXlCLFdBQVcsQ0FBQyxNQUFNLEVBQUUsOENBQXlDLHVCQUF5QixDQUNoSCxDQUFDO0tBQ0g7SUFFRCxPQUFPO1FBQ0wsT0FBTyxFQUFFLElBQUksUUFBUSxDQUFDLE1BQU0sRUFBRSxVQUFVLEdBQUcsY0FBYyxHQUFHLGVBQWUsRUFBRSxZQUFZLENBQUM7UUFDMUYsSUFBSSxFQUFFLElBQUksVUFBVSxDQUNsQixNQUFNLEVBQ04sVUFBVSxHQUFHLGNBQWMsR0FBRyxlQUFlLEdBQUcsWUFBWSxFQUM1RCxhQUFhLEdBQUcsWUFBWSxHQUFHLENBQUMsY0FBYyxHQUFHLGVBQWUsR0FBRyxlQUFlLENBQUMsQ0FDcEY7S0FDRixDQUFDO0FBQ0osQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENyYzMyIH0gZnJvbSBcIkBhd3MtY3J5cHRvL2NyYzMyXCI7XG5cbi8vIEFsbCBwcmVsdWRlIGNvbXBvbmVudHMgYXJlIHVuc2lnbmVkLCAzMi1iaXQgaW50ZWdlcnNcbmNvbnN0IFBSRUxVREVfTUVNQkVSX0xFTkdUSCA9IDQ7XG4vLyBUaGUgcHJlbHVkZSBjb25zaXN0cyBvZiB0d28gY29tcG9uZW50c1xuY29uc3QgUFJFTFVERV9MRU5HVEggPSBQUkVMVURFX01FTUJFUl9MRU5HVEggKiAyO1xuLy8gQ2hlY2tzdW1zIGFyZSBhbHdheXMgQ1JDMzIgaGFzaGVzLlxuY29uc3QgQ0hFQ0tTVU1fTEVOR1RIID0gNDtcbi8vIE1lc3NhZ2VzIG11c3QgaW5jbHVkZSBhIGZ1bGwgcHJlbHVkZSwgYSBwcmVsdWRlIGNoZWNrc3VtLCBhbmQgYSBtZXNzYWdlIGNoZWNrc3VtXG5jb25zdCBNSU5JTVVNX01FU1NBR0VfTEVOR1RIID0gUFJFTFVERV9MRU5HVEggKyBDSEVDS1NVTV9MRU5HVEggKiAyO1xuXG4vKipcbiAqIEBpbnRlcm5hbFxuICovXG5leHBvcnQgaW50ZXJmYWNlIE1lc3NhZ2VQYXJ0cyB7XG4gIGhlYWRlcnM6IERhdGFWaWV3O1xuICBib2R5OiBVaW50OEFycmF5O1xufVxuXG4vKipcbiAqIEBpbnRlcm5hbFxuICovXG5leHBvcnQgZnVuY3Rpb24gc3BsaXRNZXNzYWdlKHsgYnl0ZUxlbmd0aCwgYnl0ZU9mZnNldCwgYnVmZmVyIH06IEFycmF5QnVmZmVyVmlldyk6IE1lc3NhZ2VQYXJ0cyB7XG4gIGlmIChieXRlTGVuZ3RoIDwgTUlOSU1VTV9NRVNTQUdFX0xFTkdUSCkge1xuICAgIHRocm93IG5ldyBFcnJvcihcIlByb3ZpZGVkIG1lc3NhZ2UgdG9vIHNob3J0IHRvIGFjY29tbW9kYXRlIGV2ZW50IHN0cmVhbSBtZXNzYWdlIG92ZXJoZWFkXCIpO1xuICB9XG5cbiAgY29uc3QgdmlldyA9IG5ldyBEYXRhVmlldyhidWZmZXIsIGJ5dGVPZmZzZXQsIGJ5dGVMZW5ndGgpO1xuXG4gIGNvbnN0IG1lc3NhZ2VMZW5ndGggPSB2aWV3LmdldFVpbnQzMigwLCBmYWxzZSk7XG5cbiAgaWYgKGJ5dGVMZW5ndGggIT09IG1lc3NhZ2VMZW5ndGgpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJSZXBvcnRlZCBtZXNzYWdlIGxlbmd0aCBkb2VzIG5vdCBtYXRjaCByZWNlaXZlZCBtZXNzYWdlIGxlbmd0aFwiKTtcbiAgfVxuXG4gIGNvbnN0IGhlYWRlckxlbmd0aCA9IHZpZXcuZ2V0VWludDMyKFBSRUxVREVfTUVNQkVSX0xFTkdUSCwgZmFsc2UpO1xuICBjb25zdCBleHBlY3RlZFByZWx1ZGVDaGVja3N1bSA9IHZpZXcuZ2V0VWludDMyKFBSRUxVREVfTEVOR1RILCBmYWxzZSk7XG4gIGNvbnN0IGV4cGVjdGVkTWVzc2FnZUNoZWNrc3VtID0gdmlldy5nZXRVaW50MzIoYnl0ZUxlbmd0aCAtIENIRUNLU1VNX0xFTkdUSCwgZmFsc2UpO1xuXG4gIGNvbnN0IGNoZWNrc3VtbWVyID0gbmV3IENyYzMyKCkudXBkYXRlKG5ldyBVaW50OEFycmF5KGJ1ZmZlciwgYnl0ZU9mZnNldCwgUFJFTFVERV9MRU5HVEgpKTtcbiAgaWYgKGV4cGVjdGVkUHJlbHVkZUNoZWNrc3VtICE9PSBjaGVja3N1bW1lci5kaWdlc3QoKSkge1xuICAgIHRocm93IG5ldyBFcnJvcihcbiAgICAgIGBUaGUgcHJlbHVkZSBjaGVja3N1bSBzcGVjaWZpZWQgaW4gdGhlIG1lc3NhZ2UgKCR7ZXhwZWN0ZWRQcmVsdWRlQ2hlY2tzdW19KSBkb2VzIG5vdCBtYXRjaCB0aGUgY2FsY3VsYXRlZCBDUkMzMiBjaGVja3N1bSAoJHtjaGVja3N1bW1lci5kaWdlc3QoKX0pYFxuICAgICk7XG4gIH1cblxuICBjaGVja3N1bW1lci51cGRhdGUoXG4gICAgbmV3IFVpbnQ4QXJyYXkoYnVmZmVyLCBieXRlT2Zmc2V0ICsgUFJFTFVERV9MRU5HVEgsIGJ5dGVMZW5ndGggLSAoUFJFTFVERV9MRU5HVEggKyBDSEVDS1NVTV9MRU5HVEgpKVxuICApO1xuICBpZiAoZXhwZWN0ZWRNZXNzYWdlQ2hlY2tzdW0gIT09IGNoZWNrc3VtbWVyLmRpZ2VzdCgpKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgYFRoZSBtZXNzYWdlIGNoZWNrc3VtICgke2NoZWNrc3VtbWVyLmRpZ2VzdCgpfSkgZGlkIG5vdCBtYXRjaCB0aGUgZXhwZWN0ZWQgdmFsdWUgb2YgJHtleHBlY3RlZE1lc3NhZ2VDaGVja3N1bX1gXG4gICAgKTtcbiAgfVxuXG4gIHJldHVybiB7XG4gICAgaGVhZGVyczogbmV3IERhdGFWaWV3KGJ1ZmZlciwgYnl0ZU9mZnNldCArIFBSRUxVREVfTEVOR1RIICsgQ0hFQ0tTVU1fTEVOR1RILCBoZWFkZXJMZW5ndGgpLFxuICAgIGJvZHk6IG5ldyBVaW50OEFycmF5KFxuICAgICAgYnVmZmVyLFxuICAgICAgYnl0ZU9mZnNldCArIFBSRUxVREVfTEVOR1RIICsgQ0hFQ0tTVU1fTEVOR1RIICsgaGVhZGVyTGVuZ3RoLFxuICAgICAgbWVzc2FnZUxlbmd0aCAtIGhlYWRlckxlbmd0aCAtIChQUkVMVURFX0xFTkdUSCArIENIRUNLU1VNX0xFTkdUSCArIENIRUNLU1VNX0xFTkdUSClcbiAgICApLFxuICB9O1xufVxuIl19 /***/ }), /***/ "F6XI": /*!*****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutBucketReplicationCommand.js ***! \*****************************************************************************************/ /*! exports provided: PutBucketReplicationCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutBucketReplicationCommand", function() { return PutBucketReplicationCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_apply_body_checksum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-apply-body-checksum */ "x9pl"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutBucketReplicationCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutBucketReplicationCommand, _super); // Start section: command_properties // End section: command_properties function PutBucketReplicationCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutBucketReplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_5__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_4__["getBucketEndpointPlugin"])(configuration)); this.middlewareStack.use(Object(_aws_sdk_middleware_apply_body_checksum__WEBPACK_IMPORTED_MODULE_3__["getApplyMd5BodyChecksumPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutBucketReplicationRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutBucketReplicationCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutBucketReplicationCommand"])(input, context); }; PutBucketReplicationCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutBucketReplicationCommand"])(output, context); }; return PutBucketReplicationCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__["Command"])); //# sourceMappingURL=PutBucketReplicationCommand.js.map /***/ }), /***/ "F6er": /*!***********************************************************************!*\ !*** ./node_modules/amazon-cognito-identity-js/es/CognitoUserPool.js ***! \***********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CognitoUserPool; }); /* harmony import */ var _Client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Client */ "FhAz"); /* harmony import */ var _CognitoUser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CognitoUser */ "PEP3"); /* harmony import */ var _StorageHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StorageHelper */ "8/pm"); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ /** @class */ var CognitoUserPool = /*#__PURE__*/function () { /** * Constructs a new CognitoUserPool object * @param {object} data Creation options. * @param {string} data.UserPoolId Cognito user pool id. * @param {string} data.ClientId User pool application client id. * @param {string} data.endpoint Optional custom service endpoint. * @param {object} data.fetchOptions Optional options for fetch API. * (only credentials option is supported) * @param {object} data.Storage Optional storage object. * @param {boolean} data.AdvancedSecurityDataCollectionFlag Optional: * boolean flag indicating if the data collection is enabled * to support cognito advanced security features. By default, this * flag is set to true. */ function CognitoUserPool(data) { var _ref = data || {}, UserPoolId = _ref.UserPoolId, ClientId = _ref.ClientId, endpoint = _ref.endpoint, fetchOptions = _ref.fetchOptions, AdvancedSecurityDataCollectionFlag = _ref.AdvancedSecurityDataCollectionFlag; if (!UserPoolId || !ClientId) { throw new Error('Both UserPoolId and ClientId are required.'); } if (!/^[\w-]+_.+$/.test(UserPoolId)) { throw new Error('Invalid UserPoolId format.'); } var region = UserPoolId.split('_')[0]; this.userPoolId = UserPoolId; this.clientId = ClientId; this.client = new _Client__WEBPACK_IMPORTED_MODULE_0__["default"](region, endpoint, fetchOptions); /** * By default, AdvancedSecurityDataCollectionFlag is set to true, * if no input value is provided. */ this.advancedSecurityDataCollectionFlag = AdvancedSecurityDataCollectionFlag !== false; this.storage = data.Storage || new _StorageHelper__WEBPACK_IMPORTED_MODULE_2__["default"]().getStorage(); } /** * @returns {string} the user pool id */ var _proto = CognitoUserPool.prototype; _proto.getUserPoolId = function getUserPoolId() { return this.userPoolId; } /** * @returns {string} the client id */ ; _proto.getClientId = function getClientId() { return this.clientId; } /** * @typedef {object} SignUpResult * @property {CognitoUser} user New user. * @property {bool} userConfirmed If the user is already confirmed. */ /** * method for signing up a user * @param {string} username User's username. * @param {string} password Plain-text initial password entered by user. * @param {(AttributeArg[])=} userAttributes New user attributes. * @param {(AttributeArg[])=} validationData Application metadata. * @param {(AttributeArg[])=} clientMetadata Client metadata. * @param {nodeCallback} callback Called on error or with the new user. * @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger * @returns {void} */ ; _proto.signUp = function signUp(username, password, userAttributes, validationData, callback, clientMetadata) { var _this = this; var jsonReq = { ClientId: this.clientId, Username: username, Password: password, UserAttributes: userAttributes, ValidationData: validationData, ClientMetadata: clientMetadata }; if (this.getUserContextData(username)) { jsonReq.UserContextData = this.getUserContextData(username); } this.client.request('SignUp', jsonReq, function (err, data) { if (err) { return callback(err, null); } var cognitoUser = { Username: username, Pool: _this, Storage: _this.storage }; var returnData = { user: new _CognitoUser__WEBPACK_IMPORTED_MODULE_1__["default"](cognitoUser), userConfirmed: data.UserConfirmed, userSub: data.UserSub, codeDeliveryDetails: data.CodeDeliveryDetails }; return callback(null, returnData); }); } /** * method for getting the current user of the application from the local storage * * @returns {CognitoUser} the user retrieved from storage */ ; _proto.getCurrentUser = function getCurrentUser() { var lastUserKey = "CognitoIdentityServiceProvider." + this.clientId + ".LastAuthUser"; var lastAuthUser = this.storage.getItem(lastUserKey); if (lastAuthUser) { var cognitoUser = { Username: lastAuthUser, Pool: this, Storage: this.storage }; return new _CognitoUser__WEBPACK_IMPORTED_MODULE_1__["default"](cognitoUser); } return null; } /** * This method returns the encoded data string used for cognito advanced security feature. * This would be generated only when developer has included the JS used for collecting the * data on their client. Please refer to documentation to know more about using AdvancedSecurity * features * @param {string} username the username for the context data * @returns {string} the user context data **/ ; _proto.getUserContextData = function getUserContextData(username) { if (typeof AmazonCognitoAdvancedSecurityData === 'undefined') { return undefined; } /* eslint-disable */ var amazonCognitoAdvancedSecurityDataConst = AmazonCognitoAdvancedSecurityData; /* eslint-enable */ if (this.advancedSecurityDataCollectionFlag) { var advancedSecurityData = amazonCognitoAdvancedSecurityDataConst.getData(username, this.userPoolId, this.clientId); if (advancedSecurityData) { var userContextData = { EncodedData: advancedSecurityData }; return userContextData; } } return {}; }; return CognitoUserPool; }(); /***/ }), /***/ "F6oq": /*!*****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetBucketAccelerateConfigurationCommand.js ***! \*****************************************************************************************************/ /*! exports provided: GetBucketAccelerateConfigurationCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBucketAccelerateConfigurationCommand", function() { return GetBucketAccelerateConfigurationCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetBucketAccelerateConfigurationCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetBucketAccelerateConfigurationCommand, _super); // Start section: command_properties // End section: command_properties function GetBucketAccelerateConfigurationCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetBucketAccelerateConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketAccelerateConfigurationRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketAccelerateConfigurationOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetBucketAccelerateConfigurationCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetBucketAccelerateConfigurationCommand"])(input, context); }; GetBucketAccelerateConfigurationCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetBucketAccelerateConfigurationCommand"])(output, context); }; return GetBucketAccelerateConfigurationCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetBucketAccelerateConfigurationCommand.js.map /***/ }), /***/ "F7JK": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-polly/dist/es/commands/GetSpeechSynthesisTaskCommand.js ***! \**********************************************************************************************/ /*! exports provided: GetSpeechSynthesisTaskCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSpeechSynthesisTaskCommand", function() { return GetSpeechSynthesisTaskCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "uUVK"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "h3LU"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetSpeechSynthesisTaskCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSpeechSynthesisTaskCommand, _super); // Start section: command_properties // End section: command_properties function GetSpeechSynthesisTaskCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetSpeechSynthesisTaskCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetSpeechSynthesisTaskInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetSpeechSynthesisTaskOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetSpeechSynthesisTaskCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSpeechSynthesisTaskCommand"])(input, context); }; GetSpeechSynthesisTaskCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSpeechSynthesisTaskCommand"])(output, context); }; return GetSpeechSynthesisTaskCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetSpeechSynthesisTaskCommand.js.map /***/ }), /***/ "F8X2": /*!*************************************************************!*\ !*** ./node_modules/graphql/language/directiveLocation.mjs ***! \*************************************************************/ /*! exports provided: DirectiveLocation */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DirectiveLocation", function() { return DirectiveLocation; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * The set of allowed directive location values. */ var DirectiveLocation = Object.freeze({ // Request Definitions QUERY: 'QUERY', MUTATION: 'MUTATION', SUBSCRIPTION: 'SUBSCRIPTION', FIELD: 'FIELD', FRAGMENT_DEFINITION: 'FRAGMENT_DEFINITION', FRAGMENT_SPREAD: 'FRAGMENT_SPREAD', INLINE_FRAGMENT: 'INLINE_FRAGMENT', VARIABLE_DEFINITION: 'VARIABLE_DEFINITION', // Type System Definitions SCHEMA: 'SCHEMA', SCALAR: 'SCALAR', OBJECT: 'OBJECT', FIELD_DEFINITION: 'FIELD_DEFINITION', ARGUMENT_DEFINITION: 'ARGUMENT_DEFINITION', INTERFACE: 'INTERFACE', UNION: 'UNION', ENUM: 'ENUM', ENUM_VALUE: 'ENUM_VALUE', INPUT_OBJECT: 'INPUT_OBJECT', INPUT_FIELD_DEFINITION: 'INPUT_FIELD_DEFINITION' }); /** * The enum type representing the directive location values. */ /***/ }), /***/ "F97/": /*!*********************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/not.js ***! \*********************************************************/ /*! exports provided: not */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "not", function() { return not; }); function not(pred, thisArg) { function notPred() { return !(notPred.pred.apply(notPred.thisArg, arguments)); } notPred.pred = pred; notPred.thisArg = thisArg; return notPred; } //# sourceMappingURL=not.js.map /***/ }), /***/ "FAQy": /*!********************************************************************!*\ !*** ./node_modules/graphql/utilities/introspectionFromSchema.mjs ***! \********************************************************************/ /*! exports provided: introspectionFromSchema */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "introspectionFromSchema", function() { return introspectionFromSchema; }); /* harmony import */ var _jsutils_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/invariant */ "2C6G"); /* harmony import */ var _introspectionQuery__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./introspectionQuery */ "PDj5"); /* harmony import */ var _execution_execute__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../execution/execute */ "yRpE"); /* harmony import */ var _language_parser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../language/parser */ "EMzn"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Build an IntrospectionQuery from a GraphQLSchema * * IntrospectionQuery is useful for utilities that care about type and field * relationships, but do not need to traverse through those relationships. * * This is the inverse of buildClientSchema. The primary use case is outside * of the server context, for instance when doing schema comparisons. */ function introspectionFromSchema(schema, options) { var queryAST = Object(_language_parser__WEBPACK_IMPORTED_MODULE_3__["parse"])(Object(_introspectionQuery__WEBPACK_IMPORTED_MODULE_1__["getIntrospectionQuery"])(options)); var result = Object(_execution_execute__WEBPACK_IMPORTED_MODULE_2__["execute"])(schema, queryAST); !(!result.then && !result.errors && result.data) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_0__["default"])(0) : void 0; return result.data; } /***/ }), /***/ "FB5R": /*!*************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetObjectTorrentCommand.js ***! \*************************************************************************************/ /*! exports provided: GetObjectTorrentCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetObjectTorrentCommand", function() { return GetObjectTorrentCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetObjectTorrentCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetObjectTorrentCommand, _super); // Start section: command_properties // End section: command_properties function GetObjectTorrentCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetObjectTorrentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetObjectTorrentRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetObjectTorrentOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetObjectTorrentCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetObjectTorrentCommand"])(input, context); }; GetObjectTorrentCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetObjectTorrentCommand"])(output, context); }; return GetObjectTorrentCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetObjectTorrentCommand.js.map /***/ }), /***/ "FD9M": /*!***********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/bufferToggle.js ***! \***********************************************************************/ /*! exports provided: bufferToggle */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bufferToggle", function() { return bufferToggle; }); /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscription */ "quSY"); /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj"); /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE"); function bufferToggle(openings, closingSelector) { return function bufferToggleOperatorFunction(source) { return source.lift(new BufferToggleOperator(openings, closingSelector)); }; } class BufferToggleOperator { constructor(openings, closingSelector) { this.openings = openings; this.closingSelector = closingSelector; } call(subscriber, source) { return source.subscribe(new BufferToggleSubscriber(subscriber, this.openings, this.closingSelector)); } } class BufferToggleSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"] { constructor(destination, openings, closingSelector) { super(destination); this.closingSelector = closingSelector; this.contexts = []; this.add(Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(this, openings)); } _next(value) { const contexts = this.contexts; const len = contexts.length; for (let i = 0; i < len; i++) { contexts[i].buffer.push(value); } } _error(err) { const contexts = this.contexts; while (contexts.length > 0) { const context = contexts.shift(); context.subscription.unsubscribe(); context.buffer = null; context.subscription = null; } this.contexts = null; super._error(err); } _complete() { const contexts = this.contexts; while (contexts.length > 0) { const context = contexts.shift(); this.destination.next(context.buffer); context.subscription.unsubscribe(); context.buffer = null; context.subscription = null; } this.contexts = null; super._complete(); } notifyNext(outerValue, innerValue) { outerValue ? this.closeBuffer(outerValue) : this.openBuffer(innerValue); } notifyComplete(innerSub) { this.closeBuffer(innerSub.context); } openBuffer(value) { try { const closingSelector = this.closingSelector; const closingNotifier = closingSelector.call(this, value); if (closingNotifier) { this.trySubscribe(closingNotifier); } } catch (err) { this._error(err); } } closeBuffer(context) { const contexts = this.contexts; if (contexts && context) { const { buffer, subscription } = context; this.destination.next(buffer); contexts.splice(contexts.indexOf(context), 1); this.remove(subscription); subscription.unsubscribe(); } } trySubscribe(closingNotifier) { const contexts = this.contexts; const buffer = []; const subscription = new _Subscription__WEBPACK_IMPORTED_MODULE_0__["Subscription"](); const context = { buffer, subscription }; contexts.push(context); const innerSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(this, closingNotifier, context); if (!innerSubscription || innerSubscription.closed) { this.closeBuffer(context); } else { innerSubscription.context = context; this.add(innerSubscription); subscription.add(innerSubscription); } } } //# sourceMappingURL=bufferToggle.js.map /***/ }), /***/ "FGGy": /*!*******************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/endpoints.js ***! \*******************************************************************/ /*! exports provided: defaultRegionInfoProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRegionInfoProvider", function() { return defaultRegionInfoProvider; }); // Partition default templates var AWS_TEMPLATE = "kinesis.{region}.amazonaws.com"; var AWS_CN_TEMPLATE = "kinesis.{region}.amazonaws.com.cn"; var AWS_ISO_TEMPLATE = "kinesis.{region}.c2s.ic.gov"; var AWS_ISO_B_TEMPLATE = "kinesis.{region}.sc2s.sgov.gov"; var AWS_US_GOV_TEMPLATE = "kinesis.{region}.amazonaws.com"; // Partition regions var AWS_REGIONS = new Set([ "ap-east-1", "ap-northeast-1", "ap-northeast-2", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "eu-central-1", "eu-north-1", "eu-west-1", "eu-west-2", "eu-west-3", "me-south-1", "sa-east-1", "us-east-1", "us-east-2", "us-west-1", "us-west-2", ]); var AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]); var AWS_ISO_REGIONS = new Set(["us-iso-east-1"]); var AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]); var AWS_US_GOV_REGIONS = new Set(["us-gov-east-1", "us-gov-west-1"]); var defaultRegionInfoProvider = function (region, options) { var regionInfo = undefined; switch (region) { // First, try to match exact region names. case "ap-east-1": regionInfo = { hostname: "kinesis.ap-east-1.amazonaws.com", partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "kinesis.ap-northeast-1.amazonaws.com", partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "kinesis.ap-northeast-2.amazonaws.com", partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "kinesis.ap-south-1.amazonaws.com", partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "kinesis.ap-southeast-1.amazonaws.com", partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "kinesis.ap-southeast-2.amazonaws.com", partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "kinesis.ca-central-1.amazonaws.com", partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "kinesis.cn-north-1.amazonaws.com.cn", partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "kinesis.cn-northwest-1.amazonaws.com.cn", partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "kinesis.eu-central-1.amazonaws.com", partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "kinesis.eu-north-1.amazonaws.com", partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "kinesis.eu-west-1.amazonaws.com", partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "kinesis.eu-west-2.amazonaws.com", partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "kinesis.eu-west-3.amazonaws.com", partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "kinesis.me-south-1.amazonaws.com", partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "kinesis.sa-east-1.amazonaws.com", partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "kinesis.us-east-1.amazonaws.com", partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "kinesis.us-east-2.amazonaws.com", partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "kinesis.us-gov-east-1.amazonaws.com", partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "kinesis.us-gov-west-1.amazonaws.com", partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "kinesis.us-iso-east-1.c2s.ic.gov", partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "kinesis.us-isob-east-1.sc2s.sgov.gov", partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "kinesis.us-west-1.amazonaws.com", partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "kinesis.us-west-2.amazonaws.com", partition: "aws", }; break; // Next, try to match partition endpoints. default: if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), partition: "aws", }; } } return Promise.resolve(regionInfo); }; //# sourceMappingURL=endpoints.js.map /***/ }), /***/ "FKr1": /*!**********************************************************************!*\ !*** ./node_modules/@angular/material/__ivy_ngcc__/fesm2015/core.js ***! \**********************************************************************/ /*! exports provided: APR, AUG, AnimationCurves, AnimationDurations, DEC, DateAdapter, ErrorStateMatcher, FEB, JAN, JUL, JUN, MAR, MATERIAL_SANITY_CHECKS, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MAT_DATE_LOCALE_FACTORY, MAT_DATE_LOCALE_PROVIDER, MAT_LABEL_GLOBAL_OPTIONS, MAT_NATIVE_DATE_FORMATS, MAT_OPTGROUP, MAT_OPTION_PARENT_COMPONENT, MAT_RIPPLE_GLOBAL_OPTIONS, MAY, MatCommonModule, MatLine, MatLineModule, MatLineSetter, MatNativeDateModule, MatOptgroup, MatOption, MatOptionModule, MatOptionSelectionChange, MatPseudoCheckbox, MatPseudoCheckboxModule, MatRipple, MatRippleModule, NOV, NativeDateAdapter, NativeDateModule, OCT, RippleRef, RippleRenderer, SEP, ShowOnDirtyErrorStateMatcher, VERSION, _MatOptgroupBase, _MatOptionBase, _countGroupLabelsBeforeOption, _getOptionScrollPosition, defaultRippleAnimationConfig, mixinColor, mixinDisableRipple, mixinDisabled, mixinErrorState, mixinInitialized, mixinTabIndex, setLines, ɵ0, ɵangular_material_src_material_core_core_a */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APR", function() { return APR; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AUG", function() { return AUG; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationCurves", function() { return AnimationCurves; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationDurations", function() { return AnimationDurations; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEC", function() { return DEC; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DateAdapter", function() { return DateAdapter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ErrorStateMatcher", function() { return ErrorStateMatcher; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FEB", function() { return FEB; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JAN", function() { return JAN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JUL", function() { return JUL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JUN", function() { return JUN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAR", function() { return MAR; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MATERIAL_SANITY_CHECKS", function() { return MATERIAL_SANITY_CHECKS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAT_DATE_FORMATS", function() { return MAT_DATE_FORMATS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAT_DATE_LOCALE", function() { return MAT_DATE_LOCALE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAT_DATE_LOCALE_FACTORY", function() { return MAT_DATE_LOCALE_FACTORY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAT_DATE_LOCALE_PROVIDER", function() { return MAT_DATE_LOCALE_PROVIDER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAT_LABEL_GLOBAL_OPTIONS", function() { return MAT_LABEL_GLOBAL_OPTIONS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAT_NATIVE_DATE_FORMATS", function() { return MAT_NATIVE_DATE_FORMATS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAT_OPTGROUP", function() { return MAT_OPTGROUP; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAT_OPTION_PARENT_COMPONENT", function() { return MAT_OPTION_PARENT_COMPONENT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAT_RIPPLE_GLOBAL_OPTIONS", function() { return MAT_RIPPLE_GLOBAL_OPTIONS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAY", function() { return MAY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatCommonModule", function() { return MatCommonModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatLine", function() { return MatLine; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatLineModule", function() { return MatLineModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatLineSetter", function() { return MatLineSetter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatNativeDateModule", function() { return MatNativeDateModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatOptgroup", function() { return MatOptgroup; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatOption", function() { return MatOption; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatOptionModule", function() { return MatOptionModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatOptionSelectionChange", function() { return MatOptionSelectionChange; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatPseudoCheckbox", function() { return MatPseudoCheckbox; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatPseudoCheckboxModule", function() { return MatPseudoCheckboxModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatRipple", function() { return MatRipple; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatRippleModule", function() { return MatRippleModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NOV", function() { return NOV; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NativeDateAdapter", function() { return NativeDateAdapter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NativeDateModule", function() { return NativeDateModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OCT", function() { return OCT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RippleRef", function() { return RippleRef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RippleRenderer", function() { return RippleRenderer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEP", function() { return SEP; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShowOnDirtyErrorStateMatcher", function() { return ShowOnDirtyErrorStateMatcher; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_MatOptgroupBase", function() { return _MatOptgroupBase; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_MatOptionBase", function() { return _MatOptionBase; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_countGroupLabelsBeforeOption", function() { return _countGroupLabelsBeforeOption; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_getOptionScrollPosition", function() { return _getOptionScrollPosition; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRippleAnimationConfig", function() { return defaultRippleAnimationConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mixinColor", function() { return mixinColor; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mixinDisableRipple", function() { return mixinDisableRipple; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mixinDisabled", function() { return mixinDisabled; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mixinErrorState", function() { return mixinErrorState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mixinInitialized", function() { return mixinInitialized; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mixinTabIndex", function() { return mixinTabIndex; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setLines", function() { return setLines; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ0", function() { return ɵ0$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_material_core_core_a", function() { return MATERIAL_SANITY_CHECKS_FACTORY; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL"); /* harmony import */ var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/a11y */ "u47x"); /* harmony import */ var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/cdk/bidi */ "cH1L"); /* harmony import */ var _angular_cdk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/cdk */ "xz+E"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ "ofXK"); /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/cdk/coercion */ "8LU1"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ "qCKp"); /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/cdk/platform */ "nLfN"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ "kU1M"); /* harmony import */ var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/platform-browser/animations */ "R1ws"); /* harmony import */ var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/cdk/keycodes */ "FtGj"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** Current version of Angular Material. */ const _c0 = ["*", [["mat-option"], ["ng-container"]]]; const _c1 = ["*", "mat-option, ng-container"]; function MatOption_mat_pseudo_checkbox_0_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "mat-pseudo-checkbox", 3); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("state", ctx_r0.selected ? "checked" : "unchecked")("disabled", ctx_r0.disabled); } } const _c2 = ["*"]; const VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Version"]('10.2.6'); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** @docs-private */ class AnimationCurves { } AnimationCurves.STANDARD_CURVE = 'cubic-bezier(0.4,0.0,0.2,1)'; AnimationCurves.DECELERATION_CURVE = 'cubic-bezier(0.0,0.0,0.2,1)'; AnimationCurves.ACCELERATION_CURVE = 'cubic-bezier(0.4,0.0,1,1)'; AnimationCurves.SHARP_CURVE = 'cubic-bezier(0.4,0.0,0.6,1)'; /** @docs-private */ class AnimationDurations { } AnimationDurations.COMPLEX = '375ms'; AnimationDurations.ENTERING = '225ms'; AnimationDurations.EXITING = '195ms'; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // Private version constant to circumvent test/build issues, // i.e. avoid core to depend on the @angular/material primary entry-point // Can be removed once the Material primary entry-point no longer // re-exports all secondary entry-points const VERSION$1 = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Version"]('10.2.6'); /** @docs-private */ function MATERIAL_SANITY_CHECKS_FACTORY() { return true; } /** Injection token that configures whether the Material sanity checks are enabled. */ const MATERIAL_SANITY_CHECKS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('mat-sanity-checks', { providedIn: 'root', factory: MATERIAL_SANITY_CHECKS_FACTORY, }); /** * Module that captures anything that should be loaded and/or run for *all* Angular Material * components. This includes Bidi, etc. * * This module should be imported to each top-level component module (e.g., MatTabsModule). */ class MatCommonModule { constructor(highContrastModeDetector, sanityChecks, /** @breaking-change 11.0.0 make document required */ document) { /** Whether we've done the global sanity checks (e.g. a theme is loaded, there is a doctype). */ this._hasDoneGlobalChecks = false; this._document = document; // While A11yModule also does this, we repeat it here to avoid importing A11yModule // in MatCommonModule. highContrastModeDetector._applyBodyHighContrastModeCssClasses(); // Note that `_sanityChecks` is typed to `any`, because AoT // throws an error if we use the `SanityChecks` type directly. this._sanityChecks = sanityChecks; if (!this._hasDoneGlobalChecks) { this._checkDoctypeIsDefined(); this._checkThemeIsPresent(); this._checkCdkVersionMatch(); this._hasDoneGlobalChecks = true; } } /** Access injected document if available or fallback to global document reference */ _getDocument() { const doc = this._document || document; return typeof doc === 'object' && doc ? doc : null; } /** Use defaultView of injected document if available or fallback to global window reference */ _getWindow() { const doc = this._getDocument(); const win = (doc === null || doc === void 0 ? void 0 : doc.defaultView) || window; return typeof win === 'object' && win ? win : null; } /** Whether any sanity checks are enabled. */ _checksAreEnabled() { // TODO(crisbeto): we can't use `ngDevMode` here yet, because ViewEngine apps might not support // it. Since these checks can have performance implications and they aren't tree shakeable // in their current form, we can leave the `isDevMode` check in for now. // tslint:disable-next-line:ban return Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["isDevMode"])() && !this._isTestEnv(); } /** Whether the code is running in tests. */ _isTestEnv() { const window = this._getWindow(); return window && (window.__karma__ || window.jasmine); } _checkDoctypeIsDefined() { const isEnabled = this._checksAreEnabled() && (this._sanityChecks === true || this._sanityChecks.doctype); const document = this._getDocument(); if (isEnabled && document && !document.doctype) { console.warn('Current document does not have a doctype. This may cause ' + 'some Angular Material components not to behave as expected.'); } } _checkThemeIsPresent() { // We need to assert that the `body` is defined, because these checks run very early // and the `body` won't be defined if the consumer put their scripts in the `head`. const isDisabled = !this._checksAreEnabled() || (this._sanityChecks === false || !this._sanityChecks.theme); const document = this._getDocument(); if (isDisabled || !document || !document.body || typeof getComputedStyle !== 'function') { return; } const testElement = document.createElement('div'); testElement.classList.add('mat-theme-loaded-marker'); document.body.appendChild(testElement); const computedStyle = getComputedStyle(testElement); // In some situations the computed style of the test element can be null. For example in // Firefox, the computed style is null if an application is running inside of a hidden iframe. // See: https://bugzilla.mozilla.org/show_bug.cgi?id=548397 if (computedStyle && computedStyle.display !== 'none') { console.warn('Could not find Angular Material core theme. Most Material ' + 'components may not work as expected. For more info refer ' + 'to the theming guide: https://material.angular.io/guide/theming'); } document.body.removeChild(testElement); } /** Checks whether the material version matches the cdk version */ _checkCdkVersionMatch() { const isEnabled = this._checksAreEnabled() && (this._sanityChecks === true || this._sanityChecks.version); if (isEnabled && VERSION$1.full !== _angular_cdk__WEBPACK_IMPORTED_MODULE_3__["VERSION"].full) { console.warn('The Angular Material version (' + VERSION$1.full + ') does not match ' + 'the Angular CDK version (' + _angular_cdk__WEBPACK_IMPORTED_MODULE_3__["VERSION"].full + ').\n' + 'Please ensure the versions of these two packages exactly match.'); } } } MatCommonModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: MatCommonModule }); MatCommonModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function MatCommonModule_Factory(t) { return new (t || MatCommonModule)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["HighContrastModeDetector"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](MATERIAL_SANITY_CHECKS, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"], 8)); }, imports: [[_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"]], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"]] }); MatCommonModule.ctorParameters = () => [ { type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["HighContrastModeDetector"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [MATERIAL_SANITY_CHECKS,] }] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"],] }] } ]; (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatCommonModule, { imports: function () { return [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"]]; }, exports: function () { return [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"]]; } }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatCommonModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"], args: [{ imports: [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"]], exports: [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"]] }] }], function () { return [{ type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["HighContrastModeDetector"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [MATERIAL_SANITY_CHECKS] }] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]] }] }]; }, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** Mixin to augment a directive with a `disabled` property. */ function mixinDisabled(base) { return class extends base { constructor(...args) { super(...args); this._disabled = false; } get disabled() { return this._disabled; } set disabled(value) { this._disabled = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceBooleanProperty"])(value); } }; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** Mixin to augment a directive with a `color` property. */ function mixinColor(base, defaultColor) { return class extends base { constructor(...args) { super(...args); this.defaultColor = defaultColor; // Set the default color that can be specified from the mixin. this.color = defaultColor; } get color() { return this._color; } set color(value) { const colorPalette = value || this.defaultColor; if (colorPalette !== this._color) { if (this._color) { this._elementRef.nativeElement.classList.remove(`mat-${this._color}`); } if (colorPalette) { this._elementRef.nativeElement.classList.add(`mat-${colorPalette}`); } this._color = colorPalette; } } }; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** Mixin to augment a directive with a `disableRipple` property. */ function mixinDisableRipple(base) { class Mixin extends base { constructor(...args) { super(...args); this._disableRipple = false; } /** Whether the ripple effect is disabled or not. */ get disableRipple() { return this._disableRipple; } set disableRipple(value) { this._disableRipple = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceBooleanProperty"])(value); } } // Since we don't directly extend from `base` with it's original types, and we instruct // TypeScript that `T` actually is instantiatable through `new`, the types don't overlap. // This is a limitation in TS as abstract classes cannot be typed properly dynamically. return Mixin; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** Mixin to augment a directive with a `tabIndex` property. */ function mixinTabIndex(base, defaultTabIndex = 0) { // Note: We cast `base` to `unknown` and then `Constructor`. It could be an abstract class, // but given we `extend` it from another class, we can assume a constructor being accessible. class Mixin extends base { constructor(...args) { super(...args); this._tabIndex = defaultTabIndex; this.defaultTabIndex = defaultTabIndex; } get tabIndex() { return this.disabled ? -1 : this._tabIndex; } set tabIndex(value) { // If the specified tabIndex value is null or undefined, fall back to the default value. this._tabIndex = value != null ? Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceNumberProperty"])(value) : this.defaultTabIndex; } } // Since we don't directly extend from `base` with it's original types, and we instruct // TypeScript that `T` actually is instantiatable through `new`, the types don't overlap. // This is a limitation in TS as abstract classes cannot be typed properly dynamically. return Mixin; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Mixin to augment a directive with updateErrorState method. * For component with `errorState` and need to update `errorState`. */ function mixinErrorState(base) { return class extends base { constructor(...args) { super(...args); /** Whether the component is in an error state. */ this.errorState = false; /** * Stream that emits whenever the state of the input changes such that the wrapping * `MatFormField` needs to run change detection. */ this.stateChanges = new rxjs__WEBPACK_IMPORTED_MODULE_6__["Subject"](); } updateErrorState() { const oldState = this.errorState; const parent = this._parentFormGroup || this._parentForm; const matcher = this.errorStateMatcher || this._defaultErrorStateMatcher; const control = this.ngControl ? this.ngControl.control : null; const newState = matcher.isErrorState(control, parent); if (newState !== oldState) { this.errorState = newState; this.stateChanges.next(); } } }; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** Mixin to augment a directive with an initialized property that will emits when ngOnInit ends. */ function mixinInitialized(base) { return class extends base { constructor(...args) { super(...args); /** Whether this directive has been marked as initialized. */ this._isInitialized = false; /** * List of subscribers that subscribed before the directive was initialized. Should be notified * during _markInitialized. Set to null after pending subscribers are notified, and should * not expect to be populated after. */ this._pendingSubscribers = []; /** * Observable stream that emits when the directive initializes. If already initialized, the * subscriber is stored to be notified once _markInitialized is called. */ this.initialized = new rxjs__WEBPACK_IMPORTED_MODULE_6__["Observable"](subscriber => { // If initialized, immediately notify the subscriber. Otherwise store the subscriber to notify // when _markInitialized is called. if (this._isInitialized) { this._notifySubscriber(subscriber); } else { this._pendingSubscribers.push(subscriber); } }); } /** * Marks the state as initialized and notifies pending subscribers. Should be called at the end * of ngOnInit. * @docs-private */ _markInitialized() { if (this._isInitialized && (typeof ngDevMode === 'undefined' || ngDevMode)) { throw Error('This directive has already been marked as initialized and ' + 'should not be called twice.'); } this._isInitialized = true; this._pendingSubscribers.forEach(this._notifySubscriber); this._pendingSubscribers = null; } /** Emits and completes the subscriber stream (should only emit once). */ _notifySubscriber(subscriber) { subscriber.next(); subscriber.complete(); } }; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** InjectionToken for datepicker that can be used to override default locale code. */ const MAT_DATE_LOCALE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('MAT_DATE_LOCALE', { providedIn: 'root', factory: MAT_DATE_LOCALE_FACTORY, }); /** @docs-private */ function MAT_DATE_LOCALE_FACTORY() { return Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["inject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]); } /** * No longer needed since MAT_DATE_LOCALE has been changed to a scoped injectable. * If you are importing and providing this in your code you can simply remove it. * @deprecated * @breaking-change 8.0.0 */ const MAT_DATE_LOCALE_PROVIDER = { provide: MAT_DATE_LOCALE, useExisting: _angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"] }; /** Adapts type `D` to be usable as a date by cdk-based components that work with dates. */ class DateAdapter { constructor() { this._localeChanges = new rxjs__WEBPACK_IMPORTED_MODULE_6__["Subject"](); /** A stream that emits when the locale changes. */ this.localeChanges = this._localeChanges; } /** * Given a potential date object, returns that same date object if it is * a valid date, or `null` if it's not a valid date. * @param obj The object to check. * @returns A date or `null`. */ getValidDateOrNull(obj) { return this.isDateInstance(obj) && this.isValid(obj) ? obj : null; } /** * Attempts to deserialize a value to a valid date object. This is different from parsing in that * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601 * string). The default implementation does not allow any deserialization, it simply checks that * the given value is already a valid date object or null. The `` will call this * method on all of its `@Input()` properties that accept dates. It is therefore possible to * support passing values from your backend directly to these properties by overriding this method * to also deserialize the format used by your backend. * @param value The value to be deserialized into a date object. * @returns The deserialized date object, either a valid date, null if the value can be * deserialized into a null date (e.g. the empty string), or an invalid date. */ deserialize(value) { if (value == null || this.isDateInstance(value) && this.isValid(value)) { return value; } return this.invalid(); } /** * Sets the locale used for all dates. * @param locale The new locale. */ setLocale(locale) { this.locale = locale; this._localeChanges.next(); } /** * Compares two dates. * @param first The first date to compare. * @param second The second date to compare. * @returns 0 if the dates are equal, a number less than 0 if the first date is earlier, * a number greater than 0 if the first date is later. */ compareDate(first, second) { return this.getYear(first) - this.getYear(second) || this.getMonth(first) - this.getMonth(second) || this.getDate(first) - this.getDate(second); } /** * Checks if two dates are equal. * @param first The first date to check. * @param second The second date to check. * @returns Whether the two dates are equal. * Null dates are considered equal to other null dates. */ sameDate(first, second) { if (first && second) { let firstValid = this.isValid(first); let secondValid = this.isValid(second); if (firstValid && secondValid) { return !this.compareDate(first, second); } return firstValid == secondValid; } return first == second; } /** * Clamp the given date between min and max dates. * @param date The date to clamp. * @param min The minimum value to allow. If null or omitted no min is enforced. * @param max The maximum value to allow. If null or omitted no max is enforced. * @returns `min` if `date` is less than `min`, `max` if date is greater than `max`, * otherwise `date`. */ clampDate(date, min, max) { if (min && this.compareDate(date, min) < 0) { return min; } if (max && this.compareDate(date, max) > 0) { return max; } return date; } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const MAT_DATE_FORMATS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('mat-date-formats'); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // TODO(mmalerba): Remove when we no longer support safari 9. /** Whether the browser supports the Intl API. */ let SUPPORTS_INTL_API; // We need a try/catch around the reference to `Intl`, because accessing it in some cases can // cause IE to throw. These cases are tied to particular versions of Windows and can happen if // the consumer is providing a polyfilled `Map`. See: // https://github.com/Microsoft/ChakraCore/issues/3189 // https://github.com/angular/components/issues/15687 try { SUPPORTS_INTL_API = typeof Intl != 'undefined'; } catch (_a) { SUPPORTS_INTL_API = false; } /** The default month names to use if Intl API is not available. */ const DEFAULT_MONTH_NAMES = { 'long': [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ], 'short': ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], 'narrow': ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'] }; const ɵ0 = i => String(i + 1); /** The default date names to use if Intl API is not available. */ const DEFAULT_DATE_NAMES = range(31, ɵ0); /** The default day of the week names to use if Intl API is not available. */ const DEFAULT_DAY_OF_WEEK_NAMES = { 'long': ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], 'short': ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], 'narrow': ['S', 'M', 'T', 'W', 'T', 'F', 'S'] }; /** * Matches strings that have the form of a valid RFC 3339 string * (https://tools.ietf.org/html/rfc3339). Note that the string may not actually be a valid date * because the regex will match strings an with out of bounds month, date, etc. */ const ISO_8601_REGEX = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/; /** Creates an array and fills it with values. */ function range(length, valueFunction) { const valuesArray = Array(length); for (let i = 0; i < length; i++) { valuesArray[i] = valueFunction(i); } return valuesArray; } /** Adapts the native JS Date for use with cdk-based components that work with dates. */ class NativeDateAdapter extends DateAdapter { constructor(matDateLocale, platform) { super(); /** * Whether to use `timeZone: 'utc'` with `Intl.DateTimeFormat` when formatting dates. * Without this `Intl.DateTimeFormat` sometimes chooses the wrong timeZone, which can throw off * the result. (e.g. in the en-US locale `new Date(1800, 7, 14).toLocaleDateString()` * will produce `'8/13/1800'`. * * TODO(mmalerba): drop this variable. It's not being used in the code right now. We're now * getting the string representation of a Date object from its utc representation. We're keeping * it here for sometime, just for precaution, in case we decide to revert some of these changes * though. */ this.useUtcForDisplay = true; super.setLocale(matDateLocale); // IE does its own time zone correction, so we disable this on IE. this.useUtcForDisplay = !platform.TRIDENT; this._clampDate = platform.TRIDENT || platform.EDGE; } getYear(date) { return date.getFullYear(); } getMonth(date) { return date.getMonth(); } getDate(date) { return date.getDate(); } getDayOfWeek(date) { return date.getDay(); } getMonthNames(style) { if (SUPPORTS_INTL_API) { const dtf = new Intl.DateTimeFormat(this.locale, { month: style, timeZone: 'utc' }); return range(12, i => this._stripDirectionalityCharacters(this._format(dtf, new Date(2017, i, 1)))); } return DEFAULT_MONTH_NAMES[style]; } getDateNames() { if (SUPPORTS_INTL_API) { const dtf = new Intl.DateTimeFormat(this.locale, { day: 'numeric', timeZone: 'utc' }); return range(31, i => this._stripDirectionalityCharacters(this._format(dtf, new Date(2017, 0, i + 1)))); } return DEFAULT_DATE_NAMES; } getDayOfWeekNames(style) { if (SUPPORTS_INTL_API) { const dtf = new Intl.DateTimeFormat(this.locale, { weekday: style, timeZone: 'utc' }); return range(7, i => this._stripDirectionalityCharacters(this._format(dtf, new Date(2017, 0, i + 1)))); } return DEFAULT_DAY_OF_WEEK_NAMES[style]; } getYearName(date) { if (SUPPORTS_INTL_API) { const dtf = new Intl.DateTimeFormat(this.locale, { year: 'numeric', timeZone: 'utc' }); return this._stripDirectionalityCharacters(this._format(dtf, date)); } return String(this.getYear(date)); } getFirstDayOfWeek() { // We can't tell using native JS Date what the first day of the week is, we default to Sunday. return 0; } getNumDaysInMonth(date) { return this.getDate(this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + 1, 0)); } clone(date) { return new Date(date.getTime()); } createDate(year, month, date) { if (typeof ngDevMode === 'undefined' || ngDevMode) { // Check for invalid month and date (except upper bound on date which we have to check after // creating the Date). if (month < 0 || month > 11) { throw Error(`Invalid month index "${month}". Month index has to be between 0 and 11.`); } if (date < 1) { throw Error(`Invalid date "${date}". Date has to be greater than 0.`); } } let result = this._createDateWithOverflow(year, month, date); // Check that the date wasn't above the upper bound for the month, causing the month to overflow if (result.getMonth() != month && (typeof ngDevMode === 'undefined' || ngDevMode)) { throw Error(`Invalid date "${date}" for month with index "${month}".`); } return result; } today() { return new Date(); } parse(value) { // We have no way using the native JS Date to set the parse format or locale, so we ignore these // parameters. if (typeof value == 'number') { return new Date(value); } return value ? new Date(Date.parse(value)) : null; } format(date, displayFormat) { if (!this.isValid(date)) { throw Error('NativeDateAdapter: Cannot format invalid date.'); } if (SUPPORTS_INTL_API) { // On IE and Edge the i18n API will throw a hard error that can crash the entire app // if we attempt to format a date whose year is less than 1 or greater than 9999. if (this._clampDate && (date.getFullYear() < 1 || date.getFullYear() > 9999)) { date = this.clone(date); date.setFullYear(Math.max(1, Math.min(9999, date.getFullYear()))); } displayFormat = Object.assign(Object.assign({}, displayFormat), { timeZone: 'utc' }); const dtf = new Intl.DateTimeFormat(this.locale, displayFormat); return this._stripDirectionalityCharacters(this._format(dtf, date)); } return this._stripDirectionalityCharacters(date.toDateString()); } addCalendarYears(date, years) { return this.addCalendarMonths(date, years * 12); } addCalendarMonths(date, months) { let newDate = this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + months, this.getDate(date)); // It's possible to wind up in the wrong month if the original month has more days than the new // month. In this case we want to go to the last day of the desired month. // Note: the additional + 12 % 12 ensures we end up with a positive number, since JS % doesn't // guarantee this. if (this.getMonth(newDate) != ((this.getMonth(date) + months) % 12 + 12) % 12) { newDate = this._createDateWithOverflow(this.getYear(newDate), this.getMonth(newDate), 0); } return newDate; } addCalendarDays(date, days) { return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date) + days); } toIso8601(date) { return [ date.getUTCFullYear(), this._2digit(date.getUTCMonth() + 1), this._2digit(date.getUTCDate()) ].join('-'); } /** * Returns the given value if given a valid Date or null. Deserializes valid ISO 8601 strings * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into null. Returns an * invalid date for all other values. */ deserialize(value) { if (typeof value === 'string') { if (!value) { return null; } // The `Date` constructor accepts formats other than ISO 8601, so we need to make sure the // string is the right format first. if (ISO_8601_REGEX.test(value)) { let date = new Date(value); if (this.isValid(date)) { return date; } } } return super.deserialize(value); } isDateInstance(obj) { return obj instanceof Date; } isValid(date) { return !isNaN(date.getTime()); } invalid() { return new Date(NaN); } /** Creates a date but allows the month and date to overflow. */ _createDateWithOverflow(year, month, date) { // Passing the year to the constructor causes year numbers <100 to be converted to 19xx. // To work around this we use `setFullYear` and `setHours` instead. const d = new Date(); d.setFullYear(year, month, date); d.setHours(0, 0, 0, 0); return d; } /** * Pads a number to make it two digits. * @param n The number to pad. * @returns The padded number. */ _2digit(n) { return ('00' + n).slice(-2); } /** * Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while * other browsers do not. We remove them to make output consistent and because they interfere with * date parsing. * @param str The string to strip direction characters from. * @returns The stripped string. */ _stripDirectionalityCharacters(str) { return str.replace(/[\u200e\u200f]/g, ''); } /** * When converting Date object to string, javascript built-in functions may return wrong * results because it applies its internal DST rules. The DST rules around the world change * very frequently, and the current valid rule is not always valid in previous years though. * We work around this problem building a new Date object which has its internal UTC * representation with the local date and time. * @param dtf Intl.DateTimeFormat object, containg the desired string format. It must have * timeZone set to 'utc' to work fine. * @param date Date from which we want to get the string representation according to dtf * @returns A Date object with its UTC representation based on the passed in date info */ _format(dtf, date) { // Passing the year to the constructor causes year numbers <100 to be converted to 19xx. // To work around this we use `setUTCFullYear` and `setUTCHours` instead. const d = new Date(); d.setUTCFullYear(date.getFullYear(), date.getMonth(), date.getDate()); d.setUTCHours(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()); return dtf.format(d); } } NativeDateAdapter.ɵfac = function NativeDateAdapter_Factory(t) { return new (t || NativeDateAdapter)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](MAT_DATE_LOCALE, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["Platform"])); }; NativeDateAdapter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NativeDateAdapter, factory: NativeDateAdapter.ɵfac }); NativeDateAdapter.ctorParameters = () => [ { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [MAT_DATE_LOCALE,] }] }, { type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["Platform"] } ]; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NativeDateAdapter, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"] }], function () { return [{ type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [MAT_DATE_LOCALE] }] }, { type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["Platform"] }]; }, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const MAT_NATIVE_DATE_FORMATS = { parse: { dateInput: null, }, display: { dateInput: { year: 'numeric', month: 'numeric', day: 'numeric' }, monthYearLabel: { year: 'numeric', month: 'short' }, dateA11yLabel: { year: 'numeric', month: 'long', day: 'numeric' }, monthYearA11yLabel: { year: 'numeric', month: 'long' }, } }; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class NativeDateModule { } NativeDateModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NativeDateModule }); NativeDateModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NativeDateModule_Factory(t) { return new (t || NativeDateModule)(); }, providers: [ { provide: DateAdapter, useClass: NativeDateAdapter }, ], imports: [[_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["PlatformModule"]]] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NativeDateModule, { imports: function () { return [_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["PlatformModule"]]; } }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NativeDateModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"], args: [{ imports: [_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["PlatformModule"]], providers: [ { provide: DateAdapter, useClass: NativeDateAdapter }, ] }] }], null, null); })(); const ɵ0$1 = MAT_NATIVE_DATE_FORMATS; class MatNativeDateModule { } MatNativeDateModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: MatNativeDateModule }); MatNativeDateModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function MatNativeDateModule_Factory(t) { return new (t || MatNativeDateModule)(); }, providers: [{ provide: MAT_DATE_FORMATS, useValue: ɵ0$1 }], imports: [[NativeDateModule]] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatNativeDateModule, { imports: [NativeDateModule] }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatNativeDateModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"], args: [{ imports: [NativeDateModule], providers: [{ provide: MAT_DATE_FORMATS, useValue: ɵ0$1 }] }] }], null, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** Error state matcher that matches when a control is invalid and dirty. */ class ShowOnDirtyErrorStateMatcher { isErrorState(control, form) { return !!(control && control.invalid && (control.dirty || (form && form.submitted))); } } ShowOnDirtyErrorStateMatcher.ɵfac = function ShowOnDirtyErrorStateMatcher_Factory(t) { return new (t || ShowOnDirtyErrorStateMatcher)(); }; ShowOnDirtyErrorStateMatcher.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: ShowOnDirtyErrorStateMatcher, factory: ShowOnDirtyErrorStateMatcher.ɵfac }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ShowOnDirtyErrorStateMatcher, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"] }], null, null); })(); /** Provider that defines how form controls behave with regards to displaying error messages. */ class ErrorStateMatcher { isErrorState(control, form) { return !!(control && control.invalid && (control.touched || (form && form.submitted))); } } ErrorStateMatcher.ɵfac = function ErrorStateMatcher_Factory(t) { return new (t || ErrorStateMatcher)(); }; ErrorStateMatcher.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function ErrorStateMatcher_Factory() { return new ErrorStateMatcher(); }, token: ErrorStateMatcher, providedIn: "root" }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ErrorStateMatcher, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"], args: [{ providedIn: 'root' }] }], null, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Shared directive to count lines inside a text area, such as a list item. * Line elements can be extracted with a @ContentChildren(MatLine) query, then * counted by checking the query list's length. */ class MatLine { } MatLine.ɵfac = function MatLine_Factory(t) { return new (t || MatLine)(); }; MatLine.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: MatLine, selectors: [["", "mat-line", ""], ["", "matLine", ""]], hostAttrs: [1, "mat-line"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatLine, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"], args: [{ selector: '[mat-line], [matLine]', host: { 'class': 'mat-line' } }] }], null, null); })(); /** * Helper that takes a query list of lines and sets the correct class on the host. * @docs-private */ function setLines(lines, element, prefix = 'mat') { // Note: doesn't need to unsubscribe, because `changes` // gets completed by Angular when the view is destroyed. lines.changes.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["startWith"])(lines)).subscribe(({ length }) => { setClass(element, `${prefix}-2-line`, false); setClass(element, `${prefix}-3-line`, false); setClass(element, `${prefix}-multi-line`, false); if (length === 2 || length === 3) { setClass(element, `${prefix}-${length}-line`, true); } else if (length > 3) { setClass(element, `${prefix}-multi-line`, true); } }); } /** Adds or removes a class from an element. */ function setClass(element, className, isAdd) { const classList = element.nativeElement.classList; isAdd ? classList.add(className) : classList.remove(className); } /** * Helper that takes a query list of lines and sets the correct class on the host. * @docs-private * @deprecated Use `setLines` instead. * @breaking-change 8.0.0 */ class MatLineSetter { constructor(lines, element) { setLines(lines, element); } } class MatLineModule { } MatLineModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: MatLineModule }); MatLineModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function MatLineModule_Factory(t) { return new (t || MatLineModule)(); }, imports: [[MatCommonModule], MatCommonModule] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatLineModule, { declarations: [MatLine], imports: [MatCommonModule], exports: [MatLine, MatCommonModule] }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatLineModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"], args: [{ imports: [MatCommonModule], exports: [MatLine, MatCommonModule], declarations: [MatLine] }] }], null, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Reference to a previously launched ripple element. */ class RippleRef { constructor(_renderer, /** Reference to the ripple HTML element. */ element, /** Ripple configuration used for the ripple. */ config) { this._renderer = _renderer; this.element = element; this.config = config; /** Current state of the ripple. */ this.state = 3 /* HIDDEN */; } /** Fades out the ripple element. */ fadeOut() { this._renderer.fadeOutRipple(this); } } /** * Default ripple animation configuration for ripples without an explicit * animation config specified. */ const defaultRippleAnimationConfig = { enterDuration: 450, exitDuration: 400 }; /** * Timeout for ignoring mouse events. Mouse events will be temporary ignored after touch * events to avoid synthetic mouse events. */ const ignoreMouseEventsTimeout = 800; /** Options that apply to all the event listeners that are bound by the ripple renderer. */ const passiveEventOptions = Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["normalizePassiveListenerOptions"])({ passive: true }); /** Events that signal that the pointer is down. */ const pointerDownEvents = ['mousedown', 'touchstart']; /** Events that signal that the pointer is up. */ const pointerUpEvents = ['mouseup', 'mouseleave', 'touchend', 'touchcancel']; /** * Helper service that performs DOM manipulations. Not intended to be used outside this module. * The constructor takes a reference to the ripple directive's host element and a map of DOM * event handlers to be installed on the element that triggers ripple animations. * This will eventually become a custom renderer once Angular support exists. * @docs-private */ class RippleRenderer { constructor(_target, _ngZone, elementOrElementRef, platform) { this._target = _target; this._ngZone = _ngZone; /** Whether the pointer is currently down or not. */ this._isPointerDown = false; /** Set of currently active ripple references. */ this._activeRipples = new Set(); /** Whether pointer-up event listeners have been registered. */ this._pointerUpEventsRegistered = false; // Only do anything if we're on the browser. if (platform.isBrowser) { this._containerElement = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceElement"])(elementOrElementRef); } } /** * Fades in a ripple at the given coordinates. * @param x Coordinate within the element, along the X axis at which to start the ripple. * @param y Coordinate within the element, along the Y axis at which to start the ripple. * @param config Extra ripple options. */ fadeInRipple(x, y, config = {}) { const containerRect = this._containerRect = this._containerRect || this._containerElement.getBoundingClientRect(); const animationConfig = Object.assign(Object.assign({}, defaultRippleAnimationConfig), config.animation); if (config.centered) { x = containerRect.left + containerRect.width / 2; y = containerRect.top + containerRect.height / 2; } const radius = config.radius || distanceToFurthestCorner(x, y, containerRect); const offsetX = x - containerRect.left; const offsetY = y - containerRect.top; const duration = animationConfig.enterDuration; const ripple = document.createElement('div'); ripple.classList.add('mat-ripple-element'); ripple.style.left = `${offsetX - radius}px`; ripple.style.top = `${offsetY - radius}px`; ripple.style.height = `${radius * 2}px`; ripple.style.width = `${radius * 2}px`; // If a custom color has been specified, set it as inline style. If no color is // set, the default color will be applied through the ripple theme styles. if (config.color != null) { ripple.style.backgroundColor = config.color; } ripple.style.transitionDuration = `${duration}ms`; this._containerElement.appendChild(ripple); // By default the browser does not recalculate the styles of dynamically created // ripple elements. This is critical because then the `scale` would not animate properly. enforceStyleRecalculation(ripple); ripple.style.transform = 'scale(1)'; // Exposed reference to the ripple that will be returned. const rippleRef = new RippleRef(this, ripple, config); rippleRef.state = 0 /* FADING_IN */; // Add the ripple reference to the list of all active ripples. this._activeRipples.add(rippleRef); if (!config.persistent) { this._mostRecentTransientRipple = rippleRef; } // Wait for the ripple element to be completely faded in. // Once it's faded in, the ripple can be hidden immediately if the mouse is released. this._runTimeoutOutsideZone(() => { const isMostRecentTransientRipple = rippleRef === this._mostRecentTransientRipple; rippleRef.state = 1 /* VISIBLE */; // When the timer runs out while the user has kept their pointer down, we want to // keep only the persistent ripples and the latest transient ripple. We do this, // because we don't want stacked transient ripples to appear after their enter // animation has finished. if (!config.persistent && (!isMostRecentTransientRipple || !this._isPointerDown)) { rippleRef.fadeOut(); } }, duration); return rippleRef; } /** Fades out a ripple reference. */ fadeOutRipple(rippleRef) { const wasActive = this._activeRipples.delete(rippleRef); if (rippleRef === this._mostRecentTransientRipple) { this._mostRecentTransientRipple = null; } // Clear out the cached bounding rect if we have no more ripples. if (!this._activeRipples.size) { this._containerRect = null; } // For ripples that are not active anymore, don't re-run the fade-out animation. if (!wasActive) { return; } const rippleEl = rippleRef.element; const animationConfig = Object.assign(Object.assign({}, defaultRippleAnimationConfig), rippleRef.config.animation); rippleEl.style.transitionDuration = `${animationConfig.exitDuration}ms`; rippleEl.style.opacity = '0'; rippleRef.state = 2 /* FADING_OUT */; // Once the ripple faded out, the ripple can be safely removed from the DOM. this._runTimeoutOutsideZone(() => { rippleRef.state = 3 /* HIDDEN */; rippleEl.parentNode.removeChild(rippleEl); }, animationConfig.exitDuration); } /** Fades out all currently active ripples. */ fadeOutAll() { this._activeRipples.forEach(ripple => ripple.fadeOut()); } /** Sets up the trigger event listeners */ setupTriggerEvents(elementOrElementRef) { const element = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceElement"])(elementOrElementRef); if (!element || element === this._triggerElement) { return; } // Remove all previously registered event listeners from the trigger element. this._removeTriggerEvents(); this._triggerElement = element; this._registerEvents(pointerDownEvents); } /** * Handles all registered events. * @docs-private */ handleEvent(event) { if (event.type === 'mousedown') { this._onMousedown(event); } else if (event.type === 'touchstart') { this._onTouchStart(event); } else { this._onPointerUp(); } // If pointer-up events haven't been registered yet, do so now. // We do this on-demand in order to reduce the total number of event listeners // registered by the ripples, which speeds up the rendering time for large UIs. if (!this._pointerUpEventsRegistered) { this._registerEvents(pointerUpEvents); this._pointerUpEventsRegistered = true; } } /** Function being called whenever the trigger is being pressed using mouse. */ _onMousedown(event) { // Screen readers will fire fake mouse events for space/enter. Skip launching a // ripple in this case for consistency with the non-screen-reader experience. const isFakeMousedown = Object(_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["isFakeMousedownFromScreenReader"])(event); const isSyntheticEvent = this._lastTouchStartEvent && Date.now() < this._lastTouchStartEvent + ignoreMouseEventsTimeout; if (!this._target.rippleDisabled && !isFakeMousedown && !isSyntheticEvent) { this._isPointerDown = true; this.fadeInRipple(event.clientX, event.clientY, this._target.rippleConfig); } } /** Function being called whenever the trigger is being pressed using touch. */ _onTouchStart(event) { if (!this._target.rippleDisabled) { // Some browsers fire mouse events after a `touchstart` event. Those synthetic mouse // events will launch a second ripple if we don't ignore mouse events for a specific // time after a touchstart event. this._lastTouchStartEvent = Date.now(); this._isPointerDown = true; // Use `changedTouches` so we skip any touches where the user put // their finger down, but used another finger to tap the element again. const touches = event.changedTouches; for (let i = 0; i < touches.length; i++) { this.fadeInRipple(touches[i].clientX, touches[i].clientY, this._target.rippleConfig); } } } /** Function being called whenever the trigger is being released. */ _onPointerUp() { if (!this._isPointerDown) { return; } this._isPointerDown = false; // Fade-out all ripples that are visible and not persistent. this._activeRipples.forEach(ripple => { // By default, only ripples that are completely visible will fade out on pointer release. // If the `terminateOnPointerUp` option is set, ripples that still fade in will also fade out. const isVisible = ripple.state === 1 /* VISIBLE */ || ripple.config.terminateOnPointerUp && ripple.state === 0 /* FADING_IN */; if (!ripple.config.persistent && isVisible) { ripple.fadeOut(); } }); } /** Runs a timeout outside of the Angular zone to avoid triggering the change detection. */ _runTimeoutOutsideZone(fn, delay = 0) { this._ngZone.runOutsideAngular(() => setTimeout(fn, delay)); } /** Registers event listeners for a given list of events. */ _registerEvents(eventTypes) { this._ngZone.runOutsideAngular(() => { eventTypes.forEach((type) => { this._triggerElement.addEventListener(type, this, passiveEventOptions); }); }); } /** Removes previously registered event listeners from the trigger element. */ _removeTriggerEvents() { if (this._triggerElement) { pointerDownEvents.forEach((type) => { this._triggerElement.removeEventListener(type, this, passiveEventOptions); }); if (this._pointerUpEventsRegistered) { pointerUpEvents.forEach((type) => { this._triggerElement.removeEventListener(type, this, passiveEventOptions); }); } } } } /** Enforces a style recalculation of a DOM element by computing its styles. */ function enforceStyleRecalculation(element) { // Enforce a style recalculation by calling `getComputedStyle` and accessing any property. // Calling `getPropertyValue` is important to let optimizers know that this is not a noop. // See: https://gist.github.com/paulirish/5d52fb081b3570c81e3a window.getComputedStyle(element).getPropertyValue('opacity'); } /** * Returns the distance from the point (x, y) to the furthest corner of a rectangle. */ function distanceToFurthestCorner(x, y, rect) { const distX = Math.max(Math.abs(x - rect.left), Math.abs(x - rect.right)); const distY = Math.max(Math.abs(y - rect.top), Math.abs(y - rect.bottom)); return Math.sqrt(distX * distX + distY * distY); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** Injection token that can be used to specify the global ripple options. */ const MAT_RIPPLE_GLOBAL_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('mat-ripple-global-options'); class MatRipple { constructor(_elementRef, ngZone, platform, globalOptions, _animationMode) { this._elementRef = _elementRef; this._animationMode = _animationMode; /** * If set, the radius in pixels of foreground ripples when fully expanded. If unset, the radius * will be the distance from the center of the ripple to the furthest corner of the host element's * bounding rectangle. */ this.radius = 0; this._disabled = false; /** Whether ripple directive is initialized and the input bindings are set. */ this._isInitialized = false; this._globalOptions = globalOptions || {}; this._rippleRenderer = new RippleRenderer(this, ngZone, _elementRef, platform); } /** * Whether click events will not trigger the ripple. Ripples can be still launched manually * by using the `launch()` method. */ get disabled() { return this._disabled; } set disabled(value) { this._disabled = value; this._setupTriggerEventsIfEnabled(); } /** * The element that triggers the ripple when click events are received. * Defaults to the directive's host element. */ get trigger() { return this._trigger || this._elementRef.nativeElement; } set trigger(trigger) { this._trigger = trigger; this._setupTriggerEventsIfEnabled(); } ngOnInit() { this._isInitialized = true; this._setupTriggerEventsIfEnabled(); } ngOnDestroy() { this._rippleRenderer._removeTriggerEvents(); } /** Fades out all currently showing ripple elements. */ fadeOutAll() { this._rippleRenderer.fadeOutAll(); } /** * Ripple configuration from the directive's input values. * @docs-private Implemented as part of RippleTarget */ get rippleConfig() { return { centered: this.centered, radius: this.radius, color: this.color, animation: Object.assign(Object.assign(Object.assign({}, this._globalOptions.animation), (this._animationMode === 'NoopAnimations' ? { enterDuration: 0, exitDuration: 0 } : {})), this.animation), terminateOnPointerUp: this._globalOptions.terminateOnPointerUp, }; } /** * Whether ripples on pointer-down are disabled or not. * @docs-private Implemented as part of RippleTarget */ get rippleDisabled() { return this.disabled || !!this._globalOptions.disabled; } /** Sets up the trigger event listeners if ripples are enabled. */ _setupTriggerEventsIfEnabled() { if (!this.disabled && this._isInitialized) { this._rippleRenderer.setupTriggerEvents(this.trigger); } } /** Launches a manual ripple at the specified coordinated or just by the ripple config. */ launch(configOrX, y = 0, config) { if (typeof configOrX === 'number') { return this._rippleRenderer.fadeInRipple(configOrX, y, Object.assign(Object.assign({}, this.rippleConfig), config)); } else { return this._rippleRenderer.fadeInRipple(0, 0, Object.assign(Object.assign({}, this.rippleConfig), configOrX)); } } } MatRipple.ɵfac = function MatRipple_Factory(t) { return new (t || MatRipple)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_RIPPLE_GLOBAL_OPTIONS, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__["ANIMATION_MODULE_TYPE"], 8)); }; MatRipple.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: MatRipple, selectors: [["", "mat-ripple", ""], ["", "matRipple", ""]], hostAttrs: [1, "mat-ripple"], hostVars: 2, hostBindings: function MatRipple_HostBindings(rf, ctx) { if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-ripple-unbounded", ctx.unbounded); } }, inputs: { radius: ["matRippleRadius", "radius"], disabled: ["matRippleDisabled", "disabled"], trigger: ["matRippleTrigger", "trigger"], color: ["matRippleColor", "color"], unbounded: ["matRippleUnbounded", "unbounded"], centered: ["matRippleCentered", "centered"], animation: ["matRippleAnimation", "animation"] }, exportAs: ["matRipple"] }); MatRipple.ctorParameters = () => [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }, { type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["Platform"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [MAT_RIPPLE_GLOBAL_OPTIONS,] }] }, { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__["ANIMATION_MODULE_TYPE"],] }] } ]; MatRipple.propDecorators = { color: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['matRippleColor',] }], unbounded: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['matRippleUnbounded',] }], centered: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['matRippleCentered',] }], radius: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['matRippleRadius',] }], animation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['matRippleAnimation',] }], disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['matRippleDisabled',] }], trigger: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['matRippleTrigger',] }] }; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatRipple, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"], args: [{ selector: '[mat-ripple], [matRipple]', exportAs: 'matRipple', host: { 'class': 'mat-ripple', '[class.mat-ripple-unbounded]': 'unbounded' } }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }, { type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["Platform"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [MAT_RIPPLE_GLOBAL_OPTIONS] }] }, { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__["ANIMATION_MODULE_TYPE"]] }] }]; }, { radius: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['matRippleRadius'] }], disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['matRippleDisabled'] }], trigger: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['matRippleTrigger'] }], color: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['matRippleColor'] }], unbounded: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['matRippleUnbounded'] }], centered: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['matRippleCentered'] }], animation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['matRippleAnimation'] }] }); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class MatRippleModule { } MatRippleModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: MatRippleModule }); MatRippleModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function MatRippleModule_Factory(t) { return new (t || MatRippleModule)(); }, imports: [[MatCommonModule, _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["PlatformModule"]], MatCommonModule] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatRippleModule, { declarations: function () { return [MatRipple]; }, imports: function () { return [MatCommonModule, _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["PlatformModule"]]; }, exports: function () { return [MatRipple, MatCommonModule]; } }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatRippleModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"], args: [{ imports: [MatCommonModule, _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["PlatformModule"]], exports: [MatRipple, MatCommonModule], declarations: [MatRipple] }] }], null, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Component that shows a simplified checkbox without including any kind of "real" checkbox. * Meant to be used when the checkbox is purely decorative and a large number of them will be * included, such as for the options in a multi-select. Uses no SVGs or complex animations. * Note that theming is meant to be handled by the parent element, e.g. * `mat-primary .mat-pseudo-checkbox`. * * Note that this component will be completely invisible to screen-reader users. This is *not* * interchangeable with `` and should *not* be used if the user would directly * interact with the checkbox. The pseudo-checkbox should only be used as an implementation detail * of more complex components that appropriately handle selected / checked state. * @docs-private */ class MatPseudoCheckbox { constructor(_animationMode) { this._animationMode = _animationMode; /** Display state of the checkbox. */ this.state = 'unchecked'; /** Whether the checkbox is disabled. */ this.disabled = false; } } MatPseudoCheckbox.ɵfac = function MatPseudoCheckbox_Factory(t) { return new (t || MatPseudoCheckbox)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__["ANIMATION_MODULE_TYPE"], 8)); }; MatPseudoCheckbox.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: MatPseudoCheckbox, selectors: [["mat-pseudo-checkbox"]], hostAttrs: [1, "mat-pseudo-checkbox"], hostVars: 8, hostBindings: function MatPseudoCheckbox_HostBindings(rf, ctx) { if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-pseudo-checkbox-indeterminate", ctx.state === "indeterminate")("mat-pseudo-checkbox-checked", ctx.state === "checked")("mat-pseudo-checkbox-disabled", ctx.disabled)("_mat-animation-noopable", ctx._animationMode === "NoopAnimations"); } }, inputs: { state: "state", disabled: "disabled" }, decls: 0, vars: 0, template: function MatPseudoCheckbox_Template(rf, ctx) { }, styles: [".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:\"\";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n"], encapsulation: 2, changeDetection: 0 }); MatPseudoCheckbox.ctorParameters = () => [ { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__["ANIMATION_MODULE_TYPE"],] }] } ]; MatPseudoCheckbox.propDecorators = { state: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }], disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }] }; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatPseudoCheckbox, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, selector: 'mat-pseudo-checkbox', template: '', host: { 'class': 'mat-pseudo-checkbox', '[class.mat-pseudo-checkbox-indeterminate]': 'state === "indeterminate"', '[class.mat-pseudo-checkbox-checked]': 'state === "checked"', '[class.mat-pseudo-checkbox-disabled]': 'disabled', '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"' }, styles: [".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:\"\";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n"] }] }], function () { return [{ type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__["ANIMATION_MODULE_TYPE"]] }] }]; }, { state: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }], disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }] }); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class MatPseudoCheckboxModule { } MatPseudoCheckboxModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: MatPseudoCheckboxModule }); MatPseudoCheckboxModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function MatPseudoCheckboxModule_Factory(t) { return new (t || MatPseudoCheckboxModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatPseudoCheckboxModule, { declarations: [MatPseudoCheckbox], exports: [MatPseudoCheckbox] }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatPseudoCheckboxModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"], args: [{ exports: [MatPseudoCheckbox], declarations: [MatPseudoCheckbox] }] }], null, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // Boilerplate for applying mixins to MatOptgroup. /** @docs-private */ class MatOptgroupBase { } const _MatOptgroupMixinBase = mixinDisabled(MatOptgroupBase); // Counter for unique group ids. let _uniqueOptgroupIdCounter = 0; class _MatOptgroupBase extends _MatOptgroupMixinBase { constructor() { super(...arguments); /** Unique id for the underlying label. */ this._labelId = `mat-optgroup-label-${_uniqueOptgroupIdCounter++}`; } } _MatOptgroupBase.ɵfac = function _MatOptgroupBase_Factory(t) { return ɵ_MatOptgroupBase_BaseFactory(t || _MatOptgroupBase); }; _MatOptgroupBase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: _MatOptgroupBase, inputs: { label: "label" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]] }); _MatOptgroupBase.propDecorators = { label: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }] }; const ɵ_MatOptgroupBase_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](_MatOptgroupBase); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](_MatOptgroupBase, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"] }], null, { label: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }] }); })(); /** * Injection token that can be used to reference instances of `MatOptgroup`. It serves as * alternative token to the actual `MatOptgroup` class which could cause unnecessary * retention of the class and its component metadata. */ const MAT_OPTGROUP = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('MatOptgroup'); /** * Component that is used to group instances of `mat-option`. */ class MatOptgroup extends _MatOptgroupBase { } MatOptgroup.ɵfac = function MatOptgroup_Factory(t) { return ɵMatOptgroup_BaseFactory(t || MatOptgroup); }; MatOptgroup.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: MatOptgroup, selectors: [["mat-optgroup"]], hostAttrs: ["role", "group", 1, "mat-optgroup"], hostVars: 4, hostBindings: function MatOptgroup_HostBindings(rf, ctx) { if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-disabled", ctx.disabled.toString())("aria-labelledby", ctx._labelId); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-optgroup-disabled", ctx.disabled); } }, inputs: { disabled: "disabled" }, exportAs: ["matOptgroup"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{ provide: MAT_OPTGROUP, useExisting: MatOptgroup }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]], ngContentSelectors: _c1, decls: 4, vars: 2, consts: [[1, "mat-optgroup-label", 3, "id"]], template: function MatOptgroup_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](_c0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "label", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](3, 1); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("id", ctx._labelId); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx.label, " "); } }, styles: [".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"], encapsulation: 2, changeDetection: 0 }); const ɵMatOptgroup_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatOptgroup); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatOptgroup, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'mat-optgroup', exportAs: 'matOptgroup', template: "\n\n", encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, inputs: ['disabled'], host: { 'class': 'mat-optgroup', 'role': 'group', '[class.mat-optgroup-disabled]': 'disabled', '[attr.aria-disabled]': 'disabled.toString()', '[attr.aria-labelledby]': '_labelId' }, providers: [{ provide: MAT_OPTGROUP, useExisting: MatOptgroup }], styles: [".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"] }] }], null, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Option IDs need to be unique across components, so this counter exists outside of * the component definition. */ let _uniqueIdCounter = 0; /** Event object emitted by MatOption when selected or deselected. */ class MatOptionSelectionChange { constructor( /** Reference to the option that emitted the event. */ source, /** Whether the change in the option's value was a result of a user action. */ isUserInput = false) { this.source = source; this.isUserInput = isUserInput; } } /** * Injection token used to provide the parent component to options. */ const MAT_OPTION_PARENT_COMPONENT = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('MAT_OPTION_PARENT_COMPONENT'); class _MatOptionBase { constructor(_element, _changeDetectorRef, _parent, group) { this._element = _element; this._changeDetectorRef = _changeDetectorRef; this._parent = _parent; this.group = group; this._selected = false; this._active = false; this._disabled = false; this._mostRecentViewValue = ''; /** The unique ID of the option. */ this.id = `mat-option-${_uniqueIdCounter++}`; /** Event emitted when the option is selected or deselected. */ // tslint:disable-next-line:no-output-on-prefix this.onSelectionChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); /** Emits when the state of the option changes and any parents have to be notified. */ this._stateChanges = new rxjs__WEBPACK_IMPORTED_MODULE_6__["Subject"](); } /** Whether the wrapping component is in multiple selection mode. */ get multiple() { return this._parent && this._parent.multiple; } /** Whether or not the option is currently selected. */ get selected() { return this._selected; } /** Whether the option is disabled. */ get disabled() { return (this.group && this.group.disabled) || this._disabled; } set disabled(value) { this._disabled = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceBooleanProperty"])(value); } /** Whether ripples for the option are disabled. */ get disableRipple() { return this._parent && this._parent.disableRipple; } /** * Whether or not the option is currently active and ready to be selected. * An active option displays styles as if it is focused, but the * focus is actually retained somewhere else. This comes in handy * for components like autocomplete where focus must remain on the input. */ get active() { return this._active; } /** * The displayed value of the option. It is necessary to show the selected option in the * select's trigger. */ get viewValue() { // TODO(kara): Add input property alternative for node envs. return (this._getHostElement().textContent || '').trim(); } /** Selects the option. */ select() { if (!this._selected) { this._selected = true; this._changeDetectorRef.markForCheck(); this._emitSelectionChangeEvent(); } } /** Deselects the option. */ deselect() { if (this._selected) { this._selected = false; this._changeDetectorRef.markForCheck(); this._emitSelectionChangeEvent(); } } /** Sets focus onto this option. */ focus(_origin, options) { // Note that we aren't using `_origin`, but we need to keep it because some internal consumers // use `MatOption` in a `FocusKeyManager` and we need it to match `FocusableOption`. const element = this._getHostElement(); if (typeof element.focus === 'function') { element.focus(options); } } /** * This method sets display styles on the option to make it appear * active. This is used by the ActiveDescendantKeyManager so key * events will display the proper options as active on arrow key events. */ setActiveStyles() { if (!this._active) { this._active = true; this._changeDetectorRef.markForCheck(); } } /** * This method removes display styles on the option that made it appear * active. This is used by the ActiveDescendantKeyManager so key * events will display the proper options as active on arrow key events. */ setInactiveStyles() { if (this._active) { this._active = false; this._changeDetectorRef.markForCheck(); } } /** Gets the label to be used when determining whether the option should be focused. */ getLabel() { return this.viewValue; } /** Ensures the option is selected when activated from the keyboard. */ _handleKeydown(event) { if ((event.keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["ENTER"] || event.keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["SPACE"]) && !Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["hasModifierKey"])(event)) { this._selectViaInteraction(); // Prevent the page from scrolling down and form submits. event.preventDefault(); } } /** * `Selects the option while indicating the selection came from the user. Used to * determine if the select's view -> model callback should be invoked.` */ _selectViaInteraction() { if (!this.disabled) { this._selected = this.multiple ? !this._selected : true; this._changeDetectorRef.markForCheck(); this._emitSelectionChangeEvent(true); } } /** * Gets the `aria-selected` value for the option. We explicitly omit the `aria-selected` * attribute from single-selection, unselected options. Including the `aria-selected="false"` * attributes adds a significant amount of noise to screen-reader users without providing useful * information. */ _getAriaSelected() { return this.selected || (this.multiple ? false : null); } /** Returns the correct tabindex for the option depending on disabled state. */ _getTabIndex() { return this.disabled ? '-1' : '0'; } /** Gets the host DOM element. */ _getHostElement() { return this._element.nativeElement; } ngAfterViewChecked() { // Since parent components could be using the option's label to display the selected values // (e.g. `mat-select`) and they don't have a way of knowing if the option's label has changed // we have to check for changes in the DOM ourselves and dispatch an event. These checks are // relatively cheap, however we still limit them only to selected options in order to avoid // hitting the DOM too often. if (this._selected) { const viewValue = this.viewValue; if (viewValue !== this._mostRecentViewValue) { this._mostRecentViewValue = viewValue; this._stateChanges.next(); } } } ngOnDestroy() { this._stateChanges.complete(); } /** Emits the selection change event. */ _emitSelectionChangeEvent(isUserInput = false) { this.onSelectionChange.emit(new MatOptionSelectionChange(this, isUserInput)); } } _MatOptionBase.ɵfac = function _MatOptionBase_Factory(t) { return new (t || _MatOptionBase)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](undefined), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_MatOptgroupBase)); }; _MatOptionBase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: _MatOptionBase, inputs: { id: "id", disabled: "disabled", value: "value" }, outputs: { onSelectionChange: "onSelectionChange" } }); _MatOptionBase.ctorParameters = () => [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }, { type: undefined }, { type: _MatOptgroupBase } ]; _MatOptionBase.propDecorators = { value: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }], id: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }], disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }], onSelectionChange: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }] }; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](_MatOptionBase, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }, { type: undefined }, { type: _MatOptgroupBase }]; }, { id: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }], onSelectionChange: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }], disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }], value: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }] }); })(); /** * Single option inside of a `` element. */ class MatOption extends _MatOptionBase { constructor(element, changeDetectorRef, parent, group) { super(element, changeDetectorRef, parent, group); } } MatOption.ɵfac = function MatOption_Factory(t) { return new (t || MatOption)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_OPTION_PARENT_COMPONENT, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_OPTGROUP, 8)); }; MatOption.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: MatOption, selectors: [["mat-option"]], hostAttrs: ["role", "option", 1, "mat-option", "mat-focus-indicator"], hostVars: 12, hostBindings: function MatOption_HostBindings(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MatOption_click_HostBindingHandler() { return ctx._selectViaInteraction(); })("keydown", function MatOption_keydown_HostBindingHandler($event) { return ctx._handleKeydown($event); }); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("id", ctx.id); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("tabindex", ctx._getTabIndex())("aria-selected", ctx._getAriaSelected())("aria-disabled", ctx.disabled.toString()); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-selected", ctx.selected)("mat-option-multiple", ctx.multiple)("mat-active", ctx.active)("mat-option-disabled", ctx.disabled); } }, exportAs: ["matOption"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]], ngContentSelectors: _c2, decls: 4, vars: 3, consts: [["class", "mat-option-pseudo-checkbox", 3, "state", "disabled", 4, "ngIf"], [1, "mat-option-text"], ["mat-ripple", "", 1, "mat-option-ripple", 3, "matRippleTrigger", "matRippleDisabled"], [1, "mat-option-pseudo-checkbox", 3, "state", "disabled"]], template: function MatOption_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, MatOption_mat_pseudo_checkbox_0_Template, 1, 2, "mat-pseudo-checkbox", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "div", 2); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.multiple); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matRippleTrigger", ctx._getHostElement())("matRippleDisabled", ctx.disabled || ctx.disableRipple); } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["NgIf"], MatRipple, MatPseudoCheckbox], styles: [".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"], encapsulation: 2, changeDetection: 0 }); MatOption.ctorParameters = () => [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [MAT_OPTION_PARENT_COMPONENT,] }] }, { type: MatOptgroup, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [MAT_OPTGROUP,] }] } ]; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatOption, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'mat-option', exportAs: 'matOption', host: { 'role': 'option', '[attr.tabindex]': '_getTabIndex()', '[class.mat-selected]': 'selected', '[class.mat-option-multiple]': 'multiple', '[class.mat-active]': 'active', '[id]': 'id', '[attr.aria-selected]': '_getAriaSelected()', '[attr.aria-disabled]': 'disabled.toString()', '[class.mat-option-disabled]': 'disabled', '(click)': '_selectViaInteraction()', '(keydown)': '_handleKeydown($event)', 'class': 'mat-option mat-focus-indicator' }, template: "\n\n\n\n
\n
\n", encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, styles: [".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [MAT_OPTION_PARENT_COMPONENT] }] }, { type: MatOptgroup, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [MAT_OPTGROUP] }] }]; }, null); })(); /** * Counts the amount of option group labels that precede the specified option. * @param optionIndex Index of the option at which to start counting. * @param options Flat list of all of the options. * @param optionGroups Flat list of all of the option groups. * @docs-private */ function _countGroupLabelsBeforeOption(optionIndex, options, optionGroups) { if (optionGroups.length) { let optionsArray = options.toArray(); let groups = optionGroups.toArray(); let groupCounter = 0; for (let i = 0; i < optionIndex + 1; i++) { if (optionsArray[i].group && optionsArray[i].group === groups[groupCounter]) { groupCounter++; } } return groupCounter; } return 0; } /** * Determines the position to which to scroll a panel in order for an option to be into view. * @param optionOffset Offset of the option from the top of the panel. * @param optionHeight Height of the options. * @param currentScrollPosition Current scroll position of the panel. * @param panelHeight Height of the panel. * @docs-private */ function _getOptionScrollPosition(optionOffset, optionHeight, currentScrollPosition, panelHeight) { if (optionOffset < currentScrollPosition) { return optionOffset; } if (optionOffset + optionHeight > currentScrollPosition + panelHeight) { return Math.max(0, optionOffset - panelHeight + optionHeight); } return currentScrollPosition; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class MatOptionModule { } MatOptionModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: MatOptionModule }); MatOptionModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function MatOptionModule_Factory(t) { return new (t || MatOptionModule)(); }, imports: [[MatRippleModule, _angular_common__WEBPACK_IMPORTED_MODULE_4__["CommonModule"], MatPseudoCheckboxModule]] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatOptionModule, { declarations: function () { return [MatOption, MatOptgroup]; }, imports: function () { return [MatRippleModule, _angular_common__WEBPACK_IMPORTED_MODULE_4__["CommonModule"], MatPseudoCheckboxModule]; }, exports: function () { return [MatOption, MatOptgroup]; } }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatOptionModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"], args: [{ imports: [MatRippleModule, _angular_common__WEBPACK_IMPORTED_MODULE_4__["CommonModule"], MatPseudoCheckboxModule], exports: [MatOption, MatOptgroup], declarations: [MatOption, MatOptgroup] }] }], null, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * InjectionToken that can be used to specify the global label options. * @deprecated Use `MAT_FORM_FIELD_DEFAULT_OPTIONS` injection token from * `@angular/material/form-field` instead. * @breaking-change 11.0.0 */ const MAT_LABEL_GLOBAL_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('mat-label-global-options'); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * When constructing a Date, the month is zero-based. This can be confusing, since people are * used to seeing them one-based. So we create these aliases to make writing the tests easier. * @docs-private * @breaking-change 8.0.0 Remove this with V8 since it was only targeted for testing. */ const JAN = 0, FEB = 1, MAR = 2, APR = 3, MAY = 4, JUN = 5, JUL = 6, AUG = 7, SEP = 8, OCT = 9, NOV = 10, DEC = 11; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Generated bundle index. Do not edit. */ //# sourceMappingURL=core.js.map /***/ }), /***/ "FL9v": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailChannelCommand.js ***! \*********************************************************************************************/ /*! exports provided: UpdateEmailChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelCommand", function() { return UpdateEmailChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UpdateEmailChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateEmailChannelCommand, _super); // Start section: command_properties // End section: command_properties function UpdateEmailChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UpdateEmailChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UpdateEmailChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateEmailChannelCommand"])(input, context); }; UpdateEmailChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateEmailChannelCommand"])(output, context); }; return UpdateEmailChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=UpdateEmailChannelCommand.js.map /***/ }), /***/ "FQ53": /*!************************************************************!*\ !*** ./node_modules/graphql/validation/specifiedRules.mjs ***! \************************************************************/ /*! exports provided: specifiedRules, specifiedSDLRules */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "specifiedRules", function() { return specifiedRules; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "specifiedSDLRules", function() { return specifiedSDLRules; }); /* harmony import */ var _rules_ExecutableDefinitions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rules/ExecutableDefinitions */ "ZfCc"); /* harmony import */ var _rules_UniqueOperationNames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./rules/UniqueOperationNames */ "v96Q"); /* harmony import */ var _rules_LoneAnonymousOperation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./rules/LoneAnonymousOperation */ "g4S7"); /* harmony import */ var _rules_SingleFieldSubscriptions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./rules/SingleFieldSubscriptions */ "gggk"); /* harmony import */ var _rules_KnownTypeNames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./rules/KnownTypeNames */ "10sW"); /* harmony import */ var _rules_FragmentsOnCompositeTypes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./rules/FragmentsOnCompositeTypes */ "2Rkc"); /* harmony import */ var _rules_VariablesAreInputTypes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./rules/VariablesAreInputTypes */ "0xor"); /* harmony import */ var _rules_ScalarLeafs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./rules/ScalarLeafs */ "2/d+"); /* harmony import */ var _rules_FieldsOnCorrectType__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./rules/FieldsOnCorrectType */ "sdW/"); /* harmony import */ var _rules_UniqueFragmentNames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./rules/UniqueFragmentNames */ "lORA"); /* harmony import */ var _rules_KnownFragmentNames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./rules/KnownFragmentNames */ "E++1"); /* harmony import */ var _rules_NoUnusedFragments__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./rules/NoUnusedFragments */ "ZBm+"); /* harmony import */ var _rules_PossibleFragmentSpreads__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./rules/PossibleFragmentSpreads */ "FduV"); /* harmony import */ var _rules_NoFragmentCycles__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./rules/NoFragmentCycles */ "AeAO"); /* harmony import */ var _rules_UniqueVariableNames__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./rules/UniqueVariableNames */ "U4FY"); /* harmony import */ var _rules_NoUndefinedVariables__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./rules/NoUndefinedVariables */ "PmNC"); /* harmony import */ var _rules_NoUnusedVariables__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./rules/NoUnusedVariables */ "A67W"); /* harmony import */ var _rules_KnownDirectives__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./rules/KnownDirectives */ "VlWk"); /* harmony import */ var _rules_UniqueDirectivesPerLocation__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./rules/UniqueDirectivesPerLocation */ "sA7U"); /* harmony import */ var _rules_KnownArgumentNames__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./rules/KnownArgumentNames */ "y8IY"); /* harmony import */ var _rules_UniqueArgumentNames__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./rules/UniqueArgumentNames */ "/C/i"); /* harmony import */ var _rules_ValuesOfCorrectType__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./rules/ValuesOfCorrectType */ "AW/X"); /* harmony import */ var _rules_ProvidedRequiredArguments__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./rules/ProvidedRequiredArguments */ "Vuqn"); /* harmony import */ var _rules_VariablesInAllowedPosition__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./rules/VariablesInAllowedPosition */ "cfc+"); /* harmony import */ var _rules_OverlappingFieldsCanBeMerged__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./rules/OverlappingFieldsCanBeMerged */ "r60r"); /* harmony import */ var _rules_UniqueInputFieldNames__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./rules/UniqueInputFieldNames */ "dwPZ"); /* harmony import */ var _rules_LoneSchemaDefinition__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./rules/LoneSchemaDefinition */ "AF4T"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ // Spec Section: "Executable Definitions" // Spec Section: "Operation Name Uniqueness" // Spec Section: "Lone Anonymous Operation" // Spec Section: "Subscriptions with Single Root Field" // Spec Section: "Fragment Spread Type Existence" // Spec Section: "Fragments on Composite Types" // Spec Section: "Variables are Input Types" // Spec Section: "Leaf Field Selections" // Spec Section: "Field Selections on Objects, Interfaces, and Unions Types" // Spec Section: "Fragment Name Uniqueness" // Spec Section: "Fragment spread target defined" // Spec Section: "Fragments must be used" // Spec Section: "Fragment spread is possible" // Spec Section: "Fragments must not form cycles" // Spec Section: "Variable Uniqueness" // Spec Section: "All Variable Used Defined" // Spec Section: "All Variables Used" // Spec Section: "Directives Are Defined" // Spec Section: "Directives Are Unique Per Location" // Spec Section: "Argument Names" // Spec Section: "Argument Uniqueness" // Spec Section: "Value Type Correctness" // Spec Section: "Argument Optionality" // Spec Section: "All Variable Usages Are Allowed" // Spec Section: "Field Selection Merging" // Spec Section: "Input Object Field Uniqueness" /** * This set includes all validation rules defined by the GraphQL spec. * * The order of the rules in this list has been adjusted to lead to the * most clear output when encountering multiple validation errors. */ var specifiedRules = [_rules_ExecutableDefinitions__WEBPACK_IMPORTED_MODULE_0__["ExecutableDefinitions"], _rules_UniqueOperationNames__WEBPACK_IMPORTED_MODULE_1__["UniqueOperationNames"], _rules_LoneAnonymousOperation__WEBPACK_IMPORTED_MODULE_2__["LoneAnonymousOperation"], _rules_SingleFieldSubscriptions__WEBPACK_IMPORTED_MODULE_3__["SingleFieldSubscriptions"], _rules_KnownTypeNames__WEBPACK_IMPORTED_MODULE_4__["KnownTypeNames"], _rules_FragmentsOnCompositeTypes__WEBPACK_IMPORTED_MODULE_5__["FragmentsOnCompositeTypes"], _rules_VariablesAreInputTypes__WEBPACK_IMPORTED_MODULE_6__["VariablesAreInputTypes"], _rules_ScalarLeafs__WEBPACK_IMPORTED_MODULE_7__["ScalarLeafs"], _rules_FieldsOnCorrectType__WEBPACK_IMPORTED_MODULE_8__["FieldsOnCorrectType"], _rules_UniqueFragmentNames__WEBPACK_IMPORTED_MODULE_9__["UniqueFragmentNames"], _rules_KnownFragmentNames__WEBPACK_IMPORTED_MODULE_10__["KnownFragmentNames"], _rules_NoUnusedFragments__WEBPACK_IMPORTED_MODULE_11__["NoUnusedFragments"], _rules_PossibleFragmentSpreads__WEBPACK_IMPORTED_MODULE_12__["PossibleFragmentSpreads"], _rules_NoFragmentCycles__WEBPACK_IMPORTED_MODULE_13__["NoFragmentCycles"], _rules_UniqueVariableNames__WEBPACK_IMPORTED_MODULE_14__["UniqueVariableNames"], _rules_NoUndefinedVariables__WEBPACK_IMPORTED_MODULE_15__["NoUndefinedVariables"], _rules_NoUnusedVariables__WEBPACK_IMPORTED_MODULE_16__["NoUnusedVariables"], _rules_KnownDirectives__WEBPACK_IMPORTED_MODULE_17__["KnownDirectives"], _rules_UniqueDirectivesPerLocation__WEBPACK_IMPORTED_MODULE_18__["UniqueDirectivesPerLocation"], _rules_KnownArgumentNames__WEBPACK_IMPORTED_MODULE_19__["KnownArgumentNames"], _rules_UniqueArgumentNames__WEBPACK_IMPORTED_MODULE_20__["UniqueArgumentNames"], _rules_ValuesOfCorrectType__WEBPACK_IMPORTED_MODULE_21__["ValuesOfCorrectType"], _rules_ProvidedRequiredArguments__WEBPACK_IMPORTED_MODULE_22__["ProvidedRequiredArguments"], _rules_VariablesInAllowedPosition__WEBPACK_IMPORTED_MODULE_23__["VariablesInAllowedPosition"], _rules_OverlappingFieldsCanBeMerged__WEBPACK_IMPORTED_MODULE_24__["OverlappingFieldsCanBeMerged"], _rules_UniqueInputFieldNames__WEBPACK_IMPORTED_MODULE_25__["UniqueInputFieldNames"]]; // @internal var specifiedSDLRules = [_rules_LoneSchemaDefinition__WEBPACK_IMPORTED_MODULE_26__["LoneSchemaDefinition"], _rules_KnownDirectives__WEBPACK_IMPORTED_MODULE_17__["KnownDirectives"], _rules_UniqueDirectivesPerLocation__WEBPACK_IMPORTED_MODULE_18__["UniqueDirectivesPerLocation"], _rules_KnownArgumentNames__WEBPACK_IMPORTED_MODULE_19__["KnownArgumentNamesOnDirectives"], _rules_UniqueArgumentNames__WEBPACK_IMPORTED_MODULE_20__["UniqueArgumentNames"], _rules_UniqueInputFieldNames__WEBPACK_IMPORTED_MODULE_25__["UniqueInputFieldNames"], _rules_ProvidedRequiredArguments__WEBPACK_IMPORTED_MODULE_22__["ProvidedRequiredArgumentsOnDirectives"]]; /***/ }), /***/ "FQpF": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/expand.js ***! \*****************************************************************/ /*! exports provided: expand, ExpandOperator, ExpandSubscriber */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expand", function() { return expand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpandOperator", function() { return ExpandOperator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpandSubscriber", function() { return ExpandSubscriber; }); /* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../innerSubscribe */ "zx2A"); function expand(project, concurrent = Number.POSITIVE_INFINITY, scheduler) { concurrent = (concurrent || 0) < 1 ? Number.POSITIVE_INFINITY : concurrent; return (source) => source.lift(new ExpandOperator(project, concurrent, scheduler)); } class ExpandOperator { constructor(project, concurrent, scheduler) { this.project = project; this.concurrent = concurrent; this.scheduler = scheduler; } call(subscriber, source) { return source.subscribe(new ExpandSubscriber(subscriber, this.project, this.concurrent, this.scheduler)); } } class ExpandSubscriber extends _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"] { constructor(destination, project, concurrent, scheduler) { super(destination); this.project = project; this.concurrent = concurrent; this.scheduler = scheduler; this.index = 0; this.active = 0; this.hasCompleted = false; if (concurrent < Number.POSITIVE_INFINITY) { this.buffer = []; } } static dispatch(arg) { const { subscriber, result, value, index } = arg; subscriber.subscribeToProjection(result, value, index); } _next(value) { const destination = this.destination; if (destination.closed) { this._complete(); return; } const index = this.index++; if (this.active < this.concurrent) { destination.next(value); try { const { project } = this; const result = project(value, index); if (!this.scheduler) { this.subscribeToProjection(result, value, index); } else { const state = { subscriber: this, result, value, index }; const destination = this.destination; destination.add(this.scheduler.schedule(ExpandSubscriber.dispatch, 0, state)); } } catch (e) { destination.error(e); } } else { this.buffer.push(value); } } subscribeToProjection(result, value, index) { this.active++; const destination = this.destination; destination.add(Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(result, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](this))); } _complete() { this.hasCompleted = true; if (this.hasCompleted && this.active === 0) { this.destination.complete(); } this.unsubscribe(); } notifyNext(innerValue) { this._next(innerValue); } notifyComplete() { const buffer = this.buffer; this.active--; if (buffer && buffer.length > 0) { this._next(buffer.shift()); } if (this.hasCompleted && this.active === 0) { this.destination.complete(); } } } //# sourceMappingURL=expand.js.map /***/ }), /***/ "FVs0": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/UntagResourceCommand.js ***! \************************************************************************************************/ /*! exports provided: UntagResourceCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UntagResourceCommand", function() { return UntagResourceCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UntagResourceCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UntagResourceCommand, _super); // Start section: command_properties // End section: command_properties function UntagResourceCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__["getAwsAuthPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UntagResourceInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UntagResourceResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UntagResourceCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1UntagResourceCommand"])(input, context); }; UntagResourceCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1UntagResourceCommand"])(output, context); }; return UntagResourceCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=UntagResourceCommand.js.map /***/ }), /***/ "FY58": /*!******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/ListBucketAnalyticsConfigurationsCommand.js ***! \******************************************************************************************************/ /*! exports provided: ListBucketAnalyticsConfigurationsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListBucketAnalyticsConfigurationsCommand", function() { return ListBucketAnalyticsConfigurationsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListBucketAnalyticsConfigurationsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListBucketAnalyticsConfigurationsCommand, _super); // Start section: command_properties // End section: command_properties function ListBucketAnalyticsConfigurationsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListBucketAnalyticsConfigurationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListBucketAnalyticsConfigurationsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListBucketAnalyticsConfigurationsOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListBucketAnalyticsConfigurationsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlListBucketAnalyticsConfigurationsCommand"])(input, context); }; ListBucketAnalyticsConfigurationsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlListBucketAnalyticsConfigurationsCommand"])(output, context); }; return ListBucketAnalyticsConfigurationsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=ListBucketAnalyticsConfigurationsCommand.js.map /***/ }), /***/ "FZB8": /*!**************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/min.js ***! \**************************************************************/ /*! exports provided: min */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "min", function() { return min; }); /* harmony import */ var _reduce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./reduce */ "128B"); function min(comparer) { const min = (typeof comparer === 'function') ? (x, y) => comparer(x, y) < 0 ? x : y : (x, y) => x < y ? x : y; return Object(_reduce__WEBPACK_IMPORTED_MODULE_0__["reduce"])(min); } //# sourceMappingURL=min.js.map /***/ }), /***/ "FduV": /*!***************************************************************************!*\ !*** ./node_modules/graphql/validation/rules/PossibleFragmentSpreads.mjs ***! \***************************************************************************/ /*! exports provided: typeIncompatibleSpreadMessage, typeIncompatibleAnonSpreadMessage, PossibleFragmentSpreads */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "typeIncompatibleSpreadMessage", function() { return typeIncompatibleSpreadMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "typeIncompatibleAnonSpreadMessage", function() { return typeIncompatibleAnonSpreadMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PossibleFragmentSpreads", function() { return PossibleFragmentSpreads; }); /* harmony import */ var _jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../jsutils/inspect */ "rWdj"); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /* harmony import */ var _utilities_typeComparators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utilities/typeComparators */ "sJV+"); /* harmony import */ var _utilities_typeFromAST__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utilities/typeFromAST */ "umOc"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../type/definition */ "axIb"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function typeIncompatibleSpreadMessage(fragName, parentType, fragType) { return "Fragment \"".concat(fragName, "\" cannot be spread here as objects of ") + "type \"".concat(parentType, "\" can never be of type \"").concat(fragType, "\"."); } function typeIncompatibleAnonSpreadMessage(parentType, fragType) { return 'Fragment cannot be spread here as objects of ' + "type \"".concat(parentType, "\" can never be of type \"").concat(fragType, "\"."); } /** * Possible fragment spread * * A fragment spread is only valid if the type condition could ever possibly * be true: if there is a non-empty intersection of the possible parent types, * and possible types which pass the type condition. */ function PossibleFragmentSpreads(context) { return { InlineFragment: function InlineFragment(node) { var fragType = context.getType(); var parentType = context.getParentType(); if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isCompositeType"])(fragType) && Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isCompositeType"])(parentType) && !Object(_utilities_typeComparators__WEBPACK_IMPORTED_MODULE_2__["doTypesOverlap"])(context.getSchema(), fragType, parentType)) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_1__["GraphQLError"](typeIncompatibleAnonSpreadMessage(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(parentType), Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(fragType)), [node])); } }, FragmentSpread: function FragmentSpread(node) { var fragName = node.name.value; var fragType = getFragmentType(context, fragName); var parentType = context.getParentType(); if (fragType && parentType && !Object(_utilities_typeComparators__WEBPACK_IMPORTED_MODULE_2__["doTypesOverlap"])(context.getSchema(), fragType, parentType)) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_1__["GraphQLError"](typeIncompatibleSpreadMessage(fragName, Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(parentType), Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(fragType)), [node])); } } }; } function getFragmentType(context, name) { var frag = context.getFragment(name); if (frag) { var type = Object(_utilities_typeFromAST__WEBPACK_IMPORTED_MODULE_3__["typeFromAST"])(context.getSchema(), frag.typeCondition); if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isCompositeType"])(type)) { return type; } } } /***/ }), /***/ "FhAz": /*!**************************************************************!*\ !*** ./node_modules/amazon-cognito-identity-js/es/Client.js ***! \**************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Client; }); /* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! isomorphic-unfetch */ "zgjP"); /* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _UserAgent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./UserAgent */ "b2dS"); function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); } function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); } function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } var CognitoError = /*#__PURE__*/function (_Error) { _inheritsLoose(CognitoError, _Error); function CognitoError(message, code, name, statusCode) { var _this; _this = _Error.call(this, message) || this; _this.code = code; _this.name = name; _this.statusCode = statusCode; return _this; } return CognitoError; }( /*#__PURE__*/_wrapNativeSuper(Error)); /** @class */ var Client = /*#__PURE__*/function () { /** * Constructs a new AWS Cognito Identity Provider client object * @param {string} region AWS region * @param {string} endpoint endpoint * @param {object} fetchOptions options for fetch API (only credentials is supported) */ function Client(region, endpoint, fetchOptions) { this.endpoint = endpoint || "https://cognito-idp." + region + ".amazonaws.com/"; var _ref = fetchOptions || {}, credentials = _ref.credentials; this.fetchOptions = credentials ? { credentials: credentials } : {}; } /** * Makes an unauthenticated request on AWS Cognito Identity Provider API * using fetch * @param {string} operation API operation * @param {object} params Input parameters * @returns Promise */ var _proto = Client.prototype; _proto.promisifyRequest = function promisifyRequest(operation, params) { var _this2 = this; return new Promise(function (resolve, reject) { _this2.request(operation, params, function (err, data) { if (err) { reject(new CognitoError(err.message, err.code, err.name, err.statusCode)); } else { resolve(data); } }); }); } /** * Makes an unauthenticated request on AWS Cognito Identity Provider API * using fetch * @param {string} operation API operation * @param {object} params Input parameters * @param {function} callback Callback called when a response is returned * @returns {void} */ ; _proto.request = function request(operation, params, callback) { var headers = { 'Content-Type': 'application/x-amz-json-1.1', 'X-Amz-Target': "AWSCognitoIdentityProviderService." + operation, 'X-Amz-User-Agent': _UserAgent__WEBPACK_IMPORTED_MODULE_1__["default"].prototype.userAgent }; var options = Object.assign({}, this.fetchOptions, { headers: headers, method: 'POST', mode: 'cors', cache: 'no-cache', body: JSON.stringify(params) }); var response; var responseJsonData; fetch(this.endpoint, options).then(function (resp) { response = resp; return resp; }, function (err) { // If error happens here, the request failed // if it is TypeError throw network error if (err instanceof TypeError) { throw new Error('Network error'); } throw err; }).then(function (resp) { return resp.json()["catch"](function () { return {}; }); }).then(function (data) { // return parsed body stream if (response.ok) return callback(null, data); responseJsonData = data; // Taken from aws-sdk-js/lib/protocol/json.js // eslint-disable-next-line no-underscore-dangle var code = (data.__type || data.code).split('#').pop(); var error = { code: code, name: code, message: data.message || data.Message || null }; return callback(error); })["catch"](function (err) { // first check if we have a service error if (response && response.headers && response.headers.get('x-amzn-errortype')) { try { var code = response.headers.get('x-amzn-errortype').split(':')[0]; var error = { code: code, name: code, statusCode: response.status, message: response.status ? response.status.toString() : null }; return callback(error); } catch (ex) { return callback(err); } // otherwise check if error is Network error } else if (err instanceof Error && err.message === 'Network error') { var _error = { code: 'NetworkError', name: err.name, message: err.message }; return callback(_error); } else { return callback(err); } }); }; return Client; }(); /***/ }), /***/ "FiXj": /*!*****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsTemplateCommand.js ***! \*****************************************************************************************/ /*! exports provided: GetSmsTemplateCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateCommand", function() { return GetSmsTemplateCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetSmsTemplateCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSmsTemplateCommand, _super); // Start section: command_properties // End section: command_properties function GetSmsTemplateCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetSmsTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetSmsTemplateRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetSmsTemplateResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetSmsTemplateCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSmsTemplateCommand"])(input, context); }; GetSmsTemplateCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSmsTemplateCommand"])(output, context); }; return GetSmsTemplateCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetSmsTemplateCommand.js.map /***/ }), /***/ "Fp+q": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTagsForResourceCommand.js ***! \**********************************************************************************************/ /*! exports provided: ListTagsForResourceCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceCommand", function() { return ListTagsForResourceCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListTagsForResourceCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTagsForResourceCommand, _super); // Start section: command_properties // End section: command_properties function ListTagsForResourceCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListTagsForResourceRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListTagsForResourceResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListTagsForResourceCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1ListTagsForResourceCommand"])(input, context); }; ListTagsForResourceCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1ListTagsForResourceCommand"])(output, context); }; return ListTagsForResourceCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListTagsForResourceCommand.js.map /***/ }), /***/ "FsXJ": /*!*****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutPublicAccessBlockCommand.js ***! \*****************************************************************************************/ /*! exports provided: PutPublicAccessBlockCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutPublicAccessBlockCommand", function() { return PutPublicAccessBlockCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutPublicAccessBlockCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutPublicAccessBlockCommand, _super); // Start section: command_properties // End section: command_properties function PutPublicAccessBlockCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutPublicAccessBlockCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutPublicAccessBlockRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutPublicAccessBlockCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutPublicAccessBlockCommand"])(input, context); }; PutPublicAccessBlockCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutPublicAccessBlockCommand"])(output, context); }; return PutPublicAccessBlockCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=PutPublicAccessBlockCommand.js.map /***/ }), /***/ "FtGj": /*!*********************************************************************!*\ !*** ./node_modules/@angular/cdk/__ivy_ngcc__/fesm2015/keycodes.js ***! \*********************************************************************/ /*! exports provided: A, ALT, APOSTROPHE, AT_SIGN, B, BACKSLASH, BACKSPACE, C, CAPS_LOCK, CLOSE_SQUARE_BRACKET, COMMA, CONTEXT_MENU, CONTROL, D, DASH, DELETE, DOWN_ARROW, E, EIGHT, END, ENTER, EQUALS, ESCAPE, F, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, FF_EQUALS, FF_MINUS, FF_MUTE, FF_SEMICOLON, FF_VOLUME_DOWN, FF_VOLUME_UP, FIRST_MEDIA, FIVE, FOUR, G, H, HOME, I, INSERT, J, K, L, LAST_MEDIA, LEFT_ARROW, M, MAC_ENTER, MAC_META, MAC_WK_CMD_LEFT, MAC_WK_CMD_RIGHT, META, MUTE, N, NINE, NUMPAD_DIVIDE, NUMPAD_EIGHT, NUMPAD_FIVE, NUMPAD_FOUR, NUMPAD_MINUS, NUMPAD_MULTIPLY, NUMPAD_NINE, NUMPAD_ONE, NUMPAD_PERIOD, NUMPAD_PLUS, NUMPAD_SEVEN, NUMPAD_SIX, NUMPAD_THREE, NUMPAD_TWO, NUMPAD_ZERO, NUM_CENTER, NUM_LOCK, O, ONE, OPEN_SQUARE_BRACKET, P, PAGE_DOWN, PAGE_UP, PAUSE, PLUS_SIGN, PRINT_SCREEN, Q, QUESTION_MARK, R, RIGHT_ARROW, S, SCROLL_LOCK, SEMICOLON, SEVEN, SHIFT, SINGLE_QUOTE, SIX, SLASH, SPACE, T, TAB, THREE, TILDE, TWO, U, UP_ARROW, V, VOLUME_DOWN, VOLUME_UP, W, X, Y, Z, ZERO, hasModifierKey */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return A; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALT", function() { return ALT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APOSTROPHE", function() { return APOSTROPHE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AT_SIGN", function() { return AT_SIGN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return B; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BACKSLASH", function() { return BACKSLASH; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BACKSPACE", function() { return BACKSPACE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return C; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CAPS_LOCK", function() { return CAPS_LOCK; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CLOSE_SQUARE_BRACKET", function() { return CLOSE_SQUARE_BRACKET; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMMA", function() { return COMMA; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONTEXT_MENU", function() { return CONTEXT_MENU; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONTROL", function() { return CONTROL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return D; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DASH", function() { return DASH; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DELETE", function() { return DELETE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DOWN_ARROW", function() { return DOWN_ARROW; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return E; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EIGHT", function() { return EIGHT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "END", function() { return END; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENTER", function() { return ENTER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EQUALS", function() { return EQUALS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ESCAPE", function() { return ESCAPE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return F; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F1", function() { return F1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F10", function() { return F10; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F11", function() { return F11; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F12", function() { return F12; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F2", function() { return F2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F3", function() { return F3; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F4", function() { return F4; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F5", function() { return F5; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F6", function() { return F6; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F7", function() { return F7; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F8", function() { return F8; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F9", function() { return F9; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FF_EQUALS", function() { return FF_EQUALS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FF_MINUS", function() { return FF_MINUS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FF_MUTE", function() { return FF_MUTE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FF_SEMICOLON", function() { return FF_SEMICOLON; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FF_VOLUME_DOWN", function() { return FF_VOLUME_DOWN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FF_VOLUME_UP", function() { return FF_VOLUME_UP; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FIRST_MEDIA", function() { return FIRST_MEDIA; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FIVE", function() { return FIVE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FOUR", function() { return FOUR; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return G; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return H; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HOME", function() { return HOME; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return I; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INSERT", function() { return INSERT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return J; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return K; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return L; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LAST_MEDIA", function() { return LAST_MEDIA; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LEFT_ARROW", function() { return LEFT_ARROW; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return M; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAC_ENTER", function() { return MAC_ENTER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAC_META", function() { return MAC_META; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAC_WK_CMD_LEFT", function() { return MAC_WK_CMD_LEFT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAC_WK_CMD_RIGHT", function() { return MAC_WK_CMD_RIGHT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "META", function() { return META; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MUTE", function() { return MUTE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return N; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NINE", function() { return NINE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUMPAD_DIVIDE", function() { return NUMPAD_DIVIDE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUMPAD_EIGHT", function() { return NUMPAD_EIGHT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUMPAD_FIVE", function() { return NUMPAD_FIVE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUMPAD_FOUR", function() { return NUMPAD_FOUR; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUMPAD_MINUS", function() { return NUMPAD_MINUS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUMPAD_MULTIPLY", function() { return NUMPAD_MULTIPLY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUMPAD_NINE", function() { return NUMPAD_NINE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUMPAD_ONE", function() { return NUMPAD_ONE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUMPAD_PERIOD", function() { return NUMPAD_PERIOD; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUMPAD_PLUS", function() { return NUMPAD_PLUS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUMPAD_SEVEN", function() { return NUMPAD_SEVEN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUMPAD_SIX", function() { return NUMPAD_SIX; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUMPAD_THREE", function() { return NUMPAD_THREE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUMPAD_TWO", function() { return NUMPAD_TWO; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUMPAD_ZERO", function() { return NUMPAD_ZERO; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUM_CENTER", function() { return NUM_CENTER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NUM_LOCK", function() { return NUM_LOCK; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return O; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ONE", function() { return ONE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OPEN_SQUARE_BRACKET", function() { return OPEN_SQUARE_BRACKET; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return P; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PAGE_DOWN", function() { return PAGE_DOWN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PAGE_UP", function() { return PAGE_UP; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PAUSE", function() { return PAUSE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PLUS_SIGN", function() { return PLUS_SIGN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PRINT_SCREEN", function() { return PRINT_SCREEN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return Q; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QUESTION_MARK", function() { return QUESTION_MARK; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return R; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RIGHT_ARROW", function() { return RIGHT_ARROW; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return S; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SCROLL_LOCK", function() { return SCROLL_LOCK; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEMICOLON", function() { return SEMICOLON; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEVEN", function() { return SEVEN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHIFT", function() { return SHIFT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SINGLE_QUOTE", function() { return SINGLE_QUOTE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIX", function() { return SIX; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SLASH", function() { return SLASH; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SPACE", function() { return SPACE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return T; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TAB", function() { return TAB; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "THREE", function() { return THREE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TILDE", function() { return TILDE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TWO", function() { return TWO; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return U; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UP_ARROW", function() { return UP_ARROW; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return V; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VOLUME_DOWN", function() { return VOLUME_DOWN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VOLUME_UP", function() { return VOLUME_UP; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return W; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return X; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return Y; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return Z; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ZERO", function() { return ZERO; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasModifierKey", function() { return hasModifierKey; }); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const MAC_ENTER = 3; const BACKSPACE = 8; const TAB = 9; const NUM_CENTER = 12; const ENTER = 13; const SHIFT = 16; const CONTROL = 17; const ALT = 18; const PAUSE = 19; const CAPS_LOCK = 20; const ESCAPE = 27; const SPACE = 32; const PAGE_UP = 33; const PAGE_DOWN = 34; const END = 35; const HOME = 36; const LEFT_ARROW = 37; const UP_ARROW = 38; const RIGHT_ARROW = 39; const DOWN_ARROW = 40; const PLUS_SIGN = 43; const PRINT_SCREEN = 44; const INSERT = 45; const DELETE = 46; const ZERO = 48; const ONE = 49; const TWO = 50; const THREE = 51; const FOUR = 52; const FIVE = 53; const SIX = 54; const SEVEN = 55; const EIGHT = 56; const NINE = 57; const FF_SEMICOLON = 59; // Firefox (Gecko) fires this for semicolon instead of 186 const FF_EQUALS = 61; // Firefox (Gecko) fires this for equals instead of 187 const QUESTION_MARK = 63; const AT_SIGN = 64; const A = 65; const B = 66; const C = 67; const D = 68; const E = 69; const F = 70; const G = 71; const H = 72; const I = 73; const J = 74; const K = 75; const L = 76; const M = 77; const N = 78; const O = 79; const P = 80; const Q = 81; const R = 82; const S = 83; const T = 84; const U = 85; const V = 86; const W = 87; const X = 88; const Y = 89; const Z = 90; const META = 91; // WIN_KEY_LEFT const MAC_WK_CMD_LEFT = 91; const MAC_WK_CMD_RIGHT = 93; const CONTEXT_MENU = 93; const NUMPAD_ZERO = 96; const NUMPAD_ONE = 97; const NUMPAD_TWO = 98; const NUMPAD_THREE = 99; const NUMPAD_FOUR = 100; const NUMPAD_FIVE = 101; const NUMPAD_SIX = 102; const NUMPAD_SEVEN = 103; const NUMPAD_EIGHT = 104; const NUMPAD_NINE = 105; const NUMPAD_MULTIPLY = 106; const NUMPAD_PLUS = 107; const NUMPAD_MINUS = 109; const NUMPAD_PERIOD = 110; const NUMPAD_DIVIDE = 111; const F1 = 112; const F2 = 113; const F3 = 114; const F4 = 115; const F5 = 116; const F6 = 117; const F7 = 118; const F8 = 119; const F9 = 120; const F10 = 121; const F11 = 122; const F12 = 123; const NUM_LOCK = 144; const SCROLL_LOCK = 145; const FIRST_MEDIA = 166; const FF_MINUS = 173; const MUTE = 173; // Firefox (Gecko) fires 181 for MUTE const VOLUME_DOWN = 174; // Firefox (Gecko) fires 182 for VOLUME_DOWN const VOLUME_UP = 175; // Firefox (Gecko) fires 183 for VOLUME_UP const FF_MUTE = 181; const FF_VOLUME_DOWN = 182; const LAST_MEDIA = 183; const FF_VOLUME_UP = 183; const SEMICOLON = 186; // Firefox (Gecko) fires 59 for SEMICOLON const EQUALS = 187; // Firefox (Gecko) fires 61 for EQUALS const COMMA = 188; const DASH = 189; // Firefox (Gecko) fires 173 for DASH/MINUS const SLASH = 191; const APOSTROPHE = 192; const TILDE = 192; const OPEN_SQUARE_BRACKET = 219; const BACKSLASH = 220; const CLOSE_SQUARE_BRACKET = 221; const SINGLE_QUOTE = 222; const MAC_META = 224; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Checks whether a modifier key is pressed. * @param event Event to be checked. */ function hasModifierKey(event, ...modifiers) { if (modifiers.length) { return modifiers.some(modifier => event[modifier]); } return event.altKey || event.shiftKey || event.ctrlKey || event.metaKey; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Generated bundle index. Do not edit. */ //# sourceMappingURL=keycodes.js.map /***/ }), /***/ "FwBU": /*!***************************************************************!*\ !*** ./node_modules/@aws-amplify/auth/lib-esm/OAuth/OAuth.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! url */ "CxY0"); /* harmony import */ var url__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _urlOpener__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./urlOpener */ "WNFi"); /* harmony import */ var _oauthStorage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./oauthStorage */ "uyi7"); /* harmony import */ var _types_Auth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../types/Auth */ "m0iZ"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var crypto_js_sha256__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! crypto-js/sha256 */ "lPiR"); /* harmony import */ var crypto_js_sha256__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(crypto_js_sha256__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var crypto_js_enc_base64__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! crypto-js/enc-base64 */ "ETIr"); /* harmony import */ var crypto_js_enc_base64__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(crypto_js_enc_base64__WEBPACK_IMPORTED_MODULE_6__); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; // Used for OAuth parsing of Cognito Hosted UI var AMPLIFY_SYMBOL = (typeof Symbol !== 'undefined' && typeof Symbol.for === 'function' ? Symbol.for('amplify_default') : '@@amplify_default'); var dispatchAuthEvent = function (event, data, message) { _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__["Hub"].dispatch('auth', { event: event, data: data, message: message }, 'Auth', AMPLIFY_SYMBOL); }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__["ConsoleLogger"]('OAuth'); var OAuth = /** @class */ (function () { function OAuth(_a) { var config = _a.config, cognitoClientId = _a.cognitoClientId, _b = _a.scopes, scopes = _b === void 0 ? [] : _b; this._urlOpener = config.urlOpener || _urlOpener__WEBPACK_IMPORTED_MODULE_1__["launchUri"]; this._config = config; this._cognitoClientId = cognitoClientId; if (!this.isValidScopes(scopes)) throw Error('scopes must be a String Array'); this._scopes = scopes; } OAuth.prototype.isValidScopes = function (scopes) { return (Array.isArray(scopes) && scopes.every(function (scope) { return typeof scope === 'string'; })); }; OAuth.prototype.oauthSignIn = function (responseType, domain, redirectSignIn, clientId, provider, customState) { if (responseType === void 0) { responseType = 'code'; } if (provider === void 0) { provider = _types_Auth__WEBPACK_IMPORTED_MODULE_3__["CognitoHostedUIIdentityProvider"].Cognito; } var generatedState = this._generateState(32); /* encodeURIComponent is not URL safe, use urlSafeEncode instead. Cognito single-encodes/decodes url on first sign in and double-encodes/decodes url when user already signed in. Using encodeURIComponent, Base32, Base64 add characters % or = which on further encoding becomes unsafe. '=' create issue for parsing query params. Refer: https://github.com/aws-amplify/amplify-js/issues/5218 */ var state = customState ? generatedState + "-" + Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__["urlSafeEncode"])(customState) : generatedState; _oauthStorage__WEBPACK_IMPORTED_MODULE_2__["setState"](state); var pkce_key = this._generateRandom(128); _oauthStorage__WEBPACK_IMPORTED_MODULE_2__["setPKCE"](pkce_key); var code_challenge = this._generateChallenge(pkce_key); var code_challenge_method = 'S256'; var scopesString = this._scopes.join(' '); var queryString = Object.entries(__assign(__assign({ redirect_uri: redirectSignIn, response_type: responseType, client_id: clientId, identity_provider: provider, scope: scopesString, state: state }, (responseType === 'code' ? { code_challenge: code_challenge } : {})), (responseType === 'code' ? { code_challenge_method: code_challenge_method } : {}))) .map(function (_a) { var _b = __read(_a, 2), k = _b[0], v = _b[1]; return encodeURIComponent(k) + "=" + encodeURIComponent(v); }) .join('&'); var URL = "https://" + domain + "/oauth2/authorize?" + queryString; logger.debug("Redirecting to " + URL); this._urlOpener(URL, redirectSignIn); }; OAuth.prototype._handleCodeFlow = function (currentUrl) { return __awaiter(this, void 0, void 0, function () { var code, oAuthTokenEndpoint, client_id, redirect_uri, code_verifier, oAuthTokenBody, body, _a, access_token, refresh_token, id_token, error; return __generator(this, function (_b) { switch (_b.label) { case 0: code = (Object(url__WEBPACK_IMPORTED_MODULE_0__["parse"])(currentUrl).query || '') .split('&') .map(function (pairings) { return pairings.split('='); }) .reduce(function (accum, _a) { var _b; var _c = __read(_a, 2), k = _c[0], v = _c[1]; return (__assign(__assign({}, accum), (_b = {}, _b[k] = v, _b))); }, { code: undefined }).code; if (!code) { return [2 /*return*/]; } oAuthTokenEndpoint = 'https://' + this._config.domain + '/oauth2/token'; dispatchAuthEvent('codeFlow', {}, "Retrieving tokens from " + oAuthTokenEndpoint); client_id = Object(_types_Auth__WEBPACK_IMPORTED_MODULE_3__["isCognitoHostedOpts"])(this._config) ? this._cognitoClientId : this._config.clientID; redirect_uri = Object(_types_Auth__WEBPACK_IMPORTED_MODULE_3__["isCognitoHostedOpts"])(this._config) ? this._config.redirectSignIn : this._config.redirectUri; code_verifier = _oauthStorage__WEBPACK_IMPORTED_MODULE_2__["getPKCE"](); oAuthTokenBody = __assign({ grant_type: 'authorization_code', code: code, client_id: client_id, redirect_uri: redirect_uri }, (code_verifier ? { code_verifier: code_verifier } : {})); logger.debug("Calling token endpoint: " + oAuthTokenEndpoint + " with", oAuthTokenBody); body = Object.entries(oAuthTokenBody) .map(function (_a) { var _b = __read(_a, 2), k = _b[0], v = _b[1]; return encodeURIComponent(k) + "=" + encodeURIComponent(v); }) .join('&'); return [4 /*yield*/, fetch(oAuthTokenEndpoint, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: body, })]; case 1: return [4 /*yield*/, (_b.sent()).json()]; case 2: _a = _b.sent(), access_token = _a.access_token, refresh_token = _a.refresh_token, id_token = _a.id_token, error = _a.error; if (error) { throw new Error(error); } return [2 /*return*/, { accessToken: access_token, refreshToken: refresh_token, idToken: id_token, }]; } }); }); }; OAuth.prototype._handleImplicitFlow = function (currentUrl) { return __awaiter(this, void 0, void 0, function () { var _a, id_token, access_token; return __generator(this, function (_b) { _a = (Object(url__WEBPACK_IMPORTED_MODULE_0__["parse"])(currentUrl).hash || '#') .substr(1) // Remove # from returned code .split('&') .map(function (pairings) { return pairings.split('='); }) .reduce(function (accum, _a) { var _b; var _c = __read(_a, 2), k = _c[0], v = _c[1]; return (__assign(__assign({}, accum), (_b = {}, _b[k] = v, _b))); }, { id_token: undefined, access_token: undefined, }), id_token = _a.id_token, access_token = _a.access_token; dispatchAuthEvent('implicitFlow', {}, "Got tokens from " + currentUrl); logger.debug("Retrieving implicit tokens from " + currentUrl + " with"); return [2 /*return*/, { accessToken: access_token, idToken: id_token, refreshToken: null, }]; }); }); }; OAuth.prototype.handleAuthResponse = function (currentUrl) { return __awaiter(this, void 0, void 0, function () { var urlParams, error, error_description, state, _a, _b, e_1; return __generator(this, function (_c) { switch (_c.label) { case 0: _c.trys.push([0, 5, , 6]); urlParams = currentUrl ? __assign(__assign({}, (Object(url__WEBPACK_IMPORTED_MODULE_0__["parse"])(currentUrl).hash || '#') .substr(1) .split('&') .map(function (entry) { return entry.split('='); }) .reduce(function (acc, _a) { var _b = __read(_a, 2), k = _b[0], v = _b[1]; return ((acc[k] = v), acc); }, {})), (Object(url__WEBPACK_IMPORTED_MODULE_0__["parse"])(currentUrl).query || '') .split('&') .map(function (entry) { return entry.split('='); }) .reduce(function (acc, _a) { var _b = __read(_a, 2), k = _b[0], v = _b[1]; return ((acc[k] = v), acc); }, {})) : {}; error = urlParams.error, error_description = urlParams.error_description; if (error) { throw new Error(error_description); } state = this._validateState(urlParams); logger.debug("Starting " + this._config.responseType + " flow with " + currentUrl); if (!(this._config.responseType === 'code')) return [3 /*break*/, 2]; _a = [{}]; return [4 /*yield*/, this._handleCodeFlow(currentUrl)]; case 1: return [2 /*return*/, __assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_c.sent())])), { state: state }])]; case 2: _b = [{}]; return [4 /*yield*/, this._handleImplicitFlow(currentUrl)]; case 3: return [2 /*return*/, __assign.apply(void 0, [__assign.apply(void 0, _b.concat([(_c.sent())])), { state: state }])]; case 4: return [3 /*break*/, 6]; case 5: e_1 = _c.sent(); logger.error("Error handling auth response.", e_1); throw e_1; case 6: return [2 /*return*/]; } }); }); }; OAuth.prototype._validateState = function (urlParams) { if (!urlParams) { return; } var savedState = _oauthStorage__WEBPACK_IMPORTED_MODULE_2__["getState"](); var returnedState = urlParams.state; // This is because savedState only exists if the flow was initiated by Amplify if (savedState && savedState !== returnedState) { throw new Error('Invalid state in OAuth flow'); } return returnedState; }; OAuth.prototype.signOut = function () { return __awaiter(this, void 0, void 0, function () { var oAuthLogoutEndpoint, client_id, signout_uri; return __generator(this, function (_a) { oAuthLogoutEndpoint = 'https://' + this._config.domain + '/logout?'; client_id = Object(_types_Auth__WEBPACK_IMPORTED_MODULE_3__["isCognitoHostedOpts"])(this._config) ? this._cognitoClientId : this._config.oauth.clientID; signout_uri = Object(_types_Auth__WEBPACK_IMPORTED_MODULE_3__["isCognitoHostedOpts"])(this._config) ? this._config.redirectSignOut : this._config.returnTo; oAuthLogoutEndpoint += Object.entries({ client_id: client_id, logout_uri: encodeURIComponent(signout_uri), }) .map(function (_a) { var _b = __read(_a, 2), k = _b[0], v = _b[1]; return k + "=" + v; }) .join('&'); dispatchAuthEvent('oAuthSignOut', { oAuth: 'signOut' }, "Signing out from " + oAuthLogoutEndpoint); logger.debug("Signing out from " + oAuthLogoutEndpoint); return [2 /*return*/, this._urlOpener(oAuthLogoutEndpoint)]; }); }); }; OAuth.prototype._generateState = function (length) { var result = ''; var i = length; var chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; for (; i > 0; --i) result += chars[Math.round(Math.random() * (chars.length - 1))]; return result; }; OAuth.prototype._generateChallenge = function (code) { return this._base64URL(crypto_js_sha256__WEBPACK_IMPORTED_MODULE_5___default()(code)); }; OAuth.prototype._base64URL = function (string) { return string .toString(crypto_js_enc_base64__WEBPACK_IMPORTED_MODULE_6___default.a) .replace(/=/g, '') .replace(/\+/g, '-') .replace(/\//g, '_'); }; OAuth.prototype._generateRandom = function (size) { var CHARSET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~'; var buffer = new Uint8Array(size); if (typeof window !== 'undefined' && !!window.crypto) { window.crypto.getRandomValues(buffer); } else { for (var i = 0; i < size; i += 1) { buffer[i] = (Math.random() * CHARSET.length) | 0; } } return this._bufferToString(buffer); }; OAuth.prototype._bufferToString = function (buffer) { var CHARSET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; var state = []; for (var i = 0; i < buffer.byteLength; i += 1) { var index = buffer[i] % CHARSET.length; state.push(CHARSET[index]); } return state.join(''); }; return OAuth; }()); /* harmony default export */ __webpack_exports__["default"] = (OAuth); //# sourceMappingURL=OAuth.js.map /***/ }), /***/ "G5ND": /*!***********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-firehose/dist/es/commands/DeleteDeliveryStreamCommand.js ***! \***********************************************************************************************/ /*! exports provided: DeleteDeliveryStreamCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamCommand", function() { return DeleteDeliveryStreamCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "qPic"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "IZqD"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteDeliveryStreamCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteDeliveryStreamCommand, _super); // Start section: command_properties // End section: command_properties function DeleteDeliveryStreamCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteDeliveryStreamInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteDeliveryStreamOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteDeliveryStreamCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DeleteDeliveryStreamCommand"])(input, context); }; DeleteDeliveryStreamCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DeleteDeliveryStreamCommand"])(output, context); }; return DeleteDeliveryStreamCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteDeliveryStreamCommand.js.map /***/ }), /***/ "G8u8": /*!**************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignDateRangeKpiCommand.js ***! \**************************************************************************************************/ /*! exports provided: GetCampaignDateRangeKpiCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiCommand", function() { return GetCampaignDateRangeKpiCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetCampaignDateRangeKpiCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignDateRangeKpiCommand, _super); // Start section: command_properties // End section: command_properties function GetCampaignDateRangeKpiCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetCampaignDateRangeKpiCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCampaignDateRangeKpiRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCampaignDateRangeKpiResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetCampaignDateRangeKpiCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignDateRangeKpiCommand"])(input, context); }; GetCampaignDateRangeKpiCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignDateRangeKpiCommand"])(output, context); }; return GetCampaignDateRangeKpiCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetCampaignDateRangeKpiCommand.js.map /***/ }), /***/ "GA52": /*!*********************************************************************************!*\ !*** ./node_modules/@aws-sdk/service-error-classification/dist/es/constants.js ***! \*********************************************************************************/ /*! exports provided: CLOCK_SKEW_ERROR_CODES, THROTTLING_ERROR_CODES, TRANSIENT_ERROR_CODES, TRANSIENT_ERROR_STATUS_CODES */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CLOCK_SKEW_ERROR_CODES", function() { return CLOCK_SKEW_ERROR_CODES; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "THROTTLING_ERROR_CODES", function() { return THROTTLING_ERROR_CODES; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TRANSIENT_ERROR_CODES", function() { return TRANSIENT_ERROR_CODES; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TRANSIENT_ERROR_STATUS_CODES", function() { return TRANSIENT_ERROR_STATUS_CODES; }); /** * Errors encountered when the client clock and server clock cannot agree on the * current time. * * These errors are retryable, assuming the SDK has enabled clock skew * correction. */ var CLOCK_SKEW_ERROR_CODES = [ "AuthFailure", "InvalidSignatureException", "RequestExpired", "RequestInTheFuture", "RequestTimeTooSkewed", "SignatureDoesNotMatch", ]; /** * Errors that indicate the SDK is being throttled. * * These errors are always retryable. */ var THROTTLING_ERROR_CODES = [ "Throttling", "ThrottlingException", "ThrottledException", "RequestThrottledException", "TooManyRequestsException", "ProvisionedThroughputExceededException", "TransactionInProgressException", "RequestLimitExceeded", "BandwidthLimitExceeded", "LimitExceededException", "RequestThrottled", "SlowDown", "PriorRequestNotComplete", "EC2ThrottledException", ]; /** * Error codes that indicate transient issues */ var TRANSIENT_ERROR_CODES = ["AbortError", "TimeoutError", "RequestTimeout", "RequestTimeoutException"]; /** * Error codes that indicate transient issues */ var TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFDSCxNQUFNLENBQUMsSUFBTSxzQkFBc0IsR0FBRztJQUNwQyxhQUFhO0lBQ2IsMkJBQTJCO0lBQzNCLGdCQUFnQjtJQUNoQixvQkFBb0I7SUFDcEIsc0JBQXNCO0lBQ3RCLHVCQUF1QjtDQUN4QixDQUFDO0FBRUY7Ozs7R0FJRztBQUNILE1BQU0sQ0FBQyxJQUFNLHNCQUFzQixHQUFHO0lBQ3BDLFlBQVk7SUFDWixxQkFBcUI7SUFDckIsb0JBQW9CO0lBQ3BCLDJCQUEyQjtJQUMzQiwwQkFBMEI7SUFDMUIsd0NBQXdDO0lBQ3hDLGdDQUFnQztJQUNoQyxzQkFBc0I7SUFDdEIsd0JBQXdCO0lBQ3hCLHdCQUF3QjtJQUN4QixrQkFBa0I7SUFDbEIsVUFBVTtJQUNWLHlCQUF5QjtJQUN6Qix1QkFBdUI7Q0FDeEIsQ0FBQztBQUVGOztHQUVHO0FBQ0gsTUFBTSxDQUFDLElBQU0scUJBQXFCLEdBQUcsQ0FBQyxZQUFZLEVBQUUsY0FBYyxFQUFFLGdCQUFnQixFQUFFLHlCQUF5QixDQUFDLENBQUM7QUFFakg7O0dBRUc7QUFDSCxNQUFNLENBQUMsSUFBTSw0QkFBNEIsR0FBRyxDQUFDLEdBQUcsRUFBRSxHQUFHLEVBQUUsR0FBRyxFQUFFLEdBQUcsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBFcnJvcnMgZW5jb3VudGVyZWQgd2hlbiB0aGUgY2xpZW50IGNsb2NrIGFuZCBzZXJ2ZXIgY2xvY2sgY2Fubm90IGFncmVlIG9uIHRoZVxuICogY3VycmVudCB0aW1lLlxuICpcbiAqIFRoZXNlIGVycm9ycyBhcmUgcmV0cnlhYmxlLCBhc3N1bWluZyB0aGUgU0RLIGhhcyBlbmFibGVkIGNsb2NrIHNrZXdcbiAqIGNvcnJlY3Rpb24uXG4gKi9cbmV4cG9ydCBjb25zdCBDTE9DS19TS0VXX0VSUk9SX0NPREVTID0gW1xuICBcIkF1dGhGYWlsdXJlXCIsXG4gIFwiSW52YWxpZFNpZ25hdHVyZUV4Y2VwdGlvblwiLFxuICBcIlJlcXVlc3RFeHBpcmVkXCIsXG4gIFwiUmVxdWVzdEluVGhlRnV0dXJlXCIsXG4gIFwiUmVxdWVzdFRpbWVUb29Ta2V3ZWRcIixcbiAgXCJTaWduYXR1cmVEb2VzTm90TWF0Y2hcIixcbl07XG5cbi8qKlxuICogRXJyb3JzIHRoYXQgaW5kaWNhdGUgdGhlIFNESyBpcyBiZWluZyB0aHJvdHRsZWQuXG4gKlxuICogVGhlc2UgZXJyb3JzIGFyZSBhbHdheXMgcmV0cnlhYmxlLlxuICovXG5leHBvcnQgY29uc3QgVEhST1RUTElOR19FUlJPUl9DT0RFUyA9IFtcbiAgXCJUaHJvdHRsaW5nXCIsXG4gIFwiVGhyb3R0bGluZ0V4Y2VwdGlvblwiLFxuICBcIlRocm90dGxlZEV4Y2VwdGlvblwiLFxuICBcIlJlcXVlc3RUaHJvdHRsZWRFeGNlcHRpb25cIixcbiAgXCJUb29NYW55UmVxdWVzdHNFeGNlcHRpb25cIixcbiAgXCJQcm92aXNpb25lZFRocm91Z2hwdXRFeGNlZWRlZEV4Y2VwdGlvblwiLFxuICBcIlRyYW5zYWN0aW9uSW5Qcm9ncmVzc0V4Y2VwdGlvblwiLFxuICBcIlJlcXVlc3RMaW1pdEV4Y2VlZGVkXCIsXG4gIFwiQmFuZHdpZHRoTGltaXRFeGNlZWRlZFwiLFxuICBcIkxpbWl0RXhjZWVkZWRFeGNlcHRpb25cIixcbiAgXCJSZXF1ZXN0VGhyb3R0bGVkXCIsXG4gIFwiU2xvd0Rvd25cIixcbiAgXCJQcmlvclJlcXVlc3ROb3RDb21wbGV0ZVwiLFxuICBcIkVDMlRocm90dGxlZEV4Y2VwdGlvblwiLFxuXTtcblxuLyoqXG4gKiBFcnJvciBjb2RlcyB0aGF0IGluZGljYXRlIHRyYW5zaWVudCBpc3N1ZXNcbiAqL1xuZXhwb3J0IGNvbnN0IFRSQU5TSUVOVF9FUlJPUl9DT0RFUyA9IFtcIkFib3J0RXJyb3JcIiwgXCJUaW1lb3V0RXJyb3JcIiwgXCJSZXF1ZXN0VGltZW91dFwiLCBcIlJlcXVlc3RUaW1lb3V0RXhjZXB0aW9uXCJdO1xuXG4vKipcbiAqIEVycm9yIGNvZGVzIHRoYXQgaW5kaWNhdGUgdHJhbnNpZW50IGlzc3Vlc1xuICovXG5leHBvcnQgY29uc3QgVFJBTlNJRU5UX0VSUk9SX1NUQVRVU19DT0RFUyA9IFs1MDAsIDUwMiwgNTAzLCA1MDRdO1xuIl19 /***/ }), /***/ "GAK+": /*!*************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/UnlinkIdentityCommand.js ***! \*************************************************************************************************/ /*! exports provided: UnlinkIdentityCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnlinkIdentityCommand", function() { return UnlinkIdentityCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UnlinkIdentityCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UnlinkIdentityCommand, _super); // Start section: command_properties // End section: command_properties function UnlinkIdentityCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UnlinkIdentityCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__["getAwsAuthPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UnlinkIdentityInput"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UnlinkIdentityCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1UnlinkIdentityCommand"])(input, context); }; UnlinkIdentityCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1UnlinkIdentityCommand"])(output, context); }; return UnlinkIdentityCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=UnlinkIdentityCommand.js.map /***/ }), /***/ "GDOE": /*!****************************************************************!*\ !*** ./node_modules/@aws-sdk/is-array-buffer/dist/es/index.js ***! \****************************************************************/ /*! exports provided: isArrayBuffer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isArrayBuffer", function() { return isArrayBuffer; }); function isArrayBuffer(arg) { return ((typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer) || Object.prototype.toString.call(arg) === "[object ArrayBuffer]"); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiLi9zcmMvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLFVBQVUsYUFBYSxDQUFDLEdBQVE7SUFDcEMsT0FBTyxDQUNMLENBQUMsT0FBTyxXQUFXLEtBQUssVUFBVSxJQUFJLEdBQUcsWUFBWSxXQUFXLENBQUM7UUFDakUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxLQUFLLHNCQUFzQixDQUMvRCxDQUFDO0FBQ0osQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBmdW5jdGlvbiBpc0FycmF5QnVmZmVyKGFyZzogYW55KTogYXJnIGlzIEFycmF5QnVmZmVyIHtcbiAgcmV0dXJuIChcbiAgICAodHlwZW9mIEFycmF5QnVmZmVyID09PSBcImZ1bmN0aW9uXCIgJiYgYXJnIGluc3RhbmNlb2YgQXJyYXlCdWZmZXIpIHx8XG4gICAgT2JqZWN0LnByb3RvdHlwZS50b1N0cmluZy5jYWxsKGFyZykgPT09IFwiW29iamVjdCBBcnJheUJ1ZmZlcl1cIlxuICApO1xufVxuIl19 /***/ }), /***/ "GI6L": /*!**********************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/UniversalStorage/index.js ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var universal_cookie_1 = __importDefault(__webpack_require__(/*! universal-cookie */ "9ONQ")); var JS_1 = __webpack_require__(/*! ../JS */ "eIkY"); var isBrowser = JS_1.browserOrNode().isBrowser; var UniversalStorage = /** @class */ (function () { function UniversalStorage(context) { if (context === void 0) { context = {}; } this.cookies = new universal_cookie_1.default(); this.store = isBrowser ? window.localStorage : Object.create(null); this.cookies = context.req ? new universal_cookie_1.default(context.req.headers.cookie) : new universal_cookie_1.default(); Object.assign(this.store, this.cookies.getAll()); } Object.defineProperty(UniversalStorage.prototype, "length", { get: function () { return Object.entries(this.store).length; }, enumerable: true, configurable: true }); UniversalStorage.prototype.clear = function () { var _this = this; Array.from(new Array(this.length)) .map(function (value, i) { return _this.key(i); }) .forEach(function (key) { return _this.removeItem(key); }); }; UniversalStorage.prototype.getItem = function (key) { return this.getLocalItem(key); }; UniversalStorage.prototype.getLocalItem = function (key) { return Object.prototype.hasOwnProperty.call(this.store, key) ? this.store[key] : null; }; UniversalStorage.prototype.getUniversalItem = function (key) { return this.cookies.get(key); }; UniversalStorage.prototype.key = function (index) { return Object.keys(this.store)[index]; }; UniversalStorage.prototype.removeItem = function (key) { this.removeLocalItem(key); this.removeUniversalItem(key); }; UniversalStorage.prototype.removeLocalItem = function (key) { delete this.store[key]; }; UniversalStorage.prototype.removeUniversalItem = function (key) { this.cookies.remove(key); }; UniversalStorage.prototype.setItem = function (key, value) { this.setLocalItem(key, value); // keys take the shape: // 1. `${ProviderPrefix}.${userPoolClientId}.${username}.${tokenType} // 2. `${ProviderPrefix}.${userPoolClientId}.LastAuthUser var tokenType = key.split('.').pop(); switch (tokenType) { // LastAuthUser is needed for computing other key names case 'LastAuthUser': // accessToken is required for CognitoUserSession case 'accessToken': // Required for CognitoUserSession case 'idToken': this.setUniversalItem(key, value); // userData is used when `Auth.currentAuthenticatedUser({ bypassCache: false })`. // Can be persisted to speed up calls to `Auth.currentAuthenticatedUser()` // case 'userData': // refreshToken isn't shared with the server so that the client handles refreshing // case 'refreshToken': // Ignoring clockDrift on the server for now, but needs testing // case 'clockDrift': } }; UniversalStorage.prototype.setLocalItem = function (key, value) { this.store[key] = value; }; UniversalStorage.prototype.setUniversalItem = function (key, value) { this.cookies.set(key, value, { path: '/', // `httpOnly` cannot be set via JavaScript: https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#JavaScript_access_using_Document.cookie sameSite: true, // Allow unsecure requests to http://localhost:3000/ when in development. secure: window.location.hostname === 'localhost' ? false : true, }); }; return UniversalStorage; }()); exports.UniversalStorage = UniversalStorage; //# sourceMappingURL=index.js.map /***/ }), /***/ "GJmQ": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/takeWhile.js ***! \********************************************************************/ /*! exports provided: takeWhile */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "takeWhile", function() { return takeWhile; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); function takeWhile(predicate, inclusive = false) { return (source) => source.lift(new TakeWhileOperator(predicate, inclusive)); } class TakeWhileOperator { constructor(predicate, inclusive) { this.predicate = predicate; this.inclusive = inclusive; } call(subscriber, source) { return source.subscribe(new TakeWhileSubscriber(subscriber, this.predicate, this.inclusive)); } } class TakeWhileSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, predicate, inclusive) { super(destination); this.predicate = predicate; this.inclusive = inclusive; this.index = 0; } _next(value) { const destination = this.destination; let result; try { result = this.predicate(value, this.index++); } catch (err) { destination.error(err); return; } this.nextOrComplete(value, result); } nextOrComplete(value, predicateResult) { const destination = this.destination; if (Boolean(predicateResult)) { destination.next(value); } else { if (this.inclusive) { destination.next(value); } destination.complete(); } } } //# sourceMappingURL=takeWhile.js.map /***/ }), /***/ "GLgX": /*!************************************************************************************!*\ !*** ./node_modules/@aws-amplify/interactions/lib-esm/Providers/AWSLexProvider.js ***! \************************************************************************************/ /*! exports provided: AWSLexProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AWSLexProvider", function() { return AWSLexProvider; }); /* harmony import */ var _InteractionsProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./InteractionsProvider */ "35dS"); /* harmony import */ var _aws_sdk_client_lex_runtime_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/client-lex-runtime-service */ "LA5g"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _AWSLexProviderHelper_convert__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AWSLexProviderHelper/convert */ "chvA"); /* * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["ConsoleLogger"]('AWSLexProvider'); var AWSLexProvider = /** @class */ (function (_super) { __extends(AWSLexProvider, _super); function AWSLexProvider(options) { if (options === void 0) { options = {}; } var _this = _super.call(this, options) || this; _this._botsCompleteCallback = {}; return _this; } AWSLexProvider.prototype.getProviderName = function () { return 'AWSLexProvider'; }; AWSLexProvider.prototype.reportBotStatus = function (data, botname) { var _this = this; // Check if state is fulfilled to resolve onFullfilment promise logger.debug('postContent state', data.dialogState); if (data.dialogState === 'ReadyForFulfillment' || data.dialogState === 'Fulfilled') { if (typeof this._botsCompleteCallback[botname] === 'function') { setTimeout(function () { return _this._botsCompleteCallback[botname](null, { slots: data.slots }); }, 0); } if (this._config && typeof this._config[botname].onComplete === 'function') { setTimeout(function () { return _this._config[botname].onComplete(null, { slots: data.slots }); }, 0); } } if (data.dialogState === 'Failed') { if (typeof this._botsCompleteCallback[botname] === 'function') { setTimeout(function () { return _this._botsCompleteCallback[botname]('Bot conversation failed'); }, 0); } if (this._config && typeof this._config[botname].onComplete === 'function') { setTimeout(function () { return _this._config[botname].onComplete('Bot conversation failed'); }, 0); } } }; AWSLexProvider.prototype.sendMessage = function (botname, message) { return __awaiter(this, void 0, void 0, function () { var credentials, params, postTextCommand, data, err_1, content, messageType, postContentCommand, data, audioArray, err_2; return __generator(this, function (_a) { switch (_a.label) { case 0: if (!this._config[botname]) { return [2 /*return*/, Promise.reject('Bot ' + botname + ' does not exist')]; } return [4 /*yield*/, _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["Credentials"].get()]; case 1: credentials = _a.sent(); if (!credentials) { return [2 /*return*/, Promise.reject('No credentials')]; } this.lexRuntimeServiceClient = new _aws_sdk_client_lex_runtime_service__WEBPACK_IMPORTED_MODULE_1__["LexRuntimeServiceClient"]({ region: this._config[botname].region, credentials: credentials, customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["getAmplifyUserAgent"])(), }); if (!(typeof message === 'string')) return [3 /*break*/, 6]; params = { botAlias: this._config[botname].alias, botName: botname, inputText: message, userId: credentials.identityId, }; logger.debug('postText to lex', message); _a.label = 2; case 2: _a.trys.push([2, 4, , 5]); postTextCommand = new _aws_sdk_client_lex_runtime_service__WEBPACK_IMPORTED_MODULE_1__["PostTextCommand"](params); return [4 /*yield*/, this.lexRuntimeServiceClient.send(postTextCommand)]; case 3: data = _a.sent(); this.reportBotStatus(data, botname); return [2 /*return*/, data]; case 4: err_1 = _a.sent(); return [2 /*return*/, Promise.reject(err_1)]; case 5: return [3 /*break*/, 11]; case 6: content = message.content, messageType = message.options.messageType; if (messageType === 'voice') { params = { botAlias: this._config[botname].alias, botName: botname, contentType: 'audio/x-l16; sample-rate=16000', inputStream: content, userId: credentials.identityId, accept: 'audio/mpeg', }; } else { params = { botAlias: this._config[botname].alias, botName: botname, contentType: 'text/plain; charset=utf-8', inputStream: content, userId: credentials.identityId, accept: 'audio/mpeg', }; } logger.debug('postContent to lex', message); _a.label = 7; case 7: _a.trys.push([7, 10, , 11]); postContentCommand = new _aws_sdk_client_lex_runtime_service__WEBPACK_IMPORTED_MODULE_1__["PostContentCommand"](params); return [4 /*yield*/, this.lexRuntimeServiceClient.send(postContentCommand)]; case 8: data = _a.sent(); return [4 /*yield*/, Object(_AWSLexProviderHelper_convert__WEBPACK_IMPORTED_MODULE_3__["convert"])(data.audioStream)]; case 9: audioArray = _a.sent(); this.reportBotStatus(data, botname); return [2 /*return*/, __assign(__assign({}, data), { audioStream: audioArray })]; case 10: err_2 = _a.sent(); return [2 /*return*/, Promise.reject(err_2)]; case 11: return [2 /*return*/]; } }); }); }; AWSLexProvider.prototype.onComplete = function (botname, callback) { if (!this._config[botname]) { throw new ErrorEvent('Bot ' + botname + ' does not exist'); } this._botsCompleteCallback[botname] = callback; }; return AWSLexProvider; }(_InteractionsProvider__WEBPACK_IMPORTED_MODULE_0__["AbstractInteractionsProvider"])); //# sourceMappingURL=AWSLexProvider.js.map /***/ }), /***/ "GMn4": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/DeleteBucketAnalyticsConfigurationCommand.js ***! \*******************************************************************************************************/ /*! exports provided: DeleteBucketAnalyticsConfigurationCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketAnalyticsConfigurationCommand", function() { return DeleteBucketAnalyticsConfigurationCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteBucketAnalyticsConfigurationCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteBucketAnalyticsConfigurationCommand, _super); // Start section: command_properties // End section: command_properties function DeleteBucketAnalyticsConfigurationCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteBucketAnalyticsConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteBucketAnalyticsConfigurationRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteBucketAnalyticsConfigurationCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand"])(input, context); }; DeleteBucketAnalyticsConfigurationCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand"])(output, context); }; return DeleteBucketAnalyticsConfigurationCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=DeleteBucketAnalyticsConfigurationCommand.js.map /***/ }), /***/ "GNiM": /*!**********************************************!*\ !*** ./node_modules/lodash/_stringToPath.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "I01J"); /** Used to match property names within property paths. */ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; /** Used to match backslashes in property paths. */ var reEscapeChar = /\\(\\)?/g; /** * Converts `string` to a property path array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the property path array. */ var stringToPath = memoizeCapped(function(string) { var result = []; if (string.charCodeAt(0) === 46 /* . */) { result.push(''); } string.replace(rePropName, function(match, number, quote, subString) { result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); }); return result; }); module.exports = stringToPath; /***/ }), /***/ "GOuw": /*!*********************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/index.js ***! \*********************************************************/ /*! exports provided: AmplifyClass, ClientDevice, ConsoleLogger, Logger, missingConfig, invalidParameter, Hub, I18n, isEmpty, sortByField, objectLessAttributes, filenameToContentType, isTextFile, generateRandomString, makeQuerablePromise, isWebWorker, browserOrNode, transferKeyToLowerCase, transferKeyToUpperCase, isStrictObject, JS, Signer, parseMobileHubConfig, Parser, FacebookOAuth, GoogleOAuth, Linking, AppState, AsyncStorage, Credentials, CredentialsClass, ServiceWorker, StorageHelper, MemoryStorage, UniversalStorage, Platform, getAmplifyUserAgent, INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER, INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER, USER_AGENT_HEADER, Constants, NonRetryableError, retry, jitteredExponentialRetry, Mutex, Reachability, DateUtils, urlSafeEncode, urlSafeDecode, Amplify, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Constants", function() { return Constants; }); /* harmony import */ var _Amplify__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Amplify */ "fQM2"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Amplify", function() { return _Amplify__WEBPACK_IMPORTED_MODULE_0__["Amplify"]; }); /* harmony import */ var _Platform__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Platform */ "+rSW"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AmplifyClass", function() { return _Amplify__WEBPACK_IMPORTED_MODULE_0__["AmplifyClass"]; }); /* harmony import */ var _ClientDevice__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ClientDevice */ "oe3W"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClientDevice", function() { return _ClientDevice__WEBPACK_IMPORTED_MODULE_2__["ClientDevice"]; }); /* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Logger */ "RCJS"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConsoleLogger", function() { return _Logger__WEBPACK_IMPORTED_MODULE_3__["ConsoleLogger"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Logger", function() { return _Logger__WEBPACK_IMPORTED_MODULE_3__["ConsoleLogger"]; }); /* harmony import */ var _Errors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Errors */ "0X2B"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "missingConfig", function() { return _Errors__WEBPACK_IMPORTED_MODULE_4__["missingConfig"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "invalidParameter", function() { return _Errors__WEBPACK_IMPORTED_MODULE_4__["invalidParameter"]; }); /* harmony import */ var _Hub__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Hub */ "Qycn"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Hub", function() { return _Hub__WEBPACK_IMPORTED_MODULE_5__["Hub"]; }); /* harmony import */ var _I18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./I18n */ "JIIv"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "I18n", function() { return _I18n__WEBPACK_IMPORTED_MODULE_6__["I18n"]; }); /* harmony import */ var _JS__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./JS */ "HzrR"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isEmpty", function() { return _JS__WEBPACK_IMPORTED_MODULE_7__["isEmpty"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sortByField", function() { return _JS__WEBPACK_IMPORTED_MODULE_7__["sortByField"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "objectLessAttributes", function() { return _JS__WEBPACK_IMPORTED_MODULE_7__["objectLessAttributes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "filenameToContentType", function() { return _JS__WEBPACK_IMPORTED_MODULE_7__["filenameToContentType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isTextFile", function() { return _JS__WEBPACK_IMPORTED_MODULE_7__["isTextFile"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "generateRandomString", function() { return _JS__WEBPACK_IMPORTED_MODULE_7__["generateRandomString"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeQuerablePromise", function() { return _JS__WEBPACK_IMPORTED_MODULE_7__["makeQuerablePromise"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isWebWorker", function() { return _JS__WEBPACK_IMPORTED_MODULE_7__["isWebWorker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "browserOrNode", function() { return _JS__WEBPACK_IMPORTED_MODULE_7__["browserOrNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transferKeyToLowerCase", function() { return _JS__WEBPACK_IMPORTED_MODULE_7__["transferKeyToLowerCase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transferKeyToUpperCase", function() { return _JS__WEBPACK_IMPORTED_MODULE_7__["transferKeyToUpperCase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isStrictObject", function() { return _JS__WEBPACK_IMPORTED_MODULE_7__["isStrictObject"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JS", function() { return _JS__WEBPACK_IMPORTED_MODULE_7__["JS"]; }); /* harmony import */ var _Signer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Signer */ "vVj2"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Signer", function() { return _Signer__WEBPACK_IMPORTED_MODULE_8__["Signer"]; }); /* harmony import */ var _Parser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Parser */ "QuJe"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseMobileHubConfig", function() { return _Parser__WEBPACK_IMPORTED_MODULE_9__["parseMobileHubConfig"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Parser", function() { return _Parser__WEBPACK_IMPORTED_MODULE_9__["Parser"]; }); /* harmony import */ var _OAuthHelper__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./OAuthHelper */ "WKOl"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FacebookOAuth", function() { return _OAuthHelper__WEBPACK_IMPORTED_MODULE_10__["FacebookOAuth"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GoogleOAuth", function() { return _OAuthHelper__WEBPACK_IMPORTED_MODULE_10__["GoogleOAuth"]; }); /* harmony import */ var _RNComponents__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./RNComponents */ "EayL"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Linking", function() { return _RNComponents__WEBPACK_IMPORTED_MODULE_11__["Linking"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AppState", function() { return _RNComponents__WEBPACK_IMPORTED_MODULE_11__["AppState"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AsyncStorage", function() { return _RNComponents__WEBPACK_IMPORTED_MODULE_11__["AsyncStorage"]; }); /* harmony import */ var _Credentials__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Credentials */ "R10A"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Credentials", function() { return _Credentials__WEBPACK_IMPORTED_MODULE_12__["Credentials"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CredentialsClass", function() { return _Credentials__WEBPACK_IMPORTED_MODULE_12__["CredentialsClass"]; }); /* harmony import */ var _ServiceWorker__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./ServiceWorker */ "AdvF"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ServiceWorker", function() { return _ServiceWorker__WEBPACK_IMPORTED_MODULE_13__["ServiceWorker"]; }); /* harmony import */ var _StorageHelper__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./StorageHelper */ "2Lx6"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StorageHelper", function() { return _StorageHelper__WEBPACK_IMPORTED_MODULE_14__["StorageHelper"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MemoryStorage", function() { return _StorageHelper__WEBPACK_IMPORTED_MODULE_14__["MemoryStorage"]; }); /* harmony import */ var _UniversalStorage__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./UniversalStorage */ "CBmc"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UniversalStorage", function() { return _UniversalStorage__WEBPACK_IMPORTED_MODULE_15__["UniversalStorage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Platform", function() { return _Platform__WEBPACK_IMPORTED_MODULE_1__["Platform"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getAmplifyUserAgent", function() { return _Platform__WEBPACK_IMPORTED_MODULE_1__["getAmplifyUserAgent"]; }); /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./constants */ "CexW"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER", function() { return _constants__WEBPACK_IMPORTED_MODULE_16__["INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER", function() { return _constants__WEBPACK_IMPORTED_MODULE_16__["INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "USER_AGENT_HEADER", function() { return _constants__WEBPACK_IMPORTED_MODULE_16__["USER_AGENT_HEADER"]; }); /* empty/unused harmony star reexport *//* harmony import */ var _Util__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Util */ "qAxE"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NonRetryableError", function() { return _Util__WEBPACK_IMPORTED_MODULE_17__["NonRetryableError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "retry", function() { return _Util__WEBPACK_IMPORTED_MODULE_17__["retry"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "jitteredExponentialRetry", function() { return _Util__WEBPACK_IMPORTED_MODULE_17__["jitteredExponentialRetry"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Mutex", function() { return _Util__WEBPACK_IMPORTED_MODULE_17__["Mutex"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Reachability", function() { return _Util__WEBPACK_IMPORTED_MODULE_17__["Reachability"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DateUtils", function() { return _Util__WEBPACK_IMPORTED_MODULE_17__["DateUtils"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "urlSafeEncode", function() { return _Util__WEBPACK_IMPORTED_MODULE_17__["urlSafeEncode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "urlSafeDecode", function() { return _Util__WEBPACK_IMPORTED_MODULE_17__["urlSafeDecode"]; }); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var Constants = { userAgent: _Platform__WEBPACK_IMPORTED_MODULE_1__["Platform"].userAgent, }; /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (_Amplify__WEBPACK_IMPORTED_MODULE_0__["Amplify"]); //# sourceMappingURL=index.js.map /***/ }), /***/ "GPV0": /*!*****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/StopEntitiesDetectionJobCommand.js ***! \*****************************************************************************************************/ /*! exports provided: StopEntitiesDetectionJobCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopEntitiesDetectionJobCommand", function() { return StopEntitiesDetectionJobCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StopEntitiesDetectionJobCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StopEntitiesDetectionJobCommand, _super); // Start section: command_properties // End section: command_properties function StopEntitiesDetectionJobCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StopEntitiesDetectionJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StopEntitiesDetectionJobRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StopEntitiesDetectionJobResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StopEntitiesDetectionJobCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StopEntitiesDetectionJobCommand"])(input, context); }; StopEntitiesDetectionJobCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StopEntitiesDetectionJobCommand"])(output, context); }; return StopEntitiesDetectionJobCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StopEntitiesDetectionJobCommand.js.map /***/ }), /***/ "GQ0z": /*!***********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/credential-provider-cognito-identity/dist/es/InMemoryStorage.js ***! \***********************************************************************************************/ /*! exports provided: InMemoryStorage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InMemoryStorage", function() { return InMemoryStorage; }); var InMemoryStorage = /** @class */ (function () { function InMemoryStorage(store) { if (store === void 0) { store = {}; } this.store = store; } InMemoryStorage.prototype.getItem = function (key) { if (key in this.store) { return this.store[key]; } return null; }; InMemoryStorage.prototype.removeItem = function (key) { delete this.store[key]; }; InMemoryStorage.prototype.setItem = function (key, value) { this.store[key] = value; }; return InMemoryStorage; }()); //# sourceMappingURL=InMemoryStorage.js.map /***/ }), /***/ "GU7r": /*!**********************************************************************!*\ !*** ./node_modules/@angular/cdk/__ivy_ngcc__/fesm2015/observers.js ***! \**********************************************************************/ /*! exports provided: CdkObserveContent, ContentObserver, MutationObserverFactory, ObserversModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CdkObserveContent", function() { return CdkObserveContent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContentObserver", function() { return ContentObserver; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MutationObserverFactory", function() { return MutationObserverFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ObserversModule", function() { return ObserversModule; }); /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/cdk/coercion */ "8LU1"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Factory that creates a new MutationObserver and allows us to stub it out in unit tests. * @docs-private */ class MutationObserverFactory { create(callback) { return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback); } } MutationObserverFactory.ɵfac = function MutationObserverFactory_Factory(t) { return new (t || MutationObserverFactory)(); }; MutationObserverFactory.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({ factory: function MutationObserverFactory_Factory() { return new MutationObserverFactory(); }, token: MutationObserverFactory, providedIn: "root" }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MutationObserverFactory, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"], args: [{ providedIn: 'root' }] }], null, null); })(); /** An injectable service that allows watching elements for changes to their content. */ class ContentObserver { constructor(_mutationObserverFactory) { this._mutationObserverFactory = _mutationObserverFactory; /** Keeps track of the existing MutationObservers so they can be reused. */ this._observedElements = new Map(); } ngOnDestroy() { this._observedElements.forEach((_, element) => this._cleanupObserver(element)); } observe(elementOrRef) { const element = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__["coerceElement"])(elementOrRef); return new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"]((observer) => { const stream = this._observeElement(element); const subscription = stream.subscribe(observer); return () => { subscription.unsubscribe(); this._unobserveElement(element); }; }); } /** * Observes the given element by using the existing MutationObserver if available, or creating a * new one if not. */ _observeElement(element) { if (!this._observedElements.has(element)) { const stream = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"](); const observer = this._mutationObserverFactory.create(mutations => stream.next(mutations)); if (observer) { observer.observe(element, { characterData: true, childList: true, subtree: true }); } this._observedElements.set(element, { observer, stream, count: 1 }); } else { this._observedElements.get(element).count++; } return this._observedElements.get(element).stream; } /** * Un-observes the given element and cleans up the underlying MutationObserver if nobody else is * observing this element. */ _unobserveElement(element) { if (this._observedElements.has(element)) { this._observedElements.get(element).count--; if (!this._observedElements.get(element).count) { this._cleanupObserver(element); } } } /** Clean up the underlying MutationObserver for the specified element. */ _cleanupObserver(element) { if (this._observedElements.has(element)) { const { observer, stream } = this._observedElements.get(element); if (observer) { observer.disconnect(); } stream.complete(); this._observedElements.delete(element); } } } ContentObserver.ɵfac = function ContentObserver_Factory(t) { return new (t || ContentObserver)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](MutationObserverFactory)); }; ContentObserver.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({ factory: function ContentObserver_Factory() { return new ContentObserver(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(MutationObserverFactory)); }, token: ContentObserver, providedIn: "root" }); ContentObserver.ctorParameters = () => [ { type: MutationObserverFactory } ]; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ContentObserver, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"], args: [{ providedIn: 'root' }] }], function () { return [{ type: MutationObserverFactory }]; }, null); })(); /** * Directive that triggers a callback whenever the content of * its associated element has changed. */ class CdkObserveContent { constructor(_contentObserver, _elementRef, _ngZone) { this._contentObserver = _contentObserver; this._elementRef = _elementRef; this._ngZone = _ngZone; /** Event emitted for each change in the element's content. */ this.event = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"](); this._disabled = false; this._currentSubscription = null; } /** * Whether observing content is disabled. This option can be used * to disconnect the underlying MutationObserver until it is needed. */ get disabled() { return this._disabled; } set disabled(value) { this._disabled = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__["coerceBooleanProperty"])(value); this._disabled ? this._unsubscribe() : this._subscribe(); } /** Debounce interval for emitting the changes. */ get debounce() { return this._debounce; } set debounce(value) { this._debounce = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__["coerceNumberProperty"])(value); this._subscribe(); } ngAfterContentInit() { if (!this._currentSubscription && !this.disabled) { this._subscribe(); } } ngOnDestroy() { this._unsubscribe(); } _subscribe() { this._unsubscribe(); const stream = this._contentObserver.observe(this._elementRef); // TODO(mmalerba): We shouldn't be emitting on this @Output() outside the zone. // Consider brining it back inside the zone next time we're making breaking changes. // Bringing it back inside can cause things like infinite change detection loops and changed // after checked errors if people's code isn't handling it properly. this._ngZone.runOutsideAngular(() => { this._currentSubscription = (this.debounce ? stream.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(this.debounce)) : stream).subscribe(this.event); }); } _unsubscribe() { if (this._currentSubscription) { this._currentSubscription.unsubscribe(); } } } CdkObserveContent.ɵfac = function CdkObserveContent_Factory(t) { return new (t || CdkObserveContent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ContentObserver), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; CdkObserveContent.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({ type: CdkObserveContent, selectors: [["", "cdkObserveContent", ""]], inputs: { disabled: ["cdkObserveContentDisabled", "disabled"], debounce: "debounce" }, outputs: { event: "cdkObserveContent" }, exportAs: ["cdkObserveContent"] }); CdkObserveContent.ctorParameters = () => [ { type: ContentObserver }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; CdkObserveContent.propDecorators = { event: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"], args: ['cdkObserveContent',] }], disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"], args: ['cdkObserveContentDisabled',] }], debounce: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }] }; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkObserveContent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"], args: [{ selector: '[cdkObserveContent]', exportAs: 'cdkObserveContent' }] }], function () { return [{ type: ContentObserver }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, { event: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"], args: ['cdkObserveContent'] }], disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"], args: ['cdkObserveContentDisabled'] }], debounce: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }] }); })(); class ObserversModule { } ObserversModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({ type: ObserversModule }); ObserversModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({ factory: function ObserversModule_Factory(t) { return new (t || ObserversModule)(); }, providers: [MutationObserverFactory] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](ObserversModule, { declarations: [CdkObserveContent], exports: [CdkObserveContent] }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ObserversModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"], args: [{ exports: [CdkObserveContent], declarations: [CdkObserveContent], providers: [MutationObserverFactory] }] }], null, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Generated bundle index. Do not edit. */ //# sourceMappingURL=observers.js.map /***/ }), /***/ "GaUG": /*!**************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/Util/Mutex.js ***! \**************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /*! * The MIT License (MIT) * * Copyright (c) 2016 Christian Speckner * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var Mutex = /** @class */ (function () { function Mutex() { this._queue = []; this._pending = false; } Mutex.prototype.isLocked = function () { return this._pending; }; Mutex.prototype.acquire = function () { var _this = this; var ticket = new Promise(function (resolve) { return _this._queue.push(resolve); }); if (!this._pending) { this._dispatchNext(); } return ticket; }; Mutex.prototype.runExclusive = function (callback) { return this.acquire().then(function (release) { var result; try { result = callback(); } catch (e) { release(); throw e; } return Promise.resolve(result).then(function (x) { return (release(), x); }, function (e) { release(); throw e; }); }); }; Mutex.prototype._dispatchNext = function () { if (this._queue.length > 0) { this._pending = true; this._queue.shift()(this._dispatchNext.bind(this)); } else { this._pending = false; } }; return Mutex; }()); /* harmony default export */ __webpack_exports__["default"] = (Mutex); //# sourceMappingURL=Mutex.js.map /***/ }), /***/ "GaV3": /*!**************************************************************************!*\ !*** ./node_modules/amazon-cognito-identity-js/es/CognitoAccessToken.js ***! \**************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CognitoAccessToken; }); /* harmony import */ var _CognitoJwtToken__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CognitoJwtToken */ "UKow"); function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } /* * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ /** @class */ var CognitoAccessToken = /*#__PURE__*/function (_CognitoJwtToken) { _inheritsLoose(CognitoAccessToken, _CognitoJwtToken); /** * Constructs a new CognitoAccessToken object * @param {string=} AccessToken The JWT access token. */ function CognitoAccessToken(_temp) { var _ref = _temp === void 0 ? {} : _temp, AccessToken = _ref.AccessToken; return _CognitoJwtToken.call(this, AccessToken || '') || this; } return CognitoAccessToken; }(_CognitoJwtToken__WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }), /***/ "Gd6z": /*!************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventsCommand.js ***! \************************************************************************************/ /*! exports provided: PutEventsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventsCommand", function() { return PutEventsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutEventsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutEventsCommand, _super); // Start section: command_properties // End section: command_properties function PutEventsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutEventsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutEventsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutEventsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutEventsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PutEventsCommand"])(input, context); }; PutEventsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PutEventsCommand"])(output, context); }; return PutEventsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=PutEventsCommand.js.map /***/ }), /***/ "GdT8": /*!**********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/LookupDeveloperIdentityCommand.js ***! \**********************************************************************************************************/ /*! exports provided: LookupDeveloperIdentityCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LookupDeveloperIdentityCommand", function() { return LookupDeveloperIdentityCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var LookupDeveloperIdentityCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LookupDeveloperIdentityCommand, _super); // Start section: command_properties // End section: command_properties function LookupDeveloperIdentityCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } LookupDeveloperIdentityCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__["getAwsAuthPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["LookupDeveloperIdentityInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["LookupDeveloperIdentityResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; LookupDeveloperIdentityCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1LookupDeveloperIdentityCommand"])(input, context); }; LookupDeveloperIdentityCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1LookupDeveloperIdentityCommand"])(output, context); }; return LookupDeveloperIdentityCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=LookupDeveloperIdentityCommand.js.map /***/ }), /***/ "Gdy6": /*!*************************************************************!*\ !*** ./node_modules/@aws-amplify/api-rest/lib-esm/index.js ***! \*************************************************************/ /*! exports provided: RestAPI, RestAPIClass, RestClient, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _RestAPI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RestAPI */ "byF2"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RestAPI", function() { return _RestAPI__WEBPACK_IMPORTED_MODULE_0__["RestAPI"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RestAPIClass", function() { return _RestAPI__WEBPACK_IMPORTED_MODULE_0__["RestAPIClass"]; }); /* harmony import */ var _RestClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RestClient */ "A40W"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RestClient", function() { return _RestClient__WEBPACK_IMPORTED_MODULE_1__["RestClient"]; }); /* * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ /* harmony default export */ __webpack_exports__["default"] = (_RestAPI__WEBPACK_IMPORTED_MODULE_0__["RestAPI"]); //# sourceMappingURL=index.js.map /***/ }), /***/ "GegD": /*!************************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/GetCredentialsForIdentityCommand.js ***! \************************************************************************************************************/ /*! exports provided: GetCredentialsForIdentityCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCredentialsForIdentityCommand", function() { return GetCredentialsForIdentityCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetCredentialsForIdentityCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCredentialsForIdentityCommand, _super); // Start section: command_properties // End section: command_properties function GetCredentialsForIdentityCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetCredentialsForIdentityCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCredentialsForIdentityInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCredentialsForIdentityResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetCredentialsForIdentityCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetCredentialsForIdentityCommand"])(input, context); }; GetCredentialsForIdentityCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetCredentialsForIdentityCommand"])(output, context); }; return GetCredentialsForIdentityCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetCredentialsForIdentityCommand.js.map /***/ }), /***/ "GhKt": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/DescribeProjectsCommand.js ***! \**********************************************************************************************/ /*! exports provided: DescribeProjectsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeProjectsCommand", function() { return DescribeProjectsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DescribeProjectsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeProjectsCommand, _super); // Start section: command_properties // End section: command_properties function DescribeProjectsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DescribeProjectsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeProjectsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeProjectsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DescribeProjectsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeProjectsCommand"])(input, context); }; DescribeProjectsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeProjectsCommand"])(output, context); }; return DescribeProjectsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DescribeProjectsCommand.js.map /***/ }), /***/ "GhSN": /*!******************************************************************************!*\ !*** ./node_modules/@aws-amplify/analytics/lib-esm/trackers/EventTracker.js ***! \******************************************************************************/ /*! exports provided: EventTracker, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventTracker", function() { return EventTracker; }); /* harmony import */ var _vendor_dom_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../vendor/dom-utils */ "wA8T"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('EventTracker'); var defaultOpts = { enable: false, events: ['click'], selectorPrefix: 'data-amplify-analytics-', provider: 'AWSPinpoint', }; var EventTracker = /** @class */ (function () { function EventTracker(tracker, opts) { if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["JS"].browserOrNode().isBrowser || !window.addEventListener) { logger.debug('not in the supported web environment'); return; } this._config = Object.assign({}, defaultOpts, opts); this._tracker = tracker; this._delegates = {}; this._trackFunc = this._trackFunc.bind(this); logger.debug('initialize pageview tracker with opts', this._config); this.configure(this._config); } EventTracker.prototype.configure = function (opts) { var _this = this; Object.assign(this._config, opts); if (!this._config.enable) { Object.keys(this._delegates).forEach(function (key) { if (typeof _this._delegates[key].destroy === 'function') _this._delegates[key].destroy(); }); this._delegates = {}; } else if (this._config.enable && Object.keys(this._delegates).length === 0) { var selector_1 = '[' + this._config.selectorPrefix + 'on]'; this._config.events.forEach(function (evt) { _this._delegates[evt] = Object(_vendor_dom_utils__WEBPACK_IMPORTED_MODULE_0__["delegate"])(document, evt, selector_1, _this._trackFunc, { composed: true, useCapture: true }); }); } return this._config; }; EventTracker.prototype._trackFunc = function (event, element) { return __awaiter(this, void 0, void 0, function () { var customAttrs, events, eventName, attrs, defaultAttrs, _a, attributes; return __generator(this, function (_b) { switch (_b.label) { case 0: customAttrs = {}; events = element .getAttribute(this._config.selectorPrefix + 'on') .split(/\s*,\s*/); eventName = element.getAttribute(this._config.selectorPrefix + 'name'); attrs = element.getAttribute(this._config.selectorPrefix + 'attrs'); if (attrs) { attrs.split(/\s*,\s*/).forEach(function (attr) { var tmp = attr.trim().split(/\s*:\s*/); customAttrs[tmp[0]] = tmp[1]; }); } if (!(typeof this._config.attributes === 'function')) return [3 /*break*/, 2]; return [4 /*yield*/, this._config.attributes()]; case 1: _a = _b.sent(); return [3 /*break*/, 3]; case 2: _a = this._config.attributes; _b.label = 3; case 3: defaultAttrs = _a; attributes = Object.assign({ type: event.type, target: event.target.localName + " with id " + event.target.id, }, defaultAttrs, customAttrs); logger.debug('events needed to be recorded', events); logger.debug('attributes needed to be attached', customAttrs); if (events.indexOf(event.type) < 0) { logger.debug("event " + event.type + " is not selected to be recorded"); return [2 /*return*/]; } this._tracker({ name: eventName || 'event', attributes: attributes, }, this._config.provider).catch(function (e) { logger.debug("Failed to record the " + event.type + " event', " + e); }); return [2 /*return*/]; } }); }); }; return EventTracker; }()); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (EventTracker); //# sourceMappingURL=EventTracker.js.map /***/ }), /***/ "Gi4w": /*!****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/every.js ***! \****************************************************************/ /*! exports provided: every */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "every", function() { return every; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); function every(predicate, thisArg) { return (source) => source.lift(new EveryOperator(predicate, thisArg, source)); } class EveryOperator { constructor(predicate, thisArg, source) { this.predicate = predicate; this.thisArg = thisArg; this.source = source; } call(observer, source) { return source.subscribe(new EverySubscriber(observer, this.predicate, this.thisArg, this.source)); } } class EverySubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, predicate, thisArg, source) { super(destination); this.predicate = predicate; this.thisArg = thisArg; this.source = source; this.index = 0; this.thisArg = thisArg || this; } notifyComplete(everyValueMatch) { this.destination.next(everyValueMatch); this.destination.complete(); } _next(value) { let result = false; try { result = this.predicate.call(this.thisArg, value, this.index++, this.source); } catch (err) { this.destination.error(err); return; } if (!result) { this.notifyComplete(false); } } _complete() { this.notifyComplete(true); } } //# sourceMappingURL=every.js.map /***/ }), /***/ "GjHo": /*!**************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/zip.js ***! \**************************************************************/ /*! exports provided: zip */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return zip; }); /* harmony import */ var _observable_zip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/zip */ "1uah"); function zip(...observables) { return function zipOperatorFunction(source) { return source.lift.call(Object(_observable_zip__WEBPACK_IMPORTED_MODULE_0__["zip"])(source, ...observables)); }; } //# sourceMappingURL=zip.js.map /***/ }), /***/ "Gju0": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipChannelCommand.js ***! \************************************************************************************************/ /*! exports provided: DeleteApnsVoipChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelCommand", function() { return DeleteApnsVoipChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteApnsVoipChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteApnsVoipChannelCommand, _super); // Start section: command_properties // End section: command_properties function DeleteApnsVoipChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteApnsVoipChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsVoipChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsVoipChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteApnsVoipChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteApnsVoipChannelCommand"])(input, context); }; DeleteApnsVoipChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteApnsVoipChannelCommand"])(output, context); }; return DeleteApnsVoipChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteApnsVoipChannelCommand.js.map /***/ }), /***/ "Gl26": /*!***************************************************************!*\ !*** ./node_modules/@aws-amplify/auth/lib-esm/types/index.js ***! \***************************************************************/ /*! exports provided: CognitoHostedUIIdentityProvider, isFederatedSignInOptions, isFederatedSignInOptionsCustom, hasCustomState, isCognitoHostedOpts, AuthErrorTypes, isUsernamePasswordOpts */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Auth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Auth */ "m0iZ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CognitoHostedUIIdentityProvider", function() { return _Auth__WEBPACK_IMPORTED_MODULE_0__["CognitoHostedUIIdentityProvider"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isFederatedSignInOptions", function() { return _Auth__WEBPACK_IMPORTED_MODULE_0__["isFederatedSignInOptions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isFederatedSignInOptionsCustom", function() { return _Auth__WEBPACK_IMPORTED_MODULE_0__["isFederatedSignInOptionsCustom"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hasCustomState", function() { return _Auth__WEBPACK_IMPORTED_MODULE_0__["hasCustomState"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isCognitoHostedOpts", function() { return _Auth__WEBPACK_IMPORTED_MODULE_0__["isCognitoHostedOpts"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthErrorTypes", function() { return _Auth__WEBPACK_IMPORTED_MODULE_0__["AuthErrorTypes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isUsernamePasswordOpts", function() { return _Auth__WEBPACK_IMPORTED_MODULE_0__["isUsernamePasswordOpts"]; }); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ //# sourceMappingURL=index.js.map /***/ }), /***/ "GnFd": /*!***************************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-retry/dist/es/defaultStrategy.js ***! \***************************************************************************/ /*! exports provided: DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, StandardRetryStrategy */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_MAX_ATTEMPTS", function() { return DEFAULT_MAX_ATTEMPTS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_RETRY_MODE", function() { return DEFAULT_RETRY_MODE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StandardRetryStrategy", function() { return StandardRetryStrategy; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "Enk7"); /* harmony import */ var _aws_sdk_service_error_classification__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/service-error-classification */ "I56q"); /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! uuid */ "EcEN"); /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constants */ "u/uE"); /* harmony import */ var _defaultRetryQuota__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./defaultRetryQuota */ "SnyI"); /* harmony import */ var _delayDecider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./delayDecider */ "RmbW"); /* harmony import */ var _retryDecider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./retryDecider */ "AgSZ"); /** * The default value for how many HTTP requests an SDK should make for a * single SDK operation invocation before giving up */ var DEFAULT_MAX_ATTEMPTS = 3; /** * The default retry algorithm to use. */ var DEFAULT_RETRY_MODE = "standard"; var StandardRetryStrategy = /** @class */ (function () { function StandardRetryStrategy(maxAttemptsProvider, options) { var _a, _b, _c; this.maxAttemptsProvider = maxAttemptsProvider; this.retryDecider = (_a = options === null || options === void 0 ? void 0 : options.retryDecider) !== null && _a !== void 0 ? _a : _retryDecider__WEBPACK_IMPORTED_MODULE_7__["defaultRetryDecider"]; this.delayDecider = (_b = options === null || options === void 0 ? void 0 : options.delayDecider) !== null && _b !== void 0 ? _b : _delayDecider__WEBPACK_IMPORTED_MODULE_6__["defaultDelayDecider"]; this.retryQuota = (_c = options === null || options === void 0 ? void 0 : options.retryQuota) !== null && _c !== void 0 ? _c : Object(_defaultRetryQuota__WEBPACK_IMPORTED_MODULE_5__["getDefaultRetryQuota"])(_constants__WEBPACK_IMPORTED_MODULE_4__["INITIAL_RETRY_TOKENS"]); } StandardRetryStrategy.prototype.shouldRetry = function (error, attempts, maxAttempts) { return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error); }; StandardRetryStrategy.prototype.getMaxAttempts = function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var maxAttempts, error_1; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: _a.trys.push([0, 2, , 3]); return [4 /*yield*/, this.maxAttemptsProvider()]; case 1: maxAttempts = _a.sent(); return [3 /*break*/, 3]; case 2: error_1 = _a.sent(); maxAttempts = DEFAULT_MAX_ATTEMPTS; return [3 /*break*/, 3]; case 3: return [2 /*return*/, maxAttempts]; } }); }); }; StandardRetryStrategy.prototype.retry = function (next, args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var retryTokenAmount, attempts, totalDelay, maxAttempts, request, _loop_1, this_1, state_1; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: attempts = 0; totalDelay = 0; return [4 /*yield*/, this.getMaxAttempts()]; case 1: maxAttempts = _a.sent(); request = args.request; if (_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(request)) { request.headers["amz-sdk-invocation-id"] = Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v4"])(); } _loop_1 = function () { var _a, response, output, err_1, delay_1; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: _b.trys.push([0, 2, , 5]); if (_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(request)) { request.headers["amz-sdk-request"] = "attempt=" + (attempts + 1) + "; max=" + maxAttempts; } return [4 /*yield*/, next(args)]; case 1: _a = _b.sent(), response = _a.response, output = _a.output; this_1.retryQuota.releaseRetryTokens(retryTokenAmount); output.$metadata.attempts = attempts + 1; output.$metadata.totalRetryDelay = totalDelay; return [2 /*return*/, { value: { response: response, output: output } }]; case 2: err_1 = _b.sent(); attempts++; if (!this_1.shouldRetry(err_1, attempts, maxAttempts)) return [3 /*break*/, 4]; retryTokenAmount = this_1.retryQuota.retrieveRetryTokens(err_1); delay_1 = this_1.delayDecider(Object(_aws_sdk_service_error_classification__WEBPACK_IMPORTED_MODULE_2__["isThrottlingError"])(err_1) ? _constants__WEBPACK_IMPORTED_MODULE_4__["THROTTLING_RETRY_DELAY_BASE"] : _constants__WEBPACK_IMPORTED_MODULE_4__["DEFAULT_RETRY_DELAY_BASE"], attempts); totalDelay += delay_1; return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, delay_1); })]; case 3: _b.sent(); return [2 /*return*/, "continue"]; case 4: if (!err_1.$metadata) { err_1.$metadata = {}; } err_1.$metadata.attempts = attempts; err_1.$metadata.totalRetryDelay = totalDelay; throw err_1; case 5: return [2 /*return*/]; } }); }; this_1 = this; _a.label = 2; case 2: if (false) {} return [5 /*yield**/, _loop_1()]; case 3: state_1 = _a.sent(); if (typeof state_1 === "object") return [2 /*return*/, state_1.value]; return [3 /*break*/, 2]; case 4: return [2 /*return*/]; } }); }); }; return StandardRetryStrategy; }()); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdFN0cmF0ZWd5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2RlZmF1bHRTdHJhdGVneS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3JELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHVDQUF1QyxDQUFDO0FBRzFFLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFFMUIsT0FBTyxFQUFFLHdCQUF3QixFQUFFLG9CQUFvQixFQUFFLDJCQUEyQixFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQzFHLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQzNELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRXJEOzs7R0FHRztBQUNILE1BQU0sQ0FBQyxJQUFNLG9CQUFvQixHQUFHLENBQUMsQ0FBQztBQUV0Qzs7R0FFRztBQUNILE1BQU0sQ0FBQyxJQUFNLGtCQUFrQixHQUFHLFVBQVUsQ0FBQztBQW9EN0M7SUFLRSwrQkFBNkIsbUJBQXFDLEVBQUUsT0FBc0M7O1FBQTdFLHdCQUFtQixHQUFuQixtQkFBbUIsQ0FBa0I7UUFDaEUsSUFBSSxDQUFDLFlBQVksU0FBRyxPQUFPLGFBQVAsT0FBTyx1QkFBUCxPQUFPLENBQUUsWUFBWSxtQ0FBSSxtQkFBbUIsQ0FBQztRQUNqRSxJQUFJLENBQUMsWUFBWSxTQUFHLE9BQU8sYUFBUCxPQUFPLHVCQUFQLE9BQU8sQ0FBRSxZQUFZLG1DQUFJLG1CQUFtQixDQUFDO1FBQ2pFLElBQUksQ0FBQyxVQUFVLFNBQUcsT0FBTyxhQUFQLE9BQU8sdUJBQVAsT0FBTyxDQUFFLFVBQVUsbUNBQUksb0JBQW9CLENBQUMsb0JBQW9CLENBQUMsQ0FBQztJQUN0RixDQUFDO0lBRU8sMkNBQVcsR0FBbkIsVUFBb0IsS0FBZSxFQUFFLFFBQWdCLEVBQUUsV0FBbUI7UUFDeEUsT0FBTyxRQUFRLEdBQUcsV0FBVyxJQUFJLElBQUksQ0FBQyxZQUFZLENBQUMsS0FBSyxDQUFDLElBQUksSUFBSSxDQUFDLFVBQVUsQ0FBQyxjQUFjLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDckcsQ0FBQztJQUVhLDhDQUFjLEdBQTVCOzs7Ozs7O3dCQUdrQixxQkFBTSxJQUFJLENBQUMsbUJBQW1CLEVBQUUsRUFBQTs7d0JBQTlDLFdBQVcsR0FBRyxTQUFnQyxDQUFDOzs7O3dCQUUvQyxXQUFXLEdBQUcsb0JBQW9CLENBQUM7OzRCQUVyQyxzQkFBTyxXQUFXLEVBQUM7Ozs7S0FDcEI7SUFFSyxxQ0FBSyxHQUFYLFVBQ0UsSUFBbUMsRUFDbkMsSUFBcUM7Ozs7Ozt3QkFHakMsUUFBUSxHQUFHLENBQUMsQ0FBQzt3QkFDYixVQUFVLEdBQUcsQ0FBQyxDQUFDO3dCQUVDLHFCQUFNLElBQUksQ0FBQyxjQUFjLEVBQUUsRUFBQTs7d0JBQXpDLFdBQVcsR0FBRyxTQUEyQjt3QkFFdkMsT0FBTyxHQUFLLElBQUksUUFBVCxDQUFVO3dCQUN6QixJQUFJLFdBQVcsQ0FBQyxVQUFVLENBQUMsT0FBTyxDQUFDLEVBQUU7NEJBQ25DLE9BQU8sQ0FBQyxPQUFPLENBQUMsdUJBQXVCLENBQUMsR0FBRyxFQUFFLEVBQUUsQ0FBQzt5QkFDakQ7Ozs7Ozs7d0NBSUcsSUFBSSxXQUFXLENBQUMsVUFBVSxDQUFDLE9BQU8sQ0FBQyxFQUFFOzRDQUNuQyxPQUFPLENBQUMsT0FBTyxDQUFDLGlCQUFpQixDQUFDLEdBQUcsY0FBVyxRQUFRLEdBQUcsQ0FBQyxlQUFTLFdBQWEsQ0FBQzt5Q0FDcEY7d0NBQzRCLHFCQUFNLElBQUksQ0FBQyxJQUFJLENBQUMsRUFBQTs7d0NBQXZDLEtBQXVCLFNBQWdCLEVBQXJDLFFBQVEsY0FBQSxFQUFFLE1BQU0sWUFBQTt3Q0FFeEIsT0FBSyxVQUFVLENBQUMsa0JBQWtCLENBQUMsZ0JBQWdCLENBQUMsQ0FBQzt3Q0FDckQsTUFBTSxDQUFDLFNBQVMsQ0FBQyxRQUFRLEdBQUcsUUFBUSxHQUFHLENBQUMsQ0FBQzt3Q0FDekMsTUFBTSxDQUFDLFNBQVMsQ0FBQyxlQUFlLEdBQUcsVUFBVSxDQUFDO3VFQUV2QyxFQUFFLFFBQVEsVUFBQSxFQUFFLE1BQU0sUUFBQSxFQUFFOzs7d0NBRTNCLFFBQVEsRUFBRSxDQUFDOzZDQUNQLE9BQUssV0FBVyxDQUFDLEtBQWUsRUFBRSxRQUFRLEVBQUUsV0FBVyxDQUFDLEVBQXhELHdCQUF3RDt3Q0FDMUQsZ0JBQWdCLEdBQUcsT0FBSyxVQUFVLENBQUMsbUJBQW1CLENBQUMsS0FBRyxDQUFDLENBQUM7d0NBQ3RELFVBQVEsT0FBSyxZQUFZLENBQzdCLGlCQUFpQixDQUFDLEtBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQywyQkFBMkIsQ0FBQyxDQUFDLENBQUMsd0JBQXdCLEVBQy9FLFFBQVEsQ0FDVCxDQUFDO3dDQUNGLFVBQVUsSUFBSSxPQUFLLENBQUM7d0NBRXBCLHFCQUFNLElBQUksT0FBTyxDQUFDLFVBQUMsT0FBTyxJQUFLLE9BQUEsVUFBVSxDQUFDLE9BQU8sRUFBRSxPQUFLLENBQUMsRUFBMUIsQ0FBMEIsQ0FBQyxFQUFBOzt3Q0FBMUQsU0FBMEQsQ0FBQzs7O3dDQUk3RCxJQUFJLENBQUMsS0FBRyxDQUFDLFNBQVMsRUFBRTs0Q0FDbEIsS0FBRyxDQUFDLFNBQVMsR0FBRyxFQUFFLENBQUM7eUNBQ3BCO3dDQUVELEtBQUcsQ0FBQyxTQUFTLENBQUMsUUFBUSxHQUFHLFFBQVEsQ0FBQzt3Q0FDbEMsS0FBRyxDQUFDLFNBQVMsQ0FBQyxlQUFlLEdBQUcsVUFBVSxDQUFDO3dDQUMzQyxNQUFNLEtBQUcsQ0FBQzs7Ozs7Ozs7NkJBaENQLElBQUk7Ozs7Ozs7Ozs7O0tBbUNaO0lBQ0gsNEJBQUM7QUFBRCxDQUFDLEFBNUVELElBNEVDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSHR0cFJlcXVlc3QgfSBmcm9tIFwiQGF3cy1zZGsvcHJvdG9jb2wtaHR0cFwiO1xuaW1wb3J0IHsgaXNUaHJvdHRsaW5nRXJyb3IgfSBmcm9tIFwiQGF3cy1zZGsvc2VydmljZS1lcnJvci1jbGFzc2lmaWNhdGlvblwiO1xuaW1wb3J0IHsgU2RrRXJyb3IgfSBmcm9tIFwiQGF3cy1zZGsvc21pdGh5LWNsaWVudFwiO1xuaW1wb3J0IHsgRmluYWxpemVIYW5kbGVyLCBGaW5hbGl6ZUhhbmRsZXJBcmd1bWVudHMsIE1ldGFkYXRhQmVhcmVyLCBQcm92aWRlciwgUmV0cnlTdHJhdGVneSB9IGZyb20gXCJAYXdzLXNkay90eXBlc1wiO1xuaW1wb3J0IHsgdjQgfSBmcm9tIFwidXVpZFwiO1xuXG5pbXBvcnQgeyBERUZBVUxUX1JFVFJZX0RFTEFZX0JBU0UsIElOSVRJQUxfUkVUUllfVE9LRU5TLCBUSFJPVFRMSU5HX1JFVFJZX0RFTEFZX0JBU0UgfSBmcm9tIFwiLi9jb25zdGFudHNcIjtcbmltcG9ydCB7IGdldERlZmF1bHRSZXRyeVF1b3RhIH0gZnJvbSBcIi4vZGVmYXVsdFJldHJ5UXVvdGFcIjtcbmltcG9ydCB7IGRlZmF1bHREZWxheURlY2lkZXIgfSBmcm9tIFwiLi9kZWxheURlY2lkZXJcIjtcbmltcG9ydCB7IGRlZmF1bHRSZXRyeURlY2lkZXIgfSBmcm9tIFwiLi9yZXRyeURlY2lkZXJcIjtcblxuLyoqXG4gKiBUaGUgZGVmYXVsdCB2YWx1ZSBmb3IgaG93IG1hbnkgSFRUUCByZXF1ZXN0cyBhbiBTREsgc2hvdWxkIG1ha2UgZm9yIGFcbiAqIHNpbmdsZSBTREsgb3BlcmF0aW9uIGludm9jYXRpb24gYmVmb3JlIGdpdmluZyB1cFxuICovXG5leHBvcnQgY29uc3QgREVGQVVMVF9NQVhfQVRURU1QVFMgPSAzO1xuXG4vKipcbiAqIFRoZSBkZWZhdWx0IHJldHJ5IGFsZ29yaXRobSB0byB1c2UuXG4gKi9cbmV4cG9ydCBjb25zdCBERUZBVUxUX1JFVFJZX01PREUgPSBcInN0YW5kYXJkXCI7XG5cbi8qKlxuICogRGV0ZXJtaW5lcyB3aGV0aGVyIGFuIGVycm9yIGlzIHJldHJ5YWJsZSBiYXNlZCBvbiB0aGUgbnVtYmVyIG9mIHJldHJpZXNcbiAqIGFscmVhZHkgYXR0ZW1wdGVkLCB0aGUgSFRUUCBzdGF0dXMgY29kZSwgYW5kIHRoZSBlcnJvciByZWNlaXZlZCAoaWYgYW55KS5cbiAqXG4gKiBAcGFyYW0gZXJyb3IgICAgICAgICBUaGUgZXJyb3IgZW5jb3VudGVyZWQuXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgUmV0cnlEZWNpZGVyIHtcbiAgKGVycm9yOiBTZGtFcnJvcik6IGJvb2xlYW47XG59XG5cbi8qKlxuICogRGV0ZXJtaW5lcyB0aGUgbnVtYmVyIG9mIG1pbGxpc2Vjb25kcyB0byB3YWl0IGJlZm9yZSByZXRyeWluZyBhbiBhY3Rpb24uXG4gKlxuICogQHBhcmFtIGRlbGF5QmFzZSBUaGUgYmFzZSBkZWxheSAoaW4gbWlsbGlzZWNvbmRzKS5cbiAqIEBwYXJhbSBhdHRlbXB0cyAgVGhlIG51bWJlciBvZiB0aW1lcyB0aGUgYWN0aW9uIGhhcyBhbHJlYWR5IGJlZW4gdHJpZWQuXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgRGVsYXlEZWNpZGVyIHtcbiAgKGRlbGF5QmFzZTogbnVtYmVyLCBhdHRlbXB0czogbnVtYmVyKTogbnVtYmVyO1xufVxuXG4vKipcbiAqIEludGVyZmFjZSB0aGF0IHNwZWNpZmllcyB0aGUgcmV0cnkgcXVvdGEgYmVoYXZpb3IuXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgUmV0cnlRdW90YSB7XG4gIC8qKlxuICAgKiByZXR1cm5zIHRydWUgaWYgcmV0cnkgdG9rZW5zIGFyZSBhdmFpbGFibGUgZnJvbSB0aGUgcmV0cnkgcXVvdGEgYnVja2V0LlxuICAgKi9cbiAgaGFzUmV0cnlUb2tlbnM6IChlcnJvcjogU2RrRXJyb3IpID0+IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIHJldHVybnMgdG9rZW4gYW1vdW50IGZyb20gdGhlIHJldHJ5IHF1b3RhIGJ1Y2tldC5cbiAgICogdGhyb3dzIGVycm9yIGlzIHJldHJ5IHRva2VucyBhcmUgbm90IGF2YWlsYWJsZS5cbiAgICovXG4gIHJldHJpZXZlUmV0cnlUb2tlbnM6IChlcnJvcjogU2RrRXJyb3IpID0+IG51bWJlcjtcblxuICAvKipcbiAgICogcmVsZWFzZXMgdG9rZW5zIGJhY2sgdG8gdGhlIHJldHJ5IHF1b3RhLlxuICAgKi9cbiAgcmVsZWFzZVJldHJ5VG9rZW5zOiAocmVsZWFzZUNhcGFjaXR5QW1vdW50PzogbnVtYmVyKSA9PiB2b2lkO1xufVxuXG4vKipcbiAqIFN0cmF0ZWd5IG9wdGlvbnMgdG8gYmUgcGFzc2VkIHRvIFN0YW5kYXJkUmV0cnlTdHJhdGVneVxuICovXG5leHBvcnQgaW50ZXJmYWNlIFN0YW5kYXJkUmV0cnlTdHJhdGVneU9wdGlvbnMge1xuICByZXRyeURlY2lkZXI/OiBSZXRyeURlY2lkZXI7XG4gIGRlbGF5RGVjaWRlcj86IERlbGF5RGVjaWRlcjtcbiAgcmV0cnlRdW90YT86IFJldHJ5UXVvdGE7XG59XG5cbmV4cG9ydCBjbGFzcyBTdGFuZGFyZFJldHJ5U3RyYXRlZ3kgaW1wbGVtZW50cyBSZXRyeVN0cmF0ZWd5IHtcbiAgcHJpdmF0ZSByZXRyeURlY2lkZXI6IFJldHJ5RGVjaWRlcjtcbiAgcHJpdmF0ZSBkZWxheURlY2lkZXI6IERlbGF5RGVjaWRlcjtcbiAgcHJpdmF0ZSByZXRyeVF1b3RhOiBSZXRyeVF1b3RhO1xuXG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgcmVhZG9ubHkgbWF4QXR0ZW1wdHNQcm92aWRlcjogUHJvdmlkZXI8bnVtYmVyPiwgb3B0aW9ucz86IFN0YW5kYXJkUmV0cnlTdHJhdGVneU9wdGlvbnMpIHtcbiAgICB0aGlzLnJldHJ5RGVjaWRlciA9IG9wdGlvbnM/LnJldHJ5RGVjaWRlciA/PyBkZWZhdWx0UmV0cnlEZWNpZGVyO1xuICAgIHRoaXMuZGVsYXlEZWNpZGVyID0gb3B0aW9ucz8uZGVsYXlEZWNpZGVyID8/IGRlZmF1bHREZWxheURlY2lkZXI7XG4gICAgdGhpcy5yZXRyeVF1b3RhID0gb3B0aW9ucz8ucmV0cnlRdW90YSA/PyBnZXREZWZhdWx0UmV0cnlRdW90YShJTklUSUFMX1JFVFJZX1RPS0VOUyk7XG4gIH1cblxuICBwcml2YXRlIHNob3VsZFJldHJ5KGVycm9yOiBTZGtFcnJvciwgYXR0ZW1wdHM6IG51bWJlciwgbWF4QXR0ZW1wdHM6IG51bWJlcikge1xuICAgIHJldHVybiBhdHRlbXB0cyA8IG1heEF0dGVtcHRzICYmIHRoaXMucmV0cnlEZWNpZGVyKGVycm9yKSAmJiB0aGlzLnJldHJ5UXVvdGEuaGFzUmV0cnlUb2tlbnMoZXJyb3IpO1xuICB9XG5cbiAgcHJpdmF0ZSBhc3luYyBnZXRNYXhBdHRlbXB0cygpIHtcbiAgICBsZXQgbWF4QXR0ZW1wdHM6IG51bWJlcjtcbiAgICB0cnkge1xuICAgICAgbWF4QXR0ZW1wdHMgPSBhd2FpdCB0aGlzLm1heEF0dGVtcHRzUHJvdmlkZXIoKTtcbiAgICB9IGNhdGNoIChlcnJvcikge1xuICAgICAgbWF4QXR0ZW1wdHMgPSBERUZBVUxUX01BWF9BVFRFTVBUUztcbiAgICB9XG4gICAgcmV0dXJuIG1heEF0dGVtcHRzO1xuICB9XG5cbiAgYXN5bmMgcmV0cnk8SW5wdXQgZXh0ZW5kcyBvYmplY3QsIE91cHV0IGV4dGVuZHMgTWV0YWRhdGFCZWFyZXI+KFxuICAgIG5leHQ6IEZpbmFsaXplSGFuZGxlcjxJbnB1dCwgT3VwdXQ+LFxuICAgIGFyZ3M6IEZpbmFsaXplSGFuZGxlckFyZ3VtZW50czxJbnB1dD5cbiAgKSB7XG4gICAgbGV0IHJldHJ5VG9rZW5BbW91bnQ7XG4gICAgbGV0IGF0dGVtcHRzID0gMDtcbiAgICBsZXQgdG90YWxEZWxheSA9IDA7XG5cbiAgICBjb25zdCBtYXhBdHRlbXB0cyA9IGF3YWl0IHRoaXMuZ2V0TWF4QXR0ZW1wdHMoKTtcblxuICAgIGNvbnN0IHsgcmVxdWVzdCB9ID0gYXJncztcbiAgICBpZiAoSHR0cFJlcXVlc3QuaXNJbnN0YW5jZShyZXF1ZXN0KSkge1xuICAgICAgcmVxdWVzdC5oZWFkZXJzW1wiYW16LXNkay1pbnZvY2F0aW9uLWlkXCJdID0gdjQoKTtcbiAgICB9XG5cbiAgICB3aGlsZSAodHJ1ZSkge1xuICAgICAgdHJ5IHtcbiAgICAgICAgaWYgKEh0dHBSZXF1ZXN0LmlzSW5zdGFuY2UocmVxdWVzdCkpIHtcbiAgICAgICAgICByZXF1ZXN0LmhlYWRlcnNbXCJhbXotc2RrLXJlcXVlc3RcIl0gPSBgYXR0ZW1wdD0ke2F0dGVtcHRzICsgMX07IG1heD0ke21heEF0dGVtcHRzfWA7XG4gICAgICAgIH1cbiAgICAgICAgY29uc3QgeyByZXNwb25zZSwgb3V0cHV0IH0gPSBhd2FpdCBuZXh0KGFyZ3MpO1xuXG4gICAgICAgIHRoaXMucmV0cnlRdW90YS5yZWxlYXNlUmV0cnlUb2tlbnMocmV0cnlUb2tlbkFtb3VudCk7XG4gICAgICAgIG91dHB1dC4kbWV0YWRhdGEuYXR0ZW1wdHMgPSBhdHRlbXB0cyArIDE7XG4gICAgICAgIG91dHB1dC4kbWV0YWRhdGEudG90YWxSZXRyeURlbGF5ID0gdG90YWxEZWxheTtcblxuICAgICAgICByZXR1cm4geyByZXNwb25zZSwgb3V0cHV0IH07XG4gICAgICB9IGNhdGNoIChlcnIpIHtcbiAgICAgICAgYXR0ZW1wdHMrKztcbiAgICAgICAgaWYgKHRoaXMuc2hvdWxkUmV0cnkoZXJyIGFzIFNka0Vycm9yLCBhdHRlbXB0cywgbWF4QXR0ZW1wdHMpKSB7XG4gICAgICAgICAgcmV0cnlUb2tlbkFtb3VudCA9IHRoaXMucmV0cnlRdW90YS5yZXRyaWV2ZVJldHJ5VG9rZW5zKGVycik7XG4gICAgICAgICAgY29uc3QgZGVsYXkgPSB0aGlzLmRlbGF5RGVjaWRlcihcbiAgICAgICAgICAgIGlzVGhyb3R0bGluZ0Vycm9yKGVycikgPyBUSFJPVFRMSU5HX1JFVFJZX0RFTEFZX0JBU0UgOiBERUZBVUxUX1JFVFJZX0RFTEFZX0JBU0UsXG4gICAgICAgICAgICBhdHRlbXB0c1xuICAgICAgICAgICk7XG4gICAgICAgICAgdG90YWxEZWxheSArPSBkZWxheTtcblxuICAgICAgICAgIGF3YWl0IG5ldyBQcm9taXNlKChyZXNvbHZlKSA9PiBzZXRUaW1lb3V0KHJlc29sdmUsIGRlbGF5KSk7XG4gICAgICAgICAgY29udGludWU7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIWVyci4kbWV0YWRhdGEpIHtcbiAgICAgICAgICBlcnIuJG1ldGFkYXRhID0ge307XG4gICAgICAgIH1cblxuICAgICAgICBlcnIuJG1ldGFkYXRhLmF0dGVtcHRzID0gYXR0ZW1wdHM7XG4gICAgICAgIGVyci4kbWV0YWRhdGEudG90YWxSZXRyeURlbGF5ID0gdG90YWxEZWxheTtcbiAgICAgICAgdGhyb3cgZXJyO1xuICAgICAgfVxuICAgIH1cbiAgfVxufVxuIl19 /***/ }), /***/ "GoBT": /*!***************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/DeleteBucketPolicyCommand.js ***! \***************************************************************************************/ /*! exports provided: DeleteBucketPolicyCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketPolicyCommand", function() { return DeleteBucketPolicyCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteBucketPolicyCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteBucketPolicyCommand, _super); // Start section: command_properties // End section: command_properties function DeleteBucketPolicyCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteBucketPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteBucketPolicyRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteBucketPolicyCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlDeleteBucketPolicyCommand"])(input, context); }; DeleteBucketPolicyCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlDeleteBucketPolicyCommand"])(output, context); }; return DeleteBucketPolicyCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=DeleteBucketPolicyCommand.js.map /***/ }), /***/ "GoyQ": /*!*****************************************!*\ !*** ./node_modules/lodash/isObject.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } module.exports = isObject; /***/ }), /***/ "Gqsl": /*!*********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/repeatWhen.js ***! \*********************************************************************/ /*! exports provided: repeatWhen */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "repeatWhen", function() { return repeatWhen; }); /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subject */ "XNiG"); /* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../innerSubscribe */ "zx2A"); function repeatWhen(notifier) { return (source) => source.lift(new RepeatWhenOperator(notifier)); } class RepeatWhenOperator { constructor(notifier) { this.notifier = notifier; } call(subscriber, source) { return source.subscribe(new RepeatWhenSubscriber(subscriber, this.notifier, source)); } } class RepeatWhenSubscriber extends _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleOuterSubscriber"] { constructor(destination, notifier, source) { super(destination); this.notifier = notifier; this.source = source; this.sourceIsBeingSubscribedTo = true; } notifyNext() { this.sourceIsBeingSubscribedTo = true; this.source.subscribe(this); } notifyComplete() { if (this.sourceIsBeingSubscribedTo === false) { return super.complete(); } } complete() { this.sourceIsBeingSubscribedTo = false; if (!this.isStopped) { if (!this.retries) { this.subscribeToRetries(); } if (!this.retriesSubscription || this.retriesSubscription.closed) { return super.complete(); } this._unsubscribeAndRecycle(); this.notifications.next(undefined); } } _unsubscribe() { const { notifications, retriesSubscription } = this; if (notifications) { notifications.unsubscribe(); this.notifications = undefined; } if (retriesSubscription) { retriesSubscription.unsubscribe(); this.retriesSubscription = undefined; } this.retries = undefined; } _unsubscribeAndRecycle() { const { _unsubscribe } = this; this._unsubscribe = null; super._unsubscribeAndRecycle(); this._unsubscribe = _unsubscribe; return this; } subscribeToRetries() { this.notifications = new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"](); let retries; try { const { notifier } = this; retries = notifier(this.notifications); } catch (e) { return super.complete(); } this.retries = retries; this.retriesSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["innerSubscribe"])(retries, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleInnerSubscriber"](this)); } } //# sourceMappingURL=repeatWhen.js.map /***/ }), /***/ "GuSx": /*!***********************************************************************!*\ !*** ./node_modules/@aws-sdk/eventstream-marshaller/dist/es/index.js ***! \***********************************************************************/ /*! exports provided: EventStreamMarshaller, Int64 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EventStreamMarshaller */ "QDLp"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_0__["EventStreamMarshaller"]; }); /* harmony import */ var _Int64__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Int64 */ "HZ7d"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Int64", function() { return _Int64__WEBPACK_IMPORTED_MODULE_1__["Int64"]; }); /* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Message */ "f/Jk"); /* empty/unused harmony star reexport */ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLFNBQVMsQ0FBQztBQUN4QixjQUFjLFdBQVcsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL0V2ZW50U3RyZWFtTWFyc2hhbGxlclwiO1xuZXhwb3J0ICogZnJvbSBcIi4vSW50NjRcIjtcbmV4cG9ydCAqIGZyb20gXCIuL01lc3NhZ2VcIjtcbiJdfQ== /***/ }), /***/ "Gw1A": /*!**************************************************!*\ !*** ./node_modules/graphql/execution/index.mjs ***! \**************************************************/ /*! exports provided: execute, defaultFieldResolver, responsePathAsArray, getDirectiveValues */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _execute__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./execute */ "yRpE"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "execute", function() { return _execute__WEBPACK_IMPORTED_MODULE_0__["execute"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultFieldResolver", function() { return _execute__WEBPACK_IMPORTED_MODULE_0__["defaultFieldResolver"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "responsePathAsArray", function() { return _execute__WEBPACK_IMPORTED_MODULE_0__["responsePathAsArray"]; }); /* harmony import */ var _values__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./values */ "5XwX"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDirectiveValues", function() { return _values__WEBPACK_IMPORTED_MODULE_1__["getDirectiveValues"]; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /***/ }), /***/ "GyhO": /*!******************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/concat.js ***! \******************************************************************/ /*! exports provided: concat */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concat", function() { return concat; }); /* harmony import */ var _of__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./of */ "LRne"); /* harmony import */ var _operators_concatAll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../operators/concatAll */ "0EUg"); function concat(...observables) { return Object(_operators_concatAll__WEBPACK_IMPORTED_MODULE_1__["concatAll"])()(Object(_of__WEBPACK_IMPORTED_MODULE_0__["of"])(...observables)); } //# sourceMappingURL=concat.js.map /***/ }), /***/ "Gyle": /*!********************************************************!*\ !*** ./node_modules/@aws-amplify/api/lib-esm/index.js ***! \********************************************************/ /*! exports provided: API, APIClass, graphqlOperation, GRAPHQL_AUTH_MODE, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _API__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./API */ "oDCQ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "API", function() { return _API__WEBPACK_IMPORTED_MODULE_0__["API"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APIClass", function() { return _API__WEBPACK_IMPORTED_MODULE_0__["APIClass"]; }); /* harmony import */ var _aws_amplify_api_graphql__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/api-graphql */ "Vh5H"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "graphqlOperation", function() { return _aws_amplify_api_graphql__WEBPACK_IMPORTED_MODULE_1__["graphqlOperation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GRAPHQL_AUTH_MODE", function() { return _aws_amplify_api_graphql__WEBPACK_IMPORTED_MODULE_1__["GRAPHQL_AUTH_MODE"]; }); /* * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ /* * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (_API__WEBPACK_IMPORTED_MODULE_0__["API"]); //# sourceMappingURL=index.js.map /***/ }), /***/ "Gzzt": /*!************************************************************!*\ !*** ./node_modules/aws-amplify/lib-esm/withSSRContext.js ***! \************************************************************/ /*! exports provided: withSSRContext */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withSSRContext", function() { return withSSRContext; }); /* harmony import */ var _aws_amplify_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/api */ "Gyle"); /* harmony import */ var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/auth */ "AO/9"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _aws_amplify_datastore__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-amplify/datastore */ "ETO7"); /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./index */ "AL3R"); var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; // ! We have to use this exact reference, since it gets mutated with Amplify.Auth var requiredModules = [ // API cannot function without Auth _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_1__["Auth"], // Auth cannot function without Credentials _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["Credentials"], ]; // These modules have been tested with SSR var defaultModules = [_aws_amplify_api__WEBPACK_IMPORTED_MODULE_0__["default"], _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_1__["Auth"], _aws_amplify_datastore__WEBPACK_IMPORTED_MODULE_3__["DataStore"]]; function withSSRContext(context) { if (context === void 0) { context = {}; } var _a = context.modules, modules = _a === void 0 ? defaultModules : _a, req = context.req; var previousConfig = _index__WEBPACK_IMPORTED_MODULE_4__["Amplify"].configure(); var amplify = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["AmplifyClass"](); var storage = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["UniversalStorage"]({ req: req }); requiredModules.forEach(function (m) { if (!modules.includes(m)) { // @ts-ignore This expression is not constructable. // Type 'Function' has no construct signatures.ts(2351) amplify.register(new m.constructor()); } }); // Associate new module instances with this amplify modules.forEach(function (m) { amplify.register(new m.constructor()); }); // Configure new Amplify instances with previous configuration amplify.configure(__assign(__assign({}, previousConfig), { storage: storage })); return amplify; } //# sourceMappingURL=withSSRContext.js.map /***/ }), /***/ "H7XF": /*!*****************************************!*\ !*** ./node_modules/base64-js/index.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.byteLength = byteLength exports.toByteArray = toByteArray exports.fromByteArray = fromByteArray var lookup = [] var revLookup = [] var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' for (var i = 0, len = code.length; i < len; ++i) { lookup[i] = code[i] revLookup[code.charCodeAt(i)] = i } // Support decoding URL-safe base64 strings, as Node.js does. // See: https://en.wikipedia.org/wiki/Base64#URL_applications revLookup['-'.charCodeAt(0)] = 62 revLookup['_'.charCodeAt(0)] = 63 function getLens (b64) { var len = b64.length if (len % 4 > 0) { throw new Error('Invalid string. Length must be a multiple of 4') } // Trim off extra bytes after placeholder bytes are found // See: https://github.com/beatgammit/base64-js/issues/42 var validLen = b64.indexOf('=') if (validLen === -1) validLen = len var placeHoldersLen = validLen === len ? 0 : 4 - (validLen % 4) return [validLen, placeHoldersLen] } // base64 is 4/3 + up to two characters of the original data function byteLength (b64) { var lens = getLens(b64) var validLen = lens[0] var placeHoldersLen = lens[1] return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen } function _byteLength (b64, validLen, placeHoldersLen) { return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen } function toByteArray (b64) { var tmp var lens = getLens(b64) var validLen = lens[0] var placeHoldersLen = lens[1] var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)) var curByte = 0 // if there are placeholders, only get up to the last complete 4 chars var len = placeHoldersLen > 0 ? validLen - 4 : validLen var i for (i = 0; i < len; i += 4) { tmp = (revLookup[b64.charCodeAt(i)] << 18) | (revLookup[b64.charCodeAt(i + 1)] << 12) | (revLookup[b64.charCodeAt(i + 2)] << 6) | revLookup[b64.charCodeAt(i + 3)] arr[curByte++] = (tmp >> 16) & 0xFF arr[curByte++] = (tmp >> 8) & 0xFF arr[curByte++] = tmp & 0xFF } if (placeHoldersLen === 2) { tmp = (revLookup[b64.charCodeAt(i)] << 2) | (revLookup[b64.charCodeAt(i + 1)] >> 4) arr[curByte++] = tmp & 0xFF } if (placeHoldersLen === 1) { tmp = (revLookup[b64.charCodeAt(i)] << 10) | (revLookup[b64.charCodeAt(i + 1)] << 4) | (revLookup[b64.charCodeAt(i + 2)] >> 2) arr[curByte++] = (tmp >> 8) & 0xFF arr[curByte++] = tmp & 0xFF } return arr } function tripletToBase64 (num) { return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F] } function encodeChunk (uint8, start, end) { var tmp var output = [] for (var i = start; i < end; i += 3) { tmp = ((uint8[i] << 16) & 0xFF0000) + ((uint8[i + 1] << 8) & 0xFF00) + (uint8[i + 2] & 0xFF) output.push(tripletToBase64(tmp)) } return output.join('') } function fromByteArray (uint8) { var tmp var len = uint8.length var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes var parts = [] var maxChunkLength = 16383 // must be multiple of 3 // go through the array every three bytes, we'll deal with trailing stuff later for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { parts.push(encodeChunk( uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength) )) } // pad the end with zeros, but make sure to not forget the extra bytes if (extraBytes === 1) { tmp = uint8[len - 1] parts.push( lookup[tmp >> 2] + lookup[(tmp << 4) & 0x3F] + '==' ) } else if (extraBytes === 2) { tmp = (uint8[len - 2] << 8) + uint8[len - 1] parts.push( lookup[tmp >> 10] + lookup[(tmp >> 4) & 0x3F] + lookup[(tmp << 2) & 0x3F] + '=' ) } return parts.join('') } /***/ }), /***/ "H7ZN": /*!******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/ListBucketInventoryConfigurationsCommand.js ***! \******************************************************************************************************/ /*! exports provided: ListBucketInventoryConfigurationsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListBucketInventoryConfigurationsCommand", function() { return ListBucketInventoryConfigurationsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListBucketInventoryConfigurationsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListBucketInventoryConfigurationsCommand, _super); // Start section: command_properties // End section: command_properties function ListBucketInventoryConfigurationsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListBucketInventoryConfigurationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListBucketInventoryConfigurationsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListBucketInventoryConfigurationsOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListBucketInventoryConfigurationsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlListBucketInventoryConfigurationsCommand"])(input, context); }; ListBucketInventoryConfigurationsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlListBucketInventoryConfigurationsCommand"])(output, context); }; return ListBucketInventoryConfigurationsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=ListBucketInventoryConfigurationsCommand.js.map /***/ }), /***/ "H8iN": /*!************************************************************************************!*\ !*** ./node_modules/@aws-amplify/ui-components/dist/esm/storage-types-f257c0f2.js ***! \************************************************************************************/ /*! exports provided: A */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return AccessLevel; }); var AccessLevel; (function (AccessLevel) { AccessLevel["Public"] = "public"; AccessLevel["Private"] = "private"; AccessLevel["Protected"] = "protected"; })(AccessLevel || (AccessLevel = {})); /***/ }), /***/ "H8j4": /*!*********************************************!*\ !*** ./node_modules/lodash/_mapCacheSet.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__(/*! ./_getMapData */ "QkVE"); /** * Sets the map `key` to `value`. * * @private * @name set * @memberOf MapCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the map cache instance. */ function mapCacheSet(key, value) { var data = getMapData(this, key), size = data.size; data.set(key, value); this.size += data.size == size ? 0 : 1; return this; } module.exports = mapCacheSet; /***/ }), /***/ "HCBQ": /*!*************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetBucketTaggingCommand.js ***! \*************************************************************************************/ /*! exports provided: GetBucketTaggingCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBucketTaggingCommand", function() { return GetBucketTaggingCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetBucketTaggingCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetBucketTaggingCommand, _super); // Start section: command_properties // End section: command_properties function GetBucketTaggingCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetBucketTaggingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketTaggingRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketTaggingOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetBucketTaggingCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetBucketTaggingCommand"])(input, context); }; GetBucketTaggingCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetBucketTaggingCommand"])(output, context); }; return GetBucketTaggingCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetBucketTaggingCommand.js.map /***/ }), /***/ "HDdC": /*!***********************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/Observable.js ***! \***********************************************************/ /*! exports provided: Observable */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Observable", function() { return Observable; }); /* harmony import */ var _util_canReportError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util/canReportError */ "8Qeq"); /* harmony import */ var _util_toSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util/toSubscriber */ "WyKG"); /* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./symbol/observable */ "kJWO"); /* harmony import */ var _util_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util/pipe */ "mCNh"); /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./config */ "2fFW"); class Observable { constructor(subscribe) { this._isScalar = false; if (subscribe) { this._subscribe = subscribe; } } lift(operator) { const observable = new Observable(); observable.source = this; observable.operator = operator; return observable; } subscribe(observerOrNext, error, complete) { const { operator } = this; const sink = Object(_util_toSubscriber__WEBPACK_IMPORTED_MODULE_1__["toSubscriber"])(observerOrNext, error, complete); if (operator) { sink.add(operator.call(sink, this.source)); } else { sink.add(this.source || (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable) ? this._subscribe(sink) : this._trySubscribe(sink)); } if (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) { if (sink.syncErrorThrowable) { sink.syncErrorThrowable = false; if (sink.syncErrorThrown) { throw sink.syncErrorValue; } } } return sink; } _trySubscribe(sink) { try { return this._subscribe(sink); } catch (err) { if (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) { sink.syncErrorThrown = true; sink.syncErrorValue = err; } if (Object(_util_canReportError__WEBPACK_IMPORTED_MODULE_0__["canReportError"])(sink)) { sink.error(err); } else { console.warn(err); } } } forEach(next, promiseCtor) { promiseCtor = getPromiseCtor(promiseCtor); return new promiseCtor((resolve, reject) => { let subscription; subscription = this.subscribe((value) => { try { next(value); } catch (err) { reject(err); if (subscription) { subscription.unsubscribe(); } } }, reject, resolve); }); } _subscribe(subscriber) { const { source } = this; return source && source.subscribe(subscriber); } [_symbol_observable__WEBPACK_IMPORTED_MODULE_2__["observable"]]() { return this; } pipe(...operations) { if (operations.length === 0) { return this; } return Object(_util_pipe__WEBPACK_IMPORTED_MODULE_3__["pipeFromArray"])(operations)(this); } toPromise(promiseCtor) { promiseCtor = getPromiseCtor(promiseCtor); return new promiseCtor((resolve, reject) => { let value; this.subscribe((x) => value = x, (err) => reject(err), () => resolve(value)); }); } } Observable.create = (subscribe) => { return new Observable(subscribe); }; function getPromiseCtor(promiseCtor) { if (!promiseCtor) { promiseCtor = _config__WEBPACK_IMPORTED_MODULE_4__["config"].Promise || Promise; } if (!promiseCtor) { throw new Error('no Promise impl found'); } return promiseCtor; } //# sourceMappingURL=Observable.js.map /***/ }), /***/ "HDyB": /*!********************************************!*\ !*** ./node_modules/lodash/_equalByTag.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(/*! ./_Symbol */ "nmnc"), Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "JHRd"), eq = __webpack_require__(/*! ./eq */ "ljhN"), equalArrays = __webpack_require__(/*! ./_equalArrays */ "or5M"), mapToArray = __webpack_require__(/*! ./_mapToArray */ "7fqy"), setToArray = __webpack_require__(/*! ./_setToArray */ "rEGp"); /** Used to compose bitmasks for value comparisons. */ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; /** `Object#toString` result references. */ var boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', mapTag = '[object Map]', numberTag = '[object Number]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]'; /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; /** * A specialized version of `baseIsEqualDeep` for comparing objects of * the same `toStringTag`. * * **Note:** This function only supports comparing values with tags of * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. * * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @param {string} tag The `toStringTag` of the objects to compare. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} stack Tracks traversed `object` and `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { switch (tag) { case dataViewTag: if ((object.byteLength != other.byteLength) || (object.byteOffset != other.byteOffset)) { return false; } object = object.buffer; other = other.buffer; case arrayBufferTag: if ((object.byteLength != other.byteLength) || !equalFunc(new Uint8Array(object), new Uint8Array(other))) { return false; } return true; case boolTag: case dateTag: case numberTag: // Coerce booleans to `1` or `0` and dates to milliseconds. // Invalid dates are coerced to `NaN`. return eq(+object, +other); case errorTag: return object.name == other.name && object.message == other.message; case regexpTag: case stringTag: // Coerce regexes to strings and treat strings, primitives and objects, // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring // for more details. return object == (other + ''); case mapTag: var convert = mapToArray; case setTag: var isPartial = bitmask & COMPARE_PARTIAL_FLAG; convert || (convert = setToArray); if (object.size != other.size && !isPartial) { return false; } // Assume cyclic values are equal. var stacked = stack.get(object); if (stacked) { return stacked == other; } bitmask |= COMPARE_UNORDERED_FLAG; // Recursively compare objects (susceptible to call stack limits). stack.set(object, other); var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); stack['delete'](object); return result; case symbolTag: if (symbolValueOf) { return symbolValueOf.call(object) == symbolValueOf.call(other); } } return false; } module.exports = equalByTag; /***/ }), /***/ "HGW4": /*!**********************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/Util/index.js ***! \**********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); __export(__webpack_require__(/*! ./Retry */ "91X0")); var Mutex_1 = __webpack_require__(/*! ./Mutex */ "dWXQ"); exports.Mutex = Mutex_1.default; var Reachability_1 = __webpack_require__(/*! ./Reachability */ "0huj"); exports.Reachability = Reachability_1.default; __export(__webpack_require__(/*! ./DateUtils */ "N+i5")); __export(__webpack_require__(/*! ./StringUtils */ "nrF2")); //# sourceMappingURL=index.js.map /***/ }), /***/ "HHC6": /*!**************************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/StartDominantLanguageDetectionJobCommand.js ***! \**************************************************************************************************************/ /*! exports provided: StartDominantLanguageDetectionJobCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartDominantLanguageDetectionJobCommand", function() { return StartDominantLanguageDetectionJobCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StartDominantLanguageDetectionJobCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartDominantLanguageDetectionJobCommand, _super); // Start section: command_properties // End section: command_properties function StartDominantLanguageDetectionJobCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StartDominantLanguageDetectionJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartDominantLanguageDetectionJobRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartDominantLanguageDetectionJobResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StartDominantLanguageDetectionJobCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartDominantLanguageDetectionJobCommand"])(input, context); }; StartDominantLanguageDetectionJobCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartDominantLanguageDetectionJobCommand"])(output, context); }; return StartDominantLanguageDetectionJobCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StartDominantLanguageDetectionJobCommand.js.map /***/ }), /***/ "HOxn": /*!*****************************************!*\ !*** ./node_modules/lodash/_Promise.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__(/*! ./_getNative */ "Cwc5"), root = __webpack_require__(/*! ./_root */ "Kz5y"); /* Built-in method references that are verified to be native. */ var Promise = getNative(root, 'Promise'); module.exports = Promise; /***/ }), /***/ "HSsa": /*!************************************************!*\ !*** ./node_modules/axios/lib/helpers/bind.js ***! \************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function bind(fn, thisArg) { return function wrap() { var args = new Array(arguments.length); for (var i = 0; i < args.length; i++) { args[i] = arguments[i]; } return fn.apply(thisArg, args); }; }; /***/ }), /***/ "HZ7d": /*!***********************************************************************!*\ !*** ./node_modules/@aws-sdk/eventstream-marshaller/dist/es/Int64.js ***! \***********************************************************************/ /*! exports provided: Int64 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Int64", function() { return Int64; }); /* harmony import */ var _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-sdk/util-hex-encoding */ "7Z+r"); /** * A lossless representation of a signed, 64-bit integer. Instances of this * class may be used in arithmetic expressions as if they were numeric * primitives, but the binary representation will be preserved unchanged as the * `bytes` property of the object. The bytes should be encoded as big-endian, * two's complement integers. */ var Int64 = /** @class */ (function () { function Int64(bytes) { this.bytes = bytes; if (bytes.byteLength !== 8) { throw new Error("Int64 buffers must be exactly 8 bytes"); } } Int64.fromNumber = function (number) { if (number > 9223372036854775807 || number < -9223372036854775808) { throw new Error(number + " is too large (or, if negative, too small) to represent as an Int64"); } var bytes = new Uint8Array(8); for (var i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) { bytes[i] = remaining; } if (number < 0) { negate(bytes); } return new Int64(bytes); }; /** * Called implicitly by infix arithmetic operators. */ Int64.prototype.valueOf = function () { var bytes = this.bytes.slice(0); var negative = bytes[0] & 128; if (negative) { negate(bytes); } return parseInt(Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_0__["toHex"])(bytes), 16) * (negative ? -1 : 1); }; Int64.prototype.toString = function () { return String(this.valueOf()); }; return Int64; }()); function negate(bytes) { for (var i = 0; i < 8; i++) { bytes[i] ^= 0xff; } for (var i = 7; i > -1; i--) { bytes[i]++; if (bytes[i] !== 0) break; } } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSW50NjQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvSW50NjQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBSW5EOzs7Ozs7R0FNRztBQUNIO0lBQ0UsZUFBcUIsS0FBaUI7UUFBakIsVUFBSyxHQUFMLEtBQUssQ0FBWTtRQUNwQyxJQUFJLEtBQUssQ0FBQyxVQUFVLEtBQUssQ0FBQyxFQUFFO1lBQzFCLE1BQU0sSUFBSSxLQUFLLENBQUMsdUNBQXVDLENBQUMsQ0FBQztTQUMxRDtJQUNILENBQUM7SUFFTSxnQkFBVSxHQUFqQixVQUFrQixNQUFjO1FBQzlCLElBQUksTUFBTSxHQUFHLG1CQUFtQixJQUFJLE1BQU0sR0FBRyxDQUFDLG1CQUFtQixFQUFFO1lBQ2pFLE1BQU0sSUFBSSxLQUFLLENBQUksTUFBTSx3RUFBcUUsQ0FBQyxDQUFDO1NBQ2pHO1FBRUQsSUFBTSxLQUFLLEdBQUcsSUFBSSxVQUFVLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDaEMsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsU0FBUyxHQUFHLElBQUksQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQyxFQUFFLENBQUMsR0FBRyxDQUFDLENBQUMsSUFBSSxTQUFTLEdBQUcsQ0FBQyxFQUFFLENBQUMsRUFBRSxFQUFFLFNBQVMsSUFBSSxHQUFHLEVBQUU7WUFDeEcsS0FBSyxDQUFDLENBQUMsQ0FBQyxHQUFHLFNBQVMsQ0FBQztTQUN0QjtRQUVELElBQUksTUFBTSxHQUFHLENBQUMsRUFBRTtZQUNkLE1BQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQztTQUNmO1FBRUQsT0FBTyxJQUFJLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUMxQixDQUFDO0lBRUQ7O09BRUc7SUFDSCx1QkFBTyxHQUFQO1FBQ0UsSUFBTSxLQUFLLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDbEMsSUFBTSxRQUFRLEdBQUcsS0FBSyxDQUFDLENBQUMsQ0FBQyxHQUFHLEdBQVUsQ0FBQztRQUN2QyxJQUFJLFFBQVEsRUFBRTtZQUNaLE1BQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQztTQUNmO1FBRUQsT0FBTyxRQUFRLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxFQUFFLEVBQUUsQ0FBQyxHQUFHLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDMUQsQ0FBQztJQUVELHdCQUFRLEdBQVI7UUFDRSxPQUFPLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUMsQ0FBQztJQUNoQyxDQUFDO0lBQ0gsWUFBQztBQUFELENBQUMsQUF4Q0QsSUF3Q0M7O0FBRUQsU0FBUyxNQUFNLENBQUMsS0FBaUI7SUFDL0IsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRTtRQUMxQixLQUFLLENBQUMsQ0FBQyxDQUFDLElBQUksSUFBSSxDQUFDO0tBQ2xCO0lBRUQsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxFQUFFO1FBQzNCLEtBQUssQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDO1FBQ1gsSUFBSSxLQUFLLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQztZQUFFLE1BQU07S0FDM0I7QUFDSCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW50NjQgYXMgSUludDY0IH0gZnJvbSBcIkBhd3Mtc2RrL3R5cGVzXCI7XG5pbXBvcnQgeyB0b0hleCB9IGZyb20gXCJAYXdzLXNkay91dGlsLWhleC1lbmNvZGluZ1wiO1xuXG5leHBvcnQgaW50ZXJmYWNlIEludDY0IGV4dGVuZHMgSUludDY0IHt9XG5cbi8qKlxuICogQSBsb3NzbGVzcyByZXByZXNlbnRhdGlvbiBvZiBhIHNpZ25lZCwgNjQtYml0IGludGVnZXIuIEluc3RhbmNlcyBvZiB0aGlzXG4gKiBjbGFzcyBtYXkgYmUgdXNlZCBpbiBhcml0aG1ldGljIGV4cHJlc3Npb25zIGFzIGlmIHRoZXkgd2VyZSBudW1lcmljXG4gKiBwcmltaXRpdmVzLCBidXQgdGhlIGJpbmFyeSByZXByZXNlbnRhdGlvbiB3aWxsIGJlIHByZXNlcnZlZCB1bmNoYW5nZWQgYXMgdGhlXG4gKiBgYnl0ZXNgIHByb3BlcnR5IG9mIHRoZSBvYmplY3QuIFRoZSBieXRlcyBzaG91bGQgYmUgZW5jb2RlZCBhcyBiaWctZW5kaWFuLFxuICogdHdvJ3MgY29tcGxlbWVudCBpbnRlZ2Vycy5cbiAqL1xuZXhwb3J0IGNsYXNzIEludDY0IHtcbiAgY29uc3RydWN0b3IocmVhZG9ubHkgYnl0ZXM6IFVpbnQ4QXJyYXkpIHtcbiAgICBpZiAoYnl0ZXMuYnl0ZUxlbmd0aCAhPT0gOCkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKFwiSW50NjQgYnVmZmVycyBtdXN0IGJlIGV4YWN0bHkgOCBieXRlc1wiKTtcbiAgICB9XG4gIH1cblxuICBzdGF0aWMgZnJvbU51bWJlcihudW1iZXI6IG51bWJlcik6IEludDY0IHtcbiAgICBpZiAobnVtYmVyID4gOTIyMzM3MjAzNjg1NDc3NTgwNyB8fCBudW1iZXIgPCAtOTIyMzM3MjAzNjg1NDc3NTgwOCkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKGAke251bWJlcn0gaXMgdG9vIGxhcmdlIChvciwgaWYgbmVnYXRpdmUsIHRvbyBzbWFsbCkgdG8gcmVwcmVzZW50IGFzIGFuIEludDY0YCk7XG4gICAgfVxuXG4gICAgY29uc3QgYnl0ZXMgPSBuZXcgVWludDhBcnJheSg4KTtcbiAgICBmb3IgKGxldCBpID0gNywgcmVtYWluaW5nID0gTWF0aC5hYnMoTWF0aC5yb3VuZChudW1iZXIpKTsgaSA+IC0xICYmIHJlbWFpbmluZyA+IDA7IGktLSwgcmVtYWluaW5nIC89IDI1Nikge1xuICAgICAgYnl0ZXNbaV0gPSByZW1haW5pbmc7XG4gICAgfVxuXG4gICAgaWYgKG51bWJlciA8IDApIHtcbiAgICAgIG5lZ2F0ZShieXRlcyk7XG4gICAgfVxuXG4gICAgcmV0dXJuIG5ldyBJbnQ2NChieXRlcyk7XG4gIH1cblxuICAvKipcbiAgICogQ2FsbGVkIGltcGxpY2l0bHkgYnkgaW5maXggYXJpdGhtZXRpYyBvcGVyYXRvcnMuXG4gICAqL1xuICB2YWx1ZU9mKCk6IG51bWJlciB7XG4gICAgY29uc3QgYnl0ZXMgPSB0aGlzLmJ5dGVzLnNsaWNlKDApO1xuICAgIGNvbnN0IG5lZ2F0aXZlID0gYnl0ZXNbMF0gJiAwYjEwMDAwMDAwO1xuICAgIGlmIChuZWdhdGl2ZSkge1xuICAgICAgbmVnYXRlKGJ5dGVzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcGFyc2VJbnQodG9IZXgoYnl0ZXMpLCAxNikgKiAobmVnYXRpdmUgPyAtMSA6IDEpO1xuICB9XG5cbiAgdG9TdHJpbmcoKSB7XG4gICAgcmV0dXJuIFN0cmluZyh0aGlzLnZhbHVlT2YoKSk7XG4gIH1cbn1cblxuZnVuY3Rpb24gbmVnYXRlKGJ5dGVzOiBVaW50OEFycmF5KTogdm9pZCB7XG4gIGZvciAobGV0IGkgPSAwOyBpIDwgODsgaSsrKSB7XG4gICAgYnl0ZXNbaV0gXj0gMHhmZjtcbiAgfVxuXG4gIGZvciAobGV0IGkgPSA3OyBpID4gLTE7IGktLSkge1xuICAgIGJ5dGVzW2ldKys7XG4gICAgaWYgKGJ5dGVzW2ldICE9PSAwKSBicmVhaztcbiAgfVxufVxuIl19 /***/ }), /***/ "HbM5": /*!***********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/MergeDeveloperIdentitiesCommand.js ***! \***********************************************************************************************************/ /*! exports provided: MergeDeveloperIdentitiesCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeDeveloperIdentitiesCommand", function() { return MergeDeveloperIdentitiesCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var MergeDeveloperIdentitiesCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MergeDeveloperIdentitiesCommand, _super); // Start section: command_properties // End section: command_properties function MergeDeveloperIdentitiesCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } MergeDeveloperIdentitiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__["getAwsAuthPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["MergeDeveloperIdentitiesInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["MergeDeveloperIdentitiesResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; MergeDeveloperIdentitiesCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1MergeDeveloperIdentitiesCommand"])(input, context); }; MergeDeveloperIdentitiesCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1MergeDeveloperIdentitiesCommand"])(output, context); }; return MergeDeveloperIdentitiesCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=MergeDeveloperIdentitiesCommand.js.map /***/ }), /***/ "Hh5Z": /*!*************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/scheduler/QueueScheduler.js ***! \*************************************************************************/ /*! exports provided: QueueScheduler */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QueueScheduler", function() { return QueueScheduler; }); /* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncScheduler */ "IjjT"); class QueueScheduler extends _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__["AsyncScheduler"] { } //# sourceMappingURL=QueueScheduler.js.map /***/ }), /***/ "HkLN": /*!*******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/DeleteEndpointCommand.js ***! \*******************************************************************************************/ /*! exports provided: DeleteEndpointCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointCommand", function() { return DeleteEndpointCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteEndpointCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteEndpointCommand, _super); // Start section: command_properties // End section: command_properties function DeleteEndpointCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteEndpointRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteEndpointResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteEndpointCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DeleteEndpointCommand"])(input, context); }; DeleteEndpointCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DeleteEndpointCommand"])(output, context); }; return DeleteEndpointCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteEndpointCommand.js.map /***/ }), /***/ "Hkhx": /*!*****************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/onErrorResumeNext.js ***! \*****************************************************************************/ /*! exports provided: onErrorResumeNext */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function() { return onErrorResumeNext; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./from */ "Cfvw"); /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isArray */ "DH7j"); /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./empty */ "EY2u"); function onErrorResumeNext(...sources) { if (sources.length === 0) { return _empty__WEBPACK_IMPORTED_MODULE_3__["EMPTY"]; } const [first, ...remainder] = sources; if (sources.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_2__["isArray"])(first)) { return onErrorResumeNext(...first); } return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => { const subNext = () => subscriber.add(onErrorResumeNext(...remainder).subscribe(subscriber)); return Object(_from__WEBPACK_IMPORTED_MODULE_1__["from"])(first).subscribe({ next(value) { subscriber.next(value); }, error: subNext, complete: subNext, }); }); } //# sourceMappingURL=onErrorResumeNext.js.map /***/ }), /***/ "HpwV": /*!*************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutBucketLoggingCommand.js ***! \*************************************************************************************/ /*! exports provided: PutBucketLoggingCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutBucketLoggingCommand", function() { return PutBucketLoggingCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutBucketLoggingCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutBucketLoggingCommand, _super); // Start section: command_properties // End section: command_properties function PutBucketLoggingCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutBucketLoggingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutBucketLoggingRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutBucketLoggingCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutBucketLoggingCommand"])(input, context); }; PutBucketLoggingCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutBucketLoggingCommand"])(output, context); }; return PutBucketLoggingCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=PutBucketLoggingCommand.js.map /***/ }), /***/ "HrJb": /*!****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/count.js ***! \****************************************************************/ /*! exports provided: count */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "count", function() { return count; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); function count(predicate) { return (source) => source.lift(new CountOperator(predicate, source)); } class CountOperator { constructor(predicate, source) { this.predicate = predicate; this.source = source; } call(subscriber, source) { return source.subscribe(new CountSubscriber(subscriber, this.predicate, this.source)); } } class CountSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, predicate, source) { super(destination); this.predicate = predicate; this.source = source; this.count = 0; this.index = 0; } _next(value) { if (this.predicate) { this._tryPredicate(value); } else { this.count++; } } _tryPredicate(value) { let result; try { result = this.predicate(value, this.index++, this.source); } catch (err) { this.destination.error(err); return; } if (result) { this.count++; } } _complete() { this.destination.next(this.count); this.destination.complete(); } } //# sourceMappingURL=count.js.map /***/ }), /***/ "HsTK": /*!*****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-textract/dist/es/commands/StartDocumentTextDetectionCommand.js ***! \*****************************************************************************************************/ /*! exports provided: StartDocumentTextDetectionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartDocumentTextDetectionCommand", function() { return StartDocumentTextDetectionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "glqB"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "doVe"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StartDocumentTextDetectionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartDocumentTextDetectionCommand, _super); // Start section: command_properties // End section: command_properties function StartDocumentTextDetectionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StartDocumentTextDetectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartDocumentTextDetectionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartDocumentTextDetectionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StartDocumentTextDetectionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartDocumentTextDetectionCommand"])(input, context); }; StartDocumentTextDetectionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartDocumentTextDetectionCommand"])(output, context); }; return StartDocumentTextDetectionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StartDocumentTextDetectionCommand.js.map /***/ }), /***/ "Huoz": /*!**********************************************************************!*\ !*** ./node_modules/amazon-cognito-identity-js/es/CognitoIdToken.js ***! \**********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CognitoIdToken; }); /* harmony import */ var _CognitoJwtToken__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CognitoJwtToken */ "UKow"); function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ /** @class */ var CognitoIdToken = /*#__PURE__*/function (_CognitoJwtToken) { _inheritsLoose(CognitoIdToken, _CognitoJwtToken); /** * Constructs a new CognitoIdToken object * @param {string=} IdToken The JWT Id token */ function CognitoIdToken(_temp) { var _ref = _temp === void 0 ? {} : _temp, IdToken = _ref.IdToken; return _CognitoJwtToken.call(this, IdToken || '') || this; } return CognitoIdToken; }(_CognitoJwtToken__WEBPACK_IMPORTED_MODULE_0__["default"]); /***/ }), /***/ "Hvzi": /*!********************************************!*\ !*** ./node_modules/lodash/_hashDelete.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Removes `key` and its value from the hash. * * @private * @name delete * @memberOf Hash * @param {Object} hash The hash to modify. * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { var result = this.has(key) && delete this.__data__[key]; this.size -= result ? 1 : 0; return result; } module.exports = hashDelete; /***/ }), /***/ "HxMu": /*!*****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/DeleteIdentityPoolCommand.js ***! \*****************************************************************************************************/ /*! exports provided: DeleteIdentityPoolCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteIdentityPoolCommand", function() { return DeleteIdentityPoolCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteIdentityPoolCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteIdentityPoolCommand, _super); // Start section: command_properties // End section: command_properties function DeleteIdentityPoolCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteIdentityPoolCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__["getAwsAuthPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteIdentityPoolInput"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteIdentityPoolCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DeleteIdentityPoolCommand"])(input, context); }; DeleteIdentityPoolCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DeleteIdentityPoolCommand"])(output, context); }; return DeleteIdentityPoolCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=DeleteIdentityPoolCommand.js.map /***/ }), /***/ "HzrR": /*!******************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/JS.js ***! \******************************************************/ /*! exports provided: isEmpty, sortByField, objectLessAttributes, filenameToContentType, isTextFile, generateRandomString, makeQuerablePromise, isWebWorker, browserOrNode, transferKeyToLowerCase, transferKeyToUpperCase, isStrictObject, JS, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmpty", function() { return isEmpty; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortByField", function() { return sortByField; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "objectLessAttributes", function() { return objectLessAttributes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filenameToContentType", function() { return filenameToContentType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTextFile", function() { return isTextFile; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateRandomString", function() { return generateRandomString; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeQuerablePromise", function() { return makeQuerablePromise; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isWebWorker", function() { return isWebWorker; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "browserOrNode", function() { return browserOrNode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transferKeyToLowerCase", function() { return transferKeyToLowerCase; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transferKeyToUpperCase", function() { return transferKeyToUpperCase; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isStrictObject", function() { return isStrictObject; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JS", function() { return JS; }); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var MIME_MAP = [ { type: 'text/plain', ext: 'txt' }, { type: 'text/html', ext: 'html' }, { type: 'text/javascript', ext: 'js' }, { type: 'text/css', ext: 'css' }, { type: 'text/csv', ext: 'csv' }, { type: 'text/yaml', ext: 'yml' }, { type: 'text/yaml', ext: 'yaml' }, { type: 'text/calendar', ext: 'ics' }, { type: 'text/calendar', ext: 'ical' }, { type: 'image/apng', ext: 'apng' }, { type: 'image/bmp', ext: 'bmp' }, { type: 'image/gif', ext: 'gif' }, { type: 'image/x-icon', ext: 'ico' }, { type: 'image/x-icon', ext: 'cur' }, { type: 'image/jpeg', ext: 'jpg' }, { type: 'image/jpeg', ext: 'jpeg' }, { type: 'image/jpeg', ext: 'jfif' }, { type: 'image/jpeg', ext: 'pjp' }, { type: 'image/jpeg', ext: 'pjpeg' }, { type: 'image/png', ext: 'png' }, { type: 'image/svg+xml', ext: 'svg' }, { type: 'image/tiff', ext: 'tif' }, { type: 'image/tiff', ext: 'tiff' }, { type: 'image/webp', ext: 'webp' }, { type: 'application/json', ext: 'json' }, { type: 'application/xml', ext: 'xml' }, { type: 'application/x-sh', ext: 'sh' }, { type: 'application/zip', ext: 'zip' }, { type: 'application/x-rar-compressed', ext: 'rar' }, { type: 'application/x-tar', ext: 'tar' }, { type: 'application/x-bzip', ext: 'bz' }, { type: 'application/x-bzip2', ext: 'bz2' }, { type: 'application/pdf', ext: 'pdf' }, { type: 'application/java-archive', ext: 'jar' }, { type: 'application/msword', ext: 'doc' }, { type: 'application/vnd.ms-excel', ext: 'xls' }, { type: 'application/vnd.ms-excel', ext: 'xlsx' }, { type: 'message/rfc822', ext: 'eml' }, ]; var isEmpty = function (obj) { if (obj === void 0) { obj = {}; } return Object.keys(obj).length === 0; }; var sortByField = function (list, field, dir) { if (!list || !list.sort) { return false; } var dirX = dir && dir === 'desc' ? -1 : 1; list.sort(function (a, b) { var a_val = a[field]; var b_val = b[field]; if (typeof b_val === 'undefined') { return typeof a_val === 'undefined' ? 0 : 1 * dirX; } if (typeof a_val === 'undefined') { return -1 * dirX; } if (a_val < b_val) { return -1 * dirX; } if (a_val > b_val) { return 1 * dirX; } return 0; }); return true; }; var objectLessAttributes = function (obj, less) { var ret = Object.assign({}, obj); if (less) { if (typeof less === 'string') { delete ret[less]; } else { less.forEach(function (attr) { delete ret[attr]; }); } } return ret; }; var filenameToContentType = function (filename, defVal) { if (defVal === void 0) { defVal = 'application/octet-stream'; } var name = filename.toLowerCase(); var filtered = MIME_MAP.filter(function (mime) { return name.endsWith('.' + mime.ext); }); return filtered.length > 0 ? filtered[0].type : defVal; }; var isTextFile = function (contentType) { var type = contentType.toLowerCase(); if (type.startsWith('text/')) { return true; } return ('application/json' === type || 'application/xml' === type || 'application/sh' === type); }; var generateRandomString = function () { var result = ''; var chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; for (var i = 32; i > 0; i -= 1) { result += chars[Math.floor(Math.random() * chars.length)]; } return result; }; var makeQuerablePromise = function (promise) { if (promise.isResolved) return promise; var isPending = true; var isRejected = false; var isFullfilled = false; var result = promise.then(function (data) { isFullfilled = true; isPending = false; return data; }, function (e) { isRejected = true; isPending = false; throw e; }); result.isFullfilled = function () { return isFullfilled; }; result.isPending = function () { return isPending; }; result.isRejected = function () { return isRejected; }; return result; }; var isWebWorker = function () { if (typeof self === 'undefined') { return false; } var selfContext = self; return typeof selfContext.WorkerGlobalScope !== 'undefined' && self instanceof selfContext.WorkerGlobalScope; }; var browserOrNode = function () { var isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined'; var isNode = typeof process !== 'undefined' && process.versions != null && process.versions.node != null; return { isBrowser: isBrowser, isNode: isNode, }; }; /** * transfer the first letter of the keys to lowercase * @param {Object} obj - the object need to be transferred * @param {Array} whiteListForItself - whitelist itself from being transferred * @param {Array} whiteListForChildren - whitelist its children keys from being transferred */ var transferKeyToLowerCase = function (obj, whiteListForItself, whiteListForChildren) { if (whiteListForItself === void 0) { whiteListForItself = []; } if (whiteListForChildren === void 0) { whiteListForChildren = []; } if (!isStrictObject(obj)) return obj; var ret = {}; for (var key in obj) { if (obj.hasOwnProperty(key)) { var transferedKey = whiteListForItself.includes(key) ? key : key[0].toLowerCase() + key.slice(1); ret[transferedKey] = whiteListForChildren.includes(key) ? obj[key] : transferKeyToLowerCase(obj[key], whiteListForItself, whiteListForChildren); } } return ret; }; /** * transfer the first letter of the keys to lowercase * @param {Object} obj - the object need to be transferred * @param {Array} whiteListForItself - whitelist itself from being transferred * @param {Array} whiteListForChildren - whitelist its children keys from being transferred */ var transferKeyToUpperCase = function (obj, whiteListForItself, whiteListForChildren) { if (whiteListForItself === void 0) { whiteListForItself = []; } if (whiteListForChildren === void 0) { whiteListForChildren = []; } if (!isStrictObject(obj)) return obj; var ret = {}; for (var key in obj) { if (obj.hasOwnProperty(key)) { var transferredKey = whiteListForItself.includes(key) ? key : key[0].toUpperCase() + key.slice(1); ret[transferredKey] = whiteListForChildren.includes(key) ? obj[key] : transferKeyToUpperCase(obj[key], whiteListForItself, whiteListForChildren); } } return ret; }; /** * Return true if the object is a strict object * which means it's not Array, Function, Number, String, Boolean or Null * @param obj the Object */ var isStrictObject = function (obj) { return (obj instanceof Object && !(obj instanceof Array) && !(obj instanceof Function) && !(obj instanceof Number) && !(obj instanceof String) && !(obj instanceof Boolean)); }; /** * @deprecated use per-function imports */ var JS = /** @class */ (function () { function JS() { } JS.isEmpty = isEmpty; JS.sortByField = sortByField; JS.objectLessAttributes = objectLessAttributes; JS.filenameToContentType = filenameToContentType; JS.isTextFile = isTextFile; JS.generateRandomString = generateRandomString; JS.makeQuerablePromise = makeQuerablePromise; JS.isWebWorker = isWebWorker; JS.browserOrNode = browserOrNode; JS.transferKeyToLowerCase = transferKeyToLowerCase; JS.transferKeyToUpperCase = transferKeyToUpperCase; JS.isStrictObject = isStrictObject; return JS; }()); /** * @deprecated use per-function imports */ /* harmony default export */ __webpack_exports__["default"] = (JS); //# sourceMappingURL=JS.js.map /***/ }), /***/ "I01J": /*!***********************************************!*\ !*** ./node_modules/lodash/_memoizeCapped.js ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var memoize = __webpack_require__(/*! ./memoize */ "44Ds"); /** Used as the maximum memoize cache size. */ var MAX_MEMOIZE_SIZE = 500; /** * A specialized version of `_.memoize` which clears the memoized function's * cache when it exceeds `MAX_MEMOIZE_SIZE`. * * @private * @param {Function} func The function to have its output memoized. * @returns {Function} Returns the new memoized function. */ function memoizeCapped(func) { var result = memoize(func, function(key) { if (cache.size === MAX_MEMOIZE_SIZE) { cache.clear(); } return key; }); var cache = result.cache; return result; } module.exports = memoizeCapped; /***/ }), /***/ "I2ZF": /*!**********************************************!*\ !*** ./node_modules/uuid/lib/bytesToUuid.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Convert array of 16 byte values to UUID string format of the form: * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX */ var byteToHex = []; for (var i = 0; i < 256; ++i) { byteToHex[i] = (i + 0x100).toString(16).substr(1); } function bytesToUuid(buf, offset) { var i = offset || 0; var bth = byteToHex; // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4 return ([ bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]] ]).join(''); } module.exports = bytesToUuid; /***/ }), /***/ "I55L": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/isArrayLike.js ***! \*****************************************************************/ /*! exports provided: isArrayLike */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isArrayLike", function() { return isArrayLike; }); const isArrayLike = ((x) => x && typeof x.length === 'number' && typeof x !== 'function'); //# sourceMappingURL=isArrayLike.js.map /***/ }), /***/ "I56q": /*!*****************************************************************************!*\ !*** ./node_modules/@aws-sdk/service-error-classification/dist/es/index.js ***! \*****************************************************************************/ /*! exports provided: isRetryableByTrait, isClockSkewError, isThrottlingError, isTransientError */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isRetryableByTrait", function() { return isRetryableByTrait; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isClockSkewError", function() { return isClockSkewError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isThrottlingError", function() { return isThrottlingError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTransientError", function() { return isTransientError; }); /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ "GA52"); var isRetryableByTrait = function (error) { return error.$retryable !== undefined; }; var isClockSkewError = function (error) { return _constants__WEBPACK_IMPORTED_MODULE_0__["CLOCK_SKEW_ERROR_CODES"].includes(error.name); }; var isThrottlingError = function (error) { var _a; return _constants__WEBPACK_IMPORTED_MODULE_0__["THROTTLING_ERROR_CODES"].includes(error.name) || ((_a = error.$retryable) === null || _a === void 0 ? void 0 : _a.throttling) == true; }; var isTransientError = function (error) { var _a; return _constants__WEBPACK_IMPORTED_MODULE_0__["TRANSIENT_ERROR_CODES"].includes(error.name) || _constants__WEBPACK_IMPORTED_MODULE_0__["TRANSIENT_ERROR_STATUS_CODES"].includes(((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) || 0); }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUNMLHNCQUFzQixFQUN0QixzQkFBc0IsRUFDdEIscUJBQXFCLEVBQ3JCLDRCQUE0QixHQUM3QixNQUFNLGFBQWEsQ0FBQztBQUVyQixNQUFNLENBQUMsSUFBTSxrQkFBa0IsR0FBRyxVQUFDLEtBQWUsSUFBSyxPQUFBLEtBQUssQ0FBQyxVQUFVLEtBQUssU0FBUyxFQUE5QixDQUE4QixDQUFDO0FBRXRGLE1BQU0sQ0FBQyxJQUFNLGdCQUFnQixHQUFHLFVBQUMsS0FBZSxJQUFLLE9BQUEsc0JBQXNCLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsRUFBM0MsQ0FBMkMsQ0FBQztBQUVqRyxNQUFNLENBQUMsSUFBTSxpQkFBaUIsR0FBRyxVQUFDLEtBQWUsWUFDL0MsT0FBQSxzQkFBc0IsQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxJQUFJLE9BQUEsS0FBSyxDQUFDLFVBQVUsMENBQUUsVUFBVSxLQUFJLElBQUksQ0FBQSxFQUFBLENBQUM7QUFFdEYsTUFBTSxDQUFDLElBQU0sZ0JBQWdCLEdBQUcsVUFBQyxLQUFlOztJQUM5QyxPQUFBLHFCQUFxQixDQUFDLFFBQVEsQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDO1FBQzFDLDRCQUE0QixDQUFDLFFBQVEsQ0FBQyxPQUFBLEtBQUssQ0FBQyxTQUFTLDBDQUFFLGNBQWMsS0FBSSxDQUFDLENBQUMsQ0FBQTtDQUFBLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBTZGtFcnJvciB9IGZyb20gXCJAYXdzLXNkay9zbWl0aHktY2xpZW50XCI7XG5cbmltcG9ydCB7XG4gIENMT0NLX1NLRVdfRVJST1JfQ09ERVMsXG4gIFRIUk9UVExJTkdfRVJST1JfQ09ERVMsXG4gIFRSQU5TSUVOVF9FUlJPUl9DT0RFUyxcbiAgVFJBTlNJRU5UX0VSUk9SX1NUQVRVU19DT0RFUyxcbn0gZnJvbSBcIi4vY29uc3RhbnRzXCI7XG5cbmV4cG9ydCBjb25zdCBpc1JldHJ5YWJsZUJ5VHJhaXQgPSAoZXJyb3I6IFNka0Vycm9yKSA9PiBlcnJvci4kcmV0cnlhYmxlICE9PSB1bmRlZmluZWQ7XG5cbmV4cG9ydCBjb25zdCBpc0Nsb2NrU2tld0Vycm9yID0gKGVycm9yOiBTZGtFcnJvcikgPT4gQ0xPQ0tfU0tFV19FUlJPUl9DT0RFUy5pbmNsdWRlcyhlcnJvci5uYW1lKTtcblxuZXhwb3J0IGNvbnN0IGlzVGhyb3R0bGluZ0Vycm9yID0gKGVycm9yOiBTZGtFcnJvcikgPT5cbiAgVEhST1RUTElOR19FUlJPUl9DT0RFUy5pbmNsdWRlcyhlcnJvci5uYW1lKSB8fCBlcnJvci4kcmV0cnlhYmxlPy50aHJvdHRsaW5nID09IHRydWU7XG5cbmV4cG9ydCBjb25zdCBpc1RyYW5zaWVudEVycm9yID0gKGVycm9yOiBTZGtFcnJvcikgPT5cbiAgVFJBTlNJRU5UX0VSUk9SX0NPREVTLmluY2x1ZGVzKGVycm9yLm5hbWUpIHx8XG4gIFRSQU5TSUVOVF9FUlJPUl9TVEFUVVNfQ09ERVMuaW5jbHVkZXMoZXJyb3IuJG1ldGFkYXRhPy5odHRwU3RhdHVzQ29kZSB8fCAwKTtcbiJdfQ== /***/ }), /***/ "I6Eg": /*!**************************************************************************!*\ !*** ./node_modules/@aws-amplify/predictions/lib-esm/Providers/Utils.js ***! \**************************************************************************/ /*! exports provided: makeCamelCase, makeCamelCaseArray, blobToArrayBuffer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeCamelCase", function() { return makeCamelCase; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeCamelCaseArray", function() { return makeCamelCaseArray; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blobToArrayBuffer", function() { return blobToArrayBuffer; }); /** * Changes object keys to camel case. If optional parameter `keys` is given, then we extract only the * keys specified in `keys`. */ function makeCamelCase(obj, keys) { if (!obj) return undefined; var newObj = {}; var keysToRename = keys ? keys : Object.keys(obj); keysToRename.forEach(function (key) { var _a; if (obj.hasOwnProperty(key)) { // change the key to camelcase. var camelCaseKey = key.charAt(0).toLowerCase() + key.substr(1); Object.assign(newObj, (_a = {}, _a[camelCaseKey] = obj[key], _a)); } }); return newObj; } /** * Given an array of object, call makeCamelCase(...) on each option. */ function makeCamelCaseArray(objArr, keys) { if (!objArr) return undefined; return objArr.map(function (obj) { return makeCamelCase(obj, keys); }); } /** * Converts blob to array buffer */ function blobToArrayBuffer(blob) { return new Promise(function (res, rej) { var reader = new FileReader(); reader.onload = function (_event) { res(reader.result); }; reader.onerror = function (err) { rej(err); }; try { reader.readAsArrayBuffer(blob); } catch (err) { rej(err); // in case user gives invalid type } }); } //# sourceMappingURL=Utils.js.map /***/ }), /***/ "I8O1": /*!************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutBucketPolicyCommand.js ***! \************************************************************************************/ /*! exports provided: PutBucketPolicyCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutBucketPolicyCommand", function() { return PutBucketPolicyCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_apply_body_checksum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-apply-body-checksum */ "x9pl"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutBucketPolicyCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutBucketPolicyCommand, _super); // Start section: command_properties // End section: command_properties function PutBucketPolicyCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutBucketPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_5__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_4__["getBucketEndpointPlugin"])(configuration)); this.middlewareStack.use(Object(_aws_sdk_middleware_apply_body_checksum__WEBPACK_IMPORTED_MODULE_3__["getApplyMd5BodyChecksumPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutBucketPolicyRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutBucketPolicyCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutBucketPolicyCommand"])(input, context); }; PutBucketPolicyCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutBucketPolicyCommand"])(output, context); }; return PutBucketPolicyCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__["Command"])); //# sourceMappingURL=PutBucketPolicyCommand.js.map /***/ }), /***/ "IAdc": /*!******************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/toArray.js ***! \******************************************************************/ /*! exports provided: toArray */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return toArray; }); /* harmony import */ var _reduce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./reduce */ "128B"); function toArrayReducer(arr, item, index) { if (index === 0) { return [item]; } arr.push(item); return arr; } function toArray() { return Object(_reduce__WEBPACK_IMPORTED_MODULE_0__["reduce"])(toArrayReducer, []); } //# sourceMappingURL=toArray.js.map /***/ }), /***/ "IAuL": /*!*********************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/Util/Reachability.js ***! \*********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var zen_observable_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zen-observable-ts */ "b0dj"); var __values = (undefined && undefined.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var ReachabilityNavigator = /** @class */ (function () { function ReachabilityNavigator() { } ReachabilityNavigator.prototype.networkMonitor = function (netInfo) { if (Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["browserOrNode"])().isNode) { return zen_observable_ts__WEBPACK_IMPORTED_MODULE_1__["default"].from([{ online: true }]); } return new zen_observable_ts__WEBPACK_IMPORTED_MODULE_1__["default"](function (observer) { var online = Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["isWebWorker"])() ? self.navigator.onLine : window.navigator.onLine; observer.next({ online: online }); var notifyOnline = function () { return observer.next({ online: true }); }; var notifyOffline = function () { return observer.next({ online: false }); }; window.addEventListener('online', notifyOnline); window.addEventListener('offline', notifyOffline); ReachabilityNavigator._observers.push(observer); return function () { window.removeEventListener('online', notifyOnline); window.removeEventListener('offline', notifyOffline); ReachabilityNavigator._observers = ReachabilityNavigator._observers.filter(function (_observer) { return _observer !== observer; }); }; }); }; // expose observers to simulate offline mode for integration testing ReachabilityNavigator._observerOverride = function (status) { var e_1, _a; var _loop_1 = function (observer) { if (observer.closed) { ReachabilityNavigator._observers = ReachabilityNavigator._observers.filter(function (_observer) { return _observer !== observer; }); return "continue"; } observer.next(status); }; try { for (var _b = __values(ReachabilityNavigator._observers), _c = _b.next(); !_c.done; _c = _b.next()) { var observer = _c.value; _loop_1(observer); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; ReachabilityNavigator._observers = []; return ReachabilityNavigator; }()); /* harmony default export */ __webpack_exports__["default"] = (ReachabilityNavigator); //# sourceMappingURL=Reachability.js.map /***/ }), /***/ "IDSa": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-lex-runtime-service/dist/es/commands/GetSessionCommand.js ***! \************************************************************************************************/ /*! exports provided: GetSessionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSessionCommand", function() { return GetSessionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "Vu3y"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "3fs/"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetSessionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSessionCommand, _super); // Start section: command_properties // End section: command_properties function GetSessionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetSessionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetSessionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetSessionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetSessionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSessionCommand"])(input, context); }; GetSessionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSessionCommand"])(output, context); }; return GetSessionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetSessionCommand.js.map /***/ }), /***/ "IGlU": /*!*********************************************!*\ !*** ./node_modules/graphql/type/index.mjs ***! \*********************************************/ /*! exports provided: isSchema, GraphQLSchema, isType, isScalarType, isObjectType, isInterfaceType, isUnionType, isEnumType, isInputObjectType, isListType, isNonNullType, isInputType, isOutputType, isLeafType, isCompositeType, isAbstractType, isWrappingType, isNullableType, isNamedType, isRequiredArgument, isRequiredInputField, assertType, assertScalarType, assertObjectType, assertInterfaceType, assertUnionType, assertEnumType, assertInputObjectType, assertListType, assertNonNullType, assertInputType, assertOutputType, assertLeafType, assertCompositeType, assertAbstractType, assertWrappingType, assertNullableType, assertNamedType, getNullableType, getNamedType, GraphQLScalarType, GraphQLObjectType, GraphQLInterfaceType, GraphQLUnionType, GraphQLEnumType, GraphQLInputObjectType, GraphQLList, GraphQLNonNull, isDirective, GraphQLDirective, isSpecifiedDirective, specifiedDirectives, GraphQLIncludeDirective, GraphQLSkipDirective, GraphQLDeprecatedDirective, DEFAULT_DEPRECATION_REASON, isSpecifiedScalarType, specifiedScalarTypes, GraphQLInt, GraphQLFloat, GraphQLString, GraphQLBoolean, GraphQLID, TypeKind, isIntrospectionType, introspectionTypes, __Schema, __Directive, __DirectiveLocation, __Type, __Field, __InputValue, __EnumValue, __TypeKind, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, validateSchema, assertValidSchema */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _schema__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schema */ "51nL"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isSchema", function() { return _schema__WEBPACK_IMPORTED_MODULE_0__["isSchema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLSchema", function() { return _schema__WEBPACK_IMPORTED_MODULE_0__["GraphQLSchema"]; }); /* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./definition */ "axIb"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isScalarType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isScalarType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isObjectType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isObjectType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isInterfaceType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isInterfaceType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isUnionType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isUnionType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isEnumType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isEnumType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isInputObjectType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isInputObjectType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isListType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isListType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isNonNullType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isNonNullType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isInputType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isInputType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isOutputType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isOutputType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isLeafType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isLeafType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isCompositeType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isCompositeType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isAbstractType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isAbstractType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isWrappingType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isWrappingType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isNullableType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isNullableType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isNamedType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isNamedType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isRequiredArgument", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isRequiredArgument"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isRequiredInputField", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["isRequiredInputField"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertScalarType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertScalarType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertObjectType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertObjectType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertInterfaceType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertInterfaceType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertUnionType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertUnionType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertEnumType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertEnumType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertInputObjectType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertInputObjectType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertListType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertListType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertNonNullType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertNonNullType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertInputType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertInputType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertOutputType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertOutputType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertLeafType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertLeafType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertCompositeType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertCompositeType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertAbstractType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertAbstractType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertWrappingType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertWrappingType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertNullableType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertNullableType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertNamedType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["assertNamedType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNullableType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["getNullableType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNamedType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["getNamedType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLScalarType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["GraphQLScalarType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLObjectType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["GraphQLObjectType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLInterfaceType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["GraphQLInterfaceType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLUnionType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["GraphQLUnionType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLEnumType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["GraphQLEnumType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLInputObjectType", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["GraphQLInputObjectType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLList", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["GraphQLList"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLNonNull", function() { return _definition__WEBPACK_IMPORTED_MODULE_1__["GraphQLNonNull"]; }); /* harmony import */ var _directives__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./directives */ "4suF"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isDirective", function() { return _directives__WEBPACK_IMPORTED_MODULE_2__["isDirective"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLDirective", function() { return _directives__WEBPACK_IMPORTED_MODULE_2__["GraphQLDirective"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isSpecifiedDirective", function() { return _directives__WEBPACK_IMPORTED_MODULE_2__["isSpecifiedDirective"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "specifiedDirectives", function() { return _directives__WEBPACK_IMPORTED_MODULE_2__["specifiedDirectives"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLIncludeDirective", function() { return _directives__WEBPACK_IMPORTED_MODULE_2__["GraphQLIncludeDirective"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLSkipDirective", function() { return _directives__WEBPACK_IMPORTED_MODULE_2__["GraphQLSkipDirective"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLDeprecatedDirective", function() { return _directives__WEBPACK_IMPORTED_MODULE_2__["GraphQLDeprecatedDirective"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_DEPRECATION_REASON", function() { return _directives__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_DEPRECATION_REASON"]; }); /* harmony import */ var _scalars__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./scalars */ "19Hc"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isSpecifiedScalarType", function() { return _scalars__WEBPACK_IMPORTED_MODULE_3__["isSpecifiedScalarType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "specifiedScalarTypes", function() { return _scalars__WEBPACK_IMPORTED_MODULE_3__["specifiedScalarTypes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLInt", function() { return _scalars__WEBPACK_IMPORTED_MODULE_3__["GraphQLInt"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLFloat", function() { return _scalars__WEBPACK_IMPORTED_MODULE_3__["GraphQLFloat"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLString", function() { return _scalars__WEBPACK_IMPORTED_MODULE_3__["GraphQLString"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLBoolean", function() { return _scalars__WEBPACK_IMPORTED_MODULE_3__["GraphQLBoolean"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLID", function() { return _scalars__WEBPACK_IMPORTED_MODULE_3__["GraphQLID"]; }); /* harmony import */ var _introspection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./introspection */ "LViu"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TypeKind", function() { return _introspection__WEBPACK_IMPORTED_MODULE_4__["TypeKind"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isIntrospectionType", function() { return _introspection__WEBPACK_IMPORTED_MODULE_4__["isIntrospectionType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "introspectionTypes", function() { return _introspection__WEBPACK_IMPORTED_MODULE_4__["introspectionTypes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__Schema", function() { return _introspection__WEBPACK_IMPORTED_MODULE_4__["__Schema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__Directive", function() { return _introspection__WEBPACK_IMPORTED_MODULE_4__["__Directive"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__DirectiveLocation", function() { return _introspection__WEBPACK_IMPORTED_MODULE_4__["__DirectiveLocation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__Type", function() { return _introspection__WEBPACK_IMPORTED_MODULE_4__["__Type"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__Field", function() { return _introspection__WEBPACK_IMPORTED_MODULE_4__["__Field"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__InputValue", function() { return _introspection__WEBPACK_IMPORTED_MODULE_4__["__InputValue"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__EnumValue", function() { return _introspection__WEBPACK_IMPORTED_MODULE_4__["__EnumValue"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__TypeKind", function() { return _introspection__WEBPACK_IMPORTED_MODULE_4__["__TypeKind"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SchemaMetaFieldDef", function() { return _introspection__WEBPACK_IMPORTED_MODULE_4__["SchemaMetaFieldDef"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TypeMetaFieldDef", function() { return _introspection__WEBPACK_IMPORTED_MODULE_4__["TypeMetaFieldDef"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TypeNameMetaFieldDef", function() { return _introspection__WEBPACK_IMPORTED_MODULE_4__["TypeNameMetaFieldDef"]; }); /* harmony import */ var _validate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./validate */ "93gR"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "validateSchema", function() { return _validate__WEBPACK_IMPORTED_MODULE_5__["validateSchema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertValidSchema", function() { return _validate__WEBPACK_IMPORTED_MODULE_5__["assertValidSchema"]; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ // Common built-in scalar instances. /***/ }), /***/ "ILrs": /*!***************************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/OAuthHelper/GoogleOAuth.js ***! \***************************************************************************/ /*! exports provided: GoogleOAuth, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GoogleOAuth", function() { return GoogleOAuth; }); /* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Logger */ "RCJS"); /* harmony import */ var _JS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../JS */ "HzrR"); /* harmony import */ var _Util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Util */ "qAxE"); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var logger = new _Logger__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('CognitoCredentials'); var waitForInit = new Promise(function (res, rej) { if (!Object(_JS__WEBPACK_IMPORTED_MODULE_1__["browserOrNode"])().isBrowser) { logger.debug('not in the browser, directly resolved'); return res(); } var ga = window['gapi'] && window['gapi'].auth2 ? window['gapi'].auth2 : null; if (ga) { logger.debug('google api already loaded'); return res(); } else { setTimeout(function () { return res(); }, 2000); } }); var GoogleOAuth = /** @class */ (function () { function GoogleOAuth() { this.initialized = false; this.refreshGoogleToken = this.refreshGoogleToken.bind(this); this._refreshGoogleTokenImpl = this._refreshGoogleTokenImpl.bind(this); } GoogleOAuth.prototype.refreshGoogleToken = function () { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: if (!!this.initialized) return [3 /*break*/, 2]; logger.debug('need to wait for the Google SDK loaded'); return [4 /*yield*/, waitForInit]; case 1: _a.sent(); this.initialized = true; logger.debug('finish waiting'); _a.label = 2; case 2: return [2 /*return*/, this._refreshGoogleTokenImpl()]; } }); }); }; GoogleOAuth.prototype._refreshGoogleTokenImpl = function () { var ga = null; if (Object(_JS__WEBPACK_IMPORTED_MODULE_1__["browserOrNode"])().isBrowser) ga = window['gapi'] && window['gapi'].auth2 ? window['gapi'].auth2 : null; if (!ga) { logger.debug('no gapi auth2 available'); return Promise.reject('no gapi auth2 available'); } return new Promise(function (res, rej) { ga.getAuthInstance() .then(function (googleAuth) { if (!googleAuth) { logger.debug('google Auth undefined'); rej(new _Util__WEBPACK_IMPORTED_MODULE_2__["NonRetryableError"]('google Auth undefined')); } var googleUser = googleAuth.currentUser.get(); // refresh the token if (googleUser.isSignedIn()) { logger.debug('refreshing the google access token'); googleUser .reloadAuthResponse() .then(function (authResponse) { var id_token = authResponse.id_token, expires_at = authResponse.expires_at; res({ token: id_token, expires_at: expires_at }); }) .catch(function (err) { if (err && err.error === 'network_error') { // Not using NonRetryableError so handler will be retried rej('Network error reloading google auth response'); } else { rej(new _Util__WEBPACK_IMPORTED_MODULE_2__["NonRetryableError"]('Failed to reload google auth response')); } }); } else { rej(new _Util__WEBPACK_IMPORTED_MODULE_2__["NonRetryableError"]('User is not signed in with Google')); } }) .catch(function (err) { logger.debug('Failed to refresh google token', err); rej(new _Util__WEBPACK_IMPORTED_MODULE_2__["NonRetryableError"]('Failed to refresh google token')); }); }); }; return GoogleOAuth; }()); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (GoogleOAuth); //# sourceMappingURL=GoogleOAuth.js.map /***/ }), /***/ "IY/c": /*!********************************************************************************!*\ !*** ./node_modules/@aws-amplify/analytics/lib-esm/trackers/SessionTracker.js ***! \********************************************************************************/ /*! exports provided: SessionTracker, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SessionTracker", function() { return SessionTracker; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; // the session tracker for web var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('SessionTracker'); var defaultOpts = { enable: false, provider: 'AWSPinpoint', }; var initialEventSent = false; var SessionTracker = /** @class */ (function () { function SessionTracker(tracker, opts) { this._config = Object.assign({}, defaultOpts, opts); this._tracker = tracker; this._hasEnabled = false; this._trackFunc = this._trackFunc.bind(this); this._trackBeforeUnload = this._trackBeforeUnload.bind(this); this.configure(this._config); } SessionTracker.prototype._envCheck = function () { if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].browserOrNode().isBrowser) { return false; } if (!document || !document.addEventListener) { logger.debug('not in the supported web environment'); return false; } if (typeof document.hidden !== 'undefined') { this._hidden = 'hidden'; this._visibilityChange = 'visibilitychange'; } else if (typeof document['msHidden'] !== 'undefined') { this._hidden = 'msHidden'; this._visibilityChange = 'msvisibilitychange'; } else if (typeof document['webkitHidden'] !== 'undefined') { this._hidden = 'webkitHidden'; this._visibilityChange = 'webkitvisibilitychange'; } else { logger.debug('not in the supported web environment'); return false; } return true; }; SessionTracker.prototype._trackFunc = function () { return __awaiter(this, void 0, void 0, function () { var customAttrs, _a, attributes; return __generator(this, function (_b) { switch (_b.label) { case 0: if (!(typeof this._config.attributes === 'function')) return [3 /*break*/, 2]; return [4 /*yield*/, this._config.attributes()]; case 1: _a = _b.sent(); return [3 /*break*/, 3]; case 2: _a = this._config.attributes; _b.label = 3; case 3: customAttrs = _a; attributes = Object.assign({}, customAttrs); if (document.visibilityState === this._hidden) { this._tracker({ name: '_session.stop', attributes: attributes, }, this._config.provider).catch(function (e) { logger.debug('record session stop event failed.', e); }); } else { this._tracker({ name: '_session.start', attributes: attributes, }, this._config.provider).catch(function (e) { logger.debug('record session start event failed.', e); }); } return [2 /*return*/]; } }); }); }; SessionTracker.prototype._trackBeforeUnload = function (event) { // before unload callback cannot be async => https://github.com/aws-amplify/amplify-js/issues/2088 var _this = this; var customAttrs = typeof this._config.attributes === 'function' ? Promise.resolve(this._config.attributes()) : Promise.resolve(this._config.attributes); customAttrs.then(function (custom) { var attributes = Object.assign({}, custom); _this._tracker({ name: '_session.stop', attributes: attributes, immediate: true, }, _this._config.provider).catch(function (e) { logger.debug('record session stop event failed.', e); }); }); }; // to keep configure a synchronized function SessionTracker.prototype._sendInitialEvent = function () { return __awaiter(this, void 0, void 0, function () { var customAttrs, _a, attributes; return __generator(this, function (_b) { switch (_b.label) { case 0: if (initialEventSent) { logger.debug('the start session has been sent when the page is loaded'); return [2 /*return*/]; } else { initialEventSent = true; } if (!(typeof this._config.attributes === 'function')) return [3 /*break*/, 2]; return [4 /*yield*/, this._config.attributes()]; case 1: _a = _b.sent(); return [3 /*break*/, 3]; case 2: _a = this._config.attributes; _b.label = 3; case 3: customAttrs = _a; attributes = Object.assign({}, customAttrs); this._tracker({ name: '_session.start', attributes: attributes, }, this._config.provider).catch(function (e) { logger.debug('record session start event failed.', e); }); return [2 /*return*/]; } }); }); }; SessionTracker.prototype.configure = function (opts) { if (!this._envCheck()) { return this._config; } Object.assign(this._config, opts); if (this._config.enable && !this._hasEnabled) { // send a start session as soon as it's enabled this._sendInitialEvent(); // listen on events document.addEventListener(this._visibilityChange, this._trackFunc, false); window.addEventListener('beforeunload', this._trackBeforeUnload, false); this._hasEnabled = true; } else if (!this._config.enable && this._hasEnabled) { document.removeEventListener(this._visibilityChange, this._trackFunc, false); window.removeEventListener('beforeunload', this._trackBeforeUnload, false); this._hasEnabled = false; } return this._config; }; return SessionTracker; }()); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (SessionTracker); //# sourceMappingURL=SessionTracker.js.map /***/ }), /***/ "IZqD": /*!********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js ***! \********************************************************************************/ /*! exports provided: serializeAws_json1_1CreateDeliveryStreamCommand, serializeAws_json1_1DeleteDeliveryStreamCommand, serializeAws_json1_1DescribeDeliveryStreamCommand, serializeAws_json1_1ListDeliveryStreamsCommand, serializeAws_json1_1ListTagsForDeliveryStreamCommand, serializeAws_json1_1PutRecordCommand, serializeAws_json1_1PutRecordBatchCommand, serializeAws_json1_1StartDeliveryStreamEncryptionCommand, serializeAws_json1_1StopDeliveryStreamEncryptionCommand, serializeAws_json1_1TagDeliveryStreamCommand, serializeAws_json1_1UntagDeliveryStreamCommand, serializeAws_json1_1UpdateDestinationCommand, deserializeAws_json1_1CreateDeliveryStreamCommand, deserializeAws_json1_1DeleteDeliveryStreamCommand, deserializeAws_json1_1DescribeDeliveryStreamCommand, deserializeAws_json1_1ListDeliveryStreamsCommand, deserializeAws_json1_1ListTagsForDeliveryStreamCommand, deserializeAws_json1_1PutRecordCommand, deserializeAws_json1_1PutRecordBatchCommand, deserializeAws_json1_1StartDeliveryStreamEncryptionCommand, deserializeAws_json1_1StopDeliveryStreamEncryptionCommand, deserializeAws_json1_1TagDeliveryStreamCommand, deserializeAws_json1_1UntagDeliveryStreamCommand, deserializeAws_json1_1UpdateDestinationCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1CreateDeliveryStreamCommand", function() { return serializeAws_json1_1CreateDeliveryStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeleteDeliveryStreamCommand", function() { return serializeAws_json1_1DeleteDeliveryStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeDeliveryStreamCommand", function() { return serializeAws_json1_1DescribeDeliveryStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListDeliveryStreamsCommand", function() { return serializeAws_json1_1ListDeliveryStreamsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListTagsForDeliveryStreamCommand", function() { return serializeAws_json1_1ListTagsForDeliveryStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1PutRecordCommand", function() { return serializeAws_json1_1PutRecordCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1PutRecordBatchCommand", function() { return serializeAws_json1_1PutRecordBatchCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartDeliveryStreamEncryptionCommand", function() { return serializeAws_json1_1StartDeliveryStreamEncryptionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StopDeliveryStreamEncryptionCommand", function() { return serializeAws_json1_1StopDeliveryStreamEncryptionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1TagDeliveryStreamCommand", function() { return serializeAws_json1_1TagDeliveryStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1UntagDeliveryStreamCommand", function() { return serializeAws_json1_1UntagDeliveryStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1UpdateDestinationCommand", function() { return serializeAws_json1_1UpdateDestinationCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1CreateDeliveryStreamCommand", function() { return deserializeAws_json1_1CreateDeliveryStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeleteDeliveryStreamCommand", function() { return deserializeAws_json1_1DeleteDeliveryStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeDeliveryStreamCommand", function() { return deserializeAws_json1_1DescribeDeliveryStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListDeliveryStreamsCommand", function() { return deserializeAws_json1_1ListDeliveryStreamsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListTagsForDeliveryStreamCommand", function() { return deserializeAws_json1_1ListTagsForDeliveryStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1PutRecordCommand", function() { return deserializeAws_json1_1PutRecordCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1PutRecordBatchCommand", function() { return deserializeAws_json1_1PutRecordBatchCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartDeliveryStreamEncryptionCommand", function() { return deserializeAws_json1_1StartDeliveryStreamEncryptionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StopDeliveryStreamEncryptionCommand", function() { return deserializeAws_json1_1StopDeliveryStreamEncryptionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1TagDeliveryStreamCommand", function() { return deserializeAws_json1_1TagDeliveryStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1UntagDeliveryStreamCommand", function() { return deserializeAws_json1_1UntagDeliveryStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1UpdateDestinationCommand", function() { return deserializeAws_json1_1UpdateDestinationCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "Enk7"); var serializeAws_json1_1CreateDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Firehose_20150804.CreateDeliveryStream", }; body = JSON.stringify(serializeAws_json1_1CreateDeliveryStreamInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DeleteDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Firehose_20150804.DeleteDeliveryStream", }; body = JSON.stringify(serializeAws_json1_1DeleteDeliveryStreamInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Firehose_20150804.DescribeDeliveryStream", }; body = JSON.stringify(serializeAws_json1_1DescribeDeliveryStreamInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListDeliveryStreamsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Firehose_20150804.ListDeliveryStreams", }; body = JSON.stringify(serializeAws_json1_1ListDeliveryStreamsInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListTagsForDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Firehose_20150804.ListTagsForDeliveryStream", }; body = JSON.stringify(serializeAws_json1_1ListTagsForDeliveryStreamInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1PutRecordCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Firehose_20150804.PutRecord", }; body = JSON.stringify(serializeAws_json1_1PutRecordInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1PutRecordBatchCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Firehose_20150804.PutRecordBatch", }; body = JSON.stringify(serializeAws_json1_1PutRecordBatchInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartDeliveryStreamEncryptionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Firehose_20150804.StartDeliveryStreamEncryption", }; body = JSON.stringify(serializeAws_json1_1StartDeliveryStreamEncryptionInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StopDeliveryStreamEncryptionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Firehose_20150804.StopDeliveryStreamEncryption", }; body = JSON.stringify(serializeAws_json1_1StopDeliveryStreamEncryptionInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1TagDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Firehose_20150804.TagDeliveryStream", }; body = JSON.stringify(serializeAws_json1_1TagDeliveryStreamInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1UntagDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Firehose_20150804.UntagDeliveryStream", }; body = JSON.stringify(serializeAws_json1_1UntagDeliveryStreamInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1UpdateDestinationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Firehose_20150804.UpdateDestination", }; body = JSON.stringify(serializeAws_json1_1UpdateDestinationInput(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var deserializeAws_json1_1CreateDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1CreateDeliveryStreamCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1CreateDeliveryStreamOutput(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "CreateDeliveryStreamOutput" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1CreateDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InvalidArgumentException": return [3 /*break*/, 2]; case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2]; case "InvalidKMSResourceException": return [3 /*break*/, 4]; case "com.amazonaws.firehose#InvalidKMSResourceException": return [3 /*break*/, 4]; case "LimitExceededException": return [3 /*break*/, 6]; case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 6]; case "ResourceInUseException": return [3 /*break*/, 8]; case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DeleteDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DeleteDeliveryStreamCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DeleteDeliveryStreamOutput(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DeleteDeliveryStreamOutput" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DeleteDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, parsedBody, message; var _e; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) { switch (_f.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _e = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_e.body = _f.sent(), _e)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "ResourceInUseException": return [3 /*break*/, 2]; case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 2]; case "ResourceNotFoundException": return [3 /*break*/, 4]; case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 4]; } return [3 /*break*/, 6]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 7]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 7]; case 6: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _f.label = 7; case 7: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeDeliveryStreamCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DescribeDeliveryStreamOutput(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DescribeDeliveryStreamOutput" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, parsedBody, message; var _d; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) { switch (_e.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _d = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_d.body = _e.sent(), _d)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "ResourceNotFoundException": return [3 /*break*/, 2]; case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 2]; } return [3 /*break*/, 4]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 5]; case 4: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _e.label = 5; case 5: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListDeliveryStreamsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListDeliveryStreamsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListDeliveryStreamsOutput(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListDeliveryStreamsOutput" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListDeliveryStreamsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, parsedBody, message; var _b; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _b = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_b.body = _c.sent(), _b)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; switch (errorCode) { default: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); } message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListTagsForDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListTagsForDeliveryStreamCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListTagsForDeliveryStreamOutput(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListTagsForDeliveryStreamOutput" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListTagsForDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, parsedBody, message; var _f; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _f = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InvalidArgumentException": return [3 /*break*/, 2]; case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2]; case "LimitExceededException": return [3 /*break*/, 4]; case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 4]; case "ResourceNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 6]; } return [3 /*break*/, 8]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 8: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _g.label = 9; case 9: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1PutRecordCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1PutRecordCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1PutRecordOutput(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "PutRecordOutput" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1PutRecordCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InvalidArgumentException": return [3 /*break*/, 2]; case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2]; case "InvalidKMSResourceException": return [3 /*break*/, 4]; case "com.amazonaws.firehose#InvalidKMSResourceException": return [3 /*break*/, 4]; case "ResourceNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 6]; case "ServiceUnavailableException": return [3 /*break*/, 8]; case "com.amazonaws.firehose#ServiceUnavailableException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1PutRecordBatchCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1PutRecordBatchCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1PutRecordBatchOutput(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "PutRecordBatchOutput" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1PutRecordBatchCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InvalidArgumentException": return [3 /*break*/, 2]; case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2]; case "InvalidKMSResourceException": return [3 /*break*/, 4]; case "com.amazonaws.firehose#InvalidKMSResourceException": return [3 /*break*/, 4]; case "ResourceNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 6]; case "ServiceUnavailableException": return [3 /*break*/, 8]; case "com.amazonaws.firehose#ServiceUnavailableException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartDeliveryStreamEncryptionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartDeliveryStreamEncryptionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartDeliveryStreamEncryptionOutput(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartDeliveryStreamEncryptionOutput" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartDeliveryStreamEncryptionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InvalidArgumentException": return [3 /*break*/, 2]; case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2]; case "InvalidKMSResourceException": return [3 /*break*/, 4]; case "com.amazonaws.firehose#InvalidKMSResourceException": return [3 /*break*/, 4]; case "LimitExceededException": return [3 /*break*/, 6]; case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 6]; case "ResourceInUseException": return [3 /*break*/, 8]; case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 8]; case "ResourceNotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StopDeliveryStreamEncryptionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StopDeliveryStreamEncryptionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StopDeliveryStreamEncryptionOutput(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StopDeliveryStreamEncryptionOutput" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StopDeliveryStreamEncryptionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InvalidArgumentException": return [3 /*break*/, 2]; case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2]; case "LimitExceededException": return [3 /*break*/, 4]; case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 4]; case "ResourceInUseException": return [3 /*break*/, 6]; case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1TagDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1TagDeliveryStreamCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1TagDeliveryStreamOutput(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "TagDeliveryStreamOutput" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1TagDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InvalidArgumentException": return [3 /*break*/, 2]; case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2]; case "LimitExceededException": return [3 /*break*/, 4]; case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 4]; case "ResourceInUseException": return [3 /*break*/, 6]; case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1UntagDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1UntagDeliveryStreamCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1UntagDeliveryStreamOutput(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "UntagDeliveryStreamOutput" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1UntagDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InvalidArgumentException": return [3 /*break*/, 2]; case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2]; case "LimitExceededException": return [3 /*break*/, 4]; case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 4]; case "ResourceInUseException": return [3 /*break*/, 6]; case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1UpdateDestinationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1UpdateDestinationCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1UpdateDestinationOutput(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "UpdateDestinationOutput" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1UpdateDestinationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "ConcurrentModificationException": return [3 /*break*/, 2]; case "com.amazonaws.firehose#ConcurrentModificationException": return [3 /*break*/, 2]; case "InvalidArgumentException": return [3 /*break*/, 4]; case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 4]; case "ResourceInUseException": return [3 /*break*/, 6]; case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ConcurrentModificationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InvalidArgumentExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InvalidArgumentException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidArgumentException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InvalidKMSResourceExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InvalidKMSResourceException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidKMSResourceException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1LimitExceededException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ResourceInUseException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceInUseException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ServiceUnavailableException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var serializeAws_json1_1BufferingHints = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IntervalInSeconds !== undefined && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs !== undefined && { SizeInMBs: input.SizeInMBs })); }; var serializeAws_json1_1CloudWatchLoggingOptions = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Enabled !== undefined && { Enabled: input.Enabled })), (input.LogGroupName !== undefined && { LogGroupName: input.LogGroupName })), (input.LogStreamName !== undefined && { LogStreamName: input.LogStreamName })); }; var serializeAws_json1_1ColumnToJsonKeyMappings = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b))); }, {}); }; var serializeAws_json1_1CopyCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CopyOptions !== undefined && { CopyOptions: input.CopyOptions })), (input.DataTableColumns !== undefined && { DataTableColumns: input.DataTableColumns })), (input.DataTableName !== undefined && { DataTableName: input.DataTableName })); }; var serializeAws_json1_1CreateDeliveryStreamInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamEncryptionConfigurationInput !== undefined && { DeliveryStreamEncryptionConfigurationInput: serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput(input.DeliveryStreamEncryptionConfigurationInput, context), })), (input.DeliveryStreamName !== undefined && { DeliveryStreamName: input.DeliveryStreamName })), (input.DeliveryStreamType !== undefined && { DeliveryStreamType: input.DeliveryStreamType })), (input.ElasticsearchDestinationConfiguration !== undefined && { ElasticsearchDestinationConfiguration: serializeAws_json1_1ElasticsearchDestinationConfiguration(input.ElasticsearchDestinationConfiguration, context), })), (input.ExtendedS3DestinationConfiguration !== undefined && { ExtendedS3DestinationConfiguration: serializeAws_json1_1ExtendedS3DestinationConfiguration(input.ExtendedS3DestinationConfiguration, context), })), (input.HttpEndpointDestinationConfiguration !== undefined && { HttpEndpointDestinationConfiguration: serializeAws_json1_1HttpEndpointDestinationConfiguration(input.HttpEndpointDestinationConfiguration, context), })), (input.KinesisStreamSourceConfiguration !== undefined && { KinesisStreamSourceConfiguration: serializeAws_json1_1KinesisStreamSourceConfiguration(input.KinesisStreamSourceConfiguration, context), })), (input.RedshiftDestinationConfiguration !== undefined && { RedshiftDestinationConfiguration: serializeAws_json1_1RedshiftDestinationConfiguration(input.RedshiftDestinationConfiguration, context), })), (input.S3DestinationConfiguration !== undefined && { S3DestinationConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3DestinationConfiguration, context), })), (input.SplunkDestinationConfiguration !== undefined && { SplunkDestinationConfiguration: serializeAws_json1_1SplunkDestinationConfiguration(input.SplunkDestinationConfiguration, context), })), (input.Tags !== undefined && { Tags: serializeAws_json1_1TagDeliveryStreamInputTagList(input.Tags, context) })); }; var serializeAws_json1_1DataFormatConversionConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Enabled !== undefined && { Enabled: input.Enabled })), (input.InputFormatConfiguration !== undefined && { InputFormatConfiguration: serializeAws_json1_1InputFormatConfiguration(input.InputFormatConfiguration, context), })), (input.OutputFormatConfiguration !== undefined && { OutputFormatConfiguration: serializeAws_json1_1OutputFormatConfiguration(input.OutputFormatConfiguration, context), })), (input.SchemaConfiguration !== undefined && { SchemaConfiguration: serializeAws_json1_1SchemaConfiguration(input.SchemaConfiguration, context), })); }; var serializeAws_json1_1DeleteDeliveryStreamInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AllowForceDelete !== undefined && { AllowForceDelete: input.AllowForceDelete })), (input.DeliveryStreamName !== undefined && { DeliveryStreamName: input.DeliveryStreamName })); }; var serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.KeyARN !== undefined && { KeyARN: input.KeyARN })), (input.KeyType !== undefined && { KeyType: input.KeyType })); }; var serializeAws_json1_1DescribeDeliveryStreamInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined && { DeliveryStreamName: input.DeliveryStreamName })), (input.ExclusiveStartDestinationId !== undefined && { ExclusiveStartDestinationId: input.ExclusiveStartDestinationId, })), (input.Limit !== undefined && { Limit: input.Limit })); }; var serializeAws_json1_1Deserializer = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.HiveJsonSerDe !== undefined && { HiveJsonSerDe: serializeAws_json1_1HiveJsonSerDe(input.HiveJsonSerDe, context), })), (input.OpenXJsonSerDe !== undefined && { OpenXJsonSerDe: serializeAws_json1_1OpenXJsonSerDe(input.OpenXJsonSerDe, context), })); }; var serializeAws_json1_1ElasticsearchBufferingHints = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IntervalInSeconds !== undefined && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs !== undefined && { SizeInMBs: input.SizeInMBs })); }; var serializeAws_json1_1ElasticsearchDestinationConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BufferingHints !== undefined && { BufferingHints: serializeAws_json1_1ElasticsearchBufferingHints(input.BufferingHints, context), })), (input.CloudWatchLoggingOptions !== undefined && { CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context), })), (input.ClusterEndpoint !== undefined && { ClusterEndpoint: input.ClusterEndpoint })), (input.DomainARN !== undefined && { DomainARN: input.DomainARN })), (input.IndexName !== undefined && { IndexName: input.IndexName })), (input.IndexRotationPeriod !== undefined && { IndexRotationPeriod: input.IndexRotationPeriod })), (input.ProcessingConfiguration !== undefined && { ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context), })), (input.RetryOptions !== undefined && { RetryOptions: serializeAws_json1_1ElasticsearchRetryOptions(input.RetryOptions, context), })), (input.RoleARN !== undefined && { RoleARN: input.RoleARN })), (input.S3BackupMode !== undefined && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration !== undefined && { S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context), })), (input.TypeName !== undefined && { TypeName: input.TypeName })), (input.VpcConfiguration !== undefined && { VpcConfiguration: serializeAws_json1_1VpcConfiguration(input.VpcConfiguration, context), })); }; var serializeAws_json1_1ElasticsearchDestinationUpdate = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BufferingHints !== undefined && { BufferingHints: serializeAws_json1_1ElasticsearchBufferingHints(input.BufferingHints, context), })), (input.CloudWatchLoggingOptions !== undefined && { CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context), })), (input.ClusterEndpoint !== undefined && { ClusterEndpoint: input.ClusterEndpoint })), (input.DomainARN !== undefined && { DomainARN: input.DomainARN })), (input.IndexName !== undefined && { IndexName: input.IndexName })), (input.IndexRotationPeriod !== undefined && { IndexRotationPeriod: input.IndexRotationPeriod })), (input.ProcessingConfiguration !== undefined && { ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context), })), (input.RetryOptions !== undefined && { RetryOptions: serializeAws_json1_1ElasticsearchRetryOptions(input.RetryOptions, context), })), (input.RoleARN !== undefined && { RoleARN: input.RoleARN })), (input.S3Update !== undefined && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) })), (input.TypeName !== undefined && { TypeName: input.TypeName })); }; var serializeAws_json1_1ElasticsearchRetryOptions = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DurationInSeconds !== undefined && { DurationInSeconds: input.DurationInSeconds })); }; var serializeAws_json1_1EncryptionConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.KMSEncryptionConfig !== undefined && { KMSEncryptionConfig: serializeAws_json1_1KMSEncryptionConfig(input.KMSEncryptionConfig, context), })), (input.NoEncryptionConfig !== undefined && { NoEncryptionConfig: input.NoEncryptionConfig })); }; var serializeAws_json1_1ExtendedS3DestinationConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BucketARN !== undefined && { BucketARN: input.BucketARN })), (input.BufferingHints !== undefined && { BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context), })), (input.CloudWatchLoggingOptions !== undefined && { CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context), })), (input.CompressionFormat !== undefined && { CompressionFormat: input.CompressionFormat })), (input.DataFormatConversionConfiguration !== undefined && { DataFormatConversionConfiguration: serializeAws_json1_1DataFormatConversionConfiguration(input.DataFormatConversionConfiguration, context), })), (input.EncryptionConfiguration !== undefined && { EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context), })), (input.ErrorOutputPrefix !== undefined && { ErrorOutputPrefix: input.ErrorOutputPrefix })), (input.Prefix !== undefined && { Prefix: input.Prefix })), (input.ProcessingConfiguration !== undefined && { ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context), })), (input.RoleARN !== undefined && { RoleARN: input.RoleARN })), (input.S3BackupConfiguration !== undefined && { S3BackupConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3BackupConfiguration, context), })), (input.S3BackupMode !== undefined && { S3BackupMode: input.S3BackupMode })); }; var serializeAws_json1_1ExtendedS3DestinationUpdate = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BucketARN !== undefined && { BucketARN: input.BucketARN })), (input.BufferingHints !== undefined && { BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context), })), (input.CloudWatchLoggingOptions !== undefined && { CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context), })), (input.CompressionFormat !== undefined && { CompressionFormat: input.CompressionFormat })), (input.DataFormatConversionConfiguration !== undefined && { DataFormatConversionConfiguration: serializeAws_json1_1DataFormatConversionConfiguration(input.DataFormatConversionConfiguration, context), })), (input.EncryptionConfiguration !== undefined && { EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context), })), (input.ErrorOutputPrefix !== undefined && { ErrorOutputPrefix: input.ErrorOutputPrefix })), (input.Prefix !== undefined && { Prefix: input.Prefix })), (input.ProcessingConfiguration !== undefined && { ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context), })), (input.RoleARN !== undefined && { RoleARN: input.RoleARN })), (input.S3BackupMode !== undefined && { S3BackupMode: input.S3BackupMode })), (input.S3BackupUpdate !== undefined && { S3BackupUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3BackupUpdate, context), })); }; var serializeAws_json1_1HiveJsonSerDe = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.TimestampFormats !== undefined && { TimestampFormats: serializeAws_json1_1ListOfNonEmptyStrings(input.TimestampFormats, context), })); }; var serializeAws_json1_1HttpEndpointBufferingHints = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IntervalInSeconds !== undefined && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs !== undefined && { SizeInMBs: input.SizeInMBs })); }; var serializeAws_json1_1HttpEndpointCommonAttribute = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AttributeName !== undefined && { AttributeName: input.AttributeName })), (input.AttributeValue !== undefined && { AttributeValue: input.AttributeValue })); }; var serializeAws_json1_1HttpEndpointCommonAttributesList = function (input, context) { return input.map(function (entry) { return serializeAws_json1_1HttpEndpointCommonAttribute(entry, context); }); }; var serializeAws_json1_1HttpEndpointConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AccessKey !== undefined && { AccessKey: input.AccessKey })), (input.Name !== undefined && { Name: input.Name })), (input.Url !== undefined && { Url: input.Url })); }; var serializeAws_json1_1HttpEndpointDestinationConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BufferingHints !== undefined && { BufferingHints: serializeAws_json1_1HttpEndpointBufferingHints(input.BufferingHints, context), })), (input.CloudWatchLoggingOptions !== undefined && { CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context), })), (input.EndpointConfiguration !== undefined && { EndpointConfiguration: serializeAws_json1_1HttpEndpointConfiguration(input.EndpointConfiguration, context), })), (input.ProcessingConfiguration !== undefined && { ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context), })), (input.RequestConfiguration !== undefined && { RequestConfiguration: serializeAws_json1_1HttpEndpointRequestConfiguration(input.RequestConfiguration, context), })), (input.RetryOptions !== undefined && { RetryOptions: serializeAws_json1_1HttpEndpointRetryOptions(input.RetryOptions, context), })), (input.RoleARN !== undefined && { RoleARN: input.RoleARN })), (input.S3BackupMode !== undefined && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration !== undefined && { S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context), })); }; var serializeAws_json1_1HttpEndpointDestinationUpdate = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BufferingHints !== undefined && { BufferingHints: serializeAws_json1_1HttpEndpointBufferingHints(input.BufferingHints, context), })), (input.CloudWatchLoggingOptions !== undefined && { CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context), })), (input.EndpointConfiguration !== undefined && { EndpointConfiguration: serializeAws_json1_1HttpEndpointConfiguration(input.EndpointConfiguration, context), })), (input.ProcessingConfiguration !== undefined && { ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context), })), (input.RequestConfiguration !== undefined && { RequestConfiguration: serializeAws_json1_1HttpEndpointRequestConfiguration(input.RequestConfiguration, context), })), (input.RetryOptions !== undefined && { RetryOptions: serializeAws_json1_1HttpEndpointRetryOptions(input.RetryOptions, context), })), (input.RoleARN !== undefined && { RoleARN: input.RoleARN })), (input.S3BackupMode !== undefined && { S3BackupMode: input.S3BackupMode })), (input.S3Update !== undefined && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) })); }; var serializeAws_json1_1HttpEndpointRequestConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CommonAttributes !== undefined && { CommonAttributes: serializeAws_json1_1HttpEndpointCommonAttributesList(input.CommonAttributes, context), })), (input.ContentEncoding !== undefined && { ContentEncoding: input.ContentEncoding })); }; var serializeAws_json1_1HttpEndpointRetryOptions = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DurationInSeconds !== undefined && { DurationInSeconds: input.DurationInSeconds })); }; var serializeAws_json1_1InputFormatConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Deserializer !== undefined && { Deserializer: serializeAws_json1_1Deserializer(input.Deserializer, context), })); }; var serializeAws_json1_1KinesisStreamSourceConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.KinesisStreamARN !== undefined && { KinesisStreamARN: input.KinesisStreamARN })), (input.RoleARN !== undefined && { RoleARN: input.RoleARN })); }; var serializeAws_json1_1KMSEncryptionConfig = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AWSKMSKeyARN !== undefined && { AWSKMSKeyARN: input.AWSKMSKeyARN })); }; var serializeAws_json1_1ListDeliveryStreamsInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamType !== undefined && { DeliveryStreamType: input.DeliveryStreamType })), (input.ExclusiveStartDeliveryStreamName !== undefined && { ExclusiveStartDeliveryStreamName: input.ExclusiveStartDeliveryStreamName, })), (input.Limit !== undefined && { Limit: input.Limit })); }; var serializeAws_json1_1ListOfNonEmptyStrings = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1ListTagsForDeliveryStreamInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined && { DeliveryStreamName: input.DeliveryStreamName })), (input.ExclusiveStartTagKey !== undefined && { ExclusiveStartTagKey: input.ExclusiveStartTagKey })), (input.Limit !== undefined && { Limit: input.Limit })); }; var serializeAws_json1_1OpenXJsonSerDe = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CaseInsensitive !== undefined && { CaseInsensitive: input.CaseInsensitive })), (input.ColumnToJsonKeyMappings !== undefined && { ColumnToJsonKeyMappings: serializeAws_json1_1ColumnToJsonKeyMappings(input.ColumnToJsonKeyMappings, context), })), (input.ConvertDotsInJsonKeysToUnderscores !== undefined && { ConvertDotsInJsonKeysToUnderscores: input.ConvertDotsInJsonKeysToUnderscores, })); }; var serializeAws_json1_1OrcSerDe = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BlockSizeBytes !== undefined && { BlockSizeBytes: input.BlockSizeBytes })), (input.BloomFilterColumns !== undefined && { BloomFilterColumns: serializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace(input.BloomFilterColumns, context), })), (input.BloomFilterFalsePositiveProbability !== undefined && { BloomFilterFalsePositiveProbability: input.BloomFilterFalsePositiveProbability, })), (input.Compression !== undefined && { Compression: input.Compression })), (input.DictionaryKeyThreshold !== undefined && { DictionaryKeyThreshold: input.DictionaryKeyThreshold })), (input.EnablePadding !== undefined && { EnablePadding: input.EnablePadding })), (input.FormatVersion !== undefined && { FormatVersion: input.FormatVersion })), (input.PaddingTolerance !== undefined && { PaddingTolerance: input.PaddingTolerance })), (input.RowIndexStride !== undefined && { RowIndexStride: input.RowIndexStride })), (input.StripeSizeBytes !== undefined && { StripeSizeBytes: input.StripeSizeBytes })); }; var serializeAws_json1_1OutputFormatConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Serializer !== undefined && { Serializer: serializeAws_json1_1Serializer(input.Serializer, context) })); }; var serializeAws_json1_1ParquetSerDe = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BlockSizeBytes !== undefined && { BlockSizeBytes: input.BlockSizeBytes })), (input.Compression !== undefined && { Compression: input.Compression })), (input.EnableDictionaryCompression !== undefined && { EnableDictionaryCompression: input.EnableDictionaryCompression, })), (input.MaxPaddingBytes !== undefined && { MaxPaddingBytes: input.MaxPaddingBytes })), (input.PageSizeBytes !== undefined && { PageSizeBytes: input.PageSizeBytes })), (input.WriterVersion !== undefined && { WriterVersion: input.WriterVersion })); }; var serializeAws_json1_1ProcessingConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Enabled !== undefined && { Enabled: input.Enabled })), (input.Processors !== undefined && { Processors: serializeAws_json1_1ProcessorList(input.Processors, context) })); }; var serializeAws_json1_1Processor = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Parameters !== undefined && { Parameters: serializeAws_json1_1ProcessorParameterList(input.Parameters, context), })), (input.Type !== undefined && { Type: input.Type })); }; var serializeAws_json1_1ProcessorList = function (input, context) { return input.map(function (entry) { return serializeAws_json1_1Processor(entry, context); }); }; var serializeAws_json1_1ProcessorParameter = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ParameterName !== undefined && { ParameterName: input.ParameterName })), (input.ParameterValue !== undefined && { ParameterValue: input.ParameterValue })); }; var serializeAws_json1_1ProcessorParameterList = function (input, context) { return input.map(function (entry) { return serializeAws_json1_1ProcessorParameter(entry, context); }); }; var serializeAws_json1_1PutRecordBatchInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined && { DeliveryStreamName: input.DeliveryStreamName })), (input.Records !== undefined && { Records: serializeAws_json1_1PutRecordBatchRequestEntryList(input.Records, context), })); }; var serializeAws_json1_1PutRecordBatchRequestEntryList = function (input, context) { return input.map(function (entry) { return serializeAws_json1_1_Record(entry, context); }); }; var serializeAws_json1_1PutRecordInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined && { DeliveryStreamName: input.DeliveryStreamName })), (input.Record !== undefined && { Record: serializeAws_json1_1_Record(input.Record, context) })); }; var serializeAws_json1_1_Record = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Data !== undefined && { Data: context.base64Encoder(input.Data) })); }; var serializeAws_json1_1RedshiftDestinationConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CloudWatchLoggingOptions !== undefined && { CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context), })), (input.ClusterJDBCURL !== undefined && { ClusterJDBCURL: input.ClusterJDBCURL })), (input.CopyCommand !== undefined && { CopyCommand: serializeAws_json1_1CopyCommand(input.CopyCommand, context), })), (input.Password !== undefined && { Password: input.Password })), (input.ProcessingConfiguration !== undefined && { ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context), })), (input.RetryOptions !== undefined && { RetryOptions: serializeAws_json1_1RedshiftRetryOptions(input.RetryOptions, context), })), (input.RoleARN !== undefined && { RoleARN: input.RoleARN })), (input.S3BackupConfiguration !== undefined && { S3BackupConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3BackupConfiguration, context), })), (input.S3BackupMode !== undefined && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration !== undefined && { S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context), })), (input.Username !== undefined && { Username: input.Username })); }; var serializeAws_json1_1RedshiftDestinationUpdate = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CloudWatchLoggingOptions !== undefined && { CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context), })), (input.ClusterJDBCURL !== undefined && { ClusterJDBCURL: input.ClusterJDBCURL })), (input.CopyCommand !== undefined && { CopyCommand: serializeAws_json1_1CopyCommand(input.CopyCommand, context), })), (input.Password !== undefined && { Password: input.Password })), (input.ProcessingConfiguration !== undefined && { ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context), })), (input.RetryOptions !== undefined && { RetryOptions: serializeAws_json1_1RedshiftRetryOptions(input.RetryOptions, context), })), (input.RoleARN !== undefined && { RoleARN: input.RoleARN })), (input.S3BackupMode !== undefined && { S3BackupMode: input.S3BackupMode })), (input.S3BackupUpdate !== undefined && { S3BackupUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3BackupUpdate, context), })), (input.S3Update !== undefined && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) })), (input.Username !== undefined && { Username: input.Username })); }; var serializeAws_json1_1RedshiftRetryOptions = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DurationInSeconds !== undefined && { DurationInSeconds: input.DurationInSeconds })); }; var serializeAws_json1_1S3DestinationConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BucketARN !== undefined && { BucketARN: input.BucketARN })), (input.BufferingHints !== undefined && { BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context), })), (input.CloudWatchLoggingOptions !== undefined && { CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context), })), (input.CompressionFormat !== undefined && { CompressionFormat: input.CompressionFormat })), (input.EncryptionConfiguration !== undefined && { EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context), })), (input.ErrorOutputPrefix !== undefined && { ErrorOutputPrefix: input.ErrorOutputPrefix })), (input.Prefix !== undefined && { Prefix: input.Prefix })), (input.RoleARN !== undefined && { RoleARN: input.RoleARN })); }; var serializeAws_json1_1S3DestinationUpdate = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BucketARN !== undefined && { BucketARN: input.BucketARN })), (input.BufferingHints !== undefined && { BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context), })), (input.CloudWatchLoggingOptions !== undefined && { CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context), })), (input.CompressionFormat !== undefined && { CompressionFormat: input.CompressionFormat })), (input.EncryptionConfiguration !== undefined && { EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context), })), (input.ErrorOutputPrefix !== undefined && { ErrorOutputPrefix: input.ErrorOutputPrefix })), (input.Prefix !== undefined && { Prefix: input.Prefix })), (input.RoleARN !== undefined && { RoleARN: input.RoleARN })); }; var serializeAws_json1_1SchemaConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CatalogId !== undefined && { CatalogId: input.CatalogId })), (input.DatabaseName !== undefined && { DatabaseName: input.DatabaseName })), (input.Region !== undefined && { Region: input.Region })), (input.RoleARN !== undefined && { RoleARN: input.RoleARN })), (input.TableName !== undefined && { TableName: input.TableName })), (input.VersionId !== undefined && { VersionId: input.VersionId })); }; var serializeAws_json1_1SecurityGroupIdList = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1Serializer = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.OrcSerDe !== undefined && { OrcSerDe: serializeAws_json1_1OrcSerDe(input.OrcSerDe, context) })), (input.ParquetSerDe !== undefined && { ParquetSerDe: serializeAws_json1_1ParquetSerDe(input.ParquetSerDe, context), })); }; var serializeAws_json1_1SplunkDestinationConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CloudWatchLoggingOptions !== undefined && { CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context), })), (input.HECAcknowledgmentTimeoutInSeconds !== undefined && { HECAcknowledgmentTimeoutInSeconds: input.HECAcknowledgmentTimeoutInSeconds, })), (input.HECEndpoint !== undefined && { HECEndpoint: input.HECEndpoint })), (input.HECEndpointType !== undefined && { HECEndpointType: input.HECEndpointType })), (input.HECToken !== undefined && { HECToken: input.HECToken })), (input.ProcessingConfiguration !== undefined && { ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context), })), (input.RetryOptions !== undefined && { RetryOptions: serializeAws_json1_1SplunkRetryOptions(input.RetryOptions, context), })), (input.S3BackupMode !== undefined && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration !== undefined && { S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context), })); }; var serializeAws_json1_1SplunkDestinationUpdate = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CloudWatchLoggingOptions !== undefined && { CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context), })), (input.HECAcknowledgmentTimeoutInSeconds !== undefined && { HECAcknowledgmentTimeoutInSeconds: input.HECAcknowledgmentTimeoutInSeconds, })), (input.HECEndpoint !== undefined && { HECEndpoint: input.HECEndpoint })), (input.HECEndpointType !== undefined && { HECEndpointType: input.HECEndpointType })), (input.HECToken !== undefined && { HECToken: input.HECToken })), (input.ProcessingConfiguration !== undefined && { ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context), })), (input.RetryOptions !== undefined && { RetryOptions: serializeAws_json1_1SplunkRetryOptions(input.RetryOptions, context), })), (input.S3BackupMode !== undefined && { S3BackupMode: input.S3BackupMode })), (input.S3Update !== undefined && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) })); }; var serializeAws_json1_1SplunkRetryOptions = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DurationInSeconds !== undefined && { DurationInSeconds: input.DurationInSeconds })); }; var serializeAws_json1_1StartDeliveryStreamEncryptionInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamEncryptionConfigurationInput !== undefined && { DeliveryStreamEncryptionConfigurationInput: serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput(input.DeliveryStreamEncryptionConfigurationInput, context), })), (input.DeliveryStreamName !== undefined && { DeliveryStreamName: input.DeliveryStreamName })); }; var serializeAws_json1_1StopDeliveryStreamEncryptionInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined && { DeliveryStreamName: input.DeliveryStreamName })); }; var serializeAws_json1_1SubnetIdList = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1Tag = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Key !== undefined && { Key: input.Key })), (input.Value !== undefined && { Value: input.Value })); }; var serializeAws_json1_1TagDeliveryStreamInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined && { DeliveryStreamName: input.DeliveryStreamName })), (input.Tags !== undefined && { Tags: serializeAws_json1_1TagDeliveryStreamInputTagList(input.Tags, context) })); }; var serializeAws_json1_1TagDeliveryStreamInputTagList = function (input, context) { return input.map(function (entry) { return serializeAws_json1_1Tag(entry, context); }); }; var serializeAws_json1_1TagKeyList = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1UntagDeliveryStreamInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined && { DeliveryStreamName: input.DeliveryStreamName })), (input.TagKeys !== undefined && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) })); }; var serializeAws_json1_1UpdateDestinationInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CurrentDeliveryStreamVersionId !== undefined && { CurrentDeliveryStreamVersionId: input.CurrentDeliveryStreamVersionId, })), (input.DeliveryStreamName !== undefined && { DeliveryStreamName: input.DeliveryStreamName })), (input.DestinationId !== undefined && { DestinationId: input.DestinationId })), (input.ElasticsearchDestinationUpdate !== undefined && { ElasticsearchDestinationUpdate: serializeAws_json1_1ElasticsearchDestinationUpdate(input.ElasticsearchDestinationUpdate, context), })), (input.ExtendedS3DestinationUpdate !== undefined && { ExtendedS3DestinationUpdate: serializeAws_json1_1ExtendedS3DestinationUpdate(input.ExtendedS3DestinationUpdate, context), })), (input.HttpEndpointDestinationUpdate !== undefined && { HttpEndpointDestinationUpdate: serializeAws_json1_1HttpEndpointDestinationUpdate(input.HttpEndpointDestinationUpdate, context), })), (input.RedshiftDestinationUpdate !== undefined && { RedshiftDestinationUpdate: serializeAws_json1_1RedshiftDestinationUpdate(input.RedshiftDestinationUpdate, context), })), (input.S3DestinationUpdate !== undefined && { S3DestinationUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3DestinationUpdate, context), })), (input.SplunkDestinationUpdate !== undefined && { SplunkDestinationUpdate: serializeAws_json1_1SplunkDestinationUpdate(input.SplunkDestinationUpdate, context), })); }; var serializeAws_json1_1VpcConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.RoleARN !== undefined && { RoleARN: input.RoleARN })), (input.SecurityGroupIds !== undefined && { SecurityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.SecurityGroupIds, context), })), (input.SubnetIds !== undefined && { SubnetIds: serializeAws_json1_1SubnetIdList(input.SubnetIds, context) })); }; var deserializeAws_json1_1BufferingHints = function (output, context) { return { __type: "BufferingHints", IntervalInSeconds: output.IntervalInSeconds !== undefined && output.IntervalInSeconds !== null ? output.IntervalInSeconds : undefined, SizeInMBs: output.SizeInMBs !== undefined && output.SizeInMBs !== null ? output.SizeInMBs : undefined, }; }; var deserializeAws_json1_1CloudWatchLoggingOptions = function (output, context) { return { __type: "CloudWatchLoggingOptions", Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined, LogGroupName: output.LogGroupName !== undefined && output.LogGroupName !== null ? output.LogGroupName : undefined, LogStreamName: output.LogStreamName !== undefined && output.LogStreamName !== null ? output.LogStreamName : undefined, }; }; var deserializeAws_json1_1ColumnToJsonKeyMappings = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b))); }, {}); }; var deserializeAws_json1_1ConcurrentModificationException = function (output, context) { return { __type: "ConcurrentModificationException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1CopyCommand = function (output, context) { return { __type: "CopyCommand", CopyOptions: output.CopyOptions !== undefined && output.CopyOptions !== null ? output.CopyOptions : undefined, DataTableColumns: output.DataTableColumns !== undefined && output.DataTableColumns !== null ? output.DataTableColumns : undefined, DataTableName: output.DataTableName !== undefined && output.DataTableName !== null ? output.DataTableName : undefined, }; }; var deserializeAws_json1_1CreateDeliveryStreamOutput = function (output, context) { return { __type: "CreateDeliveryStreamOutput", DeliveryStreamARN: output.DeliveryStreamARN !== undefined && output.DeliveryStreamARN !== null ? output.DeliveryStreamARN : undefined, }; }; var deserializeAws_json1_1DataFormatConversionConfiguration = function (output, context) { return { __type: "DataFormatConversionConfiguration", Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined, InputFormatConfiguration: output.InputFormatConfiguration !== undefined && output.InputFormatConfiguration !== null ? deserializeAws_json1_1InputFormatConfiguration(output.InputFormatConfiguration, context) : undefined, OutputFormatConfiguration: output.OutputFormatConfiguration !== undefined && output.OutputFormatConfiguration !== null ? deserializeAws_json1_1OutputFormatConfiguration(output.OutputFormatConfiguration, context) : undefined, SchemaConfiguration: output.SchemaConfiguration !== undefined && output.SchemaConfiguration !== null ? deserializeAws_json1_1SchemaConfiguration(output.SchemaConfiguration, context) : undefined, }; }; var deserializeAws_json1_1DeleteDeliveryStreamOutput = function (output, context) { return { __type: "DeleteDeliveryStreamOutput", }; }; var deserializeAws_json1_1DeliveryStreamDescription = function (output, context) { return { __type: "DeliveryStreamDescription", CreateTimestamp: output.CreateTimestamp !== undefined && output.CreateTimestamp !== null ? new Date(Math.round(output.CreateTimestamp * 1000)) : undefined, DeliveryStreamARN: output.DeliveryStreamARN !== undefined && output.DeliveryStreamARN !== null ? output.DeliveryStreamARN : undefined, DeliveryStreamEncryptionConfiguration: output.DeliveryStreamEncryptionConfiguration !== undefined && output.DeliveryStreamEncryptionConfiguration !== null ? deserializeAws_json1_1DeliveryStreamEncryptionConfiguration(output.DeliveryStreamEncryptionConfiguration, context) : undefined, DeliveryStreamName: output.DeliveryStreamName !== undefined && output.DeliveryStreamName !== null ? output.DeliveryStreamName : undefined, DeliveryStreamStatus: output.DeliveryStreamStatus !== undefined && output.DeliveryStreamStatus !== null ? output.DeliveryStreamStatus : undefined, DeliveryStreamType: output.DeliveryStreamType !== undefined && output.DeliveryStreamType !== null ? output.DeliveryStreamType : undefined, Destinations: output.Destinations !== undefined && output.Destinations !== null ? deserializeAws_json1_1DestinationDescriptionList(output.Destinations, context) : undefined, FailureDescription: output.FailureDescription !== undefined && output.FailureDescription !== null ? deserializeAws_json1_1FailureDescription(output.FailureDescription, context) : undefined, HasMoreDestinations: output.HasMoreDestinations !== undefined && output.HasMoreDestinations !== null ? output.HasMoreDestinations : undefined, LastUpdateTimestamp: output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null ? new Date(Math.round(output.LastUpdateTimestamp * 1000)) : undefined, Source: output.Source !== undefined && output.Source !== null ? deserializeAws_json1_1SourceDescription(output.Source, context) : undefined, VersionId: output.VersionId !== undefined && output.VersionId !== null ? output.VersionId : undefined, }; }; var deserializeAws_json1_1DeliveryStreamEncryptionConfiguration = function (output, context) { return { __type: "DeliveryStreamEncryptionConfiguration", FailureDescription: output.FailureDescription !== undefined && output.FailureDescription !== null ? deserializeAws_json1_1FailureDescription(output.FailureDescription, context) : undefined, KeyARN: output.KeyARN !== undefined && output.KeyARN !== null ? output.KeyARN : undefined, KeyType: output.KeyType !== undefined && output.KeyType !== null ? output.KeyType : undefined, Status: output.Status !== undefined && output.Status !== null ? output.Status : undefined, }; }; var deserializeAws_json1_1DeliveryStreamNameList = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1DescribeDeliveryStreamOutput = function (output, context) { return { __type: "DescribeDeliveryStreamOutput", DeliveryStreamDescription: output.DeliveryStreamDescription !== undefined && output.DeliveryStreamDescription !== null ? deserializeAws_json1_1DeliveryStreamDescription(output.DeliveryStreamDescription, context) : undefined, }; }; var deserializeAws_json1_1Deserializer = function (output, context) { return { __type: "Deserializer", HiveJsonSerDe: output.HiveJsonSerDe !== undefined && output.HiveJsonSerDe !== null ? deserializeAws_json1_1HiveJsonSerDe(output.HiveJsonSerDe, context) : undefined, OpenXJsonSerDe: output.OpenXJsonSerDe !== undefined && output.OpenXJsonSerDe !== null ? deserializeAws_json1_1OpenXJsonSerDe(output.OpenXJsonSerDe, context) : undefined, }; }; var deserializeAws_json1_1DestinationDescription = function (output, context) { return { __type: "DestinationDescription", DestinationId: output.DestinationId !== undefined && output.DestinationId !== null ? output.DestinationId : undefined, ElasticsearchDestinationDescription: output.ElasticsearchDestinationDescription !== undefined && output.ElasticsearchDestinationDescription !== null ? deserializeAws_json1_1ElasticsearchDestinationDescription(output.ElasticsearchDestinationDescription, context) : undefined, ExtendedS3DestinationDescription: output.ExtendedS3DestinationDescription !== undefined && output.ExtendedS3DestinationDescription !== null ? deserializeAws_json1_1ExtendedS3DestinationDescription(output.ExtendedS3DestinationDescription, context) : undefined, HttpEndpointDestinationDescription: output.HttpEndpointDestinationDescription !== undefined && output.HttpEndpointDestinationDescription !== null ? deserializeAws_json1_1HttpEndpointDestinationDescription(output.HttpEndpointDestinationDescription, context) : undefined, RedshiftDestinationDescription: output.RedshiftDestinationDescription !== undefined && output.RedshiftDestinationDescription !== null ? deserializeAws_json1_1RedshiftDestinationDescription(output.RedshiftDestinationDescription, context) : undefined, S3DestinationDescription: output.S3DestinationDescription !== undefined && output.S3DestinationDescription !== null ? deserializeAws_json1_1S3DestinationDescription(output.S3DestinationDescription, context) : undefined, SplunkDestinationDescription: output.SplunkDestinationDescription !== undefined && output.SplunkDestinationDescription !== null ? deserializeAws_json1_1SplunkDestinationDescription(output.SplunkDestinationDescription, context) : undefined, }; }; var deserializeAws_json1_1DestinationDescriptionList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1DestinationDescription(entry, context); }); }; var deserializeAws_json1_1ElasticsearchBufferingHints = function (output, context) { return { __type: "ElasticsearchBufferingHints", IntervalInSeconds: output.IntervalInSeconds !== undefined && output.IntervalInSeconds !== null ? output.IntervalInSeconds : undefined, SizeInMBs: output.SizeInMBs !== undefined && output.SizeInMBs !== null ? output.SizeInMBs : undefined, }; }; var deserializeAws_json1_1ElasticsearchDestinationDescription = function (output, context) { return { __type: "ElasticsearchDestinationDescription", BufferingHints: output.BufferingHints !== undefined && output.BufferingHints !== null ? deserializeAws_json1_1ElasticsearchBufferingHints(output.BufferingHints, context) : undefined, CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context) : undefined, ClusterEndpoint: output.ClusterEndpoint !== undefined && output.ClusterEndpoint !== null ? output.ClusterEndpoint : undefined, DomainARN: output.DomainARN !== undefined && output.DomainARN !== null ? output.DomainARN : undefined, IndexName: output.IndexName !== undefined && output.IndexName !== null ? output.IndexName : undefined, IndexRotationPeriod: output.IndexRotationPeriod !== undefined && output.IndexRotationPeriod !== null ? output.IndexRotationPeriod : undefined, ProcessingConfiguration: output.ProcessingConfiguration !== undefined && output.ProcessingConfiguration !== null ? deserializeAws_json1_1ProcessingConfiguration(output.ProcessingConfiguration, context) : undefined, RetryOptions: output.RetryOptions !== undefined && output.RetryOptions !== null ? deserializeAws_json1_1ElasticsearchRetryOptions(output.RetryOptions, context) : undefined, RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined, S3BackupMode: output.S3BackupMode !== undefined && output.S3BackupMode !== null ? output.S3BackupMode : undefined, S3DestinationDescription: output.S3DestinationDescription !== undefined && output.S3DestinationDescription !== null ? deserializeAws_json1_1S3DestinationDescription(output.S3DestinationDescription, context) : undefined, TypeName: output.TypeName !== undefined && output.TypeName !== null ? output.TypeName : undefined, VpcConfigurationDescription: output.VpcConfigurationDescription !== undefined && output.VpcConfigurationDescription !== null ? deserializeAws_json1_1VpcConfigurationDescription(output.VpcConfigurationDescription, context) : undefined, }; }; var deserializeAws_json1_1ElasticsearchRetryOptions = function (output, context) { return { __type: "ElasticsearchRetryOptions", DurationInSeconds: output.DurationInSeconds !== undefined && output.DurationInSeconds !== null ? output.DurationInSeconds : undefined, }; }; var deserializeAws_json1_1EncryptionConfiguration = function (output, context) { return { __type: "EncryptionConfiguration", KMSEncryptionConfig: output.KMSEncryptionConfig !== undefined && output.KMSEncryptionConfig !== null ? deserializeAws_json1_1KMSEncryptionConfig(output.KMSEncryptionConfig, context) : undefined, NoEncryptionConfig: output.NoEncryptionConfig !== undefined && output.NoEncryptionConfig !== null ? output.NoEncryptionConfig : undefined, }; }; var deserializeAws_json1_1ExtendedS3DestinationDescription = function (output, context) { return { __type: "ExtendedS3DestinationDescription", BucketARN: output.BucketARN !== undefined && output.BucketARN !== null ? output.BucketARN : undefined, BufferingHints: output.BufferingHints !== undefined && output.BufferingHints !== null ? deserializeAws_json1_1BufferingHints(output.BufferingHints, context) : undefined, CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context) : undefined, CompressionFormat: output.CompressionFormat !== undefined && output.CompressionFormat !== null ? output.CompressionFormat : undefined, DataFormatConversionConfiguration: output.DataFormatConversionConfiguration !== undefined && output.DataFormatConversionConfiguration !== null ? deserializeAws_json1_1DataFormatConversionConfiguration(output.DataFormatConversionConfiguration, context) : undefined, EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null ? deserializeAws_json1_1EncryptionConfiguration(output.EncryptionConfiguration, context) : undefined, ErrorOutputPrefix: output.ErrorOutputPrefix !== undefined && output.ErrorOutputPrefix !== null ? output.ErrorOutputPrefix : undefined, Prefix: output.Prefix !== undefined && output.Prefix !== null ? output.Prefix : undefined, ProcessingConfiguration: output.ProcessingConfiguration !== undefined && output.ProcessingConfiguration !== null ? deserializeAws_json1_1ProcessingConfiguration(output.ProcessingConfiguration, context) : undefined, RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined, S3BackupDescription: output.S3BackupDescription !== undefined && output.S3BackupDescription !== null ? deserializeAws_json1_1S3DestinationDescription(output.S3BackupDescription, context) : undefined, S3BackupMode: output.S3BackupMode !== undefined && output.S3BackupMode !== null ? output.S3BackupMode : undefined, }; }; var deserializeAws_json1_1FailureDescription = function (output, context) { return { __type: "FailureDescription", Details: output.Details !== undefined && output.Details !== null ? output.Details : undefined, Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, }; }; var deserializeAws_json1_1HiveJsonSerDe = function (output, context) { return { __type: "HiveJsonSerDe", TimestampFormats: output.TimestampFormats !== undefined && output.TimestampFormats !== null ? deserializeAws_json1_1ListOfNonEmptyStrings(output.TimestampFormats, context) : undefined, }; }; var deserializeAws_json1_1HttpEndpointBufferingHints = function (output, context) { return { __type: "HttpEndpointBufferingHints", IntervalInSeconds: output.IntervalInSeconds !== undefined && output.IntervalInSeconds !== null ? output.IntervalInSeconds : undefined, SizeInMBs: output.SizeInMBs !== undefined && output.SizeInMBs !== null ? output.SizeInMBs : undefined, }; }; var deserializeAws_json1_1HttpEndpointCommonAttribute = function (output, context) { return { __type: "HttpEndpointCommonAttribute", AttributeName: output.AttributeName !== undefined && output.AttributeName !== null ? output.AttributeName : undefined, AttributeValue: output.AttributeValue !== undefined && output.AttributeValue !== null ? output.AttributeValue : undefined, }; }; var deserializeAws_json1_1HttpEndpointCommonAttributesList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1HttpEndpointCommonAttribute(entry, context); }); }; var deserializeAws_json1_1HttpEndpointDescription = function (output, context) { return { __type: "HttpEndpointDescription", Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, Url: output.Url !== undefined && output.Url !== null ? output.Url : undefined, }; }; var deserializeAws_json1_1HttpEndpointDestinationDescription = function (output, context) { return { __type: "HttpEndpointDestinationDescription", BufferingHints: output.BufferingHints !== undefined && output.BufferingHints !== null ? deserializeAws_json1_1HttpEndpointBufferingHints(output.BufferingHints, context) : undefined, CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context) : undefined, EndpointConfiguration: output.EndpointConfiguration !== undefined && output.EndpointConfiguration !== null ? deserializeAws_json1_1HttpEndpointDescription(output.EndpointConfiguration, context) : undefined, ProcessingConfiguration: output.ProcessingConfiguration !== undefined && output.ProcessingConfiguration !== null ? deserializeAws_json1_1ProcessingConfiguration(output.ProcessingConfiguration, context) : undefined, RequestConfiguration: output.RequestConfiguration !== undefined && output.RequestConfiguration !== null ? deserializeAws_json1_1HttpEndpointRequestConfiguration(output.RequestConfiguration, context) : undefined, RetryOptions: output.RetryOptions !== undefined && output.RetryOptions !== null ? deserializeAws_json1_1HttpEndpointRetryOptions(output.RetryOptions, context) : undefined, RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined, S3BackupMode: output.S3BackupMode !== undefined && output.S3BackupMode !== null ? output.S3BackupMode : undefined, S3DestinationDescription: output.S3DestinationDescription !== undefined && output.S3DestinationDescription !== null ? deserializeAws_json1_1S3DestinationDescription(output.S3DestinationDescription, context) : undefined, }; }; var deserializeAws_json1_1HttpEndpointRequestConfiguration = function (output, context) { return { __type: "HttpEndpointRequestConfiguration", CommonAttributes: output.CommonAttributes !== undefined && output.CommonAttributes !== null ? deserializeAws_json1_1HttpEndpointCommonAttributesList(output.CommonAttributes, context) : undefined, ContentEncoding: output.ContentEncoding !== undefined && output.ContentEncoding !== null ? output.ContentEncoding : undefined, }; }; var deserializeAws_json1_1HttpEndpointRetryOptions = function (output, context) { return { __type: "HttpEndpointRetryOptions", DurationInSeconds: output.DurationInSeconds !== undefined && output.DurationInSeconds !== null ? output.DurationInSeconds : undefined, }; }; var deserializeAws_json1_1InputFormatConfiguration = function (output, context) { return { __type: "InputFormatConfiguration", Deserializer: output.Deserializer !== undefined && output.Deserializer !== null ? deserializeAws_json1_1Deserializer(output.Deserializer, context) : undefined, }; }; var deserializeAws_json1_1InvalidArgumentException = function (output, context) { return { __type: "InvalidArgumentException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1InvalidKMSResourceException = function (output, context) { return { __type: "InvalidKMSResourceException", code: output.code !== undefined && output.code !== null ? output.code : undefined, message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1KinesisStreamSourceDescription = function (output, context) { return { __type: "KinesisStreamSourceDescription", DeliveryStartTimestamp: output.DeliveryStartTimestamp !== undefined && output.DeliveryStartTimestamp !== null ? new Date(Math.round(output.DeliveryStartTimestamp * 1000)) : undefined, KinesisStreamARN: output.KinesisStreamARN !== undefined && output.KinesisStreamARN !== null ? output.KinesisStreamARN : undefined, RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined, }; }; var deserializeAws_json1_1KMSEncryptionConfig = function (output, context) { return { __type: "KMSEncryptionConfig", AWSKMSKeyARN: output.AWSKMSKeyARN !== undefined && output.AWSKMSKeyARN !== null ? output.AWSKMSKeyARN : undefined, }; }; var deserializeAws_json1_1LimitExceededException = function (output, context) { return { __type: "LimitExceededException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1ListDeliveryStreamsOutput = function (output, context) { return { __type: "ListDeliveryStreamsOutput", DeliveryStreamNames: output.DeliveryStreamNames !== undefined && output.DeliveryStreamNames !== null ? deserializeAws_json1_1DeliveryStreamNameList(output.DeliveryStreamNames, context) : undefined, HasMoreDeliveryStreams: output.HasMoreDeliveryStreams !== undefined && output.HasMoreDeliveryStreams !== null ? output.HasMoreDeliveryStreams : undefined, }; }; var deserializeAws_json1_1ListOfNonEmptyStrings = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1ListTagsForDeliveryStreamOutput = function (output, context) { return { __type: "ListTagsForDeliveryStreamOutput", HasMoreTags: output.HasMoreTags !== undefined && output.HasMoreTags !== null ? output.HasMoreTags : undefined, Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1ListTagsForDeliveryStreamOutputTagList(output.Tags, context) : undefined, }; }; var deserializeAws_json1_1ListTagsForDeliveryStreamOutputTagList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Tag(entry, context); }); }; var deserializeAws_json1_1OpenXJsonSerDe = function (output, context) { return { __type: "OpenXJsonSerDe", CaseInsensitive: output.CaseInsensitive !== undefined && output.CaseInsensitive !== null ? output.CaseInsensitive : undefined, ColumnToJsonKeyMappings: output.ColumnToJsonKeyMappings !== undefined && output.ColumnToJsonKeyMappings !== null ? deserializeAws_json1_1ColumnToJsonKeyMappings(output.ColumnToJsonKeyMappings, context) : undefined, ConvertDotsInJsonKeysToUnderscores: output.ConvertDotsInJsonKeysToUnderscores !== undefined && output.ConvertDotsInJsonKeysToUnderscores !== null ? output.ConvertDotsInJsonKeysToUnderscores : undefined, }; }; var deserializeAws_json1_1OrcSerDe = function (output, context) { return { __type: "OrcSerDe", BlockSizeBytes: output.BlockSizeBytes !== undefined && output.BlockSizeBytes !== null ? output.BlockSizeBytes : undefined, BloomFilterColumns: output.BloomFilterColumns !== undefined && output.BloomFilterColumns !== null ? deserializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace(output.BloomFilterColumns, context) : undefined, BloomFilterFalsePositiveProbability: output.BloomFilterFalsePositiveProbability !== undefined && output.BloomFilterFalsePositiveProbability !== null ? output.BloomFilterFalsePositiveProbability : undefined, Compression: output.Compression !== undefined && output.Compression !== null ? output.Compression : undefined, DictionaryKeyThreshold: output.DictionaryKeyThreshold !== undefined && output.DictionaryKeyThreshold !== null ? output.DictionaryKeyThreshold : undefined, EnablePadding: output.EnablePadding !== undefined && output.EnablePadding !== null ? output.EnablePadding : undefined, FormatVersion: output.FormatVersion !== undefined && output.FormatVersion !== null ? output.FormatVersion : undefined, PaddingTolerance: output.PaddingTolerance !== undefined && output.PaddingTolerance !== null ? output.PaddingTolerance : undefined, RowIndexStride: output.RowIndexStride !== undefined && output.RowIndexStride !== null ? output.RowIndexStride : undefined, StripeSizeBytes: output.StripeSizeBytes !== undefined && output.StripeSizeBytes !== null ? output.StripeSizeBytes : undefined, }; }; var deserializeAws_json1_1OutputFormatConfiguration = function (output, context) { return { __type: "OutputFormatConfiguration", Serializer: output.Serializer !== undefined && output.Serializer !== null ? deserializeAws_json1_1Serializer(output.Serializer, context) : undefined, }; }; var deserializeAws_json1_1ParquetSerDe = function (output, context) { return { __type: "ParquetSerDe", BlockSizeBytes: output.BlockSizeBytes !== undefined && output.BlockSizeBytes !== null ? output.BlockSizeBytes : undefined, Compression: output.Compression !== undefined && output.Compression !== null ? output.Compression : undefined, EnableDictionaryCompression: output.EnableDictionaryCompression !== undefined && output.EnableDictionaryCompression !== null ? output.EnableDictionaryCompression : undefined, MaxPaddingBytes: output.MaxPaddingBytes !== undefined && output.MaxPaddingBytes !== null ? output.MaxPaddingBytes : undefined, PageSizeBytes: output.PageSizeBytes !== undefined && output.PageSizeBytes !== null ? output.PageSizeBytes : undefined, WriterVersion: output.WriterVersion !== undefined && output.WriterVersion !== null ? output.WriterVersion : undefined, }; }; var deserializeAws_json1_1ProcessingConfiguration = function (output, context) { return { __type: "ProcessingConfiguration", Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined, Processors: output.Processors !== undefined && output.Processors !== null ? deserializeAws_json1_1ProcessorList(output.Processors, context) : undefined, }; }; var deserializeAws_json1_1Processor = function (output, context) { return { __type: "Processor", Parameters: output.Parameters !== undefined && output.Parameters !== null ? deserializeAws_json1_1ProcessorParameterList(output.Parameters, context) : undefined, Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, }; }; var deserializeAws_json1_1ProcessorList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Processor(entry, context); }); }; var deserializeAws_json1_1ProcessorParameter = function (output, context) { return { __type: "ProcessorParameter", ParameterName: output.ParameterName !== undefined && output.ParameterName !== null ? output.ParameterName : undefined, ParameterValue: output.ParameterValue !== undefined && output.ParameterValue !== null ? output.ParameterValue : undefined, }; }; var deserializeAws_json1_1ProcessorParameterList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1ProcessorParameter(entry, context); }); }; var deserializeAws_json1_1PutRecordBatchOutput = function (output, context) { return { __type: "PutRecordBatchOutput", Encrypted: output.Encrypted !== undefined && output.Encrypted !== null ? output.Encrypted : undefined, FailedPutCount: output.FailedPutCount !== undefined && output.FailedPutCount !== null ? output.FailedPutCount : undefined, RequestResponses: output.RequestResponses !== undefined && output.RequestResponses !== null ? deserializeAws_json1_1PutRecordBatchResponseEntryList(output.RequestResponses, context) : undefined, }; }; var deserializeAws_json1_1PutRecordBatchResponseEntry = function (output, context) { return { __type: "PutRecordBatchResponseEntry", ErrorCode: output.ErrorCode !== undefined && output.ErrorCode !== null ? output.ErrorCode : undefined, ErrorMessage: output.ErrorMessage !== undefined && output.ErrorMessage !== null ? output.ErrorMessage : undefined, RecordId: output.RecordId !== undefined && output.RecordId !== null ? output.RecordId : undefined, }; }; var deserializeAws_json1_1PutRecordBatchResponseEntryList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1PutRecordBatchResponseEntry(entry, context); }); }; var deserializeAws_json1_1PutRecordOutput = function (output, context) { return { __type: "PutRecordOutput", Encrypted: output.Encrypted !== undefined && output.Encrypted !== null ? output.Encrypted : undefined, RecordId: output.RecordId !== undefined && output.RecordId !== null ? output.RecordId : undefined, }; }; var deserializeAws_json1_1RedshiftDestinationDescription = function (output, context) { return { __type: "RedshiftDestinationDescription", CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context) : undefined, ClusterJDBCURL: output.ClusterJDBCURL !== undefined && output.ClusterJDBCURL !== null ? output.ClusterJDBCURL : undefined, CopyCommand: output.CopyCommand !== undefined && output.CopyCommand !== null ? deserializeAws_json1_1CopyCommand(output.CopyCommand, context) : undefined, ProcessingConfiguration: output.ProcessingConfiguration !== undefined && output.ProcessingConfiguration !== null ? deserializeAws_json1_1ProcessingConfiguration(output.ProcessingConfiguration, context) : undefined, RetryOptions: output.RetryOptions !== undefined && output.RetryOptions !== null ? deserializeAws_json1_1RedshiftRetryOptions(output.RetryOptions, context) : undefined, RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined, S3BackupDescription: output.S3BackupDescription !== undefined && output.S3BackupDescription !== null ? deserializeAws_json1_1S3DestinationDescription(output.S3BackupDescription, context) : undefined, S3BackupMode: output.S3BackupMode !== undefined && output.S3BackupMode !== null ? output.S3BackupMode : undefined, S3DestinationDescription: output.S3DestinationDescription !== undefined && output.S3DestinationDescription !== null ? deserializeAws_json1_1S3DestinationDescription(output.S3DestinationDescription, context) : undefined, Username: output.Username !== undefined && output.Username !== null ? output.Username : undefined, }; }; var deserializeAws_json1_1RedshiftRetryOptions = function (output, context) { return { __type: "RedshiftRetryOptions", DurationInSeconds: output.DurationInSeconds !== undefined && output.DurationInSeconds !== null ? output.DurationInSeconds : undefined, }; }; var deserializeAws_json1_1ResourceInUseException = function (output, context) { return { __type: "ResourceInUseException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1ResourceNotFoundException = function (output, context) { return { __type: "ResourceNotFoundException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1S3DestinationDescription = function (output, context) { return { __type: "S3DestinationDescription", BucketARN: output.BucketARN !== undefined && output.BucketARN !== null ? output.BucketARN : undefined, BufferingHints: output.BufferingHints !== undefined && output.BufferingHints !== null ? deserializeAws_json1_1BufferingHints(output.BufferingHints, context) : undefined, CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context) : undefined, CompressionFormat: output.CompressionFormat !== undefined && output.CompressionFormat !== null ? output.CompressionFormat : undefined, EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null ? deserializeAws_json1_1EncryptionConfiguration(output.EncryptionConfiguration, context) : undefined, ErrorOutputPrefix: output.ErrorOutputPrefix !== undefined && output.ErrorOutputPrefix !== null ? output.ErrorOutputPrefix : undefined, Prefix: output.Prefix !== undefined && output.Prefix !== null ? output.Prefix : undefined, RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined, }; }; var deserializeAws_json1_1SchemaConfiguration = function (output, context) { return { __type: "SchemaConfiguration", CatalogId: output.CatalogId !== undefined && output.CatalogId !== null ? output.CatalogId : undefined, DatabaseName: output.DatabaseName !== undefined && output.DatabaseName !== null ? output.DatabaseName : undefined, Region: output.Region !== undefined && output.Region !== null ? output.Region : undefined, RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined, TableName: output.TableName !== undefined && output.TableName !== null ? output.TableName : undefined, VersionId: output.VersionId !== undefined && output.VersionId !== null ? output.VersionId : undefined, }; }; var deserializeAws_json1_1SecurityGroupIdList = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1Serializer = function (output, context) { return { __type: "Serializer", OrcSerDe: output.OrcSerDe !== undefined && output.OrcSerDe !== null ? deserializeAws_json1_1OrcSerDe(output.OrcSerDe, context) : undefined, ParquetSerDe: output.ParquetSerDe !== undefined && output.ParquetSerDe !== null ? deserializeAws_json1_1ParquetSerDe(output.ParquetSerDe, context) : undefined, }; }; var deserializeAws_json1_1ServiceUnavailableException = function (output, context) { return { __type: "ServiceUnavailableException", message: output.message !== undefined && output.message !== null ? output.message : undefined, }; }; var deserializeAws_json1_1SourceDescription = function (output, context) { return { __type: "SourceDescription", KinesisStreamSourceDescription: output.KinesisStreamSourceDescription !== undefined && output.KinesisStreamSourceDescription !== null ? deserializeAws_json1_1KinesisStreamSourceDescription(output.KinesisStreamSourceDescription, context) : undefined, }; }; var deserializeAws_json1_1SplunkDestinationDescription = function (output, context) { return { __type: "SplunkDestinationDescription", CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context) : undefined, HECAcknowledgmentTimeoutInSeconds: output.HECAcknowledgmentTimeoutInSeconds !== undefined && output.HECAcknowledgmentTimeoutInSeconds !== null ? output.HECAcknowledgmentTimeoutInSeconds : undefined, HECEndpoint: output.HECEndpoint !== undefined && output.HECEndpoint !== null ? output.HECEndpoint : undefined, HECEndpointType: output.HECEndpointType !== undefined && output.HECEndpointType !== null ? output.HECEndpointType : undefined, HECToken: output.HECToken !== undefined && output.HECToken !== null ? output.HECToken : undefined, ProcessingConfiguration: output.ProcessingConfiguration !== undefined && output.ProcessingConfiguration !== null ? deserializeAws_json1_1ProcessingConfiguration(output.ProcessingConfiguration, context) : undefined, RetryOptions: output.RetryOptions !== undefined && output.RetryOptions !== null ? deserializeAws_json1_1SplunkRetryOptions(output.RetryOptions, context) : undefined, S3BackupMode: output.S3BackupMode !== undefined && output.S3BackupMode !== null ? output.S3BackupMode : undefined, S3DestinationDescription: output.S3DestinationDescription !== undefined && output.S3DestinationDescription !== null ? deserializeAws_json1_1S3DestinationDescription(output.S3DestinationDescription, context) : undefined, }; }; var deserializeAws_json1_1SplunkRetryOptions = function (output, context) { return { __type: "SplunkRetryOptions", DurationInSeconds: output.DurationInSeconds !== undefined && output.DurationInSeconds !== null ? output.DurationInSeconds : undefined, }; }; var deserializeAws_json1_1StartDeliveryStreamEncryptionOutput = function (output, context) { return { __type: "StartDeliveryStreamEncryptionOutput", }; }; var deserializeAws_json1_1StopDeliveryStreamEncryptionOutput = function (output, context) { return { __type: "StopDeliveryStreamEncryptionOutput", }; }; var deserializeAws_json1_1SubnetIdList = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1Tag = function (output, context) { return { __type: "Tag", Key: output.Key !== undefined && output.Key !== null ? output.Key : undefined, Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined, }; }; var deserializeAws_json1_1TagDeliveryStreamOutput = function (output, context) { return { __type: "TagDeliveryStreamOutput", }; }; var deserializeAws_json1_1UntagDeliveryStreamOutput = function (output, context) { return { __type: "UntagDeliveryStreamOutput", }; }; var deserializeAws_json1_1UpdateDestinationOutput = function (output, context) { return { __type: "UpdateDestinationOutput", }; }; var deserializeAws_json1_1VpcConfigurationDescription = function (output, context) { return { __type: "VpcConfigurationDescription", RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined, SecurityGroupIds: output.SecurityGroupIds !== undefined && output.SecurityGroupIds !== null ? deserializeAws_json1_1SecurityGroupIdList(output.SecurityGroupIds, context) : undefined, SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null ? deserializeAws_json1_1SubnetIdList(output.SubnetIds, context) : undefined, VpcId: output.VpcId !== undefined && output.VpcId !== null ? output.VpcId : undefined, }; }; var deserializeMetadata = function (output) { return ({ httpStatusCode: output.statusCode, httpHeaders: output.headers, requestId: output.headers["x-amzn-requestid"], }); }; // Collect low-level response body stream to Uint8Array. var collectBody = function (streamBody, context) { if (streamBody === void 0) { streamBody = new Uint8Array(); } if (streamBody instanceof Uint8Array) { return Promise.resolve(streamBody); } return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); }; // Encode Uint8Array data into string with utf-8. var collectBodyString = function (streamBody, context) { return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); }); }; var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var _a, hostname, _b, protocol, port, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; contents = { protocol: protocol, hostname: hostname, port: port, method: "POST", path: path, headers: headers, }; if (resolvedHostname !== undefined) { contents.hostname = resolvedHostname; } if (body !== undefined) { contents.body = body; } return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"](contents)]; } }); }); }; var parseBody = function (streamBody, context) { return collectBodyString(streamBody, context).then(function (encoded) { if (encoded.length) { return JSON.parse(encoded); } return {}; }); }; //# sourceMappingURL=Aws_json1_1.js.map /***/ }), /***/ "Ib8C": /*!****************************************!*\ !*** ./node_modules/crypto-js/core.js ***! \****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { ;(function (root, factory) { if (true) { // CommonJS module.exports = exports = factory(); } else {} }(this, function () { /** * CryptoJS core components. */ var CryptoJS = CryptoJS || (function (Math, undefined) { /* * Local polyfil of Object.create */ var create = Object.create || (function () { function F() {}; return function (obj) { var subtype; F.prototype = obj; subtype = new F(); F.prototype = null; return subtype; }; }()) /** * CryptoJS namespace. */ var C = {}; /** * Library namespace. */ var C_lib = C.lib = {}; /** * Base object for prototypal inheritance. */ var Base = C_lib.Base = (function () { return { /** * Creates a new object that inherits from this object. * * @param {Object} overrides Properties to copy into the new object. * * @return {Object} The new object. * * @static * * @example * * var MyType = CryptoJS.lib.Base.extend({ * field: 'value', * * method: function () { * } * }); */ extend: function (overrides) { // Spawn var subtype = create(this); // Augment if (overrides) { subtype.mixIn(overrides); } // Create default initializer if (!subtype.hasOwnProperty('init') || this.init === subtype.init) { subtype.init = function () { subtype.$super.init.apply(this, arguments); }; } // Initializer's prototype is the subtype object subtype.init.prototype = subtype; // Reference supertype subtype.$super = this; return subtype; }, /** * Extends this object and runs the init method. * Arguments to create() will be passed to init(). * * @return {Object} The new object. * * @static * * @example * * var instance = MyType.create(); */ create: function () { var instance = this.extend(); instance.init.apply(instance, arguments); return instance; }, /** * Initializes a newly created object. * Override this method to add some logic when your objects are created. * * @example * * var MyType = CryptoJS.lib.Base.extend({ * init: function () { * // ... * } * }); */ init: function () { }, /** * Copies properties into this object. * * @param {Object} properties The properties to mix in. * * @example * * MyType.mixIn({ * field: 'value' * }); */ mixIn: function (properties) { for (var propertyName in properties) { if (properties.hasOwnProperty(propertyName)) { this[propertyName] = properties[propertyName]; } } // IE won't copy toString using the loop above if (properties.hasOwnProperty('toString')) { this.toString = properties.toString; } }, /** * Creates a copy of this object. * * @return {Object} The clone. * * @example * * var clone = instance.clone(); */ clone: function () { return this.init.prototype.extend(this); } }; }()); /** * An array of 32-bit words. * * @property {Array} words The array of 32-bit words. * @property {number} sigBytes The number of significant bytes in this word array. */ var WordArray = C_lib.WordArray = Base.extend({ /** * Initializes a newly created word array. * * @param {Array} words (Optional) An array of 32-bit words. * @param {number} sigBytes (Optional) The number of significant bytes in the words. * * @example * * var wordArray = CryptoJS.lib.WordArray.create(); * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]); * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6); */ init: function (words, sigBytes) { words = this.words = words || []; if (sigBytes != undefined) { this.sigBytes = sigBytes; } else { this.sigBytes = words.length * 4; } }, /** * Converts this word array to a string. * * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex * * @return {string} The stringified word array. * * @example * * var string = wordArray + ''; * var string = wordArray.toString(); * var string = wordArray.toString(CryptoJS.enc.Utf8); */ toString: function (encoder) { return (encoder || Hex).stringify(this); }, /** * Concatenates a word array to this word array. * * @param {WordArray} wordArray The word array to append. * * @return {WordArray} This word array. * * @example * * wordArray1.concat(wordArray2); */ concat: function (wordArray) { // Shortcuts var thisWords = this.words; var thatWords = wordArray.words; var thisSigBytes = this.sigBytes; var thatSigBytes = wordArray.sigBytes; // Clamp excess bits this.clamp(); // Concat if (thisSigBytes % 4) { // Copy one byte at a time for (var i = 0; i < thatSigBytes; i++) { var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff; thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8); } } else { // Copy one word at a time for (var i = 0; i < thatSigBytes; i += 4) { thisWords[(thisSigBytes + i) >>> 2] = thatWords[i >>> 2]; } } this.sigBytes += thatSigBytes; // Chainable return this; }, /** * Removes insignificant bits. * * @example * * wordArray.clamp(); */ clamp: function () { // Shortcuts var words = this.words; var sigBytes = this.sigBytes; // Clamp words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8); words.length = Math.ceil(sigBytes / 4); }, /** * Creates a copy of this word array. * * @return {WordArray} The clone. * * @example * * var clone = wordArray.clone(); */ clone: function () { var clone = Base.clone.call(this); clone.words = this.words.slice(0); return clone; }, /** * Creates a word array filled with random bytes. * * @param {number} nBytes The number of random bytes to generate. * * @return {WordArray} The random word array. * * @static * * @example * * var wordArray = CryptoJS.lib.WordArray.random(16); */ random: function (nBytes) { var words = []; var r = (function (m_w) { var m_w = m_w; var m_z = 0x3ade68b1; var mask = 0xffffffff; return function () { m_z = (0x9069 * (m_z & 0xFFFF) + (m_z >> 0x10)) & mask; m_w = (0x4650 * (m_w & 0xFFFF) + (m_w >> 0x10)) & mask; var result = ((m_z << 0x10) + m_w) & mask; result /= 0x100000000; result += 0.5; return result * (Math.random() > .5 ? 1 : -1); } }); for (var i = 0, rcache; i < nBytes; i += 4) { var _r = r((rcache || Math.random()) * 0x100000000); rcache = _r() * 0x3ade67b7; words.push((_r() * 0x100000000) | 0); } return new WordArray.init(words, nBytes); } }); /** * Encoder namespace. */ var C_enc = C.enc = {}; /** * Hex encoding strategy. */ var Hex = C_enc.Hex = { /** * Converts a word array to a hex string. * * @param {WordArray} wordArray The word array. * * @return {string} The hex string. * * @static * * @example * * var hexString = CryptoJS.enc.Hex.stringify(wordArray); */ stringify: function (wordArray) { // Shortcuts var words = wordArray.words; var sigBytes = wordArray.sigBytes; // Convert var hexChars = []; for (var i = 0; i < sigBytes; i++) { var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff; hexChars.push((bite >>> 4).toString(16)); hexChars.push((bite & 0x0f).toString(16)); } return hexChars.join(''); }, /** * Converts a hex string to a word array. * * @param {string} hexStr The hex string. * * @return {WordArray} The word array. * * @static * * @example * * var wordArray = CryptoJS.enc.Hex.parse(hexString); */ parse: function (hexStr) { // Shortcut var hexStrLength = hexStr.length; // Convert var words = []; for (var i = 0; i < hexStrLength; i += 2) { words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4); } return new WordArray.init(words, hexStrLength / 2); } }; /** * Latin1 encoding strategy. */ var Latin1 = C_enc.Latin1 = { /** * Converts a word array to a Latin1 string. * * @param {WordArray} wordArray The word array. * * @return {string} The Latin1 string. * * @static * * @example * * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray); */ stringify: function (wordArray) { // Shortcuts var words = wordArray.words; var sigBytes = wordArray.sigBytes; // Convert var latin1Chars = []; for (var i = 0; i < sigBytes; i++) { var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff; latin1Chars.push(String.fromCharCode(bite)); } return latin1Chars.join(''); }, /** * Converts a Latin1 string to a word array. * * @param {string} latin1Str The Latin1 string. * * @return {WordArray} The word array. * * @static * * @example * * var wordArray = CryptoJS.enc.Latin1.parse(latin1String); */ parse: function (latin1Str) { // Shortcut var latin1StrLength = latin1Str.length; // Convert var words = []; for (var i = 0; i < latin1StrLength; i++) { words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8); } return new WordArray.init(words, latin1StrLength); } }; /** * UTF-8 encoding strategy. */ var Utf8 = C_enc.Utf8 = { /** * Converts a word array to a UTF-8 string. * * @param {WordArray} wordArray The word array. * * @return {string} The UTF-8 string. * * @static * * @example * * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray); */ stringify: function (wordArray) { try { return decodeURIComponent(escape(Latin1.stringify(wordArray))); } catch (e) { throw new Error('Malformed UTF-8 data'); } }, /** * Converts a UTF-8 string to a word array. * * @param {string} utf8Str The UTF-8 string. * * @return {WordArray} The word array. * * @static * * @example * * var wordArray = CryptoJS.enc.Utf8.parse(utf8String); */ parse: function (utf8Str) { return Latin1.parse(unescape(encodeURIComponent(utf8Str))); } }; /** * Abstract buffered block algorithm template. * * The property blockSize must be implemented in a concrete subtype. * * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0 */ var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({ /** * Resets this block algorithm's data buffer to its initial state. * * @example * * bufferedBlockAlgorithm.reset(); */ reset: function () { // Initial values this._data = new WordArray.init(); this._nDataBytes = 0; }, /** * Adds new data to this block algorithm's buffer. * * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8. * * @example * * bufferedBlockAlgorithm._append('data'); * bufferedBlockAlgorithm._append(wordArray); */ _append: function (data) { // Convert string to WordArray, else assume WordArray already if (typeof data == 'string') { data = Utf8.parse(data); } // Append this._data.concat(data); this._nDataBytes += data.sigBytes; }, /** * Processes available data blocks. * * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype. * * @param {boolean} doFlush Whether all blocks and partial blocks should be processed. * * @return {WordArray} The processed data. * * @example * * var processedData = bufferedBlockAlgorithm._process(); * var processedData = bufferedBlockAlgorithm._process(!!'flush'); */ _process: function (doFlush) { // Shortcuts var data = this._data; var dataWords = data.words; var dataSigBytes = data.sigBytes; var blockSize = this.blockSize; var blockSizeBytes = blockSize * 4; // Count blocks ready var nBlocksReady = dataSigBytes / blockSizeBytes; if (doFlush) { // Round up to include partial blocks nBlocksReady = Math.ceil(nBlocksReady); } else { // Round down to include only full blocks, // less the number of blocks that must remain in the buffer nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0); } // Count words ready var nWordsReady = nBlocksReady * blockSize; // Count bytes ready var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes); // Process blocks if (nWordsReady) { for (var offset = 0; offset < nWordsReady; offset += blockSize) { // Perform concrete-algorithm logic this._doProcessBlock(dataWords, offset); } // Remove processed words var processedWords = dataWords.splice(0, nWordsReady); data.sigBytes -= nBytesReady; } // Return processed words return new WordArray.init(processedWords, nBytesReady); }, /** * Creates a copy of this object. * * @return {Object} The clone. * * @example * * var clone = bufferedBlockAlgorithm.clone(); */ clone: function () { var clone = Base.clone.call(this); clone._data = this._data.clone(); return clone; }, _minBufferSize: 0 }); /** * Abstract hasher template. * * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits) */ var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({ /** * Configuration options. */ cfg: Base.extend(), /** * Initializes a newly created hasher. * * @param {Object} cfg (Optional) The configuration options to use for this hash computation. * * @example * * var hasher = CryptoJS.algo.SHA256.create(); */ init: function (cfg) { // Apply config defaults this.cfg = this.cfg.extend(cfg); // Set initial values this.reset(); }, /** * Resets this hasher to its initial state. * * @example * * hasher.reset(); */ reset: function () { // Reset data buffer BufferedBlockAlgorithm.reset.call(this); // Perform concrete-hasher logic this._doReset(); }, /** * Updates this hasher with a message. * * @param {WordArray|string} messageUpdate The message to append. * * @return {Hasher} This hasher. * * @example * * hasher.update('message'); * hasher.update(wordArray); */ update: function (messageUpdate) { // Append this._append(messageUpdate); // Update the hash this._process(); // Chainable return this; }, /** * Finalizes the hash computation. * Note that the finalize operation is effectively a destructive, read-once operation. * * @param {WordArray|string} messageUpdate (Optional) A final message update. * * @return {WordArray} The hash. * * @example * * var hash = hasher.finalize(); * var hash = hasher.finalize('message'); * var hash = hasher.finalize(wordArray); */ finalize: function (messageUpdate) { // Final message update if (messageUpdate) { this._append(messageUpdate); } // Perform concrete-hasher logic var hash = this._doFinalize(); return hash; }, blockSize: 512/32, /** * Creates a shortcut function to a hasher's object interface. * * @param {Hasher} hasher The hasher to create a helper for. * * @return {Function} The shortcut function. * * @static * * @example * * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256); */ _createHelper: function (hasher) { return function (message, cfg) { return new hasher.init(cfg).finalize(message); }; }, /** * Creates a shortcut function to the HMAC's object interface. * * @param {Hasher} hasher The hasher to use in this HMAC helper. * * @return {Function} The shortcut function. * * @static * * @example * * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256); */ _createHmacHelper: function (hasher) { return function (message, key) { return new C_algo.HMAC.init(hasher, key).finalize(message); }; } }); /** * Algorithm namespace. */ var C_algo = C.algo = {}; return C; }(Math)); return CryptoJS; })); /***/ }), /***/ "IeH0": /*!***************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/CreateStreamProcessorCommand.js ***! \***************************************************************************************************/ /*! exports provided: CreateStreamProcessorCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateStreamProcessorCommand", function() { return CreateStreamProcessorCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CreateStreamProcessorCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateStreamProcessorCommand, _super); // Start section: command_properties // End section: command_properties function CreateStreamProcessorCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CreateStreamProcessorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateStreamProcessorRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateStreamProcessorResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CreateStreamProcessorCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1CreateStreamProcessorCommand"])(input, context); }; CreateStreamProcessorCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1CreateStreamProcessorCommand"])(output, context); }; return CreateStreamProcessorCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=CreateStreamProcessorCommand.js.map /***/ }), /***/ "IjjT": /*!*************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/scheduler/AsyncScheduler.js ***! \*************************************************************************/ /*! exports provided: AsyncScheduler */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncScheduler", function() { return AsyncScheduler; }); /* harmony import */ var _Scheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Scheduler */ "Y/cZ"); class AsyncScheduler extends _Scheduler__WEBPACK_IMPORTED_MODULE_0__["Scheduler"] { constructor(SchedulerAction, now = _Scheduler__WEBPACK_IMPORTED_MODULE_0__["Scheduler"].now) { super(SchedulerAction, () => { if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) { return AsyncScheduler.delegate.now(); } else { return now(); } }); this.actions = []; this.active = false; this.scheduled = undefined; } schedule(work, delay = 0, state) { if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) { return AsyncScheduler.delegate.schedule(work, delay, state); } else { return super.schedule(work, delay, state); } } flush(action) { const { actions } = this; if (this.active) { actions.push(action); return; } let error; this.active = true; do { if (error = action.execute(action.state, action.delay)) { break; } } while (action = actions.shift()); this.active = false; if (error) { while (action = actions.shift()) { action.unsubscribe(); } throw error; } } } //# sourceMappingURL=AsyncScheduler.js.map /***/ }), /***/ "IjtL": /*!*****************************************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/lib-esm/sync/datastoreReachability/index.js ***! \*****************************************************************************************/ /*! exports provided: ReachabilityMonitor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReachabilityMonitor", function() { return ReachabilityMonitor; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); var ReachabilityMonitor = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Reachability"]().networkMonitor(); //# sourceMappingURL=index.js.map /***/ }), /***/ "IkIO": /*!******************************************************************!*\ !*** ./node_modules/@aws-sdk/property-provider/dist/es/chain.js ***! \******************************************************************/ /*! exports provided: chain */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "chain", function() { return chain; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _ProviderError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ProviderError */ "v8xh"); /** * Compose a single credential provider function from multiple credential * providers. The first provider in the argument list will always be invoked; * subsequent providers in the list will be invoked in the order in which the * were received if the preceding provider did not successfully resolve. * * If no providers were received or no provider resolves successfully, the * returned promise will be rejected. */ function chain() { var providers = []; for (var _i = 0; _i < arguments.length; _i++) { providers[_i] = arguments[_i]; } return function () { var e_1, _a; var promise = Promise.reject(new _ProviderError__WEBPACK_IMPORTED_MODULE_1__["ProviderError"]("No providers in chain")); var _loop_1 = function (provider) { promise = promise.catch(function (err) { if (err === null || err === void 0 ? void 0 : err.tryNextLink) { return provider(); } throw err; }); }; try { for (var providers_1 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(providers), providers_1_1 = providers_1.next(); !providers_1_1.done; providers_1_1 = providers_1.next()) { var provider = providers_1_1.value; _loop_1(provider); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (providers_1_1 && !providers_1_1.done && (_a = providers_1.return)) _a.call(providers_1); } finally { if (e_1) throw e_1.error; } } return promise; }; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY2hhaW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUVBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUVoRDs7Ozs7Ozs7R0FRRztBQUNILE1BQU0sVUFBVSxLQUFLO0lBQUksbUJBQWdDO1NBQWhDLFVBQWdDLEVBQWhDLHFCQUFnQyxFQUFoQyxJQUFnQztRQUFoQyw4QkFBZ0M7O0lBQ3ZELE9BQU87O1FBQ0wsSUFBSSxPQUFPLEdBQWUsT0FBTyxDQUFDLE1BQU0sQ0FBQyxJQUFJLGFBQWEsQ0FBQyx1QkFBdUIsQ0FBQyxDQUFDLENBQUM7Z0NBQzFFLFFBQVE7WUFDakIsT0FBTyxHQUFHLE9BQU8sQ0FBQyxLQUFLLENBQUMsVUFBQyxHQUFRO2dCQUMvQixJQUFJLEdBQUcsYUFBSCxHQUFHLHVCQUFILEdBQUcsQ0FBRSxXQUFXLEVBQUU7b0JBQ3BCLE9BQU8sUUFBUSxFQUFFLENBQUM7aUJBQ25CO2dCQUVELE1BQU0sR0FBRyxDQUFDO1lBQ1osQ0FBQyxDQUFDLENBQUM7OztZQVBMLEtBQXVCLElBQUEsY0FBQSxTQUFBLFNBQVMsQ0FBQSxvQ0FBQTtnQkFBM0IsSUFBTSxRQUFRLHNCQUFBO3dCQUFSLFFBQVE7YUFRbEI7Ozs7Ozs7OztRQUVELE9BQU8sT0FBTyxDQUFDO0lBQ2pCLENBQUMsQ0FBQztBQUNKLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQcm92aWRlciB9IGZyb20gXCJAYXdzLXNkay90eXBlc1wiO1xuXG5pbXBvcnQgeyBQcm92aWRlckVycm9yIH0gZnJvbSBcIi4vUHJvdmlkZXJFcnJvclwiO1xuXG4vKipcbiAqIENvbXBvc2UgYSBzaW5nbGUgY3JlZGVudGlhbCBwcm92aWRlciBmdW5jdGlvbiBmcm9tIG11bHRpcGxlIGNyZWRlbnRpYWxcbiAqIHByb3ZpZGVycy4gVGhlIGZpcnN0IHByb3ZpZGVyIGluIHRoZSBhcmd1bWVudCBsaXN0IHdpbGwgYWx3YXlzIGJlIGludm9rZWQ7XG4gKiBzdWJzZXF1ZW50IHByb3ZpZGVycyBpbiB0aGUgbGlzdCB3aWxsIGJlIGludm9rZWQgaW4gdGhlIG9yZGVyIGluIHdoaWNoIHRoZVxuICogd2VyZSByZWNlaXZlZCBpZiB0aGUgcHJlY2VkaW5nIHByb3ZpZGVyIGRpZCBub3Qgc3VjY2Vzc2Z1bGx5IHJlc29sdmUuXG4gKlxuICogSWYgbm8gcHJvdmlkZXJzIHdlcmUgcmVjZWl2ZWQgb3Igbm8gcHJvdmlkZXIgcmVzb2x2ZXMgc3VjY2Vzc2Z1bGx5LCB0aGVcbiAqIHJldHVybmVkIHByb21pc2Ugd2lsbCBiZSByZWplY3RlZC5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGNoYWluPFQ+KC4uLnByb3ZpZGVyczogQXJyYXk8UHJvdmlkZXI8VD4+KTogUHJvdmlkZXI8VD4ge1xuICByZXR1cm4gKCkgPT4ge1xuICAgIGxldCBwcm9taXNlOiBQcm9taXNlPFQ+ID0gUHJvbWlzZS5yZWplY3QobmV3IFByb3ZpZGVyRXJyb3IoXCJObyBwcm92aWRlcnMgaW4gY2hhaW5cIikpO1xuICAgIGZvciAoY29uc3QgcHJvdmlkZXIgb2YgcHJvdmlkZXJzKSB7XG4gICAgICBwcm9taXNlID0gcHJvbWlzZS5jYXRjaCgoZXJyOiBhbnkpID0+IHtcbiAgICAgICAgaWYgKGVycj8udHJ5TmV4dExpbmspIHtcbiAgICAgICAgICByZXR1cm4gcHJvdmlkZXIoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRocm93IGVycjtcbiAgICAgIH0pO1xuICAgIH1cblxuICAgIHJldHVybiBwcm9taXNlO1xuICB9O1xufVxuIl19 /***/ }), /***/ "IkNI": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamConsumerCommand.js ***! \************************************************************************************************/ /*! exports provided: DescribeStreamConsumerCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerCommand", function() { return DescribeStreamConsumerCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DescribeStreamConsumerCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeStreamConsumerCommand, _super); // Start section: command_properties // End section: command_properties function DescribeStreamConsumerCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DescribeStreamConsumerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamConsumerInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamConsumerOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DescribeStreamConsumerCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeStreamConsumerCommand"])(input, context); }; DescribeStreamConsumerCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeStreamConsumerCommand"])(output, context); }; return DescribeStreamConsumerCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DescribeStreamConsumerCommand.js.map /***/ }), /***/ "IkwW": /*!*****************************************************************!*\ !*** ./node_modules/@aws-sdk/signature-v4/dist/es/constants.js ***! \*****************************************************************/ /*! exports provided: ALGORITHM_QUERY_PARAM, CREDENTIAL_QUERY_PARAM, AMZ_DATE_QUERY_PARAM, SIGNED_HEADERS_QUERY_PARAM, EXPIRES_QUERY_PARAM, SIGNATURE_QUERY_PARAM, TOKEN_QUERY_PARAM, AUTH_HEADER, AMZ_DATE_HEADER, DATE_HEADER, GENERATED_HEADERS, SIGNATURE_HEADER, SHA256_HEADER, TOKEN_HEADER, HOST_HEADER, ALWAYS_UNSIGNABLE_HEADERS, PROXY_HEADER_PATTERN, SEC_HEADER_PATTERN, UNSIGNABLE_PATTERNS, ALGORITHM_IDENTIFIER, EVENT_ALGORITHM_IDENTIFIER, UNSIGNED_PAYLOAD, MAX_CACHE_SIZE, KEY_TYPE_IDENTIFIER, MAX_PRESIGNED_TTL */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALGORITHM_QUERY_PARAM", function() { return ALGORITHM_QUERY_PARAM; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CREDENTIAL_QUERY_PARAM", function() { return CREDENTIAL_QUERY_PARAM; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AMZ_DATE_QUERY_PARAM", function() { return AMZ_DATE_QUERY_PARAM; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIGNED_HEADERS_QUERY_PARAM", function() { return SIGNED_HEADERS_QUERY_PARAM; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EXPIRES_QUERY_PARAM", function() { return EXPIRES_QUERY_PARAM; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIGNATURE_QUERY_PARAM", function() { return SIGNATURE_QUERY_PARAM; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TOKEN_QUERY_PARAM", function() { return TOKEN_QUERY_PARAM; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AUTH_HEADER", function() { return AUTH_HEADER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AMZ_DATE_HEADER", function() { return AMZ_DATE_HEADER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DATE_HEADER", function() { return DATE_HEADER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GENERATED_HEADERS", function() { return GENERATED_HEADERS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIGNATURE_HEADER", function() { return SIGNATURE_HEADER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHA256_HEADER", function() { return SHA256_HEADER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TOKEN_HEADER", function() { return TOKEN_HEADER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HOST_HEADER", function() { return HOST_HEADER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALWAYS_UNSIGNABLE_HEADERS", function() { return ALWAYS_UNSIGNABLE_HEADERS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PROXY_HEADER_PATTERN", function() { return PROXY_HEADER_PATTERN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEC_HEADER_PATTERN", function() { return SEC_HEADER_PATTERN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSIGNABLE_PATTERNS", function() { return UNSIGNABLE_PATTERNS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALGORITHM_IDENTIFIER", function() { return ALGORITHM_IDENTIFIER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EVENT_ALGORITHM_IDENTIFIER", function() { return EVENT_ALGORITHM_IDENTIFIER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSIGNED_PAYLOAD", function() { return UNSIGNED_PAYLOAD; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAX_CACHE_SIZE", function() { return MAX_CACHE_SIZE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KEY_TYPE_IDENTIFIER", function() { return KEY_TYPE_IDENTIFIER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAX_PRESIGNED_TTL", function() { return MAX_PRESIGNED_TTL; }); var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; var CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; var AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; var SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; var EXPIRES_QUERY_PARAM = "X-Amz-Expires"; var SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; var TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; var AUTH_HEADER = "authorization"; var AMZ_DATE_HEADER = AMZ_DATE_QUERY_PARAM.toLowerCase(); var DATE_HEADER = "date"; var GENERATED_HEADERS = [AUTH_HEADER, AMZ_DATE_HEADER, DATE_HEADER]; var SIGNATURE_HEADER = SIGNATURE_QUERY_PARAM.toLowerCase(); var SHA256_HEADER = "x-amz-content-sha256"; var TOKEN_HEADER = TOKEN_QUERY_PARAM.toLowerCase(); var HOST_HEADER = "host"; var ALWAYS_UNSIGNABLE_HEADERS = { authorization: true, "cache-control": true, connection: true, expect: true, from: true, "keep-alive": true, "max-forwards": true, pragma: true, referer: true, te: true, trailer: true, "transfer-encoding": true, upgrade: true, "user-agent": true, "x-amzn-trace-id": true, }; var PROXY_HEADER_PATTERN = /^proxy-/; var SEC_HEADER_PATTERN = /^sec-/; var UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; var ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; var EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; var UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; var MAX_CACHE_SIZE = 50; var KEY_TYPE_IDENTIFIER = "aws4_request"; var MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; //# sourceMappingURL=constants.js.map /***/ }), /***/ "IljQ": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/node_modules/uuid/lib/rng-browser.js ***! \**********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { // Unique ID creation requires a high quality random # generator. In the // browser this is a little complicated due to unknown quality of Math.random() // and inconsistent support for the `crypto` API. We do the best we can via // feature-detection // getRandomValues needs to be invoked in a context where "this" is a Crypto // implementation. Also, find the complete implementation of crypto on IE11. var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) || (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto)); if (getRandomValues) { // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef module.exports = function whatwgRNG() { getRandomValues(rnds8); return rnds8; }; } else { // Math.random()-based (RNG) // // If all else fails, use Math.random(). It's fast, but is of unspecified // quality. var rnds = new Array(16); module.exports = function mathRNG() { for (var i = 0, r; i < 16; i++) { if ((i & 0x03) === 0) r = Math.random() * 0x100000000; rnds[i] = r >>> ((i & 0x03) << 3) & 0xff; } return rnds; }; } /***/ }), /***/ "IqeB": /*!******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetShardIteratorCommand.js ***! \******************************************************************************************/ /*! exports provided: GetShardIteratorCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorCommand", function() { return GetShardIteratorCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetShardIteratorCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetShardIteratorCommand, _super); // Start section: command_properties // End section: command_properties function GetShardIteratorCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetShardIteratorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetShardIteratorInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetShardIteratorOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetShardIteratorCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetShardIteratorCommand"])(input, context); }; GetShardIteratorCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetShardIteratorCommand"])(output, context); }; return GetShardIteratorCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetShardIteratorCommand.js.map /***/ }), /***/ "IzEk": /*!***************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/take.js ***! \***************************************************************/ /*! exports provided: take */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "take", function() { return take; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); /* harmony import */ var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/ArgumentOutOfRangeError */ "4I5i"); /* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/empty */ "EY2u"); function take(count) { return (source) => { if (count === 0) { return Object(_observable_empty__WEBPACK_IMPORTED_MODULE_2__["empty"])(); } else { return source.lift(new TakeOperator(count)); } }; } class TakeOperator { constructor(total) { this.total = total; if (this.total < 0) { throw new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__["ArgumentOutOfRangeError"]; } } call(subscriber, source) { return source.subscribe(new TakeSubscriber(subscriber, this.total)); } } class TakeSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, total) { super(destination); this.total = total; this.count = 0; } _next(value) { const total = this.total; const count = ++this.count; if (count <= total) { this.destination.next(value); if (count === total) { this.destination.complete(); this.unsubscribe(); } } } } //# sourceMappingURL=take.js.map /***/ }), /***/ "J/To": /*!****************************************************!*\ !*** ./node_modules/graphql/jsutils/isInteger.mjs ***! \****************************************************/ /*! exports provided: default */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /** * Copyright (c) 2018-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /* eslint-disable no-redeclare */ // $FlowFixMe workaround for: https://github.com/facebook/flow/issues/4441 var isInteger = Number.isInteger || function (value) { return typeof value === 'number' && isFinite(value) && Math.floor(value) === value; }; /* harmony default export */ __webpack_exports__["default"] = (isInteger); /***/ }), /***/ "J2eM": /*!*******************************************************************!*\ !*** ./node_modules/@aws-sdk/invalid-dependency/dist/es/index.js ***! \*******************************************************************/ /*! exports provided: invalidFunction */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "invalidFunction", function() { return invalidFunction; }); var invalidFunction = function (message) { return function () { throw new Error(message); }; }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQU0sZUFBZSxHQUFHLFVBQUMsT0FBZSxJQUFLLE9BQUE7SUFDbEQsTUFBTSxJQUFJLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQztBQUMzQixDQUFDLEVBRm1ELENBRW5ELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgaW52YWxpZEZ1bmN0aW9uID0gKG1lc3NhZ2U6IHN0cmluZykgPT4gKCkgPT4ge1xuICB0aHJvdyBuZXcgRXJyb3IobWVzc2FnZSk7XG59O1xuIl19 /***/ }), /***/ "J5Sr": /*!********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/StartKeyPhrasesDetectionJobCommand.js ***! \********************************************************************************************************/ /*! exports provided: StartKeyPhrasesDetectionJobCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartKeyPhrasesDetectionJobCommand", function() { return StartKeyPhrasesDetectionJobCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StartKeyPhrasesDetectionJobCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartKeyPhrasesDetectionJobCommand, _super); // Start section: command_properties // End section: command_properties function StartKeyPhrasesDetectionJobCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StartKeyPhrasesDetectionJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartKeyPhrasesDetectionJobRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartKeyPhrasesDetectionJobResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StartKeyPhrasesDetectionJobCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartKeyPhrasesDetectionJobCommand"])(input, context); }; StartKeyPhrasesDetectionJobCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand"])(output, context); }; return StartKeyPhrasesDetectionJobCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StartKeyPhrasesDetectionJobCommand.js.map /***/ }), /***/ "J6oT": /*!******************************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/pagination/ListDominantLanguageDetectionJobsPaginator.js ***! \******************************************************************************************************************/ /*! exports provided: listDominantLanguageDetectionJobsPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "listDominantLanguageDetectionJobsPaginate", function() { return listDominantLanguageDetectionJobsPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Comprehend__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Comprehend */ "KcXj"); /* harmony import */ var _ComprehendClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ComprehendClient */ "8JFw"); /* harmony import */ var _commands_ListDominantLanguageDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/ListDominantLanguageDetectionJobsCommand */ "WeYW"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_ListDominantLanguageDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_3__["ListDominantLanguageDetectionJobsCommand"].bind.apply(_commands_ListDominantLanguageDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_3__["ListDominantLanguageDetectionJobsCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.listDominantLanguageDetectionJobs.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function listDominantLanguageDetectionJobsPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function listDominantLanguageDetectionJobsPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Comprehend__WEBPACK_IMPORTED_MODULE_1__["Comprehend"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _ComprehendClient__WEBPACK_IMPORTED_MODULE_2__["ComprehendClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Comprehend | ComprehendClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=ListDominantLanguageDetectionJobsPaginator.js.map /***/ }), /***/ "JBVX": /*!***********************************************************************!*\ !*** ./node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=KeyOperation.js.map /***/ }), /***/ "JDI6": /*!****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutBucketAnalyticsConfigurationCommand.js ***! \****************************************************************************************************/ /*! exports provided: PutBucketAnalyticsConfigurationCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutBucketAnalyticsConfigurationCommand", function() { return PutBucketAnalyticsConfigurationCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutBucketAnalyticsConfigurationCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutBucketAnalyticsConfigurationCommand, _super); // Start section: command_properties // End section: command_properties function PutBucketAnalyticsConfigurationCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutBucketAnalyticsConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutBucketAnalyticsConfigurationRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutBucketAnalyticsConfigurationCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutBucketAnalyticsConfigurationCommand"])(input, context); }; PutBucketAnalyticsConfigurationCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutBucketAnalyticsConfigurationCommand"])(output, context); }; return PutBucketAnalyticsConfigurationCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=PutBucketAnalyticsConfigurationCommand.js.map /***/ }), /***/ "JEQr": /*!********************************************!*\ !*** ./node_modules/axios/lib/defaults.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./utils */ "xTJ+"); var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "yK9s"); var DEFAULT_CONTENT_TYPE = { 'Content-Type': 'application/x-www-form-urlencoded' }; function setContentTypeIfUnset(headers, value) { if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { headers['Content-Type'] = value; } } function getDefaultAdapter() { var adapter; // Only Node.JS has a process variable that is of [[Class]] process if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { // For node use HTTP adapter adapter = __webpack_require__(/*! ./adapters/http */ "tQ2B"); } else if (typeof XMLHttpRequest !== 'undefined') { // For browsers use XHR adapter adapter = __webpack_require__(/*! ./adapters/xhr */ "tQ2B"); } return adapter; } var defaults = { adapter: getDefaultAdapter(), transformRequest: [function transformRequest(data, headers) { normalizeHeaderName(headers, 'Accept'); normalizeHeaderName(headers, 'Content-Type'); if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data) ) { return data; } if (utils.isArrayBufferView(data)) { return data.buffer; } if (utils.isURLSearchParams(data)) { setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); return data.toString(); } if (utils.isObject(data)) { setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); return JSON.stringify(data); } return data; }], transformResponse: [function transformResponse(data) { /*eslint no-param-reassign:0*/ if (typeof data === 'string') { try { data = JSON.parse(data); } catch (e) { /* Ignore */ } } return data; }], /** * A timeout in milliseconds to abort a request. If set to 0 (default) a * timeout is not created. */ timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, validateStatus: function validateStatus(status) { return status >= 200 && status < 300; } }; defaults.headers = { common: { 'Accept': 'application/json, text/plain, */*' } }; utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { defaults.headers[method] = {}; }); utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); }); module.exports = defaults; /***/ }), /***/ "JEbH": /*!*************************************************************************!*\ !*** ./node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=MsSubtleCrypto.js.map /***/ }), /***/ "JHRd": /*!********************************************!*\ !*** ./node_modules/lodash/_Uint8Array.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__(/*! ./_root */ "Kz5y"); /** Built-in value references. */ var Uint8Array = root.Uint8Array; module.exports = Uint8Array; /***/ }), /***/ "JHgL": /*!*********************************************!*\ !*** ./node_modules/lodash/_mapCacheGet.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__(/*! ./_getMapData */ "QkVE"); /** * Gets the map value for `key`. * * @private * @name get * @memberOf MapCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function mapCacheGet(key) { return getMapData(this, key).get(key); } module.exports = mapCacheGet; /***/ }), /***/ "JIIv": /*!**************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/I18n/index.js ***! \**************************************************************/ /*! exports provided: I18n, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I18n", function() { return I18n; }); /* harmony import */ var _I18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./I18n */ "V4mh"); /* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Logger */ "RCJS"); /* harmony import */ var _Amplify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Amplify */ "fQM2"); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var logger = new _Logger__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('I18n'); var _config = null; var _i18n = null; /** * Export I18n APIs */ var I18n = /** @class */ (function () { function I18n() { } /** * @static * @method * Configure I18n part * @param {Object} config - Configuration of the I18n */ I18n.configure = function (config) { logger.debug('configure I18n'); if (!config) { return _config; } _config = Object.assign({}, _config, config.I18n || config); I18n.createInstance(); return _config; }; I18n.getModuleName = function () { return 'I18n'; }; /** * @static * @method * Create an instance of I18n for the library */ I18n.createInstance = function () { logger.debug('create I18n instance'); if (_i18n) { return; } _i18n = new _I18n__WEBPACK_IMPORTED_MODULE_0__["I18n"](_config); }; /** * @static @method * Explicitly setting language * @param {String} lang */ I18n.setLanguage = function (lang) { I18n.checkConfig(); return _i18n.setLanguage(lang); }; /** * @static @method * Get value * @param {String} key * @param {String} defVal - Default value */ I18n.get = function (key, defVal) { if (!I18n.checkConfig()) { return typeof defVal === 'undefined' ? key : defVal; } return _i18n.get(key, defVal); }; /** * @static * @method * Add vocabularies for one language * @param {String} langurage - Language of the dictionary * @param {Object} vocabularies - Object that has key-value as dictionary entry */ I18n.putVocabulariesForLanguage = function (language, vocabularies) { I18n.checkConfig(); return _i18n.putVocabulariesForLanguage(language, vocabularies); }; /** * @static * @method * Add vocabularies for one language * @param {Object} vocabularies - Object that has language as key, * vocabularies of each language as value */ I18n.putVocabularies = function (vocabularies) { I18n.checkConfig(); return _i18n.putVocabularies(vocabularies); }; I18n.checkConfig = function () { if (!_i18n) { _i18n = new _I18n__WEBPACK_IMPORTED_MODULE_0__["I18n"](_config); } return true; }; return I18n; }()); _Amplify__WEBPACK_IMPORTED_MODULE_2__["Amplify"].register(I18n); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (I18n); //# sourceMappingURL=index.js.map /***/ }), /***/ "JIr8": /*!*********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/catchError.js ***! \*********************************************************************/ /*! exports provided: catchError */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "catchError", function() { return catchError; }); /* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../innerSubscribe */ "zx2A"); function catchError(selector) { return function catchErrorOperatorFunction(source) { const operator = new CatchOperator(selector); const caught = source.lift(operator); return (operator.caught = caught); }; } class CatchOperator { constructor(selector) { this.selector = selector; } call(subscriber, source) { return source.subscribe(new CatchSubscriber(subscriber, this.selector, this.caught)); } } class CatchSubscriber extends _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"] { constructor(destination, selector, caught) { super(destination); this.selector = selector; this.caught = caught; } error(err) { if (!this.isStopped) { let result; try { result = this.selector(err, this.caught); } catch (err2) { super.error(err2); return; } this._unsubscribeAndRecycle(); const innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](this); this.add(innerSubscriber); const innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(result, innerSubscriber); if (innerSubscription !== innerSubscriber) { this.add(innerSubscription); } } } } //# sourceMappingURL=catchError.js.map /***/ }), /***/ "JMOx": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIConvertPredictionsProvider.js ***! \*******************************************************************************************************/ /*! exports provided: AmazonAIConvertPredictionsProvider, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmazonAIConvertPredictionsProvider", function() { return AmazonAIConvertPredictionsProvider; }); /* harmony import */ var _types_Providers_AbstractConvertPredictionsProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../types/Providers/AbstractConvertPredictionsProvider */ "NE84"); /* harmony import */ var _aws_sdk_client_translate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/client-translate */ "T/BW"); /* harmony import */ var _aws_sdk_client_polly__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/client-polly */ "k1Mz"); /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../types */ "Rw49"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _aws_sdk_eventstream_marshaller__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/eventstream-marshaller */ "GuSx"); /* harmony import */ var _aws_sdk_util_utf8_node__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/util-utf8-node */ "mWF7"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__["ConsoleLogger"]('AmazonAIConvertPredictionsProvider'); var eventBuilder = new _aws_sdk_eventstream_marshaller__WEBPACK_IMPORTED_MODULE_5__["EventStreamMarshaller"](_aws_sdk_util_utf8_node__WEBPACK_IMPORTED_MODULE_6__["toUtf8"], _aws_sdk_util_utf8_node__WEBPACK_IMPORTED_MODULE_6__["fromUtf8"]); var AmazonAIConvertPredictionsProvider = /** @class */ (function (_super) { __extends(AmazonAIConvertPredictionsProvider, _super); function AmazonAIConvertPredictionsProvider() { var _this = _super.call(this) || this; _this.inputSampleRate = 44100; _this.outputSampleRate = 16000; return _this; } AmazonAIConvertPredictionsProvider.prototype.getProviderName = function () { return 'AmazonAIConvertPredictionsProvider'; }; AmazonAIConvertPredictionsProvider.prototype.translateText = function (input) { return __awaiter(this, void 0, void 0, function () { var _a, _b, _c, _d, _e, sourceLanguage, _f, targetLanguage, _g, region, credentials, sourceLanguageCode, targetLanguageCode, translateTextCommand, data, err_1; return __generator(this, function (_h) { switch (_h.label) { case 0: logger.debug('Starting translation'); _a = this._config.translateText, _b = _a === void 0 ? {} : _a, _c = _b.defaults, _d = _c === void 0 ? {} : _c, _e = _d.sourceLanguage, sourceLanguage = _e === void 0 ? '' : _e, _f = _d.targetLanguage, targetLanguage = _f === void 0 ? '' : _f, _g = _b.region, region = _g === void 0 ? '' : _g; if (!region) { return [2 /*return*/, Promise.reject('region not configured for transcription')]; } return [4 /*yield*/, _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__["Credentials"].get()]; case 1: credentials = _h.sent(); if (!credentials) { return [2 /*return*/, Promise.reject('No credentials')]; } sourceLanguageCode = input.translateText.source.language || sourceLanguage; targetLanguageCode = input.translateText.targetLanguage || targetLanguage; if (!sourceLanguageCode || !targetLanguageCode) { return [2 /*return*/, Promise.reject('Please provide both source and target language')]; } this.translateClient = new _aws_sdk_client_translate__WEBPACK_IMPORTED_MODULE_1__["TranslateClient"]({ region: region, credentials: credentials, customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__["getAmplifyUserAgent"])(), }); translateTextCommand = new _aws_sdk_client_translate__WEBPACK_IMPORTED_MODULE_1__["TranslateTextCommand"]({ SourceLanguageCode: sourceLanguageCode, TargetLanguageCode: targetLanguageCode, Text: input.translateText.source.text, }); _h.label = 2; case 2: _h.trys.push([2, 4, , 5]); return [4 /*yield*/, this.translateClient.send(translateTextCommand)]; case 3: data = _h.sent(); return [2 /*return*/, { text: data.TranslatedText, language: data.TargetLanguageCode, }]; case 4: err_1 = _h.sent(); return [2 /*return*/, Promise.reject(err_1)]; case 5: return [2 /*return*/]; } }); }); }; AmazonAIConvertPredictionsProvider.prototype.convertTextToSpeech = function (input) { return __awaiter(this, void 0, void 0, function () { var credentials, _a, _b, _c, _d, VoiceId, _e, region, voiceId, synthesizeSpeechCommand, data, response, arrayBuffer, blob, url, err_2; return __generator(this, function (_f) { switch (_f.label) { case 0: return [4 /*yield*/, _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__["Credentials"].get()]; case 1: credentials = _f.sent(); if (!credentials) { return [2 /*return*/, Promise.reject('No credentials')]; } _a = this._config.speechGenerator, _b = _a === void 0 ? {} : _a, _c = _b.defaults, _d = (_c === void 0 ? {} : _c).VoiceId, VoiceId = _d === void 0 ? '' : _d, _e = _b.region, region = _e === void 0 ? '' : _e; if (!input.textToSpeech.source) { return [2 /*return*/, Promise.reject('Source needs to be provided in the input')]; } voiceId = input.textToSpeech.voiceId || VoiceId; if (!region) { return [2 /*return*/, Promise.reject('Region was undefined. Did you enable speech generator using amplify CLI?')]; } if (!voiceId) { return [2 /*return*/, Promise.reject('VoiceId was undefined.')]; } this.pollyClient = new _aws_sdk_client_polly__WEBPACK_IMPORTED_MODULE_2__["PollyClient"]({ region: region, credentials: credentials, customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__["getAmplifyUserAgent"])(), }); synthesizeSpeechCommand = new _aws_sdk_client_polly__WEBPACK_IMPORTED_MODULE_2__["SynthesizeSpeechCommand"]({ OutputFormat: 'mp3', Text: input.textToSpeech.source.text, VoiceId: voiceId, TextType: 'text', SampleRate: '24000', }); _f.label = 2; case 2: _f.trys.push([2, 5, , 6]); return [4 /*yield*/, this.pollyClient.send(synthesizeSpeechCommand)]; case 3: data = _f.sent(); response = new Response(data.AudioStream); return [4 /*yield*/, response.arrayBuffer()]; case 4: arrayBuffer = _f.sent(); blob = new Blob([arrayBuffer], { type: data.ContentType, }); url = URL.createObjectURL(blob); return [2 /*return*/, { speech: { url: url }, audioStream: arrayBuffer, text: input.textToSpeech.source.text, }]; case 5: err_2 = _f.sent(); return [2 /*return*/, Promise.reject(err_2)]; case 6: return [2 /*return*/]; } }); }); }; AmazonAIConvertPredictionsProvider.prototype.convertSpeechToText = function (input) { return __awaiter(this, void 0, void 0, function () { var credentials, _a, _b, _c, _d, languageCode, _e, region, _f, source, _g, language, connection, fullText, err_3, err_4; return __generator(this, function (_h) { switch (_h.label) { case 0: _h.trys.push([0, 7, , 8]); logger.debug('starting transcription..'); return [4 /*yield*/, _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__["Credentials"].get()]; case 1: credentials = _h.sent(); if (!credentials) { return [2 /*return*/, Promise.reject('No credentials')]; } _a = this._config.transcription, _b = _a === void 0 ? {} : _a, _c = _b.defaults, _d = (_c === void 0 ? {} : _c).language, languageCode = _d === void 0 ? '' : _d, _e = _b.region, region = _e === void 0 ? '' : _e; if (!region) { return [2 /*return*/, Promise.reject('region not configured for transcription')]; } if (!languageCode) { return [2 /*return*/, Promise.reject('languageCode not configured or provided for transcription')]; } _f = input.transcription, source = _f.source, _g = _f.language, language = _g === void 0 ? languageCode : _g; if (!Object(_types__WEBPACK_IMPORTED_MODULE_3__["isBytesSource"])(source)) return [3 /*break*/, 6]; return [4 /*yield*/, this.openConnectionWithTranscribe({ credentials: credentials, region: region, languageCode: language, })]; case 2: connection = _h.sent(); _h.label = 3; case 3: _h.trys.push([3, 5, , 6]); return [4 /*yield*/, this.sendDataToTranscribe({ connection: connection, raw: source.bytes, })]; case 4: fullText = _h.sent(); return [2 /*return*/, { transcription: { fullText: fullText, }, }]; case 5: err_3 = _h.sent(); Promise.reject(err_3); return [3 /*break*/, 6]; case 6: return [2 /*return*/, Promise.reject('Source types other than byte source are not supported.')]; case 7: err_4 = _h.sent(); return [2 /*return*/, Promise.reject(err_4.name + ': ' + err_4.message)]; case 8: return [2 /*return*/]; } }); }); }; AmazonAIConvertPredictionsProvider.serializeDataFromTranscribe = function (message) { var decodedMessage = ''; var transcribeMessage = eventBuilder.unmarshall(Buffer.from(message.data)); var transcribeMessageJson = JSON.parse(String.fromCharCode.apply(String, transcribeMessage.body)); if (transcribeMessage.headers[':message-type'].value === 'exception') { logger.debug('exception', JSON.stringify(transcribeMessageJson.Message, null, 2)); throw new Error(transcribeMessageJson.Message); } else if (transcribeMessage.headers[':message-type'].value === 'event') { if (transcribeMessageJson.Transcript.Results.length > 0) { if (transcribeMessageJson.Transcript.Results[0].Alternatives.length > 0) { if (transcribeMessageJson.Transcript.Results[0].Alternatives[0] .Transcript.length > 0) { if (transcribeMessageJson.Transcript.Results[0].IsPartial === false) { decodedMessage = transcribeMessageJson.Transcript.Results[0].Alternatives[0] .Transcript + '\n'; logger.debug({ decodedMessage: decodedMessage }); } else { logger.debug({ transcript: transcribeMessageJson.Transcript.Results[0].Alternatives[0], }); } } } } } return decodedMessage; }; AmazonAIConvertPredictionsProvider.prototype.sendDataToTranscribe = function (_a) { var _this = this; var connection = _a.connection, raw = _a.raw; return new Promise(function (res, rej) { var fullText = ''; connection.onmessage = function (message) { try { var decodedMessage = AmazonAIConvertPredictionsProvider.serializeDataFromTranscribe(message); if (decodedMessage) { fullText += decodedMessage + ' '; } } catch (err) { logger.debug(err); rej(err.message); } }; connection.onerror = function (errorEvent) { logger.debug({ errorEvent: errorEvent }); rej('failed to transcribe, network error'); }; connection.onclose = function (closeEvent) { logger.debug({ closeEvent: closeEvent }); return res(fullText.trim()); }; logger.debug({ raw: raw }); if (Array.isArray(raw)) { for (var i = 0; i < raw.length - 1023; i += 1024) { var data = raw.slice(i, i + 1024); _this.sendEncodedDataToTranscribe(connection, data); } } // sending end frame var endFrameEventMessage = _this.getAudioEventMessage(Buffer.from([])); var endFrameBinary = eventBuilder.marshall(endFrameEventMessage); connection.send(endFrameBinary); }); }; AmazonAIConvertPredictionsProvider.prototype.sendEncodedDataToTranscribe = function (connection, data) { var downsampledBuffer = this.downsampleBuffer({ buffer: data }); var pcmEncodedBuffer = this.pcmEncode(downsampledBuffer); var audioEventMessage = this.getAudioEventMessage(Buffer.from(pcmEncodedBuffer)); var binary = eventBuilder.marshall(audioEventMessage); connection.send(binary); }; AmazonAIConvertPredictionsProvider.prototype.getAudioEventMessage = function (buffer) { var audioEventMessage = { body: buffer, headers: { ':message-type': { type: 'string', value: 'event', }, ':event-type': { type: 'string', value: 'AudioEvent', }, }, }; return audioEventMessage; }; AmazonAIConvertPredictionsProvider.prototype.pcmEncode = function (input) { var offset = 0; var buffer = new ArrayBuffer(input.length * 2); var view = new DataView(buffer); for (var i = 0; i < input.length; i++, offset += 2) { var s = Math.max(-1, Math.min(1, input[i])); view.setInt16(offset, s < 0 ? s * 0x8000 : s * 0x7fff, true); } return buffer; }; AmazonAIConvertPredictionsProvider.prototype.downsampleBuffer = function (_a) { var buffer = _a.buffer; if (this.outputSampleRate === this.inputSampleRate) { return buffer; } var sampleRateRatio = this.inputSampleRate / this.outputSampleRate; var newLength = Math.round(buffer.length / sampleRateRatio); var result = new Float32Array(newLength); var offsetResult = 0; var offsetBuffer = 0; while (offsetResult < result.length) { var nextOffsetBuffer = Math.round((offsetResult + 1) * sampleRateRatio); var accum = 0, count = 0; for (var i = offsetBuffer; i < nextOffsetBuffer && i < buffer.length; i++) { accum += buffer[i]; count++; } result[offsetResult] = accum / count; offsetResult++; offsetBuffer = nextOffsetBuffer; } return result; }; AmazonAIConvertPredictionsProvider.prototype.openConnectionWithTranscribe = function (_a) { var _this = this; var userCredentials = _a.credentials, region = _a.region, languageCode = _a.languageCode; return new Promise(function (res, rej) { return __awaiter(_this, void 0, void 0, function () { var access_key, secret_key, session_token, credentials, signedUrl, connection; return __generator(this, function (_a) { access_key = userCredentials.accessKeyId, secret_key = userCredentials.secretAccessKey, session_token = userCredentials.sessionToken; credentials = { access_key: access_key, secret_key: secret_key, session_token: session_token, }; signedUrl = this.generateTranscribeUrl({ credentials: credentials, region: region, languageCode: languageCode, }); logger.debug('connecting...'); connection = new WebSocket(signedUrl); connection.binaryType = 'arraybuffer'; connection.onopen = function () { logger.debug('connected'); res(connection); }; return [2 /*return*/]; }); }); }); }; AmazonAIConvertPredictionsProvider.prototype.generateTranscribeUrl = function (_a) { var credentials = _a.credentials, region = _a.region, languageCode = _a.languageCode; var url = [ "wss://transcribestreaming." + region + ".amazonaws.com:8443", '/stream-transcription-websocket?', "media-encoding=pcm&", "sample-rate=16000&", "language-code=" + languageCode, ].join(''); var signedUrl = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__["Signer"].signUrl(url, credentials, { region: region, service: 'transcribe' }, 300); return signedUrl; }; return AmazonAIConvertPredictionsProvider; }(_types_Providers_AbstractConvertPredictionsProvider__WEBPACK_IMPORTED_MODULE_0__["AbstractConvertPredictionsProvider"])); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (AmazonAIConvertPredictionsProvider); //# sourceMappingURL=AmazonAIConvertPredictionsProvider.js.map /***/ }), /***/ "JO5U": /*!*************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/DeleteBucketCorsCommand.js ***! \*************************************************************************************/ /*! exports provided: DeleteBucketCorsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketCorsCommand", function() { return DeleteBucketCorsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteBucketCorsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteBucketCorsCommand, _super); // Start section: command_properties // End section: command_properties function DeleteBucketCorsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteBucketCorsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteBucketCorsRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteBucketCorsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlDeleteBucketCorsCommand"])(input, context); }; DeleteBucketCorsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlDeleteBucketCorsCommand"])(output, context); }; return DeleteBucketCorsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=DeleteBucketCorsCommand.js.map /***/ }), /***/ "JSQU": /*!*****************************************!*\ !*** ./node_modules/lodash/_hashSet.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "YESw"); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** * Sets the hash `key` to `value`. * * @private * @name set * @memberOf Hash * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the hash instance. */ function hashSet(key, value) { var data = this.__data__; this.size += this.has(key) ? 0 : 1; data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; return this; } module.exports = hashSet; /***/ }), /***/ "JTzB": /*!*************************************************!*\ !*** ./node_modules/lodash/_baseIsArguments.js ***! \*************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "NykK"), isObjectLike = __webpack_require__(/*! ./isObjectLike */ "ExA7"); /** `Object#toString` result references. */ var argsTag = '[object Arguments]'; /** * The base implementation of `_.isArguments`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, */ function baseIsArguments(value) { return isObjectLike(value) && baseGetTag(value) == argsTag; } module.exports = baseIsArguments; /***/ }), /***/ "JX91": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/startWith.js ***! \********************************************************************/ /*! exports provided: startWith */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "startWith", function() { return startWith; }); /* harmony import */ var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/concat */ "GyhO"); /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro"); function startWith(...array) { const scheduler = array[array.length - 1]; if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_1__["isScheduler"])(scheduler)) { array.pop(); return (source) => Object(_observable_concat__WEBPACK_IMPORTED_MODULE_0__["concat"])(array, source, scheduler); } else { return (source) => Object(_observable_concat__WEBPACK_IMPORTED_MODULE_0__["concat"])(array, source); } } //# sourceMappingURL=startWith.js.map /***/ }), /***/ "JadV": /*!****************************************************************!*\ !*** ./node_modules/@aws-sdk/signature-v4/dist/es/utilDate.js ***! \****************************************************************/ /*! exports provided: iso8601, toDate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "iso8601", function() { return iso8601; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toDate", function() { return toDate; }); function iso8601(time) { return toDate(time) .toISOString() .replace(/\.\d{3}Z$/, "Z"); } function toDate(time) { if (typeof time === "number") { return new Date(time * 1000); } if (typeof time === "string") { if (Number(time)) { return new Date(Number(time) * 1000); } return new Date(time); } return time; } //# sourceMappingURL=utilDate.js.map /***/ }), /***/ "Je4A": /*!*******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/CreateProjectCommand.js ***! \*******************************************************************************************/ /*! exports provided: CreateProjectCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateProjectCommand", function() { return CreateProjectCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CreateProjectCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateProjectCommand, _super); // Start section: command_properties // End section: command_properties function CreateProjectCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CreateProjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateProjectRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateProjectResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CreateProjectCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1CreateProjectCommand"])(input, context); }; CreateProjectCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1CreateProjectCommand"])(output, context); }; return CreateProjectCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=CreateProjectCommand.js.map /***/ }), /***/ "JiFG": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-amplify/analytics/lib-esm/Providers/AmazonPersonalizeHelper/index.js ***! \************************************************************************************************/ /*! exports provided: SessionInfoManager, MediaAutoTrack */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _SessionInfoManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SessionInfoManager */ "yyHq"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SessionInfoManager", function() { return _SessionInfoManager__WEBPACK_IMPORTED_MODULE_0__["SessionInfoManager"]; }); /* harmony import */ var _MediaAutoTrack__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MediaAutoTrack */ "y1Ce"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MediaAutoTrack", function() { return _MediaAutoTrack__WEBPACK_IMPORTED_MODULE_1__["MediaAutoTrack"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "JjY0": /*!*****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/CreateIdentityPoolCommand.js ***! \*****************************************************************************************************/ /*! exports provided: CreateIdentityPoolCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateIdentityPoolCommand", function() { return CreateIdentityPoolCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CreateIdentityPoolCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateIdentityPoolCommand, _super); // Start section: command_properties // End section: command_properties function CreateIdentityPoolCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CreateIdentityPoolCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__["getAwsAuthPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateIdentityPoolInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["IdentityPool"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CreateIdentityPoolCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1CreateIdentityPoolCommand"])(input, context); }; CreateIdentityPoolCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1CreateIdentityPoolCommand"])(output, context); }; return CreateIdentityPoolCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=CreateIdentityPoolCommand.js.map /***/ }), /***/ "JmF6": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/zipAll.js ***! \*****************************************************************/ /*! exports provided: zipAll */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zipAll", function() { return zipAll; }); /* harmony import */ var _observable_zip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/zip */ "1uah"); function zipAll(project) { return (source) => source.lift(new _observable_zip__WEBPACK_IMPORTED_MODULE_0__["ZipOperator"](project)); } //# sourceMappingURL=zipAll.js.map /***/ }), /***/ "K1Bb": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/StopKeyPhrasesDetectionJobCommand.js ***! \*******************************************************************************************************/ /*! exports provided: StopKeyPhrasesDetectionJobCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopKeyPhrasesDetectionJobCommand", function() { return StopKeyPhrasesDetectionJobCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StopKeyPhrasesDetectionJobCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StopKeyPhrasesDetectionJobCommand, _super); // Start section: command_properties // End section: command_properties function StopKeyPhrasesDetectionJobCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StopKeyPhrasesDetectionJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StopKeyPhrasesDetectionJobRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StopKeyPhrasesDetectionJobResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StopKeyPhrasesDetectionJobCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StopKeyPhrasesDetectionJobCommand"])(input, context); }; StopKeyPhrasesDetectionJobCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand"])(output, context); }; return StopKeyPhrasesDetectionJobCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StopKeyPhrasesDetectionJobCommand.js.map /***/ }), /***/ "K2UE": /*!******************************************************************!*\ !*** ./node_modules/@aws-sdk/smithy-client/dist/es/lazy-json.js ***! \******************************************************************/ /*! exports provided: StringWrapper, LazyJsonString */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StringWrapper", function() { return StringWrapper; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LazyJsonString", function() { return LazyJsonString; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /** * Lazy String holder for JSON typed contents. */ /** * Because of https://github.com/microsoft/tslib/issues/95, * TS 'extends' shim doesn't support extending native types like String. * So here we create StringWrapper that duplicate everything from String * class including its prototype chain. So we can extend from here. */ // @ts-ignore StringWrapper implementation is not a simple constructor var StringWrapper = function () { //@ts-ignore 'this' cannot be assigned to any, but Object.getPrototypeOf accepts any var Class = Object.getPrototypeOf(this).constructor; var Constructor = Function.bind.apply(String, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([null], arguments)); //@ts-ignore Call wrapped String constructor directly, don't bother typing it. var instance = new Constructor(); Object.setPrototypeOf(instance, Class.prototype); return instance; }; StringWrapper.prototype = Object.create(String.prototype, { constructor: { value: StringWrapper, enumerable: false, writable: true, configurable: true, }, }); Object.setPrototypeOf(StringWrapper, String); var LazyJsonString = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LazyJsonString, _super); function LazyJsonString() { return _super !== null && _super.apply(this, arguments) || this; } LazyJsonString.prototype.deserializeJSON = function () { return JSON.parse(_super.prototype.toString.call(this)); }; LazyJsonString.prototype.toJSON = function () { return _super.prototype.toString.call(this); }; LazyJsonString.fromObject = function (object) { if (object instanceof LazyJsonString) { return object; } else if (object instanceof String || typeof object === "string") { return new LazyJsonString(object); } return new LazyJsonString(JSON.stringify(object)); }; return LazyJsonString; }(StringWrapper)); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS1qc29uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2xhenktanNvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRzs7QUFNSDs7Ozs7R0FLRztBQUNILHNFQUFzRTtBQUN0RSxNQUFNLENBQUMsSUFBTSxhQUFhLEdBQWtCO0lBQzFDLG9GQUFvRjtJQUNwRixJQUFNLEtBQUssR0FBRyxNQUFNLENBQUMsY0FBYyxDQUFDLElBQUksQ0FBQyxDQUFDLFdBQVcsQ0FBQztJQUN0RCxJQUFNLFdBQVcsR0FBRyxRQUFRLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxNQUFNLFlBQUcsSUFBVyxHQUFLLFNBQVMsRUFBRSxDQUFDO0lBQzdFLDhFQUE4RTtJQUM5RSxJQUFNLFFBQVEsR0FBRyxJQUFJLFdBQVcsRUFBRSxDQUFDO0lBQ25DLE1BQU0sQ0FBQyxjQUFjLENBQUMsUUFBUSxFQUFFLEtBQUssQ0FBQyxTQUFTLENBQUMsQ0FBQztJQUNqRCxPQUFPLFFBQWtCLENBQUM7QUFDNUIsQ0FBQyxDQUFDO0FBQ0YsYUFBYSxDQUFDLFNBQVMsR0FBRyxNQUFNLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxTQUFTLEVBQUU7SUFDeEQsV0FBVyxFQUFFO1FBQ1gsS0FBSyxFQUFFLGFBQWE7UUFDcEIsVUFBVSxFQUFFLEtBQUs7UUFDakIsUUFBUSxFQUFFLElBQUk7UUFDZCxZQUFZLEVBQUUsSUFBSTtLQUNuQjtDQUNGLENBQUMsQ0FBQztBQUNILE1BQU0sQ0FBQyxjQUFjLENBQUMsYUFBYSxFQUFFLE1BQU0sQ0FBQyxDQUFDO0FBRTdDO0lBQW9DLGtDQUFhO0lBQWpEOztJQWlCQSxDQUFDO0lBaEJDLHdDQUFlLEdBQWY7UUFDRSxPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsaUJBQU0sUUFBUSxXQUFFLENBQUMsQ0FBQztJQUN0QyxDQUFDO0lBRUQsK0JBQU0sR0FBTjtRQUNFLE9BQU8saUJBQU0sUUFBUSxXQUFFLENBQUM7SUFDMUIsQ0FBQztJQUVNLHlCQUFVLEdBQWpCLFVBQWtCLE1BQVc7UUFDM0IsSUFBSSxNQUFNLFlBQVksY0FBYyxFQUFFO1lBQ3BDLE9BQU8sTUFBTSxDQUFDO1NBQ2Y7YUFBTSxJQUFJLE1BQU0sWUFBWSxNQUFNLElBQUksT0FBTyxNQUFNLEtBQUssUUFBUSxFQUFFO1lBQ2pFLE9BQU8sSUFBSSxjQUFjLENBQUMsTUFBTSxDQUFDLENBQUM7U0FDbkM7UUFDRCxPQUFPLElBQUksY0FBYyxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQztJQUNwRCxDQUFDO0lBQ0gscUJBQUM7QUFBRCxDQUFDLEFBakJELENBQW9DLGFBQWEsR0FpQmhEIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBMYXp5IFN0cmluZyBob2xkZXIgZm9yIEpTT04gdHlwZWQgY29udGVudHMuXG4gKi9cblxuaW50ZXJmYWNlIFN0cmluZ1dyYXBwZXIge1xuICBuZXcgKGFyZzogYW55KTogU3RyaW5nO1xufVxuXG4vKipcbiAqIEJlY2F1c2Ugb2YgaHR0cHM6Ly9naXRodWIuY29tL21pY3Jvc29mdC90c2xpYi9pc3N1ZXMvOTUsXG4gKiBUUyAnZXh0ZW5kcycgc2hpbSBkb2Vzbid0IHN1cHBvcnQgZXh0ZW5kaW5nIG5hdGl2ZSB0eXBlcyBsaWtlIFN0cmluZy5cbiAqIFNvIGhlcmUgd2UgY3JlYXRlIFN0cmluZ1dyYXBwZXIgdGhhdCBkdXBsaWNhdGUgZXZlcnl0aGluZyBmcm9tIFN0cmluZ1xuICogY2xhc3MgaW5jbHVkaW5nIGl0cyBwcm90b3R5cGUgY2hhaW4uIFNvIHdlIGNhbiBleHRlbmQgZnJvbSBoZXJlLlxuICovXG4vLyBAdHMtaWdub3JlIFN0cmluZ1dyYXBwZXIgaW1wbGVtZW50YXRpb24gaXMgbm90IGEgc2ltcGxlIGNvbnN0cnVjdG9yXG5leHBvcnQgY29uc3QgU3RyaW5nV3JhcHBlcjogU3RyaW5nV3JhcHBlciA9IGZ1bmN0aW9uICgpIHtcbiAgLy9AdHMtaWdub3JlICd0aGlzJyBjYW5ub3QgYmUgYXNzaWduZWQgdG8gYW55LCBidXQgT2JqZWN0LmdldFByb3RvdHlwZU9mIGFjY2VwdHMgYW55XG4gIGNvbnN0IENsYXNzID0gT2JqZWN0LmdldFByb3RvdHlwZU9mKHRoaXMpLmNvbnN0cnVjdG9yO1xuICBjb25zdCBDb25zdHJ1Y3RvciA9IEZ1bmN0aW9uLmJpbmQuYXBwbHkoU3RyaW5nLCBbbnVsbCBhcyBhbnksIC4uLmFyZ3VtZW50c10pO1xuICAvL0B0cy1pZ25vcmUgQ2FsbCB3cmFwcGVkIFN0cmluZyBjb25zdHJ1Y3RvciBkaXJlY3RseSwgZG9uJ3QgYm90aGVyIHR5cGluZyBpdC5cbiAgY29uc3QgaW5zdGFuY2UgPSBuZXcgQ29uc3RydWN0b3IoKTtcbiAgT2JqZWN0LnNldFByb3RvdHlwZU9mKGluc3RhbmNlLCBDbGFzcy5wcm90b3R5cGUpO1xuICByZXR1cm4gaW5zdGFuY2UgYXMgU3RyaW5nO1xufTtcblN0cmluZ1dyYXBwZXIucHJvdG90eXBlID0gT2JqZWN0LmNyZWF0ZShTdHJpbmcucHJvdG90eXBlLCB7XG4gIGNvbnN0cnVjdG9yOiB7XG4gICAgdmFsdWU6IFN0cmluZ1dyYXBwZXIsXG4gICAgZW51bWVyYWJsZTogZmFsc2UsXG4gICAgd3JpdGFibGU6IHRydWUsXG4gICAgY29uZmlndXJhYmxlOiB0cnVlLFxuICB9LFxufSk7XG5PYmplY3Quc2V0UHJvdG90eXBlT2YoU3RyaW5nV3JhcHBlciwgU3RyaW5nKTtcblxuZXhwb3J0IGNsYXNzIExhenlKc29uU3RyaW5nIGV4dGVuZHMgU3RyaW5nV3JhcHBlciB7XG4gIGRlc2VyaWFsaXplSlNPTigpOiBhbnkge1xuICAgIHJldHVybiBKU09OLnBhcnNlKHN1cGVyLnRvU3RyaW5nKCkpO1xuICB9XG5cbiAgdG9KU09OKCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIHN1cGVyLnRvU3RyaW5nKCk7XG4gIH1cblxuICBzdGF0aWMgZnJvbU9iamVjdChvYmplY3Q6IGFueSk6IExhenlKc29uU3RyaW5nIHtcbiAgICBpZiAob2JqZWN0IGluc3RhbmNlb2YgTGF6eUpzb25TdHJpbmcpIHtcbiAgICAgIHJldHVybiBvYmplY3Q7XG4gICAgfSBlbHNlIGlmIChvYmplY3QgaW5zdGFuY2VvZiBTdHJpbmcgfHwgdHlwZW9mIG9iamVjdCA9PT0gXCJzdHJpbmdcIikge1xuICAgICAgcmV0dXJuIG5ldyBMYXp5SnNvblN0cmluZyhvYmplY3QpO1xuICAgIH1cbiAgICByZXR1cm4gbmV3IExhenlKc29uU3RyaW5nKEpTT04uc3RyaW5naWZ5KG9iamVjdCkpO1xuICB9XG59XG4iXX0= /***/ }), /***/ "K7De": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/findIndex.js ***! \********************************************************************/ /*! exports provided: findIndex */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findIndex", function() { return findIndex; }); /* harmony import */ var _operators_find__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../operators/find */ "cBqT"); function findIndex(predicate, thisArg) { return (source) => source.lift(new _operators_find__WEBPACK_IMPORTED_MODULE_0__["FindValueOperator"](predicate, source, true, thisArg)); } //# sourceMappingURL=findIndex.js.map /***/ }), /***/ "KCTf": /*!********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-apply-body-checksum/dist/es/applyMd5BodyChecksumMiddleware.js ***! \********************************************************************************************************/ /*! exports provided: applyMd5BodyChecksumMiddleware, applyMd5BodyChecksumMiddlewareOptions, getApplyMd5BodyChecksumPlugin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyMd5BodyChecksumMiddleware", function() { return applyMd5BodyChecksumMiddleware; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyMd5BodyChecksumMiddlewareOptions", function() { return applyMd5BodyChecksumMiddlewareOptions; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getApplyMd5BodyChecksumPlugin", function() { return getApplyMd5BodyChecksumPlugin; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_is_array_buffer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/is-array-buffer */ "GDOE"); /* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "Enk7"); function applyMd5BodyChecksumMiddleware(options) { var _this = this; return function (next) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () { var request, body, headers, digest, hash, _a, _b, _c, _d, _e; var _f, _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: request = args.request; if (!_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_2__["HttpRequest"].isInstance(request)) return [3 /*break*/, 2]; body = request.body, headers = request.headers; if (!!hasHeader("Content-MD5", headers)) return [3 /*break*/, 2]; digest = void 0; if (body === undefined || typeof body === "string" || ArrayBuffer.isView(body) || Object(_aws_sdk_is_array_buffer__WEBPACK_IMPORTED_MODULE_1__["isArrayBuffer"])(body)) { hash = new options.md5(); hash.update(body || ""); digest = hash.digest(); } else { digest = options.streamHasher(options.md5, body); } _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request)]; _f = {}; _b = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, headers)]; _g = {}; _c = "Content-MD5"; _e = (_d = options).base64Encoder; return [4 /*yield*/, digest]; case 1: request = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.headers = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _b.concat([(_g[_c] = _e.apply(_d, [_h.sent()]), _g)])), _f)])); _h.label = 2; case 2: return [2 /*return*/, next(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, args), { request: request }))]; } }); }); }; }; } var applyMd5BodyChecksumMiddlewareOptions = { name: "applyMd5BodyChecksumMiddleware", step: "build", tags: ["SET_CONTENT_MD5", "BODY_CHECKSUM"], }; var getApplyMd5BodyChecksumPlugin = function (config) { return ({ applyToStack: function (clientStack) { clientStack.add(applyMd5BodyChecksumMiddleware(config), applyMd5BodyChecksumMiddlewareOptions); }, }); }; function hasHeader(soughtHeader, headers) { var e_1, _a; soughtHeader = soughtHeader.toLowerCase(); try { for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(headers)), _c = _b.next(); !_c.done; _c = _b.next()) { var headerName = _c.value; if (soughtHeader === headerName.toLowerCase()) { return true; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return false; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbHlNZDVCb2R5Q2hlY2tzdW1NaWRkbGV3YXJlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2FwcGx5TWQ1Qm9keUNoZWNrc3VtTWlkZGxld2FyZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQ3pELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQWNyRCxNQUFNLFVBQVUsOEJBQThCLENBQUMsT0FBc0M7SUFBckYsaUJBK0JDO0lBOUJDLE9BQU8sVUFBZ0MsSUFBK0IsSUFBZ0MsT0FBQSxVQUNwRyxJQUFnQzs7Ozs7O29CQUUxQixPQUFPLEdBQUssSUFBSSxRQUFULENBQVU7eUJBQ25CLFdBQVcsQ0FBQyxVQUFVLENBQUMsT0FBTyxDQUFDLEVBQS9CLHdCQUErQjtvQkFDekIsSUFBSSxHQUFjLE9BQU8sS0FBckIsRUFBRSxPQUFPLEdBQUssT0FBTyxRQUFaLENBQWE7eUJBQzlCLENBQUMsU0FBUyxDQUFDLGFBQWEsRUFBRSxPQUFPLENBQUMsRUFBbEMsd0JBQWtDO29CQUNoQyxNQUFNLFNBQXFCLENBQUM7b0JBQ2hDLElBQUksSUFBSSxLQUFLLFNBQVMsSUFBSSxPQUFPLElBQUksS0FBSyxRQUFRLElBQUksV0FBVyxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsSUFBSSxhQUFhLENBQUMsSUFBSSxDQUFDLEVBQUU7d0JBQy9GLElBQUksR0FBRyxJQUFJLE9BQU8sQ0FBQyxHQUFHLEVBQUUsQ0FBQzt3QkFDL0IsSUFBSSxDQUFDLE1BQU0sQ0FBQyxJQUFJLElBQUksRUFBRSxDQUFDLENBQUM7d0JBQ3hCLE1BQU0sR0FBRyxJQUFJLENBQUMsTUFBTSxFQUFFLENBQUM7cUJBQ3hCO3lCQUFNO3dCQUNMLE1BQU0sR0FBRyxPQUFPLENBQUMsWUFBWSxDQUFDLE9BQU8sQ0FBQyxHQUFHLEVBQUUsSUFBSSxDQUFDLENBQUM7cUJBQ2xEO3VDQUdJLE9BQU87O3VDQUVMLE9BQU87O29CQUNWLEtBQUEsYUFBYSxDQUFBO29CQUFFLEtBQUEsQ0FBQSxLQUFBLE9BQU8sQ0FBQSxDQUFDLGFBQWEsQ0FBQTtvQkFBQyxxQkFBTSxNQUFNLEVBQUE7O29CQUpyRCxPQUFPLHNDQUVMLFVBQU8sc0NBRUwsTUFBYSxHQUFFLGNBQXNCLFNBQVksRUFBQyxnQkFFckQsQ0FBQzs7d0JBR04sc0JBQU8sSUFBSSx1QkFDTixJQUFJLEtBQ1AsT0FBTyxTQUFBLElBQ1AsRUFBQzs7O1NBQ0osRUE3QnFHLENBNkJyRyxDQUFDO0FBQ0osQ0FBQztBQUVELE1BQU0sQ0FBQyxJQUFNLHFDQUFxQyxHQUF3QjtJQUN4RSxJQUFJLEVBQUUsZ0NBQWdDO0lBQ3RDLElBQUksRUFBRSxPQUFPO0lBQ2IsSUFBSSxFQUFFLENBQUMsaUJBQWlCLEVBQUUsZUFBZSxDQUFDO0NBQzNDLENBQUM7QUFFRixNQUFNLENBQUMsSUFBTSw2QkFBNkIsR0FBRyxVQUFDLE1BQXFDLElBQTBCLE9BQUEsQ0FBQztJQUM1RyxZQUFZLEVBQUUsVUFBQyxXQUFXO1FBQ3hCLFdBQVcsQ0FBQyxHQUFHLENBQUMsOEJBQThCLENBQUMsTUFBTSxDQUFDLEVBQUUscUNBQXFDLENBQUMsQ0FBQztJQUNqRyxDQUFDO0NBQ0YsQ0FBQyxFQUoyRyxDQUkzRyxDQUFDO0FBRUgsU0FBUyxTQUFTLENBQUMsWUFBb0IsRUFBRSxPQUFrQjs7SUFDekQsWUFBWSxHQUFHLFlBQVksQ0FBQyxXQUFXLEVBQUUsQ0FBQzs7UUFDMUMsS0FBeUIsSUFBQSxLQUFBLFNBQUEsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQSxnQkFBQSw0QkFBRTtZQUExQyxJQUFNLFVBQVUsV0FBQTtZQUNuQixJQUFJLFlBQVksS0FBSyxVQUFVLENBQUMsV0FBVyxFQUFFLEVBQUU7Z0JBQzdDLE9BQU8sSUFBSSxDQUFDO2FBQ2I7U0FDRjs7Ozs7Ozs7O0lBRUQsT0FBTyxLQUFLLENBQUM7QUFDZixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgaXNBcnJheUJ1ZmZlciB9IGZyb20gXCJAYXdzLXNkay9pcy1hcnJheS1idWZmZXJcIjtcbmltcG9ydCB7IEh0dHBSZXF1ZXN0IH0gZnJvbSBcIkBhd3Mtc2RrL3Byb3RvY29sLWh0dHBcIjtcbmltcG9ydCB7XG4gIEJ1aWxkSGFuZGxlcixcbiAgQnVpbGRIYW5kbGVyQXJndW1lbnRzLFxuICBCdWlsZEhhbmRsZXJPcHRpb25zLFxuICBCdWlsZEhhbmRsZXJPdXRwdXQsXG4gIEJ1aWxkTWlkZGxld2FyZSxcbiAgSGVhZGVyQmFnLFxuICBNZXRhZGF0YUJlYXJlcixcbiAgUGx1Z2dhYmxlLFxufSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuaW1wb3J0IHsgTWQ1Qm9keUNoZWNrc3VtUmVzb2x2ZWRDb25maWcgfSBmcm9tIFwiLi9tZDVDb25maWd1cmF0aW9uXCI7XG5cbmV4cG9ydCBmdW5jdGlvbiBhcHBseU1kNUJvZHlDaGVja3N1bU1pZGRsZXdhcmUob3B0aW9uczogTWQ1Qm9keUNoZWNrc3VtUmVzb2x2ZWRDb25maWcpOiBCdWlsZE1pZGRsZXdhcmU8YW55LCBhbnk+IHtcbiAgcmV0dXJuIDxPdXRwdXQgZXh0ZW5kcyBNZXRhZGF0YUJlYXJlcj4obmV4dDogQnVpbGRIYW5kbGVyPGFueSwgT3V0cHV0Pik6IEJ1aWxkSGFuZGxlcjxhbnksIE91dHB1dD4gPT4gYXN5bmMgKFxuICAgIGFyZ3M6IEJ1aWxkSGFuZGxlckFyZ3VtZW50czxhbnk+XG4gICk6IFByb21pc2U8QnVpbGRIYW5kbGVyT3V0cHV0PE91dHB1dD4+ID0+IHtcbiAgICBsZXQgeyByZXF1ZXN0IH0gPSBhcmdzO1xuICAgIGlmIChIdHRwUmVxdWVzdC5pc0luc3RhbmNlKHJlcXVlc3QpKSB7XG4gICAgICBjb25zdCB7IGJvZHksIGhlYWRlcnMgfSA9IHJlcXVlc3Q7XG4gICAgICBpZiAoIWhhc0hlYWRlcihcIkNvbnRlbnQtTUQ1XCIsIGhlYWRlcnMpKSB7XG4gICAgICAgIGxldCBkaWdlc3Q6IFByb21pc2U8VWludDhBcnJheT47XG4gICAgICAgIGlmIChib2R5ID09PSB1bmRlZmluZWQgfHwgdHlwZW9mIGJvZHkgPT09IFwic3RyaW5nXCIgfHwgQXJyYXlCdWZmZXIuaXNWaWV3KGJvZHkpIHx8IGlzQXJyYXlCdWZmZXIoYm9keSkpIHtcbiAgICAgICAgICBjb25zdCBoYXNoID0gbmV3IG9wdGlvbnMubWQ1KCk7XG4gICAgICAgICAgaGFzaC51cGRhdGUoYm9keSB8fCBcIlwiKTtcbiAgICAgICAgICBkaWdlc3QgPSBoYXNoLmRpZ2VzdCgpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIGRpZ2VzdCA9IG9wdGlvbnMuc3RyZWFtSGFzaGVyKG9wdGlvbnMubWQ1LCBib2R5KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJlcXVlc3QgPSB7XG4gICAgICAgICAgLi4ucmVxdWVzdCxcbiAgICAgICAgICBoZWFkZXJzOiB7XG4gICAgICAgICAgICAuLi5oZWFkZXJzLFxuICAgICAgICAgICAgXCJDb250ZW50LU1ENVwiOiBvcHRpb25zLmJhc2U2NEVuY29kZXIoYXdhaXQgZGlnZXN0KSxcbiAgICAgICAgICB9LFxuICAgICAgICB9O1xuICAgICAgfVxuICAgIH1cbiAgICByZXR1cm4gbmV4dCh7XG4gICAgICAuLi5hcmdzLFxuICAgICAgcmVxdWVzdCxcbiAgICB9KTtcbiAgfTtcbn1cblxuZXhwb3J0IGNvbnN0IGFwcGx5TWQ1Qm9keUNoZWNrc3VtTWlkZGxld2FyZU9wdGlvbnM6IEJ1aWxkSGFuZGxlck9wdGlvbnMgPSB7XG4gIG5hbWU6IFwiYXBwbHlNZDVCb2R5Q2hlY2tzdW1NaWRkbGV3YXJlXCIsXG4gIHN0ZXA6IFwiYnVpbGRcIixcbiAgdGFnczogW1wiU0VUX0NPTlRFTlRfTUQ1XCIsIFwiQk9EWV9DSEVDS1NVTVwiXSxcbn07XG5cbmV4cG9ydCBjb25zdCBnZXRBcHBseU1kNUJvZHlDaGVja3N1bVBsdWdpbiA9IChjb25maWc6IE1kNUJvZHlDaGVja3N1bVJlc29sdmVkQ29uZmlnKTogUGx1Z2dhYmxlPGFueSwgYW55PiA9PiAoe1xuICBhcHBseVRvU3RhY2s6IChjbGllbnRTdGFjaykgPT4ge1xuICAgIGNsaWVudFN0YWNrLmFkZChhcHBseU1kNUJvZHlDaGVja3N1bU1pZGRsZXdhcmUoY29uZmlnKSwgYXBwbHlNZDVCb2R5Q2hlY2tzdW1NaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcblxuZnVuY3Rpb24gaGFzSGVhZGVyKHNvdWdodEhlYWRlcjogc3RyaW5nLCBoZWFkZXJzOiBIZWFkZXJCYWcpOiBib29sZWFuIHtcbiAgc291Z2h0SGVhZGVyID0gc291Z2h0SGVhZGVyLnRvTG93ZXJDYXNlKCk7XG4gIGZvciAoY29uc3QgaGVhZGVyTmFtZSBvZiBPYmplY3Qua2V5cyhoZWFkZXJzKSkge1xuICAgIGlmIChzb3VnaHRIZWFkZXIgPT09IGhlYWRlck5hbWUudG9Mb3dlckNhc2UoKSkge1xuICAgICAgcmV0dXJuIHRydWU7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIGZhbHNlO1xufVxuIl19 /***/ }), /***/ "KMkd": /*!************************************************!*\ !*** ./node_modules/lodash/_listCacheClear.js ***! \************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Removes all key-value entries from the list cache. * * @private * @name clear * @memberOf ListCache */ function listCacheClear() { this.__data__ = []; this.size = 0; } module.exports = listCacheClear; /***/ }), /***/ "KUjx": /*!****************************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/lib-esm/datastore/datastore.js ***! \****************************************************************************/ /*! exports provided: DataStoreClass, initSchema, DataStore */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataStoreClass", function() { return DataStore; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initSchema", function() { return initSchema; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataStore", function() { return instance; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! immer */ "rfrl"); /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! uuid */ "tYkk"); /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var zen_observable_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zen-observable-ts */ "b0dj"); /* harmony import */ var _predicates__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../predicates */ "0VOl"); /* harmony import */ var _storage_storage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../storage/storage */ "t3fk"); /* harmony import */ var _sync__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../sync */ "7Axf"); /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../types */ "+eag"); /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../util */ "wr5y"); var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __rest = (undefined && undefined.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; var __values = (undefined && undefined.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object(immer__WEBPACK_IMPORTED_MODULE_1__["setAutoFreeze"])(true); var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('DataStore'); var ulid = Object(_util__WEBPACK_IMPORTED_MODULE_8__["monotonicUlidFactory"])(Date.now()); var isNode = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].browserOrNode().isNode; var SETTING_SCHEMA_VERSION = 'schemaVersion'; var schema; var modelNamespaceMap = new WeakMap(); var getModelDefinition = function (modelConstructor) { var namespace = modelNamespaceMap.get(modelConstructor); return schema.namespaces[namespace].models[modelConstructor.name]; }; var isValidModelConstructor = function (obj) { return Object(_util__WEBPACK_IMPORTED_MODULE_8__["isModelConstructor"])(obj) && modelNamespaceMap.has(obj); }; var namespaceResolver = function (modelConstructor) { return modelNamespaceMap.get(modelConstructor); }; var dataStoreClasses; var userClasses; var syncClasses; var storageClasses; var initSchema = function (userSchema) { var _a; if (schema !== undefined) { console.warn('The schema has already been initialized'); return userClasses; } logger.log('validating schema', { schema: userSchema }); var internalUserNamespace = __assign({ name: _util__WEBPACK_IMPORTED_MODULE_8__["USER"] }, userSchema); logger.log('DataStore', 'Init models'); userClasses = createTypeClasses(internalUserNamespace); logger.log('DataStore', 'Models initialized'); var dataStoreNamespace = getNamespace(); var storageNamespace = _storage_storage__WEBPACK_IMPORTED_MODULE_5__["ExclusiveStorage"].getNamespace(); var syncNamespace = _sync__WEBPACK_IMPORTED_MODULE_6__["SyncEngine"].getNamespace(); dataStoreClasses = createTypeClasses(dataStoreNamespace); storageClasses = createTypeClasses(storageNamespace); syncClasses = createTypeClasses(syncNamespace); schema = { namespaces: (_a = {}, _a[dataStoreNamespace.name] = dataStoreNamespace, _a[internalUserNamespace.name] = internalUserNamespace, _a[storageNamespace.name] = storageNamespace, _a[syncNamespace.name] = syncNamespace, _a), version: userSchema.version, }; Object.keys(schema.namespaces).forEach(function (namespace) { var e_1, _a; schema.namespaces[namespace].relationships = Object(_util__WEBPACK_IMPORTED_MODULE_8__["establishRelation"])(schema.namespaces[namespace]); var modelAssociations = new Map(); Object.values(schema.namespaces[namespace].models).forEach(function (model) { var connectedModels = []; Object.values(model.fields) .filter(function (field) { return field.association && field.association.connectionType === 'BELONGS_TO' && field.type.model !== model.name; }) .forEach(function (field) { return connectedModels.push(field.type.model); }); modelAssociations.set(model.name, connectedModels); }); var result = new Map(); var count = 1000; while ( true && count > 0) { if (modelAssociations.size === 0) { break; } count--; if (count === 0) { throw new Error('Models are not topologically sortable. Please verify your schema.'); } try { for (var _b = (e_1 = void 0, __values(Array.from(modelAssociations.keys()))), _c = _b.next(); !_c.done; _c = _b.next()) { var modelName = _c.value; var parents = modelAssociations.get(modelName); if (parents.every(function (x) { return result.has(x); })) { result.set(modelName, parents); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } Array.from(result.keys()).forEach(function (x) { return modelAssociations.delete(x); }); } schema.namespaces[namespace].modelTopologicalOrdering = result; }); return userClasses; }; var createTypeClasses = function (namespace) { var classes = {}; Object.entries(namespace.models).forEach(function (_a) { var _b = __read(_a, 2), modelName = _b[0], modelDefinition = _b[1]; var clazz = createModelClass(modelDefinition); classes[modelName] = clazz; modelNamespaceMap.set(clazz, namespace.name); }); Object.entries(namespace.nonModels || {}).forEach(function (_a) { var _b = __read(_a, 2), typeName = _b[0], typeDefinition = _b[1]; var clazz = createNonModelClass(typeDefinition); classes[typeName] = clazz; }); return classes; }; var instancesMetadata = new WeakSet(); function modelInstanceCreator(modelConstructor, init) { instancesMetadata.add(init); return new modelConstructor(init); } var validateModelFields = function (modelDefinition) { return function (k, v) { var fieldDefinition = modelDefinition.fields[k]; if (fieldDefinition !== undefined) { var type = fieldDefinition.type, isRequired_1 = fieldDefinition.isRequired, isArrayNullable = fieldDefinition.isArrayNullable, name_1 = fieldDefinition.name, isArray = fieldDefinition.isArray; if (((!isArray && isRequired_1) || (isArray && !isArrayNullable)) && (v === null || v === undefined)) { throw new Error("Field " + name_1 + " is required"); } if (Object(_types__WEBPACK_IMPORTED_MODULE_7__["isGraphQLScalarType"])(type)) { var jsType_1 = _types__WEBPACK_IMPORTED_MODULE_7__["GraphQLScalarType"].getJSType(type); if (isArray) { var errorTypeText = jsType_1; if (!isRequired_1) { errorTypeText = jsType_1 + " | null | undefined"; } if (!Array.isArray(v) && !isArrayNullable) { throw new Error("Field " + name_1 + " should be of type [" + errorTypeText + "], " + typeof v + " received. " + v); } if (!Object(_util__WEBPACK_IMPORTED_MODULE_8__["isNullOrUndefined"])(v) && v.some(function (e) { return typeof e !== jsType_1 || (Object(_util__WEBPACK_IMPORTED_MODULE_8__["isNullOrUndefined"])(e) && isRequired_1); })) { var elemTypes = v.map(function (e) { return typeof e; }).join(','); throw new Error("All elements in the " + name_1 + " array should be of type " + errorTypeText + ", [" + elemTypes + "] received. " + v); } } else if (typeof v !== jsType_1 && v !== null) { throw new Error("Field " + name_1 + " should be of type " + jsType_1 + ", " + typeof v + " received. " + v); } } } }; }; var initializeInstance = function (init, modelDefinition, draft) { var modelValidator = validateModelFields(modelDefinition); Object.entries(init).forEach(function (_a) { var _b = __read(_a, 2), k = _b[0], v = _b[1]; modelValidator(k, v); draft[k] = v; }); }; var createModelClass = function (modelDefinition) { var clazz = /** @class */ (function () { function Model(init) { var instance = Object(immer__WEBPACK_IMPORTED_MODULE_1__["produce"])(this, function (draft) { initializeInstance(init, modelDefinition, draft); var modelInstanceMetadata = instancesMetadata.has(init) ? init : {}; var _id = modelInstanceMetadata.id, _version = modelInstanceMetadata._version, _lastChangedAt = modelInstanceMetadata._lastChangedAt, _deleted = modelInstanceMetadata._deleted; var id = // instancesIds is set by modelInstanceCreator, it is accessible only internally _id !== null && _id !== undefined ? _id : modelDefinition.syncable ? Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v4"])() : ulid(); draft.id = id; if (modelDefinition.syncable) { draft._version = _version; draft._lastChangedAt = _lastChangedAt; draft._deleted = _deleted; } }); return instance; } Model.copyOf = function (source, fn) { var modelConstructor = Object.getPrototypeOf(source || {}).constructor; if (!isValidModelConstructor(modelConstructor)) { var msg = 'The source object is not a valid model'; logger.error(msg, { source: source }); throw new Error(msg); } return Object(immer__WEBPACK_IMPORTED_MODULE_1__["produce"])(source, function (draft) { fn(draft); draft.id = source.id; var modelValidator = validateModelFields(modelDefinition); Object.entries(draft).forEach(function (_a) { var _b = __read(_a, 2), k = _b[0], v = _b[1]; modelValidator(k, v); }); }); }; // "private" method (that's hidden via `Setting`) for `withSSRContext` to use // to gain access to `modelInstanceCreator` and `clazz` for persisting IDs from server to client. Model.fromJSON = function (json) { var _this = this; if (Array.isArray(json)) { return json.map(function (init) { return _this.fromJSON(init); }); } var instance = modelInstanceCreator(clazz, json); var modelValidator = validateModelFields(modelDefinition); Object.entries(instance).forEach(function (_a) { var _b = __read(_a, 2), k = _b[0], v = _b[1]; modelValidator(k, v); }); return instance; }; return Model; }()); clazz[immer__WEBPACK_IMPORTED_MODULE_1__["immerable"]] = true; Object.defineProperty(clazz, 'name', { value: modelDefinition.name }); return clazz; }; var createNonModelClass = function (typeDefinition) { var clazz = /** @class */ (function () { function Model(init) { var instance = Object(immer__WEBPACK_IMPORTED_MODULE_1__["produce"])(this, function (draft) { initializeInstance(init, typeDefinition, draft); }); return instance; } return Model; }()); clazz[immer__WEBPACK_IMPORTED_MODULE_1__["immerable"]] = true; Object.defineProperty(clazz, 'name', { value: typeDefinition.name }); return clazz; }; function isQueryOne(obj) { return typeof obj === 'string'; } function defaultConflictHandler(conflictData) { var localModel = conflictData.localModel, modelConstructor = conflictData.modelConstructor, remoteModel = conflictData.remoteModel; var _version = remoteModel._version; return modelInstanceCreator(modelConstructor, __assign(__assign({}, localModel), { _version: _version })); } function defaultErrorHandler(error) { logger.warn(error); } function getModelConstructorByModelName(namespaceName, modelName) { var result; switch (namespaceName) { case _util__WEBPACK_IMPORTED_MODULE_8__["DATASTORE"]: result = dataStoreClasses[modelName]; break; case _util__WEBPACK_IMPORTED_MODULE_8__["USER"]: result = userClasses[modelName]; break; case _util__WEBPACK_IMPORTED_MODULE_8__["SYNC"]: result = syncClasses[modelName]; break; case _util__WEBPACK_IMPORTED_MODULE_8__["STORAGE"]: result = storageClasses[modelName]; break; default: Object(_util__WEBPACK_IMPORTED_MODULE_8__["exhaustiveCheck"])(namespaceName); break; } if (isValidModelConstructor(result)) { return result; } else { var msg = "Model name is not valid for namespace. modelName: " + modelName + ", namespace: " + namespaceName; logger.error(msg); throw new Error(msg); } } function checkSchemaVersion(storage, version) { return __awaiter(this, void 0, void 0, function () { var Setting, modelDefinition; var _this = this; return __generator(this, function (_a) { switch (_a.label) { case 0: Setting = dataStoreClasses.Setting; modelDefinition = schema.namespaces[_util__WEBPACK_IMPORTED_MODULE_8__["DATASTORE"]].models.Setting; return [4 /*yield*/, storage.runExclusive(function (s) { return __awaiter(_this, void 0, void 0, function () { var _a, schemaVersionSetting, storedValue; return __generator(this, function (_b) { switch (_b.label) { case 0: return [4 /*yield*/, s.query(Setting, _predicates__WEBPACK_IMPORTED_MODULE_4__["ModelPredicateCreator"].createFromExisting(modelDefinition, function (c) { // @ts-ignore Argument of type '"eq"' is not assignable to parameter of type 'never'. return c.key('eq', SETTING_SCHEMA_VERSION); }), { page: 0, limit: 1 })]; case 1: _a = __read.apply(void 0, [_b.sent(), 1]), schemaVersionSetting = _a[0]; if (!(schemaVersionSetting !== undefined)) return [3 /*break*/, 4]; storedValue = JSON.parse(schemaVersionSetting.value); if (!(storedValue !== version)) return [3 /*break*/, 3]; return [4 /*yield*/, s.clear(false)]; case 2: _b.sent(); _b.label = 3; case 3: return [3 /*break*/, 6]; case 4: return [4 /*yield*/, s.save(modelInstanceCreator(Setting, { key: SETTING_SCHEMA_VERSION, value: JSON.stringify(version), }))]; case 5: _b.sent(); _b.label = 6; case 6: return [2 /*return*/]; } }); }); })]; case 1: _a.sent(); return [2 /*return*/]; } }); }); } var syncSubscription; function getNamespace() { var namespace = { name: _util__WEBPACK_IMPORTED_MODULE_8__["DATASTORE"], relationships: {}, enums: {}, nonModels: {}, models: { Setting: { name: 'Setting', pluralName: 'Settings', syncable: false, fields: { id: { name: 'id', type: 'ID', isRequired: true, isArray: false, }, key: { name: 'key', type: 'String', isRequired: true, isArray: false, }, value: { name: 'value', type: 'String', isRequired: true, isArray: false, }, }, }, }, }; return namespace; } var DataStore = /** @class */ (function () { function DataStore() { var _this = this; this.amplifyConfig = {}; this.start = function () { return __awaiter(_this, void 0, void 0, function () { var aws_appsync_graphqlEndpoint, fullSyncIntervalInMilliseconds; var _this = this; return __generator(this, function (_a) { switch (_a.label) { case 0: if (!(this.initialized === undefined)) return [3 /*break*/, 1]; logger.debug('Starting DataStore'); this.initialized = new Promise(function (res, rej) { _this.initResolve = res; _this.initReject = rej; }); return [3 /*break*/, 3]; case 1: return [4 /*yield*/, this.initialized]; case 2: _a.sent(); return [2 /*return*/]; case 3: this.storage = new _storage_storage__WEBPACK_IMPORTED_MODULE_5__["ExclusiveStorage"](schema, namespaceResolver, getModelConstructorByModelName, modelInstanceCreator); return [4 /*yield*/, this.storage.init()]; case 4: _a.sent(); return [4 /*yield*/, checkSchemaVersion(this.storage, schema.version)]; case 5: _a.sent(); aws_appsync_graphqlEndpoint = this.amplifyConfig.aws_appsync_graphqlEndpoint; if (aws_appsync_graphqlEndpoint) { logger.debug('GraphQL endpoint available', aws_appsync_graphqlEndpoint); this.sync = new _sync__WEBPACK_IMPORTED_MODULE_6__["SyncEngine"](schema, namespaceResolver, syncClasses, userClasses, this.storage, modelInstanceCreator, this.maxRecordsToSync, this.syncPageSize, this.conflictHandler, this.errorHandler); fullSyncIntervalInMilliseconds = this.fullSyncInterval * 1000 * 60; syncSubscription = this.sync .start({ fullSyncInterval: fullSyncIntervalInMilliseconds }) .subscribe({ next: function (_a) { var type = _a.type, data = _a.data; // In Node, we need to wait for queries to be synced to prevent returning empty arrays. // In the Browser, we can begin returning data once subscriptions are in place. var readyType = isNode ? _sync__WEBPACK_IMPORTED_MODULE_6__["ControlMessage"].SYNC_ENGINE_SYNC_QUERIES_READY : _sync__WEBPACK_IMPORTED_MODULE_6__["ControlMessage"].SYNC_ENGINE_STORAGE_SUBSCRIBED; if (type === readyType) { _this.initResolve(); } _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].dispatch('datastore', { event: type, data: data, }); }, error: function (err) { logger.warn('Sync error', err); _this.initReject(); }, }); } else { logger.warn("Data won't be synchronized. No GraphQL endpoint configured. Did you forget `Amplify.configure(awsconfig)`?", { config: this.amplifyConfig, }); this.initResolve(); } return [4 /*yield*/, this.initialized]; case 6: _a.sent(); return [2 /*return*/]; } }); }); }; this.query = function (modelConstructor, idOrCriteria, paginationProducer) { return __awaiter(_this, void 0, void 0, function () { var msg, modelDefinition, predicate, pagination, result; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.start()]; case 1: _a.sent(); //#region Input validation if (!isValidModelConstructor(modelConstructor)) { msg = 'Constructor is not for a valid model'; logger.error(msg, { modelConstructor: modelConstructor }); throw new Error(msg); } if (typeof idOrCriteria === 'string') { if (paginationProducer !== undefined) { logger.warn('Pagination is ignored when querying by id'); } } modelDefinition = getModelDefinition(modelConstructor); if (isQueryOne(idOrCriteria)) { predicate = _predicates__WEBPACK_IMPORTED_MODULE_4__["ModelPredicateCreator"].createForId(modelDefinition, idOrCriteria); } else { if (Object(_predicates__WEBPACK_IMPORTED_MODULE_4__["isPredicatesAll"])(idOrCriteria)) { // Predicates.ALL means "all records", so no predicate (undefined) predicate = undefined; } else { predicate = _predicates__WEBPACK_IMPORTED_MODULE_4__["ModelPredicateCreator"].createFromExisting(modelDefinition, idOrCriteria); logger.debug('after createFromExisting - predicate', predicate); } } pagination = this.processPagination(modelDefinition, paginationProducer); //#endregion logger.debug('params ready', { modelConstructor: modelConstructor, predicate: _predicates__WEBPACK_IMPORTED_MODULE_4__["ModelPredicateCreator"].getPredicates(predicate, false), pagination: __assign(__assign({}, pagination), { sort: _predicates__WEBPACK_IMPORTED_MODULE_4__["ModelSortPredicateCreator"].getPredicates(pagination.sort, false) }), }); return [4 /*yield*/, this.storage.query(modelConstructor, predicate, pagination)]; case 2: result = _a.sent(); return [2 /*return*/, isQueryOne(idOrCriteria) ? result[0] : result]; } }); }); }; this.save = function (model, condition) { return __awaiter(_this, void 0, void 0, function () { var modelConstructor, msg, modelDefinition, producedCondition, _a, savedModel; var _this = this; return __generator(this, function (_b) { switch (_b.label) { case 0: return [4 /*yield*/, this.start()]; case 1: _b.sent(); modelConstructor = model ? model.constructor : undefined; if (!isValidModelConstructor(modelConstructor)) { msg = 'Object is not an instance of a valid model'; logger.error(msg, { model: model }); throw new Error(msg); } modelDefinition = getModelDefinition(modelConstructor); producedCondition = _predicates__WEBPACK_IMPORTED_MODULE_4__["ModelPredicateCreator"].createFromExisting(modelDefinition, condition); return [4 /*yield*/, this.storage.runExclusive(function (s) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, s.save(model, producedCondition)]; case 1: _a.sent(); return [2 /*return*/, s.query(modelConstructor, _predicates__WEBPACK_IMPORTED_MODULE_4__["ModelPredicateCreator"].createForId(modelDefinition, model.id))]; } }); }); })]; case 2: _a = __read.apply(void 0, [_b.sent(), 1]), savedModel = _a[0]; return [2 /*return*/, savedModel]; } }); }); }; this.setConflictHandler = function (config) { var configDataStore = config.DataStore; var conflictHandlerIsDefault = function () { return _this.conflictHandler === defaultConflictHandler; }; if (configDataStore) { return configDataStore.conflictHandler; } if (conflictHandlerIsDefault() && config.conflictHandler) { return config.conflictHandler; } return _this.conflictHandler || defaultConflictHandler; }; this.setErrorHandler = function (config) { var configDataStore = config.DataStore; var errorHandlerIsDefault = function () { return _this.errorHandler === defaultErrorHandler; }; if (configDataStore) { return configDataStore.errorHandler; } if (errorHandlerIsDefault() && config.errorHandler) { return config.errorHandler; } return _this.errorHandler || defaultErrorHandler; }; this.delete = function (modelOrConstructor, idOrCriteria) { return __awaiter(_this, void 0, void 0, function () { var condition, msg, modelConstructor, msg, msg, _a, deleted, model, modelConstructor, msg, modelDefinition, idPredicate, msg, _b, _c, deleted; return __generator(this, function (_d) { switch (_d.label) { case 0: return [4 /*yield*/, this.start()]; case 1: _d.sent(); if (!modelOrConstructor) { msg = 'Model or Model Constructor required'; logger.error(msg, { modelOrConstructor: modelOrConstructor }); throw new Error(msg); } if (!isValidModelConstructor(modelOrConstructor)) return [3 /*break*/, 3]; modelConstructor = modelOrConstructor; if (!idOrCriteria) { msg = 'Id to delete or criteria required. Do you want to delete all? Pass Predicates.ALL'; logger.error(msg, { idOrCriteria: idOrCriteria }); throw new Error(msg); } if (typeof idOrCriteria === 'string') { condition = _predicates__WEBPACK_IMPORTED_MODULE_4__["ModelPredicateCreator"].createForId(getModelDefinition(modelConstructor), idOrCriteria); } else { condition = _predicates__WEBPACK_IMPORTED_MODULE_4__["ModelPredicateCreator"].createFromExisting(getModelDefinition(modelConstructor), /** * idOrCriteria is always a ProducerModelPredicate, never a symbol. * The symbol is used only for typing purposes. e.g. see Predicates.ALL */ idOrCriteria); if (!condition || !_predicates__WEBPACK_IMPORTED_MODULE_4__["ModelPredicateCreator"].isValidPredicate(condition)) { msg = 'Criteria required. Do you want to delete all? Pass Predicates.ALL'; logger.error(msg, { condition: condition }); throw new Error(msg); } } return [4 /*yield*/, this.storage.delete(modelConstructor, condition)]; case 2: _a = __read.apply(void 0, [_d.sent(), 1]), deleted = _a[0]; return [2 /*return*/, deleted]; case 3: model = modelOrConstructor; modelConstructor = Object.getPrototypeOf(model || {}) .constructor; if (!isValidModelConstructor(modelConstructor)) { msg = 'Object is not an instance of a valid model'; logger.error(msg, { model: model }); throw new Error(msg); } modelDefinition = getModelDefinition(modelConstructor); idPredicate = _predicates__WEBPACK_IMPORTED_MODULE_4__["ModelPredicateCreator"].createForId(modelDefinition, model.id); if (idOrCriteria) { if (typeof idOrCriteria !== 'function') { msg = 'Invalid criteria'; logger.error(msg, { idOrCriteria: idOrCriteria }); throw new Error(msg); } condition = idOrCriteria(idPredicate); } else { condition = idPredicate; } return [4 /*yield*/, this.storage.delete(model, condition)]; case 4: _b = __read.apply(void 0, [_d.sent(), 1]), _c = __read(_b[0], 1), deleted = _c[0]; return [2 /*return*/, deleted]; } }); }); }; this.observe = function (modelOrConstructor, idOrCriteria) { var predicate; var modelConstructor = modelOrConstructor && isValidModelConstructor(modelOrConstructor) ? modelOrConstructor : undefined; if (modelOrConstructor && modelConstructor === undefined) { var model = modelOrConstructor; var modelConstructor_1 = model && Object.getPrototypeOf(model).constructor; if (isValidModelConstructor(modelConstructor_1)) { if (idOrCriteria) { logger.warn('idOrCriteria is ignored when using a model instance', { model: model, idOrCriteria: idOrCriteria, }); } return _this.observe(modelConstructor_1, model.id); } else { var msg = 'The model is not an instance of a PersistentModelConstructor'; logger.error(msg, { model: model }); throw new Error(msg); } } if (idOrCriteria !== undefined && modelConstructor === undefined) { var msg = 'Cannot provide criteria without a modelConstructor'; logger.error(msg, idOrCriteria); throw new Error(msg); } if (modelConstructor && !isValidModelConstructor(modelConstructor)) { var msg = 'Constructor is not for a valid model'; logger.error(msg, { modelConstructor: modelConstructor }); throw new Error(msg); } if (typeof idOrCriteria === 'string') { predicate = _predicates__WEBPACK_IMPORTED_MODULE_4__["ModelPredicateCreator"].createForId(getModelDefinition(modelConstructor), idOrCriteria); } else { predicate = modelConstructor && _predicates__WEBPACK_IMPORTED_MODULE_4__["ModelPredicateCreator"].createFromExisting(getModelDefinition(modelConstructor), idOrCriteria); } return new zen_observable_ts__WEBPACK_IMPORTED_MODULE_3__["default"](function (observer) { var handle; (function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.start()]; case 1: _a.sent(); handle = this.storage .observe(modelConstructor, predicate) .filter(function (_a) { var model = _a.model; return namespaceResolver(model) === _util__WEBPACK_IMPORTED_MODULE_8__["USER"]; }) .subscribe(observer); return [2 /*return*/]; } }); }); })(); return function () { if (handle) { handle.unsubscribe(); } }; }); }; this.configure = function (config) { if (config === void 0) { config = {}; } var configDataStore = config.DataStore, configConflictHandler = config.conflictHandler, configErrorHandler = config.errorHandler, configMaxRecordsToSync = config.maxRecordsToSync, configSyncPageSize = config.syncPageSize, configFullSyncInterval = config.fullSyncInterval, configFromAmplify = __rest(config, ["DataStore", "conflictHandler", "errorHandler", "maxRecordsToSync", "syncPageSize", "fullSyncInterval"]); _this.amplifyConfig = __assign(__assign({}, configFromAmplify), _this.amplifyConfig); _this.conflictHandler = _this.setConflictHandler(config); _this.errorHandler = _this.setErrorHandler(config); _this.maxRecordsToSync = (configDataStore && configDataStore.maxRecordsToSync) || _this.maxRecordsToSync || config.maxRecordsToSync; _this.syncPageSize = (configDataStore && configDataStore.syncPageSize) || _this.syncPageSize || config.syncPageSize; _this.fullSyncInterval = (configDataStore && configDataStore.fullSyncInterval) || configFullSyncInterval || config.fullSyncInterval || 24 * 60; // 1 day }; this.clear = function clear() { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: if (this.storage === undefined) { return [2 /*return*/]; } if (syncSubscription && !syncSubscription.closed) { syncSubscription.unsubscribe(); } return [4 /*yield*/, this.storage.clear()]; case 1: _a.sent(); this.initialized = undefined; // Should re-initialize when start() is called. this.storage = undefined; this.sync = undefined; return [2 /*return*/]; } }); }); }; } DataStore.prototype.getModuleName = function () { return 'DataStore'; }; DataStore.prototype.processPagination = function (modelDefinition, paginationProducer) { var sortPredicate; var _a = paginationProducer || {}, limit = _a.limit, page = _a.page, sort = _a.sort; if (page !== undefined && limit === undefined) { throw new Error('Limit is required when requesting a page'); } if (page !== undefined) { if (typeof page !== 'number') { throw new Error('Page should be a number'); } if (page < 0) { throw new Error("Page can't be negative"); } } if (limit !== undefined) { if (typeof limit !== 'number') { throw new Error('Limit should be a number'); } if (limit < 0) { throw new Error("Limit can't be negative"); } } if (sort) { sortPredicate = _predicates__WEBPACK_IMPORTED_MODULE_4__["ModelSortPredicateCreator"].createFromExisting(modelDefinition, paginationProducer.sort); } return { limit: limit, page: page, sort: sortPredicate, }; }; return DataStore; }()); var instance = new DataStore(); _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Amplify"].register(instance); //# sourceMappingURL=datastore.js.map /***/ }), /***/ "KUrj": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/DeleteObjectTaggingCommand.js ***! \****************************************************************************************/ /*! exports provided: DeleteObjectTaggingCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteObjectTaggingCommand", function() { return DeleteObjectTaggingCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteObjectTaggingCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteObjectTaggingCommand, _super); // Start section: command_properties // End section: command_properties function DeleteObjectTaggingCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteObjectTaggingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteObjectTaggingRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteObjectTaggingOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteObjectTaggingCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlDeleteObjectTaggingCommand"])(input, context); }; DeleteObjectTaggingCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlDeleteObjectTaggingCommand"])(output, context); }; return DeleteObjectTaggingCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=DeleteObjectTaggingCommand.js.map /***/ }), /***/ "KcXj": /*!***********************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/Comprehend.js ***! \***********************************************************************/ /*! exports provided: Comprehend */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Comprehend", function() { return Comprehend; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _ComprehendClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ComprehendClient */ "8JFw"); /* harmony import */ var _commands_BatchDetectDominantLanguageCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/BatchDetectDominantLanguageCommand */ "3AcE"); /* harmony import */ var _commands_BatchDetectEntitiesCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/BatchDetectEntitiesCommand */ "uYV0"); /* harmony import */ var _commands_BatchDetectKeyPhrasesCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/BatchDetectKeyPhrasesCommand */ "8Otq"); /* harmony import */ var _commands_BatchDetectSentimentCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/BatchDetectSentimentCommand */ "iB/E"); /* harmony import */ var _commands_BatchDetectSyntaxCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/BatchDetectSyntaxCommand */ "Vfus"); /* harmony import */ var _commands_ClassifyDocumentCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/ClassifyDocumentCommand */ "T03m"); /* harmony import */ var _commands_CreateDocumentClassifierCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/CreateDocumentClassifierCommand */ "iXYY"); /* harmony import */ var _commands_CreateEndpointCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/CreateEndpointCommand */ "31ZT"); /* harmony import */ var _commands_CreateEntityRecognizerCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/CreateEntityRecognizerCommand */ "MXMf"); /* harmony import */ var _commands_DeleteDocumentClassifierCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/DeleteDocumentClassifierCommand */ "WTPI"); /* harmony import */ var _commands_DeleteEndpointCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/DeleteEndpointCommand */ "HkLN"); /* harmony import */ var _commands_DeleteEntityRecognizerCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/DeleteEntityRecognizerCommand */ "Wfc6"); /* harmony import */ var _commands_DescribeDocumentClassificationJobCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/DescribeDocumentClassificationJobCommand */ "Dewt"); /* harmony import */ var _commands_DescribeDocumentClassifierCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/DescribeDocumentClassifierCommand */ "gk6T"); /* harmony import */ var _commands_DescribeDominantLanguageDetectionJobCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/DescribeDominantLanguageDetectionJobCommand */ "Z29n"); /* harmony import */ var _commands_DescribeEndpointCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/DescribeEndpointCommand */ "iGmC"); /* harmony import */ var _commands_DescribeEntitiesDetectionJobCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/DescribeEntitiesDetectionJobCommand */ "VmW6"); /* harmony import */ var _commands_DescribeEntityRecognizerCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/DescribeEntityRecognizerCommand */ "obZ+"); /* harmony import */ var _commands_DescribeKeyPhrasesDetectionJobCommand__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./commands/DescribeKeyPhrasesDetectionJobCommand */ "DrHM"); /* harmony import */ var _commands_DescribeSentimentDetectionJobCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/DescribeSentimentDetectionJobCommand */ "RwOw"); /* harmony import */ var _commands_DescribeTopicsDetectionJobCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/DescribeTopicsDetectionJobCommand */ "TWc+"); /* harmony import */ var _commands_DetectDominantLanguageCommand__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./commands/DetectDominantLanguageCommand */ "juaX"); /* harmony import */ var _commands_DetectEntitiesCommand__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./commands/DetectEntitiesCommand */ "ov/a"); /* harmony import */ var _commands_DetectKeyPhrasesCommand__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./commands/DetectKeyPhrasesCommand */ "CmD9"); /* harmony import */ var _commands_DetectSentimentCommand__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./commands/DetectSentimentCommand */ "zBxi"); /* harmony import */ var _commands_DetectSyntaxCommand__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./commands/DetectSyntaxCommand */ "crJd"); /* harmony import */ var _commands_ListDocumentClassificationJobsCommand__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./commands/ListDocumentClassificationJobsCommand */ "wUKr"); /* harmony import */ var _commands_ListDocumentClassifiersCommand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./commands/ListDocumentClassifiersCommand */ "5AGO"); /* harmony import */ var _commands_ListDominantLanguageDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./commands/ListDominantLanguageDetectionJobsCommand */ "WeYW"); /* harmony import */ var _commands_ListEndpointsCommand__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./commands/ListEndpointsCommand */ "C1xV"); /* harmony import */ var _commands_ListEntitiesDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./commands/ListEntitiesDetectionJobsCommand */ "whfC"); /* harmony import */ var _commands_ListEntityRecognizersCommand__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./commands/ListEntityRecognizersCommand */ "fO6j"); /* harmony import */ var _commands_ListKeyPhrasesDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./commands/ListKeyPhrasesDetectionJobsCommand */ "siTk"); /* harmony import */ var _commands_ListSentimentDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./commands/ListSentimentDetectionJobsCommand */ "svW9"); /* harmony import */ var _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./commands/ListTagsForResourceCommand */ "LDVI"); /* harmony import */ var _commands_ListTopicsDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./commands/ListTopicsDetectionJobsCommand */ "hsFU"); /* harmony import */ var _commands_StartDocumentClassificationJobCommand__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./commands/StartDocumentClassificationJobCommand */ "cfWc"); /* harmony import */ var _commands_StartDominantLanguageDetectionJobCommand__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./commands/StartDominantLanguageDetectionJobCommand */ "HHC6"); /* harmony import */ var _commands_StartEntitiesDetectionJobCommand__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./commands/StartEntitiesDetectionJobCommand */ "und6"); /* harmony import */ var _commands_StartKeyPhrasesDetectionJobCommand__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./commands/StartKeyPhrasesDetectionJobCommand */ "J5Sr"); /* harmony import */ var _commands_StartSentimentDetectionJobCommand__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./commands/StartSentimentDetectionJobCommand */ "9AIs"); /* harmony import */ var _commands_StartTopicsDetectionJobCommand__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./commands/StartTopicsDetectionJobCommand */ "E/Em"); /* harmony import */ var _commands_StopDominantLanguageDetectionJobCommand__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./commands/StopDominantLanguageDetectionJobCommand */ "lUlz"); /* harmony import */ var _commands_StopEntitiesDetectionJobCommand__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./commands/StopEntitiesDetectionJobCommand */ "GPV0"); /* harmony import */ var _commands_StopKeyPhrasesDetectionJobCommand__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./commands/StopKeyPhrasesDetectionJobCommand */ "K1Bb"); /* harmony import */ var _commands_StopSentimentDetectionJobCommand__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./commands/StopSentimentDetectionJobCommand */ "e/0r"); /* harmony import */ var _commands_StopTrainingDocumentClassifierCommand__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./commands/StopTrainingDocumentClassifierCommand */ "6eNC"); /* harmony import */ var _commands_StopTrainingEntityRecognizerCommand__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./commands/StopTrainingEntityRecognizerCommand */ "1KiX"); /* harmony import */ var _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./commands/TagResourceCommand */ "37IQ"); /* harmony import */ var _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./commands/UntagResourceCommand */ "7V7Z"); /* harmony import */ var _commands_UpdateEndpointCommand__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./commands/UpdateEndpointCommand */ "ft7x"); /** *

Amazon Comprehend is an AWS service for gaining insight into the content of documents. Use these * actions to determine the topics contained in your documents, the topics they discuss, the * predominant sentiment expressed in them, the predominant language used, and more.

*/ var Comprehend = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Comprehend, _super); function Comprehend() { return _super !== null && _super.apply(this, arguments) || this; } Comprehend.prototype.batchDetectDominantLanguage = function (args, optionsOrCb, cb) { var command = new _commands_BatchDetectDominantLanguageCommand__WEBPACK_IMPORTED_MODULE_2__["BatchDetectDominantLanguageCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.batchDetectEntities = function (args, optionsOrCb, cb) { var command = new _commands_BatchDetectEntitiesCommand__WEBPACK_IMPORTED_MODULE_3__["BatchDetectEntitiesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.batchDetectKeyPhrases = function (args, optionsOrCb, cb) { var command = new _commands_BatchDetectKeyPhrasesCommand__WEBPACK_IMPORTED_MODULE_4__["BatchDetectKeyPhrasesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.batchDetectSentiment = function (args, optionsOrCb, cb) { var command = new _commands_BatchDetectSentimentCommand__WEBPACK_IMPORTED_MODULE_5__["BatchDetectSentimentCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.batchDetectSyntax = function (args, optionsOrCb, cb) { var command = new _commands_BatchDetectSyntaxCommand__WEBPACK_IMPORTED_MODULE_6__["BatchDetectSyntaxCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.classifyDocument = function (args, optionsOrCb, cb) { var command = new _commands_ClassifyDocumentCommand__WEBPACK_IMPORTED_MODULE_7__["ClassifyDocumentCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.createDocumentClassifier = function (args, optionsOrCb, cb) { var command = new _commands_CreateDocumentClassifierCommand__WEBPACK_IMPORTED_MODULE_8__["CreateDocumentClassifierCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.createEndpoint = function (args, optionsOrCb, cb) { var command = new _commands_CreateEndpointCommand__WEBPACK_IMPORTED_MODULE_9__["CreateEndpointCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.createEntityRecognizer = function (args, optionsOrCb, cb) { var command = new _commands_CreateEntityRecognizerCommand__WEBPACK_IMPORTED_MODULE_10__["CreateEntityRecognizerCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.deleteDocumentClassifier = function (args, optionsOrCb, cb) { var command = new _commands_DeleteDocumentClassifierCommand__WEBPACK_IMPORTED_MODULE_11__["DeleteDocumentClassifierCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.deleteEndpoint = function (args, optionsOrCb, cb) { var command = new _commands_DeleteEndpointCommand__WEBPACK_IMPORTED_MODULE_12__["DeleteEndpointCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.deleteEntityRecognizer = function (args, optionsOrCb, cb) { var command = new _commands_DeleteEntityRecognizerCommand__WEBPACK_IMPORTED_MODULE_13__["DeleteEntityRecognizerCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.describeDocumentClassificationJob = function (args, optionsOrCb, cb) { var command = new _commands_DescribeDocumentClassificationJobCommand__WEBPACK_IMPORTED_MODULE_14__["DescribeDocumentClassificationJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.describeDocumentClassifier = function (args, optionsOrCb, cb) { var command = new _commands_DescribeDocumentClassifierCommand__WEBPACK_IMPORTED_MODULE_15__["DescribeDocumentClassifierCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.describeDominantLanguageDetectionJob = function (args, optionsOrCb, cb) { var command = new _commands_DescribeDominantLanguageDetectionJobCommand__WEBPACK_IMPORTED_MODULE_16__["DescribeDominantLanguageDetectionJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.describeEndpoint = function (args, optionsOrCb, cb) { var command = new _commands_DescribeEndpointCommand__WEBPACK_IMPORTED_MODULE_17__["DescribeEndpointCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.describeEntitiesDetectionJob = function (args, optionsOrCb, cb) { var command = new _commands_DescribeEntitiesDetectionJobCommand__WEBPACK_IMPORTED_MODULE_18__["DescribeEntitiesDetectionJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.describeEntityRecognizer = function (args, optionsOrCb, cb) { var command = new _commands_DescribeEntityRecognizerCommand__WEBPACK_IMPORTED_MODULE_19__["DescribeEntityRecognizerCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.describeKeyPhrasesDetectionJob = function (args, optionsOrCb, cb) { var command = new _commands_DescribeKeyPhrasesDetectionJobCommand__WEBPACK_IMPORTED_MODULE_20__["DescribeKeyPhrasesDetectionJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.describeSentimentDetectionJob = function (args, optionsOrCb, cb) { var command = new _commands_DescribeSentimentDetectionJobCommand__WEBPACK_IMPORTED_MODULE_21__["DescribeSentimentDetectionJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.describeTopicsDetectionJob = function (args, optionsOrCb, cb) { var command = new _commands_DescribeTopicsDetectionJobCommand__WEBPACK_IMPORTED_MODULE_22__["DescribeTopicsDetectionJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.detectDominantLanguage = function (args, optionsOrCb, cb) { var command = new _commands_DetectDominantLanguageCommand__WEBPACK_IMPORTED_MODULE_23__["DetectDominantLanguageCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.detectEntities = function (args, optionsOrCb, cb) { var command = new _commands_DetectEntitiesCommand__WEBPACK_IMPORTED_MODULE_24__["DetectEntitiesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.detectKeyPhrases = function (args, optionsOrCb, cb) { var command = new _commands_DetectKeyPhrasesCommand__WEBPACK_IMPORTED_MODULE_25__["DetectKeyPhrasesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.detectSentiment = function (args, optionsOrCb, cb) { var command = new _commands_DetectSentimentCommand__WEBPACK_IMPORTED_MODULE_26__["DetectSentimentCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.detectSyntax = function (args, optionsOrCb, cb) { var command = new _commands_DetectSyntaxCommand__WEBPACK_IMPORTED_MODULE_27__["DetectSyntaxCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.listDocumentClassificationJobs = function (args, optionsOrCb, cb) { var command = new _commands_ListDocumentClassificationJobsCommand__WEBPACK_IMPORTED_MODULE_28__["ListDocumentClassificationJobsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.listDocumentClassifiers = function (args, optionsOrCb, cb) { var command = new _commands_ListDocumentClassifiersCommand__WEBPACK_IMPORTED_MODULE_29__["ListDocumentClassifiersCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.listDominantLanguageDetectionJobs = function (args, optionsOrCb, cb) { var command = new _commands_ListDominantLanguageDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_30__["ListDominantLanguageDetectionJobsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.listEndpoints = function (args, optionsOrCb, cb) { var command = new _commands_ListEndpointsCommand__WEBPACK_IMPORTED_MODULE_31__["ListEndpointsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.listEntitiesDetectionJobs = function (args, optionsOrCb, cb) { var command = new _commands_ListEntitiesDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_32__["ListEntitiesDetectionJobsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.listEntityRecognizers = function (args, optionsOrCb, cb) { var command = new _commands_ListEntityRecognizersCommand__WEBPACK_IMPORTED_MODULE_33__["ListEntityRecognizersCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.listKeyPhrasesDetectionJobs = function (args, optionsOrCb, cb) { var command = new _commands_ListKeyPhrasesDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_34__["ListKeyPhrasesDetectionJobsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.listSentimentDetectionJobs = function (args, optionsOrCb, cb) { var command = new _commands_ListSentimentDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_35__["ListSentimentDetectionJobsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.listTagsForResource = function (args, optionsOrCb, cb) { var command = new _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_36__["ListTagsForResourceCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.listTopicsDetectionJobs = function (args, optionsOrCb, cb) { var command = new _commands_ListTopicsDetectionJobsCommand__WEBPACK_IMPORTED_MODULE_37__["ListTopicsDetectionJobsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.startDocumentClassificationJob = function (args, optionsOrCb, cb) { var command = new _commands_StartDocumentClassificationJobCommand__WEBPACK_IMPORTED_MODULE_38__["StartDocumentClassificationJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.startDominantLanguageDetectionJob = function (args, optionsOrCb, cb) { var command = new _commands_StartDominantLanguageDetectionJobCommand__WEBPACK_IMPORTED_MODULE_39__["StartDominantLanguageDetectionJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.startEntitiesDetectionJob = function (args, optionsOrCb, cb) { var command = new _commands_StartEntitiesDetectionJobCommand__WEBPACK_IMPORTED_MODULE_40__["StartEntitiesDetectionJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.startKeyPhrasesDetectionJob = function (args, optionsOrCb, cb) { var command = new _commands_StartKeyPhrasesDetectionJobCommand__WEBPACK_IMPORTED_MODULE_41__["StartKeyPhrasesDetectionJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.startSentimentDetectionJob = function (args, optionsOrCb, cb) { var command = new _commands_StartSentimentDetectionJobCommand__WEBPACK_IMPORTED_MODULE_42__["StartSentimentDetectionJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.startTopicsDetectionJob = function (args, optionsOrCb, cb) { var command = new _commands_StartTopicsDetectionJobCommand__WEBPACK_IMPORTED_MODULE_43__["StartTopicsDetectionJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.stopDominantLanguageDetectionJob = function (args, optionsOrCb, cb) { var command = new _commands_StopDominantLanguageDetectionJobCommand__WEBPACK_IMPORTED_MODULE_44__["StopDominantLanguageDetectionJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.stopEntitiesDetectionJob = function (args, optionsOrCb, cb) { var command = new _commands_StopEntitiesDetectionJobCommand__WEBPACK_IMPORTED_MODULE_45__["StopEntitiesDetectionJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.stopKeyPhrasesDetectionJob = function (args, optionsOrCb, cb) { var command = new _commands_StopKeyPhrasesDetectionJobCommand__WEBPACK_IMPORTED_MODULE_46__["StopKeyPhrasesDetectionJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.stopSentimentDetectionJob = function (args, optionsOrCb, cb) { var command = new _commands_StopSentimentDetectionJobCommand__WEBPACK_IMPORTED_MODULE_47__["StopSentimentDetectionJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.stopTrainingDocumentClassifier = function (args, optionsOrCb, cb) { var command = new _commands_StopTrainingDocumentClassifierCommand__WEBPACK_IMPORTED_MODULE_48__["StopTrainingDocumentClassifierCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.stopTrainingEntityRecognizer = function (args, optionsOrCb, cb) { var command = new _commands_StopTrainingEntityRecognizerCommand__WEBPACK_IMPORTED_MODULE_49__["StopTrainingEntityRecognizerCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.tagResource = function (args, optionsOrCb, cb) { var command = new _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_50__["TagResourceCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.untagResource = function (args, optionsOrCb, cb) { var command = new _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_51__["UntagResourceCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Comprehend.prototype.updateEndpoint = function (args, optionsOrCb, cb) { var command = new _commands_UpdateEndpointCommand__WEBPACK_IMPORTED_MODULE_52__["UpdateEndpointCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; return Comprehend; }(_ComprehendClient__WEBPACK_IMPORTED_MODULE_1__["ComprehendClient"])); //# sourceMappingURL=Comprehend.js.map /***/ }), /***/ "KfNM": /*!************************************************!*\ !*** ./node_modules/lodash/_objectToString.js ***! \************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** * Converts `value` to a string using `Object.prototype.toString`. * * @private * @param {*} value The value to convert. * @returns {string} Returns the converted string. */ function objectToString(value) { return nativeObjectToString.call(value); } module.exports = objectToString; /***/ }), /***/ "Kg3V": /*!****************************************************************************!*\ !*** ./node_modules/@aws-sdk/s3-request-presigner/dist/es/getSignedUrl.js ***! \****************************************************************************/ /*! exports provided: getSignedUrl */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSignedUrl", function() { return getSignedUrl; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "Enk7"); /* harmony import */ var _aws_sdk_util_format_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/util-format-url */ "wcx3"); /* harmony import */ var _presigner__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./presigner */ "8iP/"); var getSignedUrl = function (client, command, options) { if (options === void 0) { options = {}; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var s3Presigner, presignInterceptMiddleware, presigned, output; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: s3Presigner = new _presigner__WEBPACK_IMPORTED_MODULE_3__["S3RequestPresigner"](Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, client.config)); presignInterceptMiddleware = function (next, context) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var request, presigned; var _a, _b; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: request = args.request; if (!_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(request)) { throw new Error("Request to be presigned is not an valid HTTP request."); } // Retry information headers are not meaningful in presigned URLs delete request.headers["amz-sdk-invocation-id"]; delete request.headers["amz-sdk-request"]; return [4 /*yield*/, s3Presigner.presign(request, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, options), { signingRegion: (_a = options.signingRegion) !== null && _a !== void 0 ? _a : context["signing_region"], signingService: (_b = options.signingService) !== null && _b !== void 0 ? _b : context["signing_service"] }))]; case 1: presigned = _c.sent(); return [2 /*return*/, { // Intercept the middleware stack by returning fake response response: {}, output: { $metadata: { httpStatusCode: 200 }, presigned: presigned, }, }]; } }); }); }; }; client.middlewareStack.addRelativeTo(presignInterceptMiddleware, { name: "presignInterceptMiddleware", relation: "before", toMiddleware: "awsAuthMiddleware", }); _a.label = 1; case 1: _a.trys.push([1, , 3, 4]); return [4 /*yield*/, client.send(command)]; case 2: output = _a.sent(); //@ts-ignore the output is faked, so it's not actually OutputType presigned = output.presigned; return [3 /*break*/, 4]; case 3: client.middlewareStack.remove("presignInterceptMiddleware"); return [7 /*endfinally*/]; case 4: return [2 /*return*/, Object(_aws_sdk_util_format_url__WEBPACK_IMPORTED_MODULE_2__["formatUrl"])(presigned)]; } }); }); }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0U2lnbmVkVXJsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2dldFNpZ25lZFVybC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBR3JELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUVyRCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFFakQsTUFBTSxDQUFDLElBQU0sWUFBWSxHQUFHLFVBSzFCLE1BQXlELEVBQ3pELE9BQTZFLEVBQzdFLE9BQXdDO0lBQXhDLHdCQUFBLEVBQUEsWUFBd0M7Ozs7OztvQkFFbEMsV0FBVyxHQUFHLElBQUksa0JBQWtCLGNBQU0sTUFBTSxDQUFDLE1BQU0sRUFBRyxDQUFDO29CQUMzRCwwQkFBMEIsR0FBcUQsVUFBQyxJQUFJLEVBQUUsT0FBTyxJQUFLLE9BQUEsVUFDdEcsSUFBSTs7Ozs7O29DQUVJLE9BQU8sR0FBSyxJQUFJLFFBQVQsQ0FBVTtvQ0FDekIsSUFBSSxDQUFDLFdBQVcsQ0FBQyxVQUFVLENBQUMsT0FBTyxDQUFDLEVBQUU7d0NBQ3BDLE1BQU0sSUFBSSxLQUFLLENBQUMsdURBQXVELENBQUMsQ0FBQztxQ0FDMUU7b0NBQ0QsaUVBQWlFO29DQUNqRSxPQUFPLE9BQU8sQ0FBQyxPQUFPLENBQUMsdUJBQXVCLENBQUMsQ0FBQztvQ0FDaEQsT0FBTyxPQUFPLENBQUMsT0FBTyxDQUFDLGlCQUFpQixDQUFDLENBQUM7b0NBRXhCLHFCQUFNLFdBQVcsQ0FBQyxPQUFPLENBQUMsT0FBTyx3QkFDOUMsT0FBTyxLQUNWLGFBQWEsUUFBRSxPQUFPLENBQUMsYUFBYSxtQ0FBSSxPQUFPLENBQUMsZ0JBQWdCLENBQUMsRUFDakUsY0FBYyxRQUFFLE9BQU8sQ0FBQyxjQUFjLG1DQUFJLE9BQU8sQ0FBQyxpQkFBaUIsQ0FBQyxJQUNwRSxFQUFBOztvQ0FKSSxTQUFTLEdBQUcsU0FJaEI7b0NBQ0Ysc0JBQU87NENBQ0wsNERBQTREOzRDQUM1RCxRQUFRLEVBQUUsRUFBRTs0Q0FDWixNQUFNLEVBQUU7Z0RBQ04sU0FBUyxFQUFFLEVBQUUsY0FBYyxFQUFFLEdBQUcsRUFBRTtnREFDbEMsU0FBUyxXQUFBOzZDQUNWO3lDQUNLLEVBQUM7Ozt5QkFDVixFQXhCdUcsQ0F3QnZHLENBQUM7b0JBQ0YsTUFBTSxDQUFDLGVBQWUsQ0FBQyxhQUFhLENBQUMsMEJBQTBCLEVBQUU7d0JBQy9ELElBQUksRUFBRSw0QkFBNEI7d0JBQ2xDLFFBQVEsRUFBRSxRQUFRO3dCQUNsQixZQUFZLEVBQUUsbUJBQW1CO3FCQUNsQyxDQUFDLENBQUM7Ozs7b0JBSWMscUJBQU0sTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsRUFBQTs7b0JBQW5DLE1BQU0sR0FBRyxTQUEwQjtvQkFDekMsaUVBQWlFO29CQUNqRSxTQUFTLEdBQUcsTUFBTSxDQUFDLFNBQVMsQ0FBQzs7O29CQUU3QixNQUFNLENBQUMsZUFBZSxDQUFDLE1BQU0sQ0FBQyw0QkFBNEIsQ0FBQyxDQUFDOzt3QkFHOUQsc0JBQU8sU0FBUyxDQUFDLFNBQVMsQ0FBQyxFQUFDOzs7O0NBQzdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBIdHRwUmVxdWVzdCB9IGZyb20gXCJAYXdzLXNkay9wcm90b2NvbC1odHRwXCI7XG5pbXBvcnQgeyBDbGllbnQsIENvbW1hbmQgfSBmcm9tIFwiQGF3cy1zZGsvc21pdGh5LWNsaWVudFwiO1xuaW1wb3J0IHsgQnVpbGRNaWRkbGV3YXJlLCBNZXRhZGF0YUJlYXJlciwgUmVxdWVzdFByZXNpZ25pbmdBcmd1bWVudHMgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcbmltcG9ydCB7IGZvcm1hdFVybCB9IGZyb20gXCJAYXdzLXNkay91dGlsLWZvcm1hdC11cmxcIjtcblxuaW1wb3J0IHsgUzNSZXF1ZXN0UHJlc2lnbmVyIH0gZnJvbSBcIi4vcHJlc2lnbmVyXCI7XG5cbmV4cG9ydCBjb25zdCBnZXRTaWduZWRVcmwgPSBhc3luYyA8XG4gIElucHV0VHlwZXNVbmlvbiBleHRlbmRzIG9iamVjdCxcbiAgSW5wdXRUeXBlIGV4dGVuZHMgSW5wdXRUeXBlc1VuaW9uLFxuICBPdXRwdXRUeXBlIGV4dGVuZHMgTWV0YWRhdGFCZWFyZXIgPSBNZXRhZGF0YUJlYXJlclxuPihcbiAgY2xpZW50OiBDbGllbnQ8YW55LCBJbnB1dFR5cGVzVW5pb24sIE1ldGFkYXRhQmVhcmVyLCBhbnk+LFxuICBjb21tYW5kOiBDb21tYW5kPElucHV0VHlwZSwgT3V0cHV0VHlwZSwgYW55LCBJbnB1dFR5cGVzVW5pb24sIE1ldGFkYXRhQmVhcmVyPixcbiAgb3B0aW9uczogUmVxdWVzdFByZXNpZ25pbmdBcmd1bWVudHMgPSB7fVxuKTogUHJvbWlzZTxzdHJpbmc+ID0+IHtcbiAgY29uc3QgczNQcmVzaWduZXIgPSBuZXcgUzNSZXF1ZXN0UHJlc2lnbmVyKHsgLi4uY2xpZW50LmNvbmZpZyB9KTtcbiAgY29uc3QgcHJlc2lnbkludGVyY2VwdE1pZGRsZXdhcmU6IEJ1aWxkTWlkZGxld2FyZTxJbnB1dFR5cGVzVW5pb24sIE1ldGFkYXRhQmVhcmVyPiA9IChuZXh0LCBjb250ZXh0KSA9PiBhc3luYyAoXG4gICAgYXJnc1xuICApID0+IHtcbiAgICBjb25zdCB7IHJlcXVlc3QgfSA9IGFyZ3M7XG4gICAgaWYgKCFIdHRwUmVxdWVzdC5pc0luc3RhbmNlKHJlcXVlc3QpKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoXCJSZXF1ZXN0IHRvIGJlIHByZXNpZ25lZCBpcyBub3QgYW4gdmFsaWQgSFRUUCByZXF1ZXN0LlwiKTtcbiAgICB9XG4gICAgLy8gUmV0cnkgaW5mb3JtYXRpb24gaGVhZGVycyBhcmUgbm90IG1lYW5pbmdmdWwgaW4gcHJlc2lnbmVkIFVSTHNcbiAgICBkZWxldGUgcmVxdWVzdC5oZWFkZXJzW1wiYW16LXNkay1pbnZvY2F0aW9uLWlkXCJdO1xuICAgIGRlbGV0ZSByZXF1ZXN0LmhlYWRlcnNbXCJhbXotc2RrLXJlcXVlc3RcIl07XG5cbiAgICBjb25zdCBwcmVzaWduZWQgPSBhd2FpdCBzM1ByZXNpZ25lci5wcmVzaWduKHJlcXVlc3QsIHtcbiAgICAgIC4uLm9wdGlvbnMsXG4gICAgICBzaWduaW5nUmVnaW9uOiBvcHRpb25zLnNpZ25pbmdSZWdpb24gPz8gY29udGV4dFtcInNpZ25pbmdfcmVnaW9uXCJdLFxuICAgICAgc2lnbmluZ1NlcnZpY2U6IG9wdGlvbnMuc2lnbmluZ1NlcnZpY2UgPz8gY29udGV4dFtcInNpZ25pbmdfc2VydmljZVwiXSxcbiAgICB9KTtcbiAgICByZXR1cm4ge1xuICAgICAgLy8gSW50ZXJjZXB0IHRoZSBtaWRkbGV3YXJlIHN0YWNrIGJ5IHJldHVybmluZyBmYWtlIHJlc3BvbnNlXG4gICAgICByZXNwb25zZToge30sXG4gICAgICBvdXRwdXQ6IHtcbiAgICAgICAgJG1ldGFkYXRhOiB7IGh0dHBTdGF0dXNDb2RlOiAyMDAgfSxcbiAgICAgICAgcHJlc2lnbmVkLFxuICAgICAgfSxcbiAgICB9IGFzIGFueTtcbiAgfTtcbiAgY2xpZW50Lm1pZGRsZXdhcmVTdGFjay5hZGRSZWxhdGl2ZVRvKHByZXNpZ25JbnRlcmNlcHRNaWRkbGV3YXJlLCB7XG4gICAgbmFtZTogXCJwcmVzaWduSW50ZXJjZXB0TWlkZGxld2FyZVwiLFxuICAgIHJlbGF0aW9uOiBcImJlZm9yZVwiLFxuICAgIHRvTWlkZGxld2FyZTogXCJhd3NBdXRoTWlkZGxld2FyZVwiLFxuICB9KTtcblxuICBsZXQgcHJlc2lnbmVkOiBIdHRwUmVxdWVzdDtcbiAgdHJ5IHtcbiAgICBjb25zdCBvdXRwdXQgPSBhd2FpdCBjbGllbnQuc2VuZChjb21tYW5kKTtcbiAgICAvL0B0cy1pZ25vcmUgdGhlIG91dHB1dCBpcyBmYWtlZCwgc28gaXQncyBub3QgYWN0dWFsbHkgT3V0cHV0VHlwZVxuICAgIHByZXNpZ25lZCA9IG91dHB1dC5wcmVzaWduZWQ7XG4gIH0gZmluYWxseSB7XG4gICAgY2xpZW50Lm1pZGRsZXdhcmVTdGFjay5yZW1vdmUoXCJwcmVzaWduSW50ZXJjZXB0TWlkZGxld2FyZVwiKTtcbiAgfVxuXG4gIHJldHVybiBmb3JtYXRVcmwocHJlc2lnbmVkKTtcbn07XG4iXX0= /***/ }), /***/ "Kj3r": /*!***********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/debounceTime.js ***! \***********************************************************************/ /*! exports provided: debounceTime */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "debounceTime", function() { return debounceTime; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scheduler/async */ "D0XW"); function debounceTime(dueTime, scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"]) { return (source) => source.lift(new DebounceTimeOperator(dueTime, scheduler)); } class DebounceTimeOperator { constructor(dueTime, scheduler) { this.dueTime = dueTime; this.scheduler = scheduler; } call(subscriber, source) { return source.subscribe(new DebounceTimeSubscriber(subscriber, this.dueTime, this.scheduler)); } } class DebounceTimeSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, dueTime, scheduler) { super(destination); this.dueTime = dueTime; this.scheduler = scheduler; this.debouncedSubscription = null; this.lastValue = null; this.hasValue = false; } _next(value) { this.clearDebounce(); this.lastValue = value; this.hasValue = true; this.add(this.debouncedSubscription = this.scheduler.schedule(dispatchNext, this.dueTime, this)); } _complete() { this.debouncedNext(); this.destination.complete(); } debouncedNext() { this.clearDebounce(); if (this.hasValue) { const { lastValue } = this; this.lastValue = null; this.hasValue = false; this.destination.next(lastValue); } } clearDebounce() { const debouncedSubscription = this.debouncedSubscription; if (debouncedSubscription !== null) { this.remove(debouncedSubscription); debouncedSubscription.unsubscribe(); this.debouncedSubscription = null; } } } function dispatchNext(subscriber) { subscriber.debouncedNext(); } //# sourceMappingURL=debounceTime.js.map /***/ }), /***/ "Kl1+": /*!*************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-lex-runtime-service/dist/es/commands/PostContentCommand.js ***! \*************************************************************************************************/ /*! exports provided: PostContentCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PostContentCommand", function() { return PostContentCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "Vu3y"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "3fs/"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PostContentCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PostContentCommand, _super); // Start section: command_properties // End section: command_properties function PostContentCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PostContentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PostContentRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PostContentResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PostContentCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PostContentCommand"])(input, context); }; PostContentCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PostContentCommand"])(output, context); }; return PostContentCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=PostContentCommand.js.map /***/ }), /***/ "Kqap": /*!***************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/scan.js ***! \***************************************************************/ /*! exports provided: scan */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scan", function() { return scan; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); function scan(accumulator, seed) { let hasSeed = false; if (arguments.length >= 2) { hasSeed = true; } return function scanOperatorFunction(source) { return source.lift(new ScanOperator(accumulator, seed, hasSeed)); }; } class ScanOperator { constructor(accumulator, seed, hasSeed = false) { this.accumulator = accumulator; this.seed = seed; this.hasSeed = hasSeed; } call(subscriber, source) { return source.subscribe(new ScanSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed)); } } class ScanSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, accumulator, _seed, hasSeed) { super(destination); this.accumulator = accumulator; this._seed = _seed; this.hasSeed = hasSeed; this.index = 0; } get seed() { return this._seed; } set seed(value) { this.hasSeed = true; this._seed = value; } _next(value) { if (!this.hasSeed) { this.seed = value; this.destination.next(value); } else { return this._tryNext(value); } } _tryNext(value) { const index = this.index++; let result; try { result = this.accumulator(this.seed, value, index); } catch (err) { this.destination.error(err); } this.seed = result; this.destination.next(result); } } //# sourceMappingURL=scan.js.map /***/ }), /***/ "KqfI": /*!**********************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/noop.js ***! \**********************************************************/ /*! exports provided: noop */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return noop; }); function noop() { } //# sourceMappingURL=noop.js.map /***/ }), /***/ "Kz5y": /*!**************************************!*\ !*** ./node_modules/lodash/_root.js ***! \**************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "WFqU"); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ var root = freeGlobal || freeSelf || Function('return this')(); module.exports = root; /***/ }), /***/ "L0Sf": /*!*****************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-polly/dist/es/pagination/Interfaces.js ***! \*****************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Interfaces.js.map /***/ }), /***/ "L2ys": /*!***************************************************!*\ !*** ./node_modules/graphql/language/visitor.mjs ***! \***************************************************/ /*! exports provided: QueryDocumentKeys, BREAK, visit, visitInParallel, visitWithTypeInfo, getVisitFn */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QueryDocumentKeys", function() { return QueryDocumentKeys; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BREAK", function() { return BREAK; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "visit", function() { return visit; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "visitInParallel", function() { return visitInParallel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "visitWithTypeInfo", function() { return visitWithTypeInfo; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getVisitFn", function() { return getVisitFn; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * A visitor is provided to visit, it contains the collection of * relevant functions to be called during the visitor's traversal. */ /** * A visitor is comprised of visit functions, which are called on each node * during the visitor's traversal. */ /** * A KeyMap describes each the traversable properties of each kind of node. */ var QueryDocumentKeys = { Name: [], Document: ['definitions'], OperationDefinition: ['name', 'variableDefinitions', 'directives', 'selectionSet'], VariableDefinition: ['variable', 'type', 'defaultValue', 'directives'], Variable: ['name'], SelectionSet: ['selections'], Field: ['alias', 'name', 'arguments', 'directives', 'selectionSet'], Argument: ['name', 'value'], FragmentSpread: ['name', 'directives'], InlineFragment: ['typeCondition', 'directives', 'selectionSet'], FragmentDefinition: ['name', // Note: fragment variable definitions are experimental and may be changed // or removed in the future. 'variableDefinitions', 'typeCondition', 'directives', 'selectionSet'], IntValue: [], FloatValue: [], StringValue: [], BooleanValue: [], NullValue: [], EnumValue: [], ListValue: ['values'], ObjectValue: ['fields'], ObjectField: ['name', 'value'], Directive: ['name', 'arguments'], NamedType: ['name'], ListType: ['type'], NonNullType: ['type'], SchemaDefinition: ['directives', 'operationTypes'], OperationTypeDefinition: ['type'], ScalarTypeDefinition: ['description', 'name', 'directives'], ObjectTypeDefinition: ['description', 'name', 'interfaces', 'directives', 'fields'], FieldDefinition: ['description', 'name', 'arguments', 'type', 'directives'], InputValueDefinition: ['description', 'name', 'type', 'defaultValue', 'directives'], InterfaceTypeDefinition: ['description', 'name', 'directives', 'fields'], UnionTypeDefinition: ['description', 'name', 'directives', 'types'], EnumTypeDefinition: ['description', 'name', 'directives', 'values'], EnumValueDefinition: ['description', 'name', 'directives'], InputObjectTypeDefinition: ['description', 'name', 'directives', 'fields'], DirectiveDefinition: ['description', 'name', 'arguments', 'locations'], SchemaExtension: ['directives', 'operationTypes'], ScalarTypeExtension: ['name', 'directives'], ObjectTypeExtension: ['name', 'interfaces', 'directives', 'fields'], InterfaceTypeExtension: ['name', 'directives', 'fields'], UnionTypeExtension: ['name', 'directives', 'types'], EnumTypeExtension: ['name', 'directives', 'values'], InputObjectTypeExtension: ['name', 'directives', 'fields'] }; var BREAK = {}; /** * visit() will walk through an AST using a depth first traversal, calling * the visitor's enter function at each node in the traversal, and calling the * leave function after visiting that node and all of its child nodes. * * By returning different values from the enter and leave functions, the * behavior of the visitor can be altered, including skipping over a sub-tree of * the AST (by returning false), editing the AST by returning a value or null * to remove the value, or to stop the whole traversal by returning BREAK. * * When using visit() to edit an AST, the original AST will not be modified, and * a new version of the AST with the changes applied will be returned from the * visit function. * * const editedAST = visit(ast, { * enter(node, key, parent, path, ancestors) { * // @return * // undefined: no action * // false: skip visiting this node * // visitor.BREAK: stop visiting altogether * // null: delete this node * // any value: replace this node with the returned value * }, * leave(node, key, parent, path, ancestors) { * // @return * // undefined: no action * // false: no action * // visitor.BREAK: stop visiting altogether * // null: delete this node * // any value: replace this node with the returned value * } * }); * * Alternatively to providing enter() and leave() functions, a visitor can * instead provide functions named the same as the kinds of AST nodes, or * enter/leave visitors at a named key, leading to four permutations of * visitor API: * * 1) Named visitors triggered when entering a node a specific kind. * * visit(ast, { * Kind(node) { * // enter the "Kind" node * } * }) * * 2) Named visitors that trigger upon entering and leaving a node of * a specific kind. * * visit(ast, { * Kind: { * enter(node) { * // enter the "Kind" node * } * leave(node) { * // leave the "Kind" node * } * } * }) * * 3) Generic visitors that trigger upon entering and leaving any node. * * visit(ast, { * enter(node) { * // enter any node * }, * leave(node) { * // leave any node * } * }) * * 4) Parallel visitors for entering and leaving nodes of a specific kind. * * visit(ast, { * enter: { * Kind(node) { * // enter the "Kind" node * } * }, * leave: { * Kind(node) { * // leave the "Kind" node * } * } * }) */ function visit(root, visitor) { var visitorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : QueryDocumentKeys; /* eslint-disable no-undef-init */ var stack = undefined; var inArray = Array.isArray(root); var keys = [root]; var index = -1; var edits = []; var node = undefined; var key = undefined; var parent = undefined; var path = []; var ancestors = []; var newRoot = root; /* eslint-enable no-undef-init */ do { index++; var isLeaving = index === keys.length; var isEdited = isLeaving && edits.length !== 0; if (isLeaving) { key = ancestors.length === 0 ? undefined : path[path.length - 1]; node = parent; parent = ancestors.pop(); if (isEdited) { if (inArray) { node = node.slice(); } else { var clone = {}; for (var k in node) { if (node.hasOwnProperty(k)) { clone[k] = node[k]; } } node = clone; } var editOffset = 0; for (var ii = 0; ii < edits.length; ii++) { var editKey = edits[ii][0]; var editValue = edits[ii][1]; if (inArray) { editKey -= editOffset; } if (inArray && editValue === null) { node.splice(editKey, 1); editOffset++; } else { node[editKey] = editValue; } } } index = stack.index; keys = stack.keys; edits = stack.edits; inArray = stack.inArray; stack = stack.prev; } else { key = parent ? inArray ? index : keys[index] : undefined; node = parent ? parent[key] : newRoot; if (node === null || node === undefined) { continue; } if (parent) { path.push(key); } } var result = void 0; if (!Array.isArray(node)) { if (!isNode(node)) { throw new Error('Invalid AST Node: ' + JSON.stringify(node)); } var visitFn = getVisitFn(visitor, node.kind, isLeaving); if (visitFn) { result = visitFn.call(visitor, node, key, parent, path, ancestors); if (result === BREAK) { break; } if (result === false) { if (!isLeaving) { path.pop(); continue; } } else if (result !== undefined) { edits.push([key, result]); if (!isLeaving) { if (isNode(result)) { node = result; } else { path.pop(); continue; } } } } } if (result === undefined && isEdited) { edits.push([key, node]); } if (isLeaving) { path.pop(); } else { stack = { inArray: inArray, index: index, keys: keys, edits: edits, prev: stack }; inArray = Array.isArray(node); keys = inArray ? node : visitorKeys[node.kind] || []; index = -1; edits = []; if (parent) { ancestors.push(parent); } parent = node; } } while (stack !== undefined); if (edits.length !== 0) { newRoot = edits[edits.length - 1][1]; } return newRoot; } function isNode(maybeNode) { return Boolean(maybeNode && typeof maybeNode.kind === 'string'); } /** * Creates a new visitor instance which delegates to many visitors to run in * parallel. Each visitor will be visited for each node before moving on. * * If a prior visitor edits a node, no following visitors will see that node. */ function visitInParallel(visitors) { var skipping = new Array(visitors.length); return { enter: function enter(node) { for (var i = 0; i < visitors.length; i++) { if (!skipping[i]) { var fn = getVisitFn(visitors[i], node.kind, /* isLeaving */ false); if (fn) { var result = fn.apply(visitors[i], arguments); if (result === false) { skipping[i] = node; } else if (result === BREAK) { skipping[i] = BREAK; } else if (result !== undefined) { return result; } } } } }, leave: function leave(node) { for (var i = 0; i < visitors.length; i++) { if (!skipping[i]) { var fn = getVisitFn(visitors[i], node.kind, /* isLeaving */ true); if (fn) { var result = fn.apply(visitors[i], arguments); if (result === BREAK) { skipping[i] = BREAK; } else if (result !== undefined && result !== false) { return result; } } } else if (skipping[i] === node) { skipping[i] = null; } } } }; } /** * Creates a new visitor instance which maintains a provided TypeInfo instance * along with visiting visitor. */ function visitWithTypeInfo(typeInfo, visitor) { return { enter: function enter(node) { typeInfo.enter(node); var fn = getVisitFn(visitor, node.kind, /* isLeaving */ false); if (fn) { var result = fn.apply(visitor, arguments); if (result !== undefined) { typeInfo.leave(node); if (isNode(result)) { typeInfo.enter(result); } } return result; } }, leave: function leave(node) { var fn = getVisitFn(visitor, node.kind, /* isLeaving */ true); var result; if (fn) { result = fn.apply(visitor, arguments); } typeInfo.leave(node); return result; } }; } /** * Given a visitor instance, if it is leaving or not, and a node kind, return * the function the visitor runtime should call. */ function getVisitFn(visitor, kind, isLeaving) { var kindVisitor = visitor[kind]; if (kindVisitor) { if (!isLeaving && typeof kindVisitor === 'function') { // { Kind() {} } return kindVisitor; } var kindSpecificVisitor = isLeaving ? kindVisitor.leave : kindVisitor.enter; if (typeof kindSpecificVisitor === 'function') { // { Kind: { enter() {}, leave() {} } } return kindSpecificVisitor; } } else { var specificVisitor = isLeaving ? visitor.leave : visitor.enter; if (specificVisitor) { if (typeof specificVisitor === 'function') { // { enter() {}, leave() {} } return specificVisitor; } var specificKindVisitor = specificVisitor[kind]; if (typeof specificKindVisitor === 'function') { // { enter: { Kind() {} }, leave: { Kind() {} } } return specificKindVisitor; } } } } /***/ }), /***/ "L4K2": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionsCommand.js ***! \**********************************************************************************************/ /*! exports provided: GetCampaignVersionsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsCommand", function() { return GetCampaignVersionsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetCampaignVersionsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignVersionsCommand, _super); // Start section: command_properties // End section: command_properties function GetCampaignVersionsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetCampaignVersionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCampaignVersionsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCampaignVersionsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetCampaignVersionsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignVersionsCommand"])(input, context); }; GetCampaignVersionsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignVersionsCommand"])(output, context); }; return GetCampaignVersionsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetCampaignVersionsCommand.js.map /***/ }), /***/ "L8QR": /*!*************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamsCommand.js ***! \*************************************************************************************/ /*! exports provided: ListStreamsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamsCommand", function() { return ListStreamsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListStreamsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListStreamsCommand, _super); // Start section: command_properties // End section: command_properties function ListStreamsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListStreamsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListStreamsInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListStreamsOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListStreamsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListStreamsCommand"])(input, context); }; ListStreamsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListStreamsCommand"])(output, context); }; return ListStreamsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListStreamsCommand.js.map /***/ }), /***/ "L8xA": /*!*********************************************!*\ !*** ./node_modules/lodash/_stackDelete.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Removes `key` and its value from the stack. * * @private * @name delete * @memberOf Stack * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function stackDelete(key) { var data = this.__data__, result = data['delete'](key); this.size = data.size; return result; } module.exports = stackDelete; /***/ }), /***/ "L9KU": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplatesCommand.js ***! \****************************************************************************************/ /*! exports provided: ListTemplatesCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesCommand", function() { return ListTemplatesCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListTemplatesCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTemplatesCommand, _super); // Start section: command_properties // End section: command_properties function ListTemplatesCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListTemplatesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListTemplatesRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListTemplatesResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListTemplatesCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1ListTemplatesCommand"])(input, context); }; ListTemplatesCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1ListTemplatesCommand"])(output, context); }; return ListTemplatesCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListTemplatesCommand.js.map /***/ }), /***/ "LA5g": /*!***************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-lex-runtime-service/dist/es/index.js ***! \***************************************************************************/ /*! exports provided: LexRuntimeServiceClient, LexRuntimeService, DeleteSessionCommand, GetSessionCommand, PostContentCommand, PostTextCommand, PutSessionCommand, BadGatewayException, BadRequestException, Button, ConfirmationStatus, ConflictException, ContentType, DeleteSessionRequest, DeleteSessionResponse, DependencyFailedException, DialogAction, DialogActionType, DialogState, FulfillmentState, GenericAttachment, GetSessionRequest, GetSessionResponse, IntentSummary, InternalFailureException, LimitExceededException, LoopDetectedException, MessageFormatType, NotAcceptableException, NotFoundException, PostContentRequest, PostContentResponse, PostTextRequest, PostTextResponse, PutSessionRequest, PutSessionResponse, RequestTimeoutException, ResponseCard, SentimentResponse, UnsupportedMediaTypeException */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _LexRuntimeServiceClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LexRuntimeServiceClient */ "xpud"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LexRuntimeServiceClient", function() { return _LexRuntimeServiceClient__WEBPACK_IMPORTED_MODULE_0__["LexRuntimeServiceClient"]; }); /* harmony import */ var _LexRuntimeService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LexRuntimeService */ "0P/e"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LexRuntimeService", function() { return _LexRuntimeService__WEBPACK_IMPORTED_MODULE_1__["LexRuntimeService"]; }); /* harmony import */ var _commands_DeleteSessionCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/DeleteSessionCommand */ "60r2"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSessionCommand", function() { return _commands_DeleteSessionCommand__WEBPACK_IMPORTED_MODULE_2__["DeleteSessionCommand"]; }); /* harmony import */ var _commands_GetSessionCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/GetSessionCommand */ "IDSa"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSessionCommand", function() { return _commands_GetSessionCommand__WEBPACK_IMPORTED_MODULE_3__["GetSessionCommand"]; }); /* harmony import */ var _commands_PostContentCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/PostContentCommand */ "Kl1+"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PostContentCommand", function() { return _commands_PostContentCommand__WEBPACK_IMPORTED_MODULE_4__["PostContentCommand"]; }); /* harmony import */ var _commands_PostTextCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/PostTextCommand */ "Zj+2"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PostTextCommand", function() { return _commands_PostTextCommand__WEBPACK_IMPORTED_MODULE_5__["PostTextCommand"]; }); /* harmony import */ var _commands_PutSessionCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/PutSessionCommand */ "M8Rd"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutSessionCommand", function() { return _commands_PutSessionCommand__WEBPACK_IMPORTED_MODULE_6__["PutSessionCommand"]; }); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./models/index */ "Vu3y"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BadGatewayException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["BadGatewayException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BadRequestException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["BadRequestException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["Button"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConfirmationStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["ConfirmationStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConflictException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["ConflictException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContentType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["ContentType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSessionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["DeleteSessionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSessionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["DeleteSessionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DependencyFailedException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["DependencyFailedException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DialogAction", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["DialogAction"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DialogActionType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["DialogActionType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DialogState", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["DialogState"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FulfillmentState", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["FulfillmentState"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GenericAttachment", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["GenericAttachment"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSessionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["GetSessionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSessionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["GetSessionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IntentSummary", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["IntentSummary"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InternalFailureException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["InternalFailureException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["LimitExceededException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoopDetectedException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["LoopDetectedException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageFormatType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["MessageFormatType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotAcceptableException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["NotAcceptableException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["NotFoundException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PostContentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["PostContentRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PostContentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["PostContentResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PostTextRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["PostTextRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PostTextResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["PostTextResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutSessionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["PutSessionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutSessionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["PutSessionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RequestTimeoutException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["RequestTimeoutException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResponseCard", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["ResponseCard"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SentimentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["SentimentResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UnsupportedMediaTypeException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_7__["UnsupportedMediaTypeException"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "LB7D": /*!************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAppCommand.js ***! \************************************************************************************/ /*! exports provided: DeleteAppCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteAppCommand", function() { return DeleteAppCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteAppCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteAppCommand, _super); // Start section: command_properties // End section: command_properties function DeleteAppCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteAppCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteAppRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteAppResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteAppCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteAppCommand"])(input, context); }; DeleteAppCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteAppCommand"])(output, context); }; return DeleteAppCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteAppCommand.js.map /***/ }), /***/ "LBLv": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-bucket-endpoint/dist/es/bucketEndpointMiddleware.js ***! \**********************************************************************************************/ /*! exports provided: bucketEndpointMiddleware, bucketEndpointMiddlewareOptions, getBucketEndpointPlugin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bucketEndpointMiddleware", function() { return bucketEndpointMiddleware; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bucketEndpointMiddlewareOptions", function() { return bucketEndpointMiddlewareOptions; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBucketEndpointPlugin", function() { return getBucketEndpointPlugin; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "Enk7"); /* harmony import */ var _aws_sdk_util_arn_parser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/util-arn-parser */ "BBLe"); /* harmony import */ var _bucketHostname__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bucketHostname */ "EDEm"); /* harmony import */ var _bucketHostnameUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./bucketHostnameUtils */ "Aa5G"); function bucketEndpointMiddleware(options) { var _this = this; return function (next, context) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () { var bucketName, replaceBucketInPath, request, bucketArn, clientRegion, _a, _b, partition, signingRegion, useArnRegion, _c, hostname, bucketEndpoint, _d, hostname, bucketEndpoint; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) { switch (_e.label) { case 0: bucketName = args.input.Bucket; replaceBucketInPath = options.bucketEndpoint; request = args.request; if (!_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(request)) return [3 /*break*/, 7]; if (!options.bucketEndpoint) return [3 /*break*/, 1]; request.hostname = bucketName; return [3 /*break*/, 6]; case 1: if (!Object(_aws_sdk_util_arn_parser__WEBPACK_IMPORTED_MODULE_2__["validate"])(bucketName)) return [3 /*break*/, 5]; bucketArn = Object(_aws_sdk_util_arn_parser__WEBPACK_IMPORTED_MODULE_2__["parse"])(bucketName); _a = _bucketHostnameUtils__WEBPACK_IMPORTED_MODULE_4__["getPseudoRegion"]; return [4 /*yield*/, options.region()]; case 2: clientRegion = _a.apply(void 0, [_e.sent()]); return [4 /*yield*/, options.regionInfoProvider(clientRegion)]; case 3: _b = (_e.sent()) || {}, partition = _b.partition, signingRegion = _b.signingRegion; return [4 /*yield*/, options.useArnRegion()]; case 4: useArnRegion = _e.sent(); _c = Object(_bucketHostname__WEBPACK_IMPORTED_MODULE_3__["bucketHostname"])({ bucketName: bucketArn, baseHostname: request.hostname, accelerateEndpoint: options.useAccelerateEndpoint, dualstackEndpoint: options.useDualstackEndpoint, pathStyleEndpoint: options.forcePathStyle, tlsCompatible: request.protocol === "https:", useArnRegion: useArnRegion, clientPartition: partition, clientSigningRegion: signingRegion, }), hostname = _c.hostname, bucketEndpoint = _c.bucketEndpoint; // If the request needs to use a region inferred from ARN that different from client region, we need to set // them in the handler context so the signer will use them if (useArnRegion && clientRegion !== bucketArn.region) { context["signing_region"] = bucketArn.region; } request.hostname = hostname; replaceBucketInPath = bucketEndpoint; return [3 /*break*/, 6]; case 5: _d = Object(_bucketHostname__WEBPACK_IMPORTED_MODULE_3__["bucketHostname"])({ bucketName: bucketName, baseHostname: request.hostname, accelerateEndpoint: options.useAccelerateEndpoint, dualstackEndpoint: options.useDualstackEndpoint, pathStyleEndpoint: options.forcePathStyle, tlsCompatible: request.protocol === "https:", }), hostname = _d.hostname, bucketEndpoint = _d.bucketEndpoint; request.hostname = hostname; replaceBucketInPath = bucketEndpoint; _e.label = 6; case 6: if (replaceBucketInPath) { request.path = request.path.replace(/^(\/)?[^\/]+/, ""); if (request.path === "") { request.path = "/"; } } _e.label = 7; case 7: return [2 /*return*/, next(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, args), { request: request }))]; } }); }); }; }; } var bucketEndpointMiddlewareOptions = { tags: ["BUCKET_ENDPOINT"], name: "bucketEndpointMiddleware", relation: "before", toMiddleware: "hostHeaderMiddleware", }; var getBucketEndpointPlugin = function (options) { return ({ applyToStack: function (clientStack) { clientStack.addRelativeTo(bucketEndpointMiddleware(options), bucketEndpointMiddlewareOptions); }, }); }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVja2V0RW5kcG9pbnRNaWRkbGV3YXJlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2J1Y2tldEVuZHBvaW50TWlkZGxld2FyZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBV3JELE9BQU8sRUFBRSxLQUFLLElBQUksUUFBUSxFQUFFLFFBQVEsSUFBSSxXQUFXLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUV0RixPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDbEQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBR3hELE1BQU0sVUFBVSx3QkFBd0IsQ0FBQyxPQUFxQztJQUE5RSxpQkE0REM7SUEzREMsT0FBTyxVQUNMLElBQStCLEVBQy9CLE9BQWdDLElBQ0YsT0FBQSxVQUFPLElBQWdDOzs7OztvQkFDckQsVUFBVSxHQUFLLElBQUksQ0FBQyxLQUEyQixPQUFyQyxDQUFzQztvQkFDNUQsbUJBQW1CLEdBQUcsT0FBTyxDQUFDLGNBQWMsQ0FBQztvQkFDM0MsT0FBTyxHQUFHLElBQUksQ0FBQyxPQUFPLENBQUM7eUJBQ3pCLFdBQVcsQ0FBQyxVQUFVLENBQUMsT0FBTyxDQUFDLEVBQS9CLHdCQUErQjt5QkFDN0IsT0FBTyxDQUFDLGNBQWMsRUFBdEIsd0JBQXNCO29CQUN4QixPQUFPLENBQUMsUUFBUSxHQUFHLFVBQVUsQ0FBQzs7O3lCQUNyQixXQUFXLENBQUMsVUFBVSxDQUFDLEVBQXZCLHdCQUF1QjtvQkFDMUIsU0FBUyxHQUFHLFFBQVEsQ0FBQyxVQUFVLENBQUMsQ0FBQztvQkFDbEIsS0FBQSxlQUFlLENBQUE7b0JBQUMscUJBQU0sT0FBTyxDQUFDLE1BQU0sRUFBRSxFQUFBOztvQkFBckQsWUFBWSxHQUFHLGtCQUFnQixTQUFzQixFQUFDO29CQUN0QixxQkFBTSxPQUFPLENBQUMsa0JBQWtCLENBQUMsWUFBWSxDQUFDLEVBQUE7O29CQUE5RSxLQUErQixDQUFDLFNBQThDLENBQUMsSUFBSSxFQUFFLEVBQW5GLFNBQVMsZUFBQSxFQUFFLGFBQWEsbUJBQUE7b0JBQ1gscUJBQU0sT0FBTyxDQUFDLFlBQVksRUFBRSxFQUFBOztvQkFBM0MsWUFBWSxHQUFHLFNBQTRCO29CQUMzQyxLQUErQixjQUFjLENBQUM7d0JBQ2xELFVBQVUsRUFBRSxTQUFTO3dCQUNyQixZQUFZLEVBQUUsT0FBTyxDQUFDLFFBQVE7d0JBQzlCLGtCQUFrQixFQUFFLE9BQU8sQ0FBQyxxQkFBcUI7d0JBQ2pELGlCQUFpQixFQUFFLE9BQU8sQ0FBQyxvQkFBb0I7d0JBQy9DLGlCQUFpQixFQUFFLE9BQU8sQ0FBQyxjQUFjO3dCQUN6QyxhQUFhLEVBQUUsT0FBTyxDQUFDLFFBQVEsS0FBSyxRQUFRO3dCQUM1QyxZQUFZLGNBQUE7d0JBQ1osZUFBZSxFQUFFLFNBQVM7d0JBQzFCLG1CQUFtQixFQUFFLGFBQWE7cUJBQ25DLENBQUMsRUFWTSxRQUFRLGNBQUEsRUFBRSxjQUFjLG9CQUFBLENBVTdCO29CQUVILDJHQUEyRztvQkFDM0csMERBQTBEO29CQUMxRCxJQUFJLFlBQVksSUFBSSxZQUFZLEtBQUssU0FBUyxDQUFDLE1BQU0sRUFBRTt3QkFDckQsT0FBTyxDQUFDLGdCQUFnQixDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sQ0FBQztxQkFDOUM7b0JBRUQsT0FBTyxDQUFDLFFBQVEsR0FBRyxRQUFRLENBQUM7b0JBQzVCLG1CQUFtQixHQUFHLGNBQWMsQ0FBQzs7O29CQUUvQixLQUErQixjQUFjLENBQUM7d0JBQ2xELFVBQVUsWUFBQTt3QkFDVixZQUFZLEVBQUUsT0FBTyxDQUFDLFFBQVE7d0JBQzlCLGtCQUFrQixFQUFFLE9BQU8sQ0FBQyxxQkFBcUI7d0JBQ2pELGlCQUFpQixFQUFFLE9BQU8sQ0FBQyxvQkFBb0I7d0JBQy9DLGlCQUFpQixFQUFFLE9BQU8sQ0FBQyxjQUFjO3dCQUN6QyxhQUFhLEVBQUUsT0FBTyxDQUFDLFFBQVEsS0FBSyxRQUFRO3FCQUM3QyxDQUFDLEVBUE0sUUFBUSxjQUFBLEVBQUUsY0FBYyxvQkFBQSxDQU83QjtvQkFFSCxPQUFPLENBQUMsUUFBUSxHQUFHLFFBQVEsQ0FBQztvQkFDNUIsbUJBQW1CLEdBQUcsY0FBYyxDQUFDOzs7b0JBR3ZDLElBQUksbUJBQW1CLEVBQUU7d0JBQ3ZCLE9BQU8sQ0FBQyxJQUFJLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsY0FBYyxFQUFFLEVBQUUsQ0FBQyxDQUFDO3dCQUN4RCxJQUFJLE9BQU8sQ0FBQyxJQUFJLEtBQUssRUFBRSxFQUFFOzRCQUN2QixPQUFPLENBQUMsSUFBSSxHQUFHLEdBQUcsQ0FBQzt5QkFDcEI7cUJBQ0Y7O3dCQUdILHNCQUFPLElBQUksdUJBQU0sSUFBSSxLQUFFLE9BQU8sU0FBQSxJQUFHLEVBQUM7OztTQUNuQyxFQXZEK0IsQ0F1RC9CLENBQUM7QUFDSixDQUFDO0FBRUQsTUFBTSxDQUFDLElBQU0sK0JBQStCLEdBQThCO0lBQ3hFLElBQUksRUFBRSxDQUFDLGlCQUFpQixDQUFDO0lBQ3pCLElBQUksRUFBRSwwQkFBMEI7SUFDaEMsUUFBUSxFQUFFLFFBQVE7SUFDbEIsWUFBWSxFQUFFLHNCQUFzQjtDQUNyQyxDQUFDO0FBRUYsTUFBTSxDQUFDLElBQU0sdUJBQXVCLEdBQUcsVUFBQyxPQUFxQyxJQUEwQixPQUFBLENBQUM7SUFDdEcsWUFBWSxFQUFFLFVBQUMsV0FBVztRQUN4QixXQUFXLENBQUMsYUFBYSxDQUFDLHdCQUF3QixDQUFDLE9BQU8sQ0FBQyxFQUFFLCtCQUErQixDQUFDLENBQUM7SUFDaEcsQ0FBQztDQUNGLENBQUMsRUFKcUcsQ0FJckcsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEh0dHBSZXF1ZXN0IH0gZnJvbSBcIkBhd3Mtc2RrL3Byb3RvY29sLWh0dHBcIjtcbmltcG9ydCB7XG4gIEJ1aWxkSGFuZGxlcixcbiAgQnVpbGRIYW5kbGVyQXJndW1lbnRzLFxuICBCdWlsZEhhbmRsZXJPdXRwdXQsXG4gIEJ1aWxkTWlkZGxld2FyZSxcbiAgSGFuZGxlckV4ZWN1dGlvbkNvbnRleHQsXG4gIE1ldGFkYXRhQmVhcmVyLFxuICBQbHVnZ2FibGUsXG4gIFJlbGF0aXZlTWlkZGxld2FyZU9wdGlvbnMsXG59IGZyb20gXCJAYXdzLXNkay90eXBlc1wiO1xuaW1wb3J0IHsgcGFyc2UgYXMgcGFyc2VBcm4sIHZhbGlkYXRlIGFzIHZhbGlkYXRlQXJuIH0gZnJvbSBcIkBhd3Mtc2RrL3V0aWwtYXJuLXBhcnNlclwiO1xuXG5pbXBvcnQgeyBidWNrZXRIb3N0bmFtZSB9IGZyb20gXCIuL2J1Y2tldEhvc3RuYW1lXCI7XG5pbXBvcnQgeyBnZXRQc2V1ZG9SZWdpb24gfSBmcm9tIFwiLi9idWNrZXRIb3N0bmFtZVV0aWxzXCI7XG5pbXBvcnQgeyBCdWNrZXRFbmRwb2ludFJlc29sdmVkQ29uZmlnIH0gZnJvbSBcIi4vY29uZmlndXJhdGlvbnNcIjtcblxuZXhwb3J0IGZ1bmN0aW9uIGJ1Y2tldEVuZHBvaW50TWlkZGxld2FyZShvcHRpb25zOiBCdWNrZXRFbmRwb2ludFJlc29sdmVkQ29uZmlnKTogQnVpbGRNaWRkbGV3YXJlPGFueSwgYW55PiB7XG4gIHJldHVybiA8T3V0cHV0IGV4dGVuZHMgTWV0YWRhdGFCZWFyZXI+KFxuICAgIG5leHQ6IEJ1aWxkSGFuZGxlcjxhbnksIE91dHB1dD4sXG4gICAgY29udGV4dDogSGFuZGxlckV4ZWN1dGlvbkNvbnRleHRcbiAgKTogQnVpbGRIYW5kbGVyPGFueSwgT3V0cHV0PiA9PiBhc3luYyAoYXJnczogQnVpbGRIYW5kbGVyQXJndW1lbnRzPGFueT4pOiBQcm9taXNlPEJ1aWxkSGFuZGxlck91dHB1dDxPdXRwdXQ+PiA9PiB7XG4gICAgY29uc3QgeyBCdWNrZXQ6IGJ1Y2tldE5hbWUgfSA9IGFyZ3MuaW5wdXQgYXMgeyBCdWNrZXQ6IHN0cmluZyB9O1xuICAgIGxldCByZXBsYWNlQnVja2V0SW5QYXRoID0gb3B0aW9ucy5idWNrZXRFbmRwb2ludDtcbiAgICBjb25zdCByZXF1ZXN0ID0gYXJncy5yZXF1ZXN0O1xuICAgIGlmIChIdHRwUmVxdWVzdC5pc0luc3RhbmNlKHJlcXVlc3QpKSB7XG4gICAgICBpZiAob3B0aW9ucy5idWNrZXRFbmRwb2ludCkge1xuICAgICAgICByZXF1ZXN0Lmhvc3RuYW1lID0gYnVja2V0TmFtZTtcbiAgICAgIH0gZWxzZSBpZiAodmFsaWRhdGVBcm4oYnVja2V0TmFtZSkpIHtcbiAgICAgICAgY29uc3QgYnVja2V0QXJuID0gcGFyc2VBcm4oYnVja2V0TmFtZSk7XG4gICAgICAgIGNvbnN0IGNsaWVudFJlZ2lvbiA9IGdldFBzZXVkb1JlZ2lvbihhd2FpdCBvcHRpb25zLnJlZ2lvbigpKTtcbiAgICAgICAgY29uc3QgeyBwYXJ0aXRpb24sIHNpZ25pbmdSZWdpb24gfSA9IChhd2FpdCBvcHRpb25zLnJlZ2lvbkluZm9Qcm92aWRlcihjbGllbnRSZWdpb24pKSB8fCB7fTtcbiAgICAgICAgY29uc3QgdXNlQXJuUmVnaW9uID0gYXdhaXQgb3B0aW9ucy51c2VBcm5SZWdpb24oKTtcbiAgICAgICAgY29uc3QgeyBob3N0bmFtZSwgYnVja2V0RW5kcG9pbnQgfSA9IGJ1Y2tldEhvc3RuYW1lKHtcbiAgICAgICAgICBidWNrZXROYW1lOiBidWNrZXRBcm4sXG4gICAgICAgICAgYmFzZUhvc3RuYW1lOiByZXF1ZXN0Lmhvc3RuYW1lLFxuICAgICAgICAgIGFjY2VsZXJhdGVFbmRwb2ludDogb3B0aW9ucy51c2VBY2NlbGVyYXRlRW5kcG9pbnQsXG4gICAgICAgICAgZHVhbHN0YWNrRW5kcG9pbnQ6IG9wdGlvbnMudXNlRHVhbHN0YWNrRW5kcG9pbnQsXG4gICAgICAgICAgcGF0aFN0eWxlRW5kcG9pbnQ6IG9wdGlvbnMuZm9yY2VQYXRoU3R5bGUsXG4gICAgICAgICAgdGxzQ29tcGF0aWJsZTogcmVxdWVzdC5wcm90b2NvbCA9PT0gXCJodHRwczpcIixcbiAgICAgICAgICB1c2VBcm5SZWdpb24sXG4gICAgICAgICAgY2xpZW50UGFydGl0aW9uOiBwYXJ0aXRpb24sXG4gICAgICAgICAgY2xpZW50U2lnbmluZ1JlZ2lvbjogc2lnbmluZ1JlZ2lvbixcbiAgICAgICAgfSk7XG5cbiAgICAgICAgLy8gSWYgdGhlIHJlcXVlc3QgbmVlZHMgdG8gdXNlIGEgcmVnaW9uIGluZmVycmVkIGZyb20gQVJOIHRoYXQgZGlmZmVyZW50IGZyb20gY2xpZW50IHJlZ2lvbiwgd2UgbmVlZCB0byBzZXRcbiAgICAgICAgLy8gdGhlbSBpbiB0aGUgaGFuZGxlciBjb250ZXh0IHNvIHRoZSBzaWduZXIgd2lsbCB1c2UgdGhlbVxuICAgICAgICBpZiAodXNlQXJuUmVnaW9uICYmIGNsaWVudFJlZ2lvbiAhPT0gYnVja2V0QXJuLnJlZ2lvbikge1xuICAgICAgICAgIGNvbnRleHRbXCJzaWduaW5nX3JlZ2lvblwiXSA9IGJ1Y2tldEFybi5yZWdpb247XG4gICAgICAgIH1cblxuICAgICAgICByZXF1ZXN0Lmhvc3RuYW1lID0gaG9zdG5hbWU7XG4gICAgICAgIHJlcGxhY2VCdWNrZXRJblBhdGggPSBidWNrZXRFbmRwb2ludDtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGNvbnN0IHsgaG9zdG5hbWUsIGJ1Y2tldEVuZHBvaW50IH0gPSBidWNrZXRIb3N0bmFtZSh7XG4gICAgICAgICAgYnVja2V0TmFtZSxcbiAgICAgICAgICBiYXNlSG9zdG5hbWU6IHJlcXVlc3QuaG9zdG5hbWUsXG4gICAgICAgICAgYWNjZWxlcmF0ZUVuZHBvaW50OiBvcHRpb25zLnVzZUFjY2VsZXJhdGVFbmRwb2ludCxcbiAgICAgICAgICBkdWFsc3RhY2tFbmRwb2ludDogb3B0aW9ucy51c2VEdWFsc3RhY2tFbmRwb2ludCxcbiAgICAgICAgICBwYXRoU3R5bGVFbmRwb2ludDogb3B0aW9ucy5mb3JjZVBhdGhTdHlsZSxcbiAgICAgICAgICB0bHNDb21wYXRpYmxlOiByZXF1ZXN0LnByb3RvY29sID09PSBcImh0dHBzOlwiLFxuICAgICAgICB9KTtcblxuICAgICAgICByZXF1ZXN0Lmhvc3RuYW1lID0gaG9zdG5hbWU7XG4gICAgICAgIHJlcGxhY2VCdWNrZXRJblBhdGggPSBidWNrZXRFbmRwb2ludDtcbiAgICAgIH1cblxuICAgICAgaWYgKHJlcGxhY2VCdWNrZXRJblBhdGgpIHtcbiAgICAgICAgcmVxdWVzdC5wYXRoID0gcmVxdWVzdC5wYXRoLnJlcGxhY2UoL14oXFwvKT9bXlxcL10rLywgXCJcIik7XG4gICAgICAgIGlmIChyZXF1ZXN0LnBhdGggPT09IFwiXCIpIHtcbiAgICAgICAgICByZXF1ZXN0LnBhdGggPSBcIi9cIjtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBuZXh0KHsgLi4uYXJncywgcmVxdWVzdCB9KTtcbiAgfTtcbn1cblxuZXhwb3J0IGNvbnN0IGJ1Y2tldEVuZHBvaW50TWlkZGxld2FyZU9wdGlvbnM6IFJlbGF0aXZlTWlkZGxld2FyZU9wdGlvbnMgPSB7XG4gIHRhZ3M6IFtcIkJVQ0tFVF9FTkRQT0lOVFwiXSxcbiAgbmFtZTogXCJidWNrZXRFbmRwb2ludE1pZGRsZXdhcmVcIixcbiAgcmVsYXRpb246IFwiYmVmb3JlXCIsXG4gIHRvTWlkZGxld2FyZTogXCJob3N0SGVhZGVyTWlkZGxld2FyZVwiLFxufTtcblxuZXhwb3J0IGNvbnN0IGdldEJ1Y2tldEVuZHBvaW50UGx1Z2luID0gKG9wdGlvbnM6IEJ1Y2tldEVuZHBvaW50UmVzb2x2ZWRDb25maWcpOiBQbHVnZ2FibGU8YW55LCBhbnk+ID0+ICh7XG4gIGFwcGx5VG9TdGFjazogKGNsaWVudFN0YWNrKSA9PiB7XG4gICAgY2xpZW50U3RhY2suYWRkUmVsYXRpdmVUbyhidWNrZXRFbmRwb2ludE1pZGRsZXdhcmUob3B0aW9ucyksIGJ1Y2tldEVuZHBvaW50TWlkZGxld2FyZU9wdGlvbnMpO1xuICB9LFxufSk7XG4iXX0= /***/ }), /***/ "LDVI": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/ListTagsForResourceCommand.js ***! \************************************************************************************************/ /*! exports provided: ListTagsForResourceCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceCommand", function() { return ListTagsForResourceCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListTagsForResourceCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTagsForResourceCommand, _super); // Start section: command_properties // End section: command_properties function ListTagsForResourceCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListTagsForResourceRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListTagsForResourceResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListTagsForResourceCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListTagsForResourceCommand"])(input, context); }; ListTagsForResourceCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListTagsForResourceCommand"])(output, context); }; return ListTagsForResourceCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListTagsForResourceCommand.js.map /***/ }), /***/ "LP1H": /*!****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApplicationSettingsCommand.js ***! \****************************************************************************************************/ /*! exports provided: UpdateApplicationSettingsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsCommand", function() { return UpdateApplicationSettingsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UpdateApplicationSettingsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateApplicationSettingsCommand, _super); // Start section: command_properties // End section: command_properties function UpdateApplicationSettingsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UpdateApplicationSettingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateApplicationSettingsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateApplicationSettingsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UpdateApplicationSettingsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateApplicationSettingsCommand"])(input, context); }; UpdateApplicationSettingsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateApplicationSettingsCommand"])(output, context); }; return UpdateApplicationSettingsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=UpdateApplicationSettingsCommand.js.map /***/ }), /***/ "LRne": /*!**************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/of.js ***! \**************************************************************/ /*! exports provided: of */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "of", function() { return of; }); /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro"); /* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./fromArray */ "yCtX"); /* harmony import */ var _scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../scheduled/scheduleArray */ "jZKg"); function of(...args) { let scheduler = args[args.length - 1]; if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_0__["isScheduler"])(scheduler)) { args.pop(); return Object(_scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__["scheduleArray"])(args, scheduler); } else { return Object(_fromArray__WEBPACK_IMPORTED_MODULE_1__["fromArray"])(args); } } //# sourceMappingURL=of.js.map /***/ }), /***/ "LUnR": /*!*******************************************************************!*\ !*** ./node_modules/@aws-sdk/fetch-http-handler/dist/es/index.js ***! \*******************************************************************/ /*! exports provided: FetchHttpHandler, streamCollector */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _fetch_http_handler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fetch-http-handler */ "zW9u"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FetchHttpHandler", function() { return _fetch_http_handler__WEBPACK_IMPORTED_MODULE_0__["FetchHttpHandler"]; }); /* harmony import */ var _stream_collector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stream-collector */ "2+WY"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "streamCollector", function() { return _stream_collector__WEBPACK_IMPORTED_MODULE_1__["streamCollector"]; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLG9CQUFvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vZmV0Y2gtaHR0cC1oYW5kbGVyXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9zdHJlYW0tY29sbGVjdG9yXCI7XG4iXX0= /***/ }), /***/ "LVIV": /*!**************************************************************!*\ !*** ./node_modules/@aws-crypto/ie11-detection/build/Key.js ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=Key.js.map /***/ }), /***/ "LViu": /*!*****************************************************!*\ !*** ./node_modules/graphql/type/introspection.mjs ***! \*****************************************************/ /*! exports provided: __Schema, __Directive, __DirectiveLocation, __Type, __Field, __InputValue, __EnumValue, TypeKind, __TypeKind, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, introspectionTypes, isIntrospectionType */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__Schema", function() { return __Schema; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__Directive", function() { return __Directive; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__DirectiveLocation", function() { return __DirectiveLocation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__Type", function() { return __Type; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__Field", function() { return __Field; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__InputValue", function() { return __InputValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__EnumValue", function() { return __EnumValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TypeKind", function() { return TypeKind; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__TypeKind", function() { return __TypeKind; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SchemaMetaFieldDef", function() { return SchemaMetaFieldDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TypeMetaFieldDef", function() { return TypeMetaFieldDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TypeNameMetaFieldDef", function() { return TypeNameMetaFieldDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "introspectionTypes", function() { return introspectionTypes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIntrospectionType", function() { return isIntrospectionType; }); /* harmony import */ var _jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/isInvalid */ "/kEc"); /* harmony import */ var _jsutils_objectValues__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/objectValues */ "S4Ci"); /* harmony import */ var _utilities_astFromValue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utilities/astFromValue */ "3HNt"); /* harmony import */ var _language_printer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../language/printer */ "dQau"); /* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./definition */ "axIb"); /* harmony import */ var _scalars__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./scalars */ "19Hc"); /* harmony import */ var _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../language/directiveLocation */ "F8X2"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ var __Schema = new _definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLObjectType"]({ name: '__Schema', description: 'A GraphQL Schema defines the capabilities of a GraphQL server. It ' + 'exposes all available types and directives on the server, as well as ' + 'the entry points for query, mutation, and subscription operations.', fields: function fields() { return { types: { description: 'A list of all types supported by this server.', type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLList"])(Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(__Type))), resolve: function resolve(schema) { return Object(_jsutils_objectValues__WEBPACK_IMPORTED_MODULE_1__["default"])(schema.getTypeMap()); } }, queryType: { description: 'The type that query operations will be rooted at.', type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(__Type), resolve: function resolve(schema) { return schema.getQueryType(); } }, mutationType: { description: 'If this server supports mutation, the type that ' + 'mutation operations will be rooted at.', type: __Type, resolve: function resolve(schema) { return schema.getMutationType(); } }, subscriptionType: { description: 'If this server support subscription, the type that ' + 'subscription operations will be rooted at.', type: __Type, resolve: function resolve(schema) { return schema.getSubscriptionType(); } }, directives: { description: 'A list of all directives supported by this server.', type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLList"])(Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(__Directive))), resolve: function resolve(schema) { return schema.getDirectives(); } } }; } }); var __Directive = new _definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLObjectType"]({ name: '__Directive', description: 'A Directive provides a way to describe alternate runtime execution and ' + 'type validation behavior in a GraphQL document.' + "\n\nIn some cases, you need to provide options to alter GraphQL's " + 'execution behavior in ways field arguments will not suffice, such as ' + 'conditionally including or skipping a field. Directives provide this by ' + 'describing additional information to the executor.', fields: function fields() { return { name: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(_scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLString"]), resolve: function resolve(obj) { return obj.name; } }, description: { type: _scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLString"], resolve: function resolve(obj) { return obj.description; } }, locations: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLList"])(Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(__DirectiveLocation))), resolve: function resolve(obj) { return obj.locations; } }, args: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLList"])(Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(__InputValue))), resolve: function resolve(directive) { return directive.args || []; } } }; } }); var __DirectiveLocation = new _definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLEnumType"]({ name: '__DirectiveLocation', description: 'A Directive can be adjacent to many parts of the GraphQL language, a ' + '__DirectiveLocation describes one such possible adjacencies.', values: { QUERY: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].QUERY, description: 'Location adjacent to a query operation.' }, MUTATION: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].MUTATION, description: 'Location adjacent to a mutation operation.' }, SUBSCRIPTION: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].SUBSCRIPTION, description: 'Location adjacent to a subscription operation.' }, FIELD: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].FIELD, description: 'Location adjacent to a field.' }, FRAGMENT_DEFINITION: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].FRAGMENT_DEFINITION, description: 'Location adjacent to a fragment definition.' }, FRAGMENT_SPREAD: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].FRAGMENT_SPREAD, description: 'Location adjacent to a fragment spread.' }, INLINE_FRAGMENT: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].INLINE_FRAGMENT, description: 'Location adjacent to an inline fragment.' }, VARIABLE_DEFINITION: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].VARIABLE_DEFINITION, description: 'Location adjacent to a variable definition.' }, SCHEMA: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].SCHEMA, description: 'Location adjacent to a schema definition.' }, SCALAR: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].SCALAR, description: 'Location adjacent to a scalar definition.' }, OBJECT: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].OBJECT, description: 'Location adjacent to an object type definition.' }, FIELD_DEFINITION: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].FIELD_DEFINITION, description: 'Location adjacent to a field definition.' }, ARGUMENT_DEFINITION: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].ARGUMENT_DEFINITION, description: 'Location adjacent to an argument definition.' }, INTERFACE: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].INTERFACE, description: 'Location adjacent to an interface definition.' }, UNION: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].UNION, description: 'Location adjacent to a union definition.' }, ENUM: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].ENUM, description: 'Location adjacent to an enum definition.' }, ENUM_VALUE: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].ENUM_VALUE, description: 'Location adjacent to an enum value definition.' }, INPUT_OBJECT: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].INPUT_OBJECT, description: 'Location adjacent to an input object type definition.' }, INPUT_FIELD_DEFINITION: { value: _language_directiveLocation__WEBPACK_IMPORTED_MODULE_6__["DirectiveLocation"].INPUT_FIELD_DEFINITION, description: 'Location adjacent to an input object field definition.' } } }); var __Type = new _definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLObjectType"]({ name: '__Type', description: 'The fundamental unit of any GraphQL Schema is the type. There are ' + 'many kinds of types in GraphQL as represented by the `__TypeKind` enum.' + '\n\nDepending on the kind of a type, certain fields describe ' + 'information about that type. Scalar types provide no information ' + 'beyond a name and description, while Enum types provide their values. ' + 'Object and Interface types provide the fields they describe. Abstract ' + 'types, Union and Interface, provide the Object types possible ' + 'at runtime. List and NonNull types compose other types.', fields: function fields() { return { kind: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(__TypeKind), resolve: function resolve(type) { if (Object(_definition__WEBPACK_IMPORTED_MODULE_4__["isScalarType"])(type)) { return TypeKind.SCALAR; } else if (Object(_definition__WEBPACK_IMPORTED_MODULE_4__["isObjectType"])(type)) { return TypeKind.OBJECT; } else if (Object(_definition__WEBPACK_IMPORTED_MODULE_4__["isInterfaceType"])(type)) { return TypeKind.INTERFACE; } else if (Object(_definition__WEBPACK_IMPORTED_MODULE_4__["isUnionType"])(type)) { return TypeKind.UNION; } else if (Object(_definition__WEBPACK_IMPORTED_MODULE_4__["isEnumType"])(type)) { return TypeKind.ENUM; } else if (Object(_definition__WEBPACK_IMPORTED_MODULE_4__["isInputObjectType"])(type)) { return TypeKind.INPUT_OBJECT; } else if (Object(_definition__WEBPACK_IMPORTED_MODULE_4__["isListType"])(type)) { return TypeKind.LIST; } else if (Object(_definition__WEBPACK_IMPORTED_MODULE_4__["isNonNullType"])(type)) { return TypeKind.NON_NULL; } throw new Error('Unknown kind of type: ' + type); } }, name: { type: _scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLString"], resolve: function resolve(obj) { return obj.name; } }, description: { type: _scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLString"], resolve: function resolve(obj) { return obj.description; } }, fields: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLList"])(Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(__Field)), args: { includeDeprecated: { type: _scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLBoolean"], defaultValue: false } }, resolve: function resolve(type, _ref) { var includeDeprecated = _ref.includeDeprecated; if (Object(_definition__WEBPACK_IMPORTED_MODULE_4__["isObjectType"])(type) || Object(_definition__WEBPACK_IMPORTED_MODULE_4__["isInterfaceType"])(type)) { var fields = Object(_jsutils_objectValues__WEBPACK_IMPORTED_MODULE_1__["default"])(type.getFields()); if (!includeDeprecated) { fields = fields.filter(function (field) { return !field.deprecationReason; }); } return fields; } return null; } }, interfaces: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLList"])(Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(__Type)), resolve: function resolve(type) { if (Object(_definition__WEBPACK_IMPORTED_MODULE_4__["isObjectType"])(type)) { return type.getInterfaces(); } } }, possibleTypes: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLList"])(Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(__Type)), resolve: function resolve(type, args, context, _ref2) { var schema = _ref2.schema; if (Object(_definition__WEBPACK_IMPORTED_MODULE_4__["isAbstractType"])(type)) { return schema.getPossibleTypes(type); } } }, enumValues: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLList"])(Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(__EnumValue)), args: { includeDeprecated: { type: _scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLBoolean"], defaultValue: false } }, resolve: function resolve(type, _ref3) { var includeDeprecated = _ref3.includeDeprecated; if (Object(_definition__WEBPACK_IMPORTED_MODULE_4__["isEnumType"])(type)) { var values = type.getValues(); if (!includeDeprecated) { values = values.filter(function (value) { return !value.deprecationReason; }); } return values; } } }, inputFields: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLList"])(Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(__InputValue)), resolve: function resolve(type) { if (Object(_definition__WEBPACK_IMPORTED_MODULE_4__["isInputObjectType"])(type)) { return Object(_jsutils_objectValues__WEBPACK_IMPORTED_MODULE_1__["default"])(type.getFields()); } } }, ofType: { type: __Type, resolve: function resolve(obj) { return obj.ofType; } } }; } }); var __Field = new _definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLObjectType"]({ name: '__Field', description: 'Object and Interface types are described by a list of Fields, each of ' + 'which has a name, potentially a list of arguments, and a return type.', fields: function fields() { return { name: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(_scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLString"]), resolve: function resolve(obj) { return obj.name; } }, description: { type: _scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLString"], resolve: function resolve(obj) { return obj.description; } }, args: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLList"])(Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(__InputValue))), resolve: function resolve(field) { return field.args || []; } }, type: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(__Type), resolve: function resolve(obj) { return obj.type; } }, isDeprecated: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(_scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLBoolean"]), resolve: function resolve(obj) { return obj.isDeprecated; } }, deprecationReason: { type: _scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLString"], resolve: function resolve(obj) { return obj.deprecationReason; } } }; } }); var __InputValue = new _definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLObjectType"]({ name: '__InputValue', description: 'Arguments provided to Fields or Directives and the input fields of an ' + 'InputObject are represented as Input Values which describe their type ' + 'and optionally a default value.', fields: function fields() { return { name: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(_scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLString"]), resolve: function resolve(obj) { return obj.name; } }, description: { type: _scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLString"], resolve: function resolve(obj) { return obj.description; } }, type: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(__Type), resolve: function resolve(obj) { return obj.type; } }, defaultValue: { type: _scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLString"], description: 'A GraphQL-formatted string representing the default value for this ' + 'input value.', resolve: function resolve(inputVal) { return Object(_jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_0__["default"])(inputVal.defaultValue) ? null : Object(_language_printer__WEBPACK_IMPORTED_MODULE_3__["print"])(Object(_utilities_astFromValue__WEBPACK_IMPORTED_MODULE_2__["astFromValue"])(inputVal.defaultValue, inputVal.type)); } } }; } }); var __EnumValue = new _definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLObjectType"]({ name: '__EnumValue', description: 'One possible value for a given Enum. Enum values are unique values, not ' + 'a placeholder for a string or numeric value. However an Enum value is ' + 'returned in a JSON response as a string.', fields: function fields() { return { name: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(_scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLString"]), resolve: function resolve(obj) { return obj.name; } }, description: { type: _scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLString"], resolve: function resolve(obj) { return obj.description; } }, isDeprecated: { type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(_scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLBoolean"]), resolve: function resolve(obj) { return obj.isDeprecated; } }, deprecationReason: { type: _scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLString"], resolve: function resolve(obj) { return obj.deprecationReason; } } }; } }); var TypeKind = { SCALAR: 'SCALAR', OBJECT: 'OBJECT', INTERFACE: 'INTERFACE', UNION: 'UNION', ENUM: 'ENUM', INPUT_OBJECT: 'INPUT_OBJECT', LIST: 'LIST', NON_NULL: 'NON_NULL' }; var __TypeKind = new _definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLEnumType"]({ name: '__TypeKind', description: 'An enum describing what kind of type a given `__Type` is.', values: { SCALAR: { value: TypeKind.SCALAR, description: 'Indicates this type is a scalar.' }, OBJECT: { value: TypeKind.OBJECT, description: 'Indicates this type is an object. ' + '`fields` and `interfaces` are valid fields.' }, INTERFACE: { value: TypeKind.INTERFACE, description: 'Indicates this type is an interface. ' + '`fields` and `possibleTypes` are valid fields.' }, UNION: { value: TypeKind.UNION, description: 'Indicates this type is a union. `possibleTypes` is a valid field.' }, ENUM: { value: TypeKind.ENUM, description: 'Indicates this type is an enum. `enumValues` is a valid field.' }, INPUT_OBJECT: { value: TypeKind.INPUT_OBJECT, description: 'Indicates this type is an input object. ' + '`inputFields` is a valid field.' }, LIST: { value: TypeKind.LIST, description: 'Indicates this type is a list. `ofType` is a valid field.' }, NON_NULL: { value: TypeKind.NON_NULL, description: 'Indicates this type is a non-null. `ofType` is a valid field.' } } }); /** * Note that these are GraphQLField and not GraphQLFieldConfig, * so the format for args is different. */ var SchemaMetaFieldDef = { name: '__schema', type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(__Schema), description: 'Access the current type schema of this server.', args: [], resolve: function resolve(source, args, context, _ref4) { var schema = _ref4.schema; return schema; } }; var TypeMetaFieldDef = { name: '__type', type: __Type, description: 'Request the type information of a single type.', args: [{ name: 'name', type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(_scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLString"]) }], resolve: function resolve(source, _ref5, context, _ref6) { var name = _ref5.name; var schema = _ref6.schema; return schema.getType(name); } }; var TypeNameMetaFieldDef = { name: '__typename', type: Object(_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"])(_scalars__WEBPACK_IMPORTED_MODULE_5__["GraphQLString"]), description: 'The name of the current Object type at runtime.', args: [], resolve: function resolve(source, args, context, _ref7) { var parentType = _ref7.parentType; return parentType.name; } }; var introspectionTypes = [__Schema, __Directive, __DirectiveLocation, __Type, __Field, __InputValue, __EnumValue, __TypeKind]; function isIntrospectionType(type) { return Object(_definition__WEBPACK_IMPORTED_MODULE_4__["isNamedType"])(type) && ( // Would prefer to use introspectionTypes.some(), however %checks needs // a simple expression. type.name === __Schema.name || type.name === __Directive.name || type.name === __DirectiveLocation.name || type.name === __Type.name || type.name === __Field.name || type.name === __InputValue.name || type.name === __EnumValue.name || type.name === __TypeKind.name); } /***/ }), /***/ "LWzQ": /*!**************************************************************!*\ !*** ./node_modules/@aws-amplify/storage/lib-esm/Storage.js ***! \**************************************************************/ /*! exports provided: Storage, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Storage", function() { return Storage; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _providers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./providers */ "SdfR"); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('StorageClass'); var DEFAULT_PROVIDER = 'AWSS3'; /** * Provide storage methods to use AWS S3 */ var Storage = /** @class */ (function () { /** * Initialize Storage * @param {Object} config - Configuration object for storage */ function Storage() { this._config = {}; this._pluggables = []; logger.debug('Storage Options', this._config); this.get = this.get.bind(this); this.put = this.put.bind(this); this.remove = this.remove.bind(this); this.list = this.list.bind(this); } Storage.prototype.getModuleName = function () { return 'Storage'; }; /** * add plugin into Storage category * @param {Object} pluggable - an instance of the plugin */ Storage.prototype.addPluggable = function (pluggable) { if (pluggable && pluggable.getCategory() === 'Storage') { this._pluggables.push(pluggable); var config = {}; config = pluggable.configure(this._config[pluggable.getProviderName()]); return config; } }; /** * Get the plugin object * @param providerName - the name of the plugin */ Storage.prototype.getPluggable = function (providerName) { var pluggable = this._pluggables.find(function (pluggable) { return pluggable.getProviderName() === providerName; }); if (pluggable === undefined) { logger.debug('No plugin found with providerName', providerName); return null; } else return pluggable; }; /** * Remove the plugin object * @param providerName - the name of the plugin */ Storage.prototype.removePluggable = function (providerName) { this._pluggables = this._pluggables.filter(function (pluggable) { return pluggable.getProviderName() !== providerName; }); return; }; /** * Configure Storage * @param {Object} config - Configuration object for storage * @return {Object} - Current configuration */ Storage.prototype.configure = function (config) { var _this = this; logger.debug('configure Storage'); if (!config) return this._config; var amplifyConfig = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Parser"].parseMobilehubConfig(config); var storageKeysFromConfig = Object.keys(amplifyConfig.Storage); var storageArrayKeys = [ 'bucket', 'region', 'level', 'track', 'customPrefix', 'serverSideEncryption', 'SSECustomerAlgorithm', 'SSECustomerKey', 'SSECustomerKeyMD5', 'SSEKMSKeyId', ]; var isInStorageArrayKeys = function (k) { return storageArrayKeys.some(function (x) { return x === k; }); }; var checkConfigKeysFromArray = function (k) { return k.find(function (k) { return isInStorageArrayKeys(k); }); }; if (storageKeysFromConfig && checkConfigKeysFromArray(storageKeysFromConfig) && !amplifyConfig.Storage[DEFAULT_PROVIDER]) { amplifyConfig.Storage[DEFAULT_PROVIDER] = {}; } Object.entries(amplifyConfig.Storage).map(function (_a) { var _b = __read(_a, 2), key = _b[0], value = _b[1]; if (key && isInStorageArrayKeys(key) && value !== undefined) { amplifyConfig.Storage[DEFAULT_PROVIDER][key] = value; delete amplifyConfig.Storage[key]; } }); // only update new values for each provider Object.keys(amplifyConfig.Storage).forEach(function (providerName) { if (typeof amplifyConfig.Storage[providerName] !== 'string') { _this._config[providerName] = __assign(__assign({}, _this._config[providerName]), amplifyConfig.Storage[providerName]); } }); this._pluggables.forEach(function (pluggable) { pluggable.configure(_this._config[pluggable.getProviderName()]); }); if (this._pluggables.length === 0) { this.addPluggable(new _providers__WEBPACK_IMPORTED_MODULE_1__["AWSS3Provider"]()); } return this._config; }; /** * Get a presigned URL of the file or the object data when download:true * * @param {string} key - key of the object * @param {Object} [config] - { level : private|protected|public, download: true|false } * @return - A promise resolves to either a presigned url or the object */ Storage.prototype.get = function (key, config) { return __awaiter(this, void 0, void 0, function () { var _a, provider, prov; return __generator(this, function (_b) { _a = (config || {}).provider, provider = _a === void 0 ? DEFAULT_PROVIDER : _a; prov = this._pluggables.find(function (pluggable) { return pluggable.getProviderName() === provider; }); if (prov === undefined) { logger.debug('No plugin found with providerName', provider); Promise.reject('No plugin found in Storage for the provider'); } return [2 /*return*/, prov.get(key, config)]; }); }); }; /** * Put a file in storage bucket specified to configure method * @param {string} key - key of the object * @param {Object} object - File to be put in bucket * @param {Object} [config] - { level : private|protected|public, contentType: MIME Types, * progressCallback: function } * @return - promise resolves to object on success */ Storage.prototype.put = function (key, object, config) { return __awaiter(this, void 0, void 0, function () { var _a, provider, prov; return __generator(this, function (_b) { _a = (config || {}).provider, provider = _a === void 0 ? DEFAULT_PROVIDER : _a; prov = this._pluggables.find(function (pluggable) { return pluggable.getProviderName() === provider; }); if (prov === undefined) { logger.debug('No plugin found with providerName', provider); Promise.reject('No plugin found in Storage for the provider'); } return [2 /*return*/, prov.put(key, object, config)]; }); }); }; /** * Remove the object for specified key * @param {string} key - key of the object * @param {Object} [config] - { level : private|protected|public } * @return - Promise resolves upon successful removal of the object */ Storage.prototype.remove = function (key, config) { return __awaiter(this, void 0, void 0, function () { var _a, provider, prov; return __generator(this, function (_b) { _a = (config || {}).provider, provider = _a === void 0 ? DEFAULT_PROVIDER : _a; prov = this._pluggables.find(function (pluggable) { return pluggable.getProviderName() === provider; }); if (prov === undefined) { logger.debug('No plugin found with providerName', provider); Promise.reject('No plugin found in Storage for the provider'); } return [2 /*return*/, prov.remove(key, config)]; }); }); }; /** * List bucket objects relative to the level and prefix specified * @param {String} path - the path that contains objects * @param {Object} [config] - { level : private|protected|public, maxKeys: NUMBER } * @return - Promise resolves to list of keys for all objects in path */ Storage.prototype.list = function (path, config) { return __awaiter(this, void 0, void 0, function () { var _a, provider, prov; return __generator(this, function (_b) { _a = (config || {}).provider, provider = _a === void 0 ? DEFAULT_PROVIDER : _a; prov = this._pluggables.find(function (pluggable) { return pluggable.getProviderName() === provider; }); if (prov === undefined) { logger.debug('No plugin found with providerName', provider); Promise.reject('No plugin found in Storage for the provider'); } return [2 /*return*/, prov.list(path, config)]; }); }); }; return Storage; }()); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (Storage); //# sourceMappingURL=Storage.js.map /***/ }), /***/ "LXxW": /*!*********************************************!*\ !*** ./node_modules/lodash/_arrayFilter.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * A specialized version of `_.filter` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {Array} Returns the new filtered array. */ function arrayFilter(array, predicate) { var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; while (++index < length) { var value = array[index]; if (predicate(value, index, array)) { result[resIndex++] = value; } } return result; } module.exports = arrayFilter; /***/ }), /***/ "LYNF": /*!****************************************************!*\ !*** ./node_modules/axios/lib/core/createError.js ***! \****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var enhanceError = __webpack_require__(/*! ./enhanceError */ "OH9c"); /** * Create an Error with the specified message, config, error code, request and response. * * @param {string} message The error message. * @param {Object} config The config. * @param {string} [code] The error code (for example, 'ECONNABORTED'). * @param {Object} [request] The request. * @param {Object} [response] The response. * @returns {Error} The created error. */ module.exports = function createError(message, config, code, request, response) { var error = new Error(message); return enhanceError(error, config, code, request, response); }; /***/ }), /***/ "LhCc": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js ***! \**********************************************************************************/ /*! exports provided: serializeAws_restJson1CreateAppCommand, serializeAws_restJson1CreateCampaignCommand, serializeAws_restJson1CreateEmailTemplateCommand, serializeAws_restJson1CreateExportJobCommand, serializeAws_restJson1CreateImportJobCommand, serializeAws_restJson1CreateJourneyCommand, serializeAws_restJson1CreatePushTemplateCommand, serializeAws_restJson1CreateRecommenderConfigurationCommand, serializeAws_restJson1CreateSegmentCommand, serializeAws_restJson1CreateSmsTemplateCommand, serializeAws_restJson1CreateVoiceTemplateCommand, serializeAws_restJson1DeleteAdmChannelCommand, serializeAws_restJson1DeleteApnsChannelCommand, serializeAws_restJson1DeleteApnsSandboxChannelCommand, serializeAws_restJson1DeleteApnsVoipChannelCommand, serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand, serializeAws_restJson1DeleteAppCommand, serializeAws_restJson1DeleteBaiduChannelCommand, serializeAws_restJson1DeleteCampaignCommand, serializeAws_restJson1DeleteEmailChannelCommand, serializeAws_restJson1DeleteEmailTemplateCommand, serializeAws_restJson1DeleteEndpointCommand, serializeAws_restJson1DeleteEventStreamCommand, serializeAws_restJson1DeleteGcmChannelCommand, serializeAws_restJson1DeleteJourneyCommand, serializeAws_restJson1DeletePushTemplateCommand, serializeAws_restJson1DeleteRecommenderConfigurationCommand, serializeAws_restJson1DeleteSegmentCommand, serializeAws_restJson1DeleteSmsChannelCommand, serializeAws_restJson1DeleteSmsTemplateCommand, serializeAws_restJson1DeleteUserEndpointsCommand, serializeAws_restJson1DeleteVoiceChannelCommand, serializeAws_restJson1DeleteVoiceTemplateCommand, serializeAws_restJson1GetAdmChannelCommand, serializeAws_restJson1GetApnsChannelCommand, serializeAws_restJson1GetApnsSandboxChannelCommand, serializeAws_restJson1GetApnsVoipChannelCommand, serializeAws_restJson1GetApnsVoipSandboxChannelCommand, serializeAws_restJson1GetAppCommand, serializeAws_restJson1GetApplicationDateRangeKpiCommand, serializeAws_restJson1GetApplicationSettingsCommand, serializeAws_restJson1GetAppsCommand, serializeAws_restJson1GetBaiduChannelCommand, serializeAws_restJson1GetCampaignCommand, serializeAws_restJson1GetCampaignActivitiesCommand, serializeAws_restJson1GetCampaignDateRangeKpiCommand, serializeAws_restJson1GetCampaignsCommand, serializeAws_restJson1GetCampaignVersionCommand, serializeAws_restJson1GetCampaignVersionsCommand, serializeAws_restJson1GetChannelsCommand, serializeAws_restJson1GetEmailChannelCommand, serializeAws_restJson1GetEmailTemplateCommand, serializeAws_restJson1GetEndpointCommand, serializeAws_restJson1GetEventStreamCommand, serializeAws_restJson1GetExportJobCommand, serializeAws_restJson1GetExportJobsCommand, serializeAws_restJson1GetGcmChannelCommand, serializeAws_restJson1GetImportJobCommand, serializeAws_restJson1GetImportJobsCommand, serializeAws_restJson1GetJourneyCommand, serializeAws_restJson1GetJourneyDateRangeKpiCommand, serializeAws_restJson1GetJourneyExecutionActivityMetricsCommand, serializeAws_restJson1GetJourneyExecutionMetricsCommand, serializeAws_restJson1GetPushTemplateCommand, serializeAws_restJson1GetRecommenderConfigurationCommand, serializeAws_restJson1GetRecommenderConfigurationsCommand, serializeAws_restJson1GetSegmentCommand, serializeAws_restJson1GetSegmentExportJobsCommand, serializeAws_restJson1GetSegmentImportJobsCommand, serializeAws_restJson1GetSegmentsCommand, serializeAws_restJson1GetSegmentVersionCommand, serializeAws_restJson1GetSegmentVersionsCommand, serializeAws_restJson1GetSmsChannelCommand, serializeAws_restJson1GetSmsTemplateCommand, serializeAws_restJson1GetUserEndpointsCommand, serializeAws_restJson1GetVoiceChannelCommand, serializeAws_restJson1GetVoiceTemplateCommand, serializeAws_restJson1ListJourneysCommand, serializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTemplatesCommand, serializeAws_restJson1ListTemplateVersionsCommand, serializeAws_restJson1PhoneNumberValidateCommand, serializeAws_restJson1PutEventsCommand, serializeAws_restJson1PutEventStreamCommand, serializeAws_restJson1RemoveAttributesCommand, serializeAws_restJson1SendMessagesCommand, serializeAws_restJson1SendUsersMessagesCommand, serializeAws_restJson1TagResourceCommand, serializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UpdateAdmChannelCommand, serializeAws_restJson1UpdateApnsChannelCommand, serializeAws_restJson1UpdateApnsSandboxChannelCommand, serializeAws_restJson1UpdateApnsVoipChannelCommand, serializeAws_restJson1UpdateApnsVoipSandboxChannelCommand, serializeAws_restJson1UpdateApplicationSettingsCommand, serializeAws_restJson1UpdateBaiduChannelCommand, serializeAws_restJson1UpdateCampaignCommand, serializeAws_restJson1UpdateEmailChannelCommand, serializeAws_restJson1UpdateEmailTemplateCommand, serializeAws_restJson1UpdateEndpointCommand, serializeAws_restJson1UpdateEndpointsBatchCommand, serializeAws_restJson1UpdateGcmChannelCommand, serializeAws_restJson1UpdateJourneyCommand, serializeAws_restJson1UpdateJourneyStateCommand, serializeAws_restJson1UpdatePushTemplateCommand, serializeAws_restJson1UpdateRecommenderConfigurationCommand, serializeAws_restJson1UpdateSegmentCommand, serializeAws_restJson1UpdateSmsChannelCommand, serializeAws_restJson1UpdateSmsTemplateCommand, serializeAws_restJson1UpdateTemplateActiveVersionCommand, serializeAws_restJson1UpdateVoiceChannelCommand, serializeAws_restJson1UpdateVoiceTemplateCommand, deserializeAws_restJson1CreateAppCommand, deserializeAws_restJson1CreateCampaignCommand, deserializeAws_restJson1CreateEmailTemplateCommand, deserializeAws_restJson1CreateExportJobCommand, deserializeAws_restJson1CreateImportJobCommand, deserializeAws_restJson1CreateJourneyCommand, deserializeAws_restJson1CreatePushTemplateCommand, deserializeAws_restJson1CreateRecommenderConfigurationCommand, deserializeAws_restJson1CreateSegmentCommand, deserializeAws_restJson1CreateSmsTemplateCommand, deserializeAws_restJson1CreateVoiceTemplateCommand, deserializeAws_restJson1DeleteAdmChannelCommand, deserializeAws_restJson1DeleteApnsChannelCommand, deserializeAws_restJson1DeleteApnsSandboxChannelCommand, deserializeAws_restJson1DeleteApnsVoipChannelCommand, deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommand, deserializeAws_restJson1DeleteAppCommand, deserializeAws_restJson1DeleteBaiduChannelCommand, deserializeAws_restJson1DeleteCampaignCommand, deserializeAws_restJson1DeleteEmailChannelCommand, deserializeAws_restJson1DeleteEmailTemplateCommand, deserializeAws_restJson1DeleteEndpointCommand, deserializeAws_restJson1DeleteEventStreamCommand, deserializeAws_restJson1DeleteGcmChannelCommand, deserializeAws_restJson1DeleteJourneyCommand, deserializeAws_restJson1DeletePushTemplateCommand, deserializeAws_restJson1DeleteRecommenderConfigurationCommand, deserializeAws_restJson1DeleteSegmentCommand, deserializeAws_restJson1DeleteSmsChannelCommand, deserializeAws_restJson1DeleteSmsTemplateCommand, deserializeAws_restJson1DeleteUserEndpointsCommand, deserializeAws_restJson1DeleteVoiceChannelCommand, deserializeAws_restJson1DeleteVoiceTemplateCommand, deserializeAws_restJson1GetAdmChannelCommand, deserializeAws_restJson1GetApnsChannelCommand, deserializeAws_restJson1GetApnsSandboxChannelCommand, deserializeAws_restJson1GetApnsVoipChannelCommand, deserializeAws_restJson1GetApnsVoipSandboxChannelCommand, deserializeAws_restJson1GetAppCommand, deserializeAws_restJson1GetApplicationDateRangeKpiCommand, deserializeAws_restJson1GetApplicationSettingsCommand, deserializeAws_restJson1GetAppsCommand, deserializeAws_restJson1GetBaiduChannelCommand, deserializeAws_restJson1GetCampaignCommand, deserializeAws_restJson1GetCampaignActivitiesCommand, deserializeAws_restJson1GetCampaignDateRangeKpiCommand, deserializeAws_restJson1GetCampaignsCommand, deserializeAws_restJson1GetCampaignVersionCommand, deserializeAws_restJson1GetCampaignVersionsCommand, deserializeAws_restJson1GetChannelsCommand, deserializeAws_restJson1GetEmailChannelCommand, deserializeAws_restJson1GetEmailTemplateCommand, deserializeAws_restJson1GetEndpointCommand, deserializeAws_restJson1GetEventStreamCommand, deserializeAws_restJson1GetExportJobCommand, deserializeAws_restJson1GetExportJobsCommand, deserializeAws_restJson1GetGcmChannelCommand, deserializeAws_restJson1GetImportJobCommand, deserializeAws_restJson1GetImportJobsCommand, deserializeAws_restJson1GetJourneyCommand, deserializeAws_restJson1GetJourneyDateRangeKpiCommand, deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommand, deserializeAws_restJson1GetJourneyExecutionMetricsCommand, deserializeAws_restJson1GetPushTemplateCommand, deserializeAws_restJson1GetRecommenderConfigurationCommand, deserializeAws_restJson1GetRecommenderConfigurationsCommand, deserializeAws_restJson1GetSegmentCommand, deserializeAws_restJson1GetSegmentExportJobsCommand, deserializeAws_restJson1GetSegmentImportJobsCommand, deserializeAws_restJson1GetSegmentsCommand, deserializeAws_restJson1GetSegmentVersionCommand, deserializeAws_restJson1GetSegmentVersionsCommand, deserializeAws_restJson1GetSmsChannelCommand, deserializeAws_restJson1GetSmsTemplateCommand, deserializeAws_restJson1GetUserEndpointsCommand, deserializeAws_restJson1GetVoiceChannelCommand, deserializeAws_restJson1GetVoiceTemplateCommand, deserializeAws_restJson1ListJourneysCommand, deserializeAws_restJson1ListTagsForResourceCommand, deserializeAws_restJson1ListTemplatesCommand, deserializeAws_restJson1ListTemplateVersionsCommand, deserializeAws_restJson1PhoneNumberValidateCommand, deserializeAws_restJson1PutEventsCommand, deserializeAws_restJson1PutEventStreamCommand, deserializeAws_restJson1RemoveAttributesCommand, deserializeAws_restJson1SendMessagesCommand, deserializeAws_restJson1SendUsersMessagesCommand, deserializeAws_restJson1TagResourceCommand, deserializeAws_restJson1UntagResourceCommand, deserializeAws_restJson1UpdateAdmChannelCommand, deserializeAws_restJson1UpdateApnsChannelCommand, deserializeAws_restJson1UpdateApnsSandboxChannelCommand, deserializeAws_restJson1UpdateApnsVoipChannelCommand, deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommand, deserializeAws_restJson1UpdateApplicationSettingsCommand, deserializeAws_restJson1UpdateBaiduChannelCommand, deserializeAws_restJson1UpdateCampaignCommand, deserializeAws_restJson1UpdateEmailChannelCommand, deserializeAws_restJson1UpdateEmailTemplateCommand, deserializeAws_restJson1UpdateEndpointCommand, deserializeAws_restJson1UpdateEndpointsBatchCommand, deserializeAws_restJson1UpdateGcmChannelCommand, deserializeAws_restJson1UpdateJourneyCommand, deserializeAws_restJson1UpdateJourneyStateCommand, deserializeAws_restJson1UpdatePushTemplateCommand, deserializeAws_restJson1UpdateRecommenderConfigurationCommand, deserializeAws_restJson1UpdateSegmentCommand, deserializeAws_restJson1UpdateSmsChannelCommand, deserializeAws_restJson1UpdateSmsTemplateCommand, deserializeAws_restJson1UpdateTemplateActiveVersionCommand, deserializeAws_restJson1UpdateVoiceChannelCommand, deserializeAws_restJson1UpdateVoiceTemplateCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateAppCommand", function() { return serializeAws_restJson1CreateAppCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateCampaignCommand", function() { return serializeAws_restJson1CreateCampaignCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateEmailTemplateCommand", function() { return serializeAws_restJson1CreateEmailTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateExportJobCommand", function() { return serializeAws_restJson1CreateExportJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateImportJobCommand", function() { return serializeAws_restJson1CreateImportJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateJourneyCommand", function() { return serializeAws_restJson1CreateJourneyCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreatePushTemplateCommand", function() { return serializeAws_restJson1CreatePushTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateRecommenderConfigurationCommand", function() { return serializeAws_restJson1CreateRecommenderConfigurationCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateSegmentCommand", function() { return serializeAws_restJson1CreateSegmentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateSmsTemplateCommand", function() { return serializeAws_restJson1CreateSmsTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateVoiceTemplateCommand", function() { return serializeAws_restJson1CreateVoiceTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteAdmChannelCommand", function() { return serializeAws_restJson1DeleteAdmChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteApnsChannelCommand", function() { return serializeAws_restJson1DeleteApnsChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteApnsSandboxChannelCommand", function() { return serializeAws_restJson1DeleteApnsSandboxChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteApnsVoipChannelCommand", function() { return serializeAws_restJson1DeleteApnsVoipChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand", function() { return serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteAppCommand", function() { return serializeAws_restJson1DeleteAppCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteBaiduChannelCommand", function() { return serializeAws_restJson1DeleteBaiduChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteCampaignCommand", function() { return serializeAws_restJson1DeleteCampaignCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteEmailChannelCommand", function() { return serializeAws_restJson1DeleteEmailChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteEmailTemplateCommand", function() { return serializeAws_restJson1DeleteEmailTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteEndpointCommand", function() { return serializeAws_restJson1DeleteEndpointCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteEventStreamCommand", function() { return serializeAws_restJson1DeleteEventStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteGcmChannelCommand", function() { return serializeAws_restJson1DeleteGcmChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteJourneyCommand", function() { return serializeAws_restJson1DeleteJourneyCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeletePushTemplateCommand", function() { return serializeAws_restJson1DeletePushTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteRecommenderConfigurationCommand", function() { return serializeAws_restJson1DeleteRecommenderConfigurationCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteSegmentCommand", function() { return serializeAws_restJson1DeleteSegmentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteSmsChannelCommand", function() { return serializeAws_restJson1DeleteSmsChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteSmsTemplateCommand", function() { return serializeAws_restJson1DeleteSmsTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteUserEndpointsCommand", function() { return serializeAws_restJson1DeleteUserEndpointsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteVoiceChannelCommand", function() { return serializeAws_restJson1DeleteVoiceChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteVoiceTemplateCommand", function() { return serializeAws_restJson1DeleteVoiceTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetAdmChannelCommand", function() { return serializeAws_restJson1GetAdmChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApnsChannelCommand", function() { return serializeAws_restJson1GetApnsChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApnsSandboxChannelCommand", function() { return serializeAws_restJson1GetApnsSandboxChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApnsVoipChannelCommand", function() { return serializeAws_restJson1GetApnsVoipChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApnsVoipSandboxChannelCommand", function() { return serializeAws_restJson1GetApnsVoipSandboxChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetAppCommand", function() { return serializeAws_restJson1GetAppCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApplicationDateRangeKpiCommand", function() { return serializeAws_restJson1GetApplicationDateRangeKpiCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApplicationSettingsCommand", function() { return serializeAws_restJson1GetApplicationSettingsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetAppsCommand", function() { return serializeAws_restJson1GetAppsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetBaiduChannelCommand", function() { return serializeAws_restJson1GetBaiduChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignCommand", function() { return serializeAws_restJson1GetCampaignCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignActivitiesCommand", function() { return serializeAws_restJson1GetCampaignActivitiesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignDateRangeKpiCommand", function() { return serializeAws_restJson1GetCampaignDateRangeKpiCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignsCommand", function() { return serializeAws_restJson1GetCampaignsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignVersionCommand", function() { return serializeAws_restJson1GetCampaignVersionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignVersionsCommand", function() { return serializeAws_restJson1GetCampaignVersionsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetChannelsCommand", function() { return serializeAws_restJson1GetChannelsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetEmailChannelCommand", function() { return serializeAws_restJson1GetEmailChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetEmailTemplateCommand", function() { return serializeAws_restJson1GetEmailTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetEndpointCommand", function() { return serializeAws_restJson1GetEndpointCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetEventStreamCommand", function() { return serializeAws_restJson1GetEventStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetExportJobCommand", function() { return serializeAws_restJson1GetExportJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetExportJobsCommand", function() { return serializeAws_restJson1GetExportJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetGcmChannelCommand", function() { return serializeAws_restJson1GetGcmChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetImportJobCommand", function() { return serializeAws_restJson1GetImportJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetImportJobsCommand", function() { return serializeAws_restJson1GetImportJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetJourneyCommand", function() { return serializeAws_restJson1GetJourneyCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetJourneyDateRangeKpiCommand", function() { return serializeAws_restJson1GetJourneyDateRangeKpiCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetJourneyExecutionActivityMetricsCommand", function() { return serializeAws_restJson1GetJourneyExecutionActivityMetricsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetJourneyExecutionMetricsCommand", function() { return serializeAws_restJson1GetJourneyExecutionMetricsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetPushTemplateCommand", function() { return serializeAws_restJson1GetPushTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetRecommenderConfigurationCommand", function() { return serializeAws_restJson1GetRecommenderConfigurationCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetRecommenderConfigurationsCommand", function() { return serializeAws_restJson1GetRecommenderConfigurationsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentCommand", function() { return serializeAws_restJson1GetSegmentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentExportJobsCommand", function() { return serializeAws_restJson1GetSegmentExportJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentImportJobsCommand", function() { return serializeAws_restJson1GetSegmentImportJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentsCommand", function() { return serializeAws_restJson1GetSegmentsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentVersionCommand", function() { return serializeAws_restJson1GetSegmentVersionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentVersionsCommand", function() { return serializeAws_restJson1GetSegmentVersionsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSmsChannelCommand", function() { return serializeAws_restJson1GetSmsChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSmsTemplateCommand", function() { return serializeAws_restJson1GetSmsTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetUserEndpointsCommand", function() { return serializeAws_restJson1GetUserEndpointsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetVoiceChannelCommand", function() { return serializeAws_restJson1GetVoiceChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetVoiceTemplateCommand", function() { return serializeAws_restJson1GetVoiceTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1ListJourneysCommand", function() { return serializeAws_restJson1ListJourneysCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1ListTagsForResourceCommand", function() { return serializeAws_restJson1ListTagsForResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1ListTemplatesCommand", function() { return serializeAws_restJson1ListTemplatesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1ListTemplateVersionsCommand", function() { return serializeAws_restJson1ListTemplateVersionsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PhoneNumberValidateCommand", function() { return serializeAws_restJson1PhoneNumberValidateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PutEventsCommand", function() { return serializeAws_restJson1PutEventsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PutEventStreamCommand", function() { return serializeAws_restJson1PutEventStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1RemoveAttributesCommand", function() { return serializeAws_restJson1RemoveAttributesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1SendMessagesCommand", function() { return serializeAws_restJson1SendMessagesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1SendUsersMessagesCommand", function() { return serializeAws_restJson1SendUsersMessagesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1TagResourceCommand", function() { return serializeAws_restJson1TagResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UntagResourceCommand", function() { return serializeAws_restJson1UntagResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateAdmChannelCommand", function() { return serializeAws_restJson1UpdateAdmChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateApnsChannelCommand", function() { return serializeAws_restJson1UpdateApnsChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateApnsSandboxChannelCommand", function() { return serializeAws_restJson1UpdateApnsSandboxChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateApnsVoipChannelCommand", function() { return serializeAws_restJson1UpdateApnsVoipChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateApnsVoipSandboxChannelCommand", function() { return serializeAws_restJson1UpdateApnsVoipSandboxChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateApplicationSettingsCommand", function() { return serializeAws_restJson1UpdateApplicationSettingsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateBaiduChannelCommand", function() { return serializeAws_restJson1UpdateBaiduChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateCampaignCommand", function() { return serializeAws_restJson1UpdateCampaignCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateEmailChannelCommand", function() { return serializeAws_restJson1UpdateEmailChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateEmailTemplateCommand", function() { return serializeAws_restJson1UpdateEmailTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateEndpointCommand", function() { return serializeAws_restJson1UpdateEndpointCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateEndpointsBatchCommand", function() { return serializeAws_restJson1UpdateEndpointsBatchCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateGcmChannelCommand", function() { return serializeAws_restJson1UpdateGcmChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateJourneyCommand", function() { return serializeAws_restJson1UpdateJourneyCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateJourneyStateCommand", function() { return serializeAws_restJson1UpdateJourneyStateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdatePushTemplateCommand", function() { return serializeAws_restJson1UpdatePushTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateRecommenderConfigurationCommand", function() { return serializeAws_restJson1UpdateRecommenderConfigurationCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateSegmentCommand", function() { return serializeAws_restJson1UpdateSegmentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateSmsChannelCommand", function() { return serializeAws_restJson1UpdateSmsChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateSmsTemplateCommand", function() { return serializeAws_restJson1UpdateSmsTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateTemplateActiveVersionCommand", function() { return serializeAws_restJson1UpdateTemplateActiveVersionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateVoiceChannelCommand", function() { return serializeAws_restJson1UpdateVoiceChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateVoiceTemplateCommand", function() { return serializeAws_restJson1UpdateVoiceTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateAppCommand", function() { return deserializeAws_restJson1CreateAppCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateCampaignCommand", function() { return deserializeAws_restJson1CreateCampaignCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateEmailTemplateCommand", function() { return deserializeAws_restJson1CreateEmailTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateExportJobCommand", function() { return deserializeAws_restJson1CreateExportJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateImportJobCommand", function() { return deserializeAws_restJson1CreateImportJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateJourneyCommand", function() { return deserializeAws_restJson1CreateJourneyCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreatePushTemplateCommand", function() { return deserializeAws_restJson1CreatePushTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateRecommenderConfigurationCommand", function() { return deserializeAws_restJson1CreateRecommenderConfigurationCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateSegmentCommand", function() { return deserializeAws_restJson1CreateSegmentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateSmsTemplateCommand", function() { return deserializeAws_restJson1CreateSmsTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateVoiceTemplateCommand", function() { return deserializeAws_restJson1CreateVoiceTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteAdmChannelCommand", function() { return deserializeAws_restJson1DeleteAdmChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteApnsChannelCommand", function() { return deserializeAws_restJson1DeleteApnsChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteApnsSandboxChannelCommand", function() { return deserializeAws_restJson1DeleteApnsSandboxChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteApnsVoipChannelCommand", function() { return deserializeAws_restJson1DeleteApnsVoipChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommand", function() { return deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteAppCommand", function() { return deserializeAws_restJson1DeleteAppCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteBaiduChannelCommand", function() { return deserializeAws_restJson1DeleteBaiduChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteCampaignCommand", function() { return deserializeAws_restJson1DeleteCampaignCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteEmailChannelCommand", function() { return deserializeAws_restJson1DeleteEmailChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteEmailTemplateCommand", function() { return deserializeAws_restJson1DeleteEmailTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteEndpointCommand", function() { return deserializeAws_restJson1DeleteEndpointCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteEventStreamCommand", function() { return deserializeAws_restJson1DeleteEventStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteGcmChannelCommand", function() { return deserializeAws_restJson1DeleteGcmChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteJourneyCommand", function() { return deserializeAws_restJson1DeleteJourneyCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeletePushTemplateCommand", function() { return deserializeAws_restJson1DeletePushTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteRecommenderConfigurationCommand", function() { return deserializeAws_restJson1DeleteRecommenderConfigurationCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteSegmentCommand", function() { return deserializeAws_restJson1DeleteSegmentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteSmsChannelCommand", function() { return deserializeAws_restJson1DeleteSmsChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteSmsTemplateCommand", function() { return deserializeAws_restJson1DeleteSmsTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteUserEndpointsCommand", function() { return deserializeAws_restJson1DeleteUserEndpointsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteVoiceChannelCommand", function() { return deserializeAws_restJson1DeleteVoiceChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteVoiceTemplateCommand", function() { return deserializeAws_restJson1DeleteVoiceTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetAdmChannelCommand", function() { return deserializeAws_restJson1GetAdmChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApnsChannelCommand", function() { return deserializeAws_restJson1GetApnsChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApnsSandboxChannelCommand", function() { return deserializeAws_restJson1GetApnsSandboxChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApnsVoipChannelCommand", function() { return deserializeAws_restJson1GetApnsVoipChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApnsVoipSandboxChannelCommand", function() { return deserializeAws_restJson1GetApnsVoipSandboxChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetAppCommand", function() { return deserializeAws_restJson1GetAppCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApplicationDateRangeKpiCommand", function() { return deserializeAws_restJson1GetApplicationDateRangeKpiCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApplicationSettingsCommand", function() { return deserializeAws_restJson1GetApplicationSettingsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetAppsCommand", function() { return deserializeAws_restJson1GetAppsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetBaiduChannelCommand", function() { return deserializeAws_restJson1GetBaiduChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignCommand", function() { return deserializeAws_restJson1GetCampaignCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignActivitiesCommand", function() { return deserializeAws_restJson1GetCampaignActivitiesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignDateRangeKpiCommand", function() { return deserializeAws_restJson1GetCampaignDateRangeKpiCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignsCommand", function() { return deserializeAws_restJson1GetCampaignsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignVersionCommand", function() { return deserializeAws_restJson1GetCampaignVersionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignVersionsCommand", function() { return deserializeAws_restJson1GetCampaignVersionsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetChannelsCommand", function() { return deserializeAws_restJson1GetChannelsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetEmailChannelCommand", function() { return deserializeAws_restJson1GetEmailChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetEmailTemplateCommand", function() { return deserializeAws_restJson1GetEmailTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetEndpointCommand", function() { return deserializeAws_restJson1GetEndpointCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetEventStreamCommand", function() { return deserializeAws_restJson1GetEventStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetExportJobCommand", function() { return deserializeAws_restJson1GetExportJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetExportJobsCommand", function() { return deserializeAws_restJson1GetExportJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetGcmChannelCommand", function() { return deserializeAws_restJson1GetGcmChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetImportJobCommand", function() { return deserializeAws_restJson1GetImportJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetImportJobsCommand", function() { return deserializeAws_restJson1GetImportJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetJourneyCommand", function() { return deserializeAws_restJson1GetJourneyCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetJourneyDateRangeKpiCommand", function() { return deserializeAws_restJson1GetJourneyDateRangeKpiCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommand", function() { return deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetJourneyExecutionMetricsCommand", function() { return deserializeAws_restJson1GetJourneyExecutionMetricsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetPushTemplateCommand", function() { return deserializeAws_restJson1GetPushTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetRecommenderConfigurationCommand", function() { return deserializeAws_restJson1GetRecommenderConfigurationCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetRecommenderConfigurationsCommand", function() { return deserializeAws_restJson1GetRecommenderConfigurationsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentCommand", function() { return deserializeAws_restJson1GetSegmentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentExportJobsCommand", function() { return deserializeAws_restJson1GetSegmentExportJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentImportJobsCommand", function() { return deserializeAws_restJson1GetSegmentImportJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentsCommand", function() { return deserializeAws_restJson1GetSegmentsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentVersionCommand", function() { return deserializeAws_restJson1GetSegmentVersionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentVersionsCommand", function() { return deserializeAws_restJson1GetSegmentVersionsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSmsChannelCommand", function() { return deserializeAws_restJson1GetSmsChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSmsTemplateCommand", function() { return deserializeAws_restJson1GetSmsTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetUserEndpointsCommand", function() { return deserializeAws_restJson1GetUserEndpointsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetVoiceChannelCommand", function() { return deserializeAws_restJson1GetVoiceChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetVoiceTemplateCommand", function() { return deserializeAws_restJson1GetVoiceTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1ListJourneysCommand", function() { return deserializeAws_restJson1ListJourneysCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1ListTagsForResourceCommand", function() { return deserializeAws_restJson1ListTagsForResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1ListTemplatesCommand", function() { return deserializeAws_restJson1ListTemplatesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1ListTemplateVersionsCommand", function() { return deserializeAws_restJson1ListTemplateVersionsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PhoneNumberValidateCommand", function() { return deserializeAws_restJson1PhoneNumberValidateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PutEventsCommand", function() { return deserializeAws_restJson1PutEventsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PutEventStreamCommand", function() { return deserializeAws_restJson1PutEventStreamCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1RemoveAttributesCommand", function() { return deserializeAws_restJson1RemoveAttributesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1SendMessagesCommand", function() { return deserializeAws_restJson1SendMessagesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1SendUsersMessagesCommand", function() { return deserializeAws_restJson1SendUsersMessagesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1TagResourceCommand", function() { return deserializeAws_restJson1TagResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UntagResourceCommand", function() { return deserializeAws_restJson1UntagResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateAdmChannelCommand", function() { return deserializeAws_restJson1UpdateAdmChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateApnsChannelCommand", function() { return deserializeAws_restJson1UpdateApnsChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateApnsSandboxChannelCommand", function() { return deserializeAws_restJson1UpdateApnsSandboxChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateApnsVoipChannelCommand", function() { return deserializeAws_restJson1UpdateApnsVoipChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommand", function() { return deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateApplicationSettingsCommand", function() { return deserializeAws_restJson1UpdateApplicationSettingsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateBaiduChannelCommand", function() { return deserializeAws_restJson1UpdateBaiduChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateCampaignCommand", function() { return deserializeAws_restJson1UpdateCampaignCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateEmailChannelCommand", function() { return deserializeAws_restJson1UpdateEmailChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateEmailTemplateCommand", function() { return deserializeAws_restJson1UpdateEmailTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateEndpointCommand", function() { return deserializeAws_restJson1UpdateEndpointCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateEndpointsBatchCommand", function() { return deserializeAws_restJson1UpdateEndpointsBatchCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateGcmChannelCommand", function() { return deserializeAws_restJson1UpdateGcmChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateJourneyCommand", function() { return deserializeAws_restJson1UpdateJourneyCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateJourneyStateCommand", function() { return deserializeAws_restJson1UpdateJourneyStateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdatePushTemplateCommand", function() { return deserializeAws_restJson1UpdatePushTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateRecommenderConfigurationCommand", function() { return deserializeAws_restJson1UpdateRecommenderConfigurationCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateSegmentCommand", function() { return deserializeAws_restJson1UpdateSegmentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateSmsChannelCommand", function() { return deserializeAws_restJson1UpdateSmsChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateSmsTemplateCommand", function() { return deserializeAws_restJson1UpdateSmsTemplateCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateTemplateActiveVersionCommand", function() { return deserializeAws_restJson1UpdateTemplateActiveVersionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateVoiceChannelCommand", function() { return deserializeAws_restJson1UpdateVoiceChannelCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateVoiceTemplateCommand", function() { return deserializeAws_restJson1UpdateVoiceTemplateCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "Enk7"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var serializeAws_restJson1CreateAppCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps"; if (input.CreateApplicationRequest !== undefined) { body = serializeAws_restJson1CreateApplicationRequest(input.CreateApplicationRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1CreateCampaignCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/campaigns"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.WriteCampaignRequest !== undefined) { body = serializeAws_restJson1WriteCampaignRequest(input.WriteCampaignRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1CreateEmailTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/templates/{TemplateName}/email"; if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } if (input.EmailTemplateRequest !== undefined) { body = serializeAws_restJson1EmailTemplateRequest(input.EmailTemplateRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1CreateExportJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/jobs/export"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.ExportJobRequest !== undefined) { body = serializeAws_restJson1ExportJobRequest(input.ExportJobRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1CreateImportJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/jobs/import"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.ImportJobRequest !== undefined) { body = serializeAws_restJson1ImportJobRequest(input.ImportJobRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1CreateJourneyCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/journeys"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.WriteJourneyRequest !== undefined) { body = serializeAws_restJson1WriteJourneyRequest(input.WriteJourneyRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1CreatePushTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/templates/{TemplateName}/push"; if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } if (input.PushNotificationTemplateRequest !== undefined) { body = serializeAws_restJson1PushNotificationTemplateRequest(input.PushNotificationTemplateRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1CreateRecommenderConfigurationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/recommenders"; if (input.CreateRecommenderConfiguration !== undefined) { body = serializeAws_restJson1CreateRecommenderConfigurationShape(input.CreateRecommenderConfiguration, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1CreateSegmentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/segments"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.WriteSegmentRequest !== undefined) { body = serializeAws_restJson1WriteSegmentRequest(input.WriteSegmentRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1CreateSmsTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/templates/{TemplateName}/sms"; if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } if (input.SMSTemplateRequest !== undefined) { body = serializeAws_restJson1SMSTemplateRequest(input.SMSTemplateRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1CreateVoiceTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/templates/{TemplateName}/voice"; if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } if (input.VoiceTemplateRequest !== undefined) { body = serializeAws_restJson1VoiceTemplateRequest(input.VoiceTemplateRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteAdmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/adm"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteApnsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/apns"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteApnsSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_sandbox"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteApnsVoipChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip_sandbox"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteAppCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteBaiduChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/baidu"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteCampaignCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}"; if (input.CampaignId !== undefined) { labelValue = input.CampaignId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: CampaignId."); } resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: CampaignId."); } if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteEmailChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/email"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteEmailTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/templates/{TemplateName}/email"; if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteEndpointCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/endpoints/{EndpointId}"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.EndpointId !== undefined) { labelValue = input.EndpointId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: EndpointId."); } resolvedPath = resolvedPath.replace("{EndpointId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: EndpointId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteEventStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/eventstream"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteGcmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/gcm"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteJourneyCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}"; if (input.JourneyId !== undefined) { labelValue = input.JourneyId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: JourneyId."); } resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: JourneyId."); } if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeletePushTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/templates/{TemplateName}/push"; if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteRecommenderConfigurationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/recommenders/{RecommenderId}"; if (input.RecommenderId !== undefined) { labelValue = input.RecommenderId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: RecommenderId."); } resolvedPath = resolvedPath.replace("{RecommenderId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: RecommenderId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteSegmentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.SegmentId !== undefined) { labelValue = input.SegmentId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: SegmentId."); } resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: SegmentId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteSmsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/sms"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteSmsTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/templates/{TemplateName}/sms"; if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteUserEndpointsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/users/{UserId}"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.UserId !== undefined) { labelValue = input.UserId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: UserId."); } resolvedPath = resolvedPath.replace("{UserId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: UserId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteVoiceChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/voice"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1DeleteVoiceTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/templates/{TemplateName}/voice"; if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetAdmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/adm"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetApnsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/apns"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetApnsSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_sandbox"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetApnsVoipChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetApnsVoipSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip_sandbox"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetAppCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetApplicationDateRangeKpiCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/kpis/daterange/{KpiName}"; if (input.KpiName !== undefined) { labelValue = input.KpiName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: KpiName."); } resolvedPath = resolvedPath.replace("{KpiName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: KpiName."); } if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.StartTime !== undefined && { "start-time": (input.StartTime.toISOString().split(".")[0] + "Z").toString(), })), (input.EndTime !== undefined && { "end-time": (input.EndTime.toISOString().split(".")[0] + "Z").toString() })), (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.NextToken !== undefined && { "next-token": input.NextToken })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetApplicationSettingsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/settings"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetAppsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps"; query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Token !== undefined && { token: input.Token })), (input.PageSize !== undefined && { "page-size": input.PageSize })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetBaiduChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/baidu"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetCampaignCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.CampaignId !== undefined) { labelValue = input.CampaignId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: CampaignId."); } resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: CampaignId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetCampaignActivitiesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}/activities"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.CampaignId !== undefined) { labelValue = input.CampaignId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: CampaignId."); } resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: CampaignId."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetCampaignDateRangeKpiCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}/kpis/daterange/{KpiName}"; if (input.KpiName !== undefined) { labelValue = input.KpiName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: KpiName."); } resolvedPath = resolvedPath.replace("{KpiName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: KpiName."); } if (input.CampaignId !== undefined) { labelValue = input.CampaignId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: CampaignId."); } resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: CampaignId."); } if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.StartTime !== undefined && { "start-time": (input.StartTime.toISOString().split(".")[0] + "Z").toString(), })), (input.EndTime !== undefined && { "end-time": (input.EndTime.toISOString().split(".")[0] + "Z").toString() })), (input.PageSize !== undefined && { "page-size": input.PageSize })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetCampaignsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/campaigns"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Token !== undefined && { token: input.Token })), (input.PageSize !== undefined && { "page-size": input.PageSize })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetCampaignVersionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions/{Version}"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.Version !== undefined) { labelValue = input.Version; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: Version."); } resolvedPath = resolvedPath.replace("{Version}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: Version."); } if (input.CampaignId !== undefined) { labelValue = input.CampaignId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: CampaignId."); } resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: CampaignId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetCampaignVersionsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions"; if (input.CampaignId !== undefined) { labelValue = input.CampaignId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: CampaignId."); } resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: CampaignId."); } if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetChannelsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetEmailChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/email"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetEmailTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/templates/{TemplateName}/email"; if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetEndpointCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/endpoints/{EndpointId}"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.EndpointId !== undefined) { labelValue = input.EndpointId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: EndpointId."); } resolvedPath = resolvedPath.replace("{EndpointId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: EndpointId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetEventStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/eventstream"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetExportJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/jobs/export/{JobId}"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.JobId !== undefined) { labelValue = input.JobId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: JobId."); } resolvedPath = resolvedPath.replace("{JobId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: JobId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetExportJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/jobs/export"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetGcmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/gcm"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetImportJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/jobs/import/{JobId}"; if (input.JobId !== undefined) { labelValue = input.JobId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: JobId."); } resolvedPath = resolvedPath.replace("{JobId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: JobId."); } if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetImportJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/jobs/import"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Token !== undefined && { token: input.Token })), (input.PageSize !== undefined && { "page-size": input.PageSize })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetJourneyCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}"; if (input.JourneyId !== undefined) { labelValue = input.JourneyId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: JourneyId."); } resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: JourneyId."); } if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetJourneyDateRangeKpiCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}/kpis/daterange/{KpiName}"; if (input.JourneyId !== undefined) { labelValue = input.JourneyId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: JourneyId."); } resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: JourneyId."); } if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.KpiName !== undefined) { labelValue = input.KpiName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: KpiName."); } resolvedPath = resolvedPath.replace("{KpiName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: KpiName."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.EndTime !== undefined && { "end-time": (input.EndTime.toISOString().split(".")[0] + "Z").toString() })), (input.StartTime !== undefined && { "start-time": (input.StartTime.toISOString().split(".")[0] + "Z").toString(), })), (input.NextToken !== undefined && { "next-token": input.NextToken })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetJourneyExecutionActivityMetricsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}/activities/{JourneyActivityId}/execution-metrics"; if (input.JourneyId !== undefined) { labelValue = input.JourneyId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: JourneyId."); } resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: JourneyId."); } if (input.JourneyActivityId !== undefined) { labelValue = input.JourneyActivityId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: JourneyActivityId."); } resolvedPath = resolvedPath.replace("{JourneyActivityId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: JourneyActivityId."); } if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.NextToken !== undefined && { "next-token": input.NextToken })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetJourneyExecutionMetricsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}/execution-metrics"; if (input.JourneyId !== undefined) { labelValue = input.JourneyId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: JourneyId."); } resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: JourneyId."); } if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.NextToken !== undefined && { "next-token": input.NextToken })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetPushTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/templates/{TemplateName}/push"; if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetRecommenderConfigurationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/recommenders/{RecommenderId}"; if (input.RecommenderId !== undefined) { labelValue = input.RecommenderId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: RecommenderId."); } resolvedPath = resolvedPath.replace("{RecommenderId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: RecommenderId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetRecommenderConfigurationsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/recommenders"; query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetSegmentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}"; if (input.SegmentId !== undefined) { labelValue = input.SegmentId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: SegmentId."); } resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: SegmentId."); } if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetSegmentExportJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/export"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.SegmentId !== undefined) { labelValue = input.SegmentId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: SegmentId."); } resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: SegmentId."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetSegmentImportJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/import"; if (input.SegmentId !== undefined) { labelValue = input.SegmentId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: SegmentId."); } resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: SegmentId."); } if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetSegmentsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/segments"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetSegmentVersionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}/versions/{Version}"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.SegmentId !== undefined) { labelValue = input.SegmentId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: SegmentId."); } resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: SegmentId."); } if (input.Version !== undefined) { labelValue = input.Version; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: Version."); } resolvedPath = resolvedPath.replace("{Version}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: Version."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetSegmentVersionsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}/versions"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.SegmentId !== undefined) { labelValue = input.SegmentId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: SegmentId."); } resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: SegmentId."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Token !== undefined && { token: input.Token })), (input.PageSize !== undefined && { "page-size": input.PageSize })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetSmsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/sms"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetSmsTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/templates/{TemplateName}/sms"; if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1GetUserEndpointsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/users/{UserId}"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.UserId !== undefined) { labelValue = input.UserId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: UserId."); } resolvedPath = resolvedPath.replace("{UserId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: UserId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetVoiceChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/voice"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1GetVoiceTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/templates/{TemplateName}/voice"; if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1ListJourneysCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/apps/{ApplicationId}/journeys"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/tags/{ResourceArn}"; if (input.ResourceArn !== undefined) { labelValue = input.ResourceArn; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ResourceArn."); } resolvedPath = resolvedPath.replace("{ResourceArn}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ResourceArn."); } return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1ListTemplatesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/templates"; query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Prefix !== undefined && { prefix: input.Prefix })), (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.TemplateType !== undefined && { "template-type": input.TemplateType })), (input.PageSize !== undefined && { "page-size": input.PageSize })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1ListTemplateVersionsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/templates/{TemplateName}/{TemplateType}/versions"; if (input.TemplateType !== undefined) { labelValue = input.TemplateType; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateType."); } resolvedPath = resolvedPath.replace("{TemplateType}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateType."); } if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.PageSize !== undefined && { "page-size": input.PageSize })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "GET", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1PhoneNumberValidateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/phone/number/validate"; if (input.NumberValidateRequest !== undefined) { body = serializeAws_restJson1NumberValidateRequest(input.NumberValidateRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1PutEventsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/events"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.EventsRequest !== undefined) { body = serializeAws_restJson1EventsRequest(input.EventsRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1PutEventStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/eventstream"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.WriteEventStream !== undefined) { body = serializeAws_restJson1WriteEventStream(input.WriteEventStream, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1RemoveAttributesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/attributes/{AttributeType}"; if (input.AttributeType !== undefined) { labelValue = input.AttributeType; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: AttributeType."); } resolvedPath = resolvedPath.replace("{AttributeType}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: AttributeType."); } if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.UpdateAttributesRequest !== undefined) { body = serializeAws_restJson1UpdateAttributesRequest(input.UpdateAttributesRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1SendMessagesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/messages"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.MessageRequest !== undefined) { body = serializeAws_restJson1MessageRequest(input.MessageRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1SendUsersMessagesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/users-messages"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.SendUsersMessageRequest !== undefined) { body = serializeAws_restJson1SendUsersMessageRequest(input.SendUsersMessageRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1TagResourceCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/tags/{ResourceArn}"; if (input.ResourceArn !== undefined) { labelValue = input.ResourceArn; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ResourceArn."); } resolvedPath = resolvedPath.replace("{ResourceArn}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ResourceArn."); } if (input.TagsModel !== undefined) { body = serializeAws_restJson1TagsModel(input.TagsModel, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "POST", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UntagResourceCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "", }; resolvedPath = "/v1/tags/{ResourceArn}"; if (input.ResourceArn !== undefined) { labelValue = input.ResourceArn; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ResourceArn."); } resolvedPath = resolvedPath.replace("{ResourceArn}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ResourceArn."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) })); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "DELETE", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateAdmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/adm"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.ADMChannelRequest !== undefined) { body = serializeAws_restJson1ADMChannelRequest(input.ADMChannelRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateApnsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/apns"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.APNSChannelRequest !== undefined) { body = serializeAws_restJson1APNSChannelRequest(input.APNSChannelRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateApnsSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_sandbox"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.APNSSandboxChannelRequest !== undefined) { body = serializeAws_restJson1APNSSandboxChannelRequest(input.APNSSandboxChannelRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateApnsVoipChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.APNSVoipChannelRequest !== undefined) { body = serializeAws_restJson1APNSVoipChannelRequest(input.APNSVoipChannelRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateApnsVoipSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip_sandbox"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.APNSVoipSandboxChannelRequest !== undefined) { body = serializeAws_restJson1APNSVoipSandboxChannelRequest(input.APNSVoipSandboxChannelRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateApplicationSettingsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/settings"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.WriteApplicationSettingsRequest !== undefined) { body = serializeAws_restJson1WriteApplicationSettingsRequest(input.WriteApplicationSettingsRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateBaiduChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/baidu"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.BaiduChannelRequest !== undefined) { body = serializeAws_restJson1BaiduChannelRequest(input.BaiduChannelRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateCampaignCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}"; if (input.CampaignId !== undefined) { labelValue = input.CampaignId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: CampaignId."); } resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: CampaignId."); } if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.WriteCampaignRequest !== undefined) { body = serializeAws_restJson1WriteCampaignRequest(input.WriteCampaignRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateEmailChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/email"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.EmailChannelRequest !== undefined) { body = serializeAws_restJson1EmailChannelRequest(input.EmailChannelRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateEmailTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/templates/{TemplateName}/email"; if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CreateNewVersion !== undefined && { "create-new-version": input.CreateNewVersion.toString() })), (input.Version !== undefined && { version: input.Version })); if (input.EmailTemplateRequest !== undefined) { body = serializeAws_restJson1EmailTemplateRequest(input.EmailTemplateRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateEndpointCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/endpoints/{EndpointId}"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.EndpointId !== undefined) { labelValue = input.EndpointId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: EndpointId."); } resolvedPath = resolvedPath.replace("{EndpointId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: EndpointId."); } if (input.EndpointRequest !== undefined) { body = serializeAws_restJson1EndpointRequest(input.EndpointRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateEndpointsBatchCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/endpoints"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.EndpointBatchRequest !== undefined) { body = serializeAws_restJson1EndpointBatchRequest(input.EndpointBatchRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateGcmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/gcm"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.GCMChannelRequest !== undefined) { body = serializeAws_restJson1GCMChannelRequest(input.GCMChannelRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateJourneyCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.JourneyId !== undefined) { labelValue = input.JourneyId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: JourneyId."); } resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: JourneyId."); } if (input.WriteJourneyRequest !== undefined) { body = serializeAws_restJson1WriteJourneyRequest(input.WriteJourneyRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateJourneyStateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}/state"; if (input.JourneyId !== undefined) { labelValue = input.JourneyId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: JourneyId."); } resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: JourneyId."); } if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.JourneyStateRequest !== undefined) { body = serializeAws_restJson1JourneyStateRequest(input.JourneyStateRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdatePushTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/templates/{TemplateName}/push"; if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version })), (input.CreateNewVersion !== undefined && { "create-new-version": input.CreateNewVersion.toString() })); if (input.PushNotificationTemplateRequest !== undefined) { body = serializeAws_restJson1PushNotificationTemplateRequest(input.PushNotificationTemplateRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateRecommenderConfigurationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/recommenders/{RecommenderId}"; if (input.RecommenderId !== undefined) { labelValue = input.RecommenderId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: RecommenderId."); } resolvedPath = resolvedPath.replace("{RecommenderId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: RecommenderId."); } if (input.UpdateRecommenderConfiguration !== undefined) { body = serializeAws_restJson1UpdateRecommenderConfigurationShape(input.UpdateRecommenderConfiguration, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateSegmentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}"; if (input.SegmentId !== undefined) { labelValue = input.SegmentId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: SegmentId."); } resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: SegmentId."); } if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.WriteSegmentRequest !== undefined) { body = serializeAws_restJson1WriteSegmentRequest(input.WriteSegmentRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateSmsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/sms"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.SMSChannelRequest !== undefined) { body = serializeAws_restJson1SMSChannelRequest(input.SMSChannelRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateSmsTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/templates/{TemplateName}/sms"; if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CreateNewVersion !== undefined && { "create-new-version": input.CreateNewVersion.toString() })), (input.Version !== undefined && { version: input.Version })); if (input.SMSTemplateRequest !== undefined) { body = serializeAws_restJson1SMSTemplateRequest(input.SMSTemplateRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateTemplateActiveVersionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/templates/{TemplateName}/{TemplateType}/active-version"; if (input.TemplateType !== undefined) { labelValue = input.TemplateType; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateType."); } resolvedPath = resolvedPath.replace("{TemplateType}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateType."); } if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } if (input.TemplateActiveVersionRequest !== undefined) { body = serializeAws_restJson1TemplateActiveVersionRequest(input.TemplateActiveVersionRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateVoiceChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/apps/{ApplicationId}/channels/voice"; if (input.ApplicationId !== undefined) { labelValue = input.ApplicationId; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: ApplicationId."); } resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: ApplicationId."); } if (input.VoiceChannelRequest !== undefined) { body = serializeAws_restJson1VoiceChannelRequest(input.VoiceChannelRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, body: body, })]; } }); }); }; var serializeAws_restJson1UpdateVoiceTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: headers = { "Content-Type": "application/json", }; resolvedPath = "/v1/templates/{TemplateName}/voice"; if (input.TemplateName !== undefined) { labelValue = input.TemplateName; if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: TemplateName."); } resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue)); } else { throw new Error("No value provided for input HTTP label: TemplateName."); } query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CreateNewVersion !== undefined && { "create-new-version": input.CreateNewVersion.toString() })), (input.Version !== undefined && { version: input.Version })); if (input.VoiceTemplateRequest !== undefined) { body = serializeAws_restJson1VoiceTemplateRequest(input.VoiceTemplateRequest, context); } if (body === undefined) { body = {}; } body = JSON.stringify(body); return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({ protocol: protocol, hostname: hostname, port: port, method: "PUT", headers: headers, path: resolvedPath, query: query, body: body, })]; } }); }); }; var deserializeAws_restJson1CreateAppCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 201 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1CreateAppCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "CreateAppResponse", ApplicationResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ApplicationResponse = deserializeAws_restJson1ApplicationResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1CreateAppCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1CreateCampaignCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 201 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1CreateCampaignCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "CreateCampaignResponse", CampaignResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1CreateCampaignCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1CreateEmailTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 201 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1CreateEmailTemplateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "CreateEmailTemplateResponse", CreateTemplateMessageBody: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.CreateTemplateMessageBody = deserializeAws_restJson1CreateTemplateMessageBody(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1CreateEmailTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "TooManyRequestsException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1CreateExportJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 202 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1CreateExportJobCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "CreateExportJobResponse", ExportJobResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ExportJobResponse = deserializeAws_restJson1ExportJobResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1CreateExportJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1CreateImportJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 201 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1CreateImportJobCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "CreateImportJobResponse", ImportJobResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ImportJobResponse = deserializeAws_restJson1ImportJobResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1CreateImportJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1CreateJourneyCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 201 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1CreateJourneyCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "CreateJourneyResponse", JourneyResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1CreateJourneyCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1CreatePushTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 201 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1CreatePushTemplateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "CreatePushTemplateResponse", CreateTemplateMessageBody: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.CreateTemplateMessageBody = deserializeAws_restJson1CreateTemplateMessageBody(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1CreatePushTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "TooManyRequestsException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1CreateRecommenderConfigurationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 201 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1CreateRecommenderConfigurationCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "CreateRecommenderConfigurationResponse", RecommenderConfigurationResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.RecommenderConfigurationResponse = deserializeAws_restJson1RecommenderConfigurationResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1CreateRecommenderConfigurationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1CreateSegmentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 201 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1CreateSegmentCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "CreateSegmentResponse", SegmentResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1CreateSegmentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1CreateSmsTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 201 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1CreateSmsTemplateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "CreateSmsTemplateResponse", CreateTemplateMessageBody: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.CreateTemplateMessageBody = deserializeAws_restJson1CreateTemplateMessageBody(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1CreateSmsTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "TooManyRequestsException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1CreateVoiceTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 201 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1CreateVoiceTemplateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "CreateVoiceTemplateResponse", CreateTemplateMessageBody: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.CreateTemplateMessageBody = deserializeAws_restJson1CreateTemplateMessageBody(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1CreateVoiceTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "TooManyRequestsException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteAdmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteAdmChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteAdmChannelResponse", ADMChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ADMChannelResponse = deserializeAws_restJson1ADMChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteAdmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteApnsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteApnsChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteApnsChannelResponse", APNSChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.APNSChannelResponse = deserializeAws_restJson1APNSChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteApnsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteApnsSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteApnsSandboxChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteApnsSandboxChannelResponse", APNSSandboxChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.APNSSandboxChannelResponse = deserializeAws_restJson1APNSSandboxChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteApnsSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteApnsVoipChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteApnsVoipChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteApnsVoipChannelResponse", APNSVoipChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.APNSVoipChannelResponse = deserializeAws_restJson1APNSVoipChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteApnsVoipChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteApnsVoipSandboxChannelResponse", APNSVoipSandboxChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.APNSVoipSandboxChannelResponse = deserializeAws_restJson1APNSVoipSandboxChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteAppCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteAppCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteAppResponse", ApplicationResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ApplicationResponse = deserializeAws_restJson1ApplicationResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteAppCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteBaiduChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteBaiduChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteBaiduChannelResponse", BaiduChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.BaiduChannelResponse = deserializeAws_restJson1BaiduChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteBaiduChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteCampaignCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteCampaignCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteCampaignResponse", CampaignResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteCampaignCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteEmailChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteEmailChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteEmailChannelResponse", EmailChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.EmailChannelResponse = deserializeAws_restJson1EmailChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteEmailChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteEmailTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 202 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteEmailTemplateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteEmailTemplateResponse", MessageBody: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteEmailTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteEndpointCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 202 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteEndpointCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteEndpointResponse", EndpointResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.EndpointResponse = deserializeAws_restJson1EndpointResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteEndpointCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteEventStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteEventStreamCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteEventStreamResponse", EventStream: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.EventStream = deserializeAws_restJson1EventStream(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteEventStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteGcmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteGcmChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteGcmChannelResponse", GCMChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.GCMChannelResponse = deserializeAws_restJson1GCMChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteGcmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteJourneyCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteJourneyCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteJourneyResponse", JourneyResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteJourneyCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeletePushTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 202 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeletePushTemplateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeletePushTemplateResponse", MessageBody: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeletePushTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteRecommenderConfigurationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteRecommenderConfigurationCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteRecommenderConfigurationResponse", RecommenderConfigurationResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.RecommenderConfigurationResponse = deserializeAws_restJson1RecommenderConfigurationResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteRecommenderConfigurationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteSegmentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteSegmentCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteSegmentResponse", SegmentResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteSegmentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteSmsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteSmsChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteSmsChannelResponse", SMSChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.SMSChannelResponse = deserializeAws_restJson1SMSChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteSmsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteSmsTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 202 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteSmsTemplateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteSmsTemplateResponse", MessageBody: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteSmsTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteUserEndpointsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 202 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteUserEndpointsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteUserEndpointsResponse", EndpointsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.EndpointsResponse = deserializeAws_restJson1EndpointsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteUserEndpointsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteVoiceChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteVoiceChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteVoiceChannelResponse", VoiceChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.VoiceChannelResponse = deserializeAws_restJson1VoiceChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteVoiceChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1DeleteVoiceTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 202 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1DeleteVoiceTemplateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "DeleteVoiceTemplateResponse", MessageBody: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1DeleteVoiceTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetAdmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetAdmChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetAdmChannelResponse", ADMChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ADMChannelResponse = deserializeAws_restJson1ADMChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetAdmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetApnsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetApnsChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetApnsChannelResponse", APNSChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.APNSChannelResponse = deserializeAws_restJson1APNSChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetApnsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetApnsSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetApnsSandboxChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetApnsSandboxChannelResponse", APNSSandboxChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.APNSSandboxChannelResponse = deserializeAws_restJson1APNSSandboxChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetApnsSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetApnsVoipChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetApnsVoipChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetApnsVoipChannelResponse", APNSVoipChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.APNSVoipChannelResponse = deserializeAws_restJson1APNSVoipChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetApnsVoipChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetApnsVoipSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetApnsVoipSandboxChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetApnsVoipSandboxChannelResponse", APNSVoipSandboxChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.APNSVoipSandboxChannelResponse = deserializeAws_restJson1APNSVoipSandboxChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetApnsVoipSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetAppCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetAppCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetAppResponse", ApplicationResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ApplicationResponse = deserializeAws_restJson1ApplicationResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetAppCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetApplicationDateRangeKpiCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetApplicationDateRangeKpiCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetApplicationDateRangeKpiResponse", ApplicationDateRangeKpiResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ApplicationDateRangeKpiResponse = deserializeAws_restJson1ApplicationDateRangeKpiResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetApplicationDateRangeKpiCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetApplicationSettingsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetApplicationSettingsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetApplicationSettingsResponse", ApplicationSettingsResource: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ApplicationSettingsResource = deserializeAws_restJson1ApplicationSettingsResource(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetApplicationSettingsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetAppsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetAppsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetAppsResponse", ApplicationsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ApplicationsResponse = deserializeAws_restJson1ApplicationsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetAppsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetBaiduChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetBaiduChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetBaiduChannelResponse", BaiduChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.BaiduChannelResponse = deserializeAws_restJson1BaiduChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetBaiduChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetCampaignCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetCampaignCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetCampaignResponse", CampaignResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetCampaignCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetCampaignActivitiesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetCampaignActivitiesCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetCampaignActivitiesResponse", ActivitiesResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ActivitiesResponse = deserializeAws_restJson1ActivitiesResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetCampaignActivitiesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetCampaignDateRangeKpiCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetCampaignDateRangeKpiCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetCampaignDateRangeKpiResponse", CampaignDateRangeKpiResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.CampaignDateRangeKpiResponse = deserializeAws_restJson1CampaignDateRangeKpiResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetCampaignDateRangeKpiCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetCampaignsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetCampaignsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetCampaignsResponse", CampaignsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.CampaignsResponse = deserializeAws_restJson1CampaignsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetCampaignsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetCampaignVersionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetCampaignVersionCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetCampaignVersionResponse", CampaignResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetCampaignVersionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetCampaignVersionsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetCampaignVersionsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetCampaignVersionsResponse", CampaignsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.CampaignsResponse = deserializeAws_restJson1CampaignsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetCampaignVersionsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetChannelsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetChannelsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetChannelsResponse", ChannelsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ChannelsResponse = deserializeAws_restJson1ChannelsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetChannelsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetEmailChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetEmailChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetEmailChannelResponse", EmailChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.EmailChannelResponse = deserializeAws_restJson1EmailChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetEmailChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetEmailTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetEmailTemplateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetEmailTemplateResponse", EmailTemplateResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.EmailTemplateResponse = deserializeAws_restJson1EmailTemplateResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetEmailTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetEndpointCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetEndpointCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetEndpointResponse", EndpointResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.EndpointResponse = deserializeAws_restJson1EndpointResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetEndpointCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetEventStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetEventStreamCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetEventStreamResponse", EventStream: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.EventStream = deserializeAws_restJson1EventStream(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetEventStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetExportJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetExportJobCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetExportJobResponse", ExportJobResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ExportJobResponse = deserializeAws_restJson1ExportJobResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetExportJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetExportJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetExportJobsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetExportJobsResponse", ExportJobsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ExportJobsResponse = deserializeAws_restJson1ExportJobsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetExportJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetGcmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetGcmChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetGcmChannelResponse", GCMChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.GCMChannelResponse = deserializeAws_restJson1GCMChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetGcmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetImportJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetImportJobCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetImportJobResponse", ImportJobResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ImportJobResponse = deserializeAws_restJson1ImportJobResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetImportJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetImportJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetImportJobsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetImportJobsResponse", ImportJobsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ImportJobsResponse = deserializeAws_restJson1ImportJobsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetImportJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetJourneyCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetJourneyCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetJourneyResponse", JourneyResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetJourneyCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetJourneyDateRangeKpiCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetJourneyDateRangeKpiCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetJourneyDateRangeKpiResponse", JourneyDateRangeKpiResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.JourneyDateRangeKpiResponse = deserializeAws_restJson1JourneyDateRangeKpiResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetJourneyDateRangeKpiCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetJourneyExecutionActivityMetricsResponse", JourneyExecutionActivityMetricsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.JourneyExecutionActivityMetricsResponse = deserializeAws_restJson1JourneyExecutionActivityMetricsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetJourneyExecutionMetricsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetJourneyExecutionMetricsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetJourneyExecutionMetricsResponse", JourneyExecutionMetricsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.JourneyExecutionMetricsResponse = deserializeAws_restJson1JourneyExecutionMetricsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetJourneyExecutionMetricsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetPushTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetPushTemplateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetPushTemplateResponse", PushNotificationTemplateResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.PushNotificationTemplateResponse = deserializeAws_restJson1PushNotificationTemplateResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetPushTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetRecommenderConfigurationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetRecommenderConfigurationCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetRecommenderConfigurationResponse", RecommenderConfigurationResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.RecommenderConfigurationResponse = deserializeAws_restJson1RecommenderConfigurationResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetRecommenderConfigurationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetRecommenderConfigurationsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetRecommenderConfigurationsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetRecommenderConfigurationsResponse", ListRecommenderConfigurationsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ListRecommenderConfigurationsResponse = deserializeAws_restJson1ListRecommenderConfigurationsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetRecommenderConfigurationsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetSegmentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetSegmentCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetSegmentResponse", SegmentResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetSegmentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetSegmentExportJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetSegmentExportJobsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetSegmentExportJobsResponse", ExportJobsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ExportJobsResponse = deserializeAws_restJson1ExportJobsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetSegmentExportJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetSegmentImportJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetSegmentImportJobsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetSegmentImportJobsResponse", ImportJobsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ImportJobsResponse = deserializeAws_restJson1ImportJobsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetSegmentImportJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetSegmentsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetSegmentsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetSegmentsResponse", SegmentsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.SegmentsResponse = deserializeAws_restJson1SegmentsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetSegmentsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetSegmentVersionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetSegmentVersionCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetSegmentVersionResponse", SegmentResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetSegmentVersionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetSegmentVersionsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetSegmentVersionsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetSegmentVersionsResponse", SegmentsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.SegmentsResponse = deserializeAws_restJson1SegmentsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetSegmentVersionsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetSmsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetSmsChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetSmsChannelResponse", SMSChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.SMSChannelResponse = deserializeAws_restJson1SMSChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetSmsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetSmsTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetSmsTemplateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetSmsTemplateResponse", SMSTemplateResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.SMSTemplateResponse = deserializeAws_restJson1SMSTemplateResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetSmsTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetUserEndpointsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetUserEndpointsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetUserEndpointsResponse", EndpointsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.EndpointsResponse = deserializeAws_restJson1EndpointsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetUserEndpointsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetVoiceChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetVoiceChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetVoiceChannelResponse", VoiceChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.VoiceChannelResponse = deserializeAws_restJson1VoiceChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetVoiceChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1GetVoiceTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1GetVoiceTemplateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "GetVoiceTemplateResponse", VoiceTemplateResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.VoiceTemplateResponse = deserializeAws_restJson1VoiceTemplateResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1GetVoiceTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1ListJourneysCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1ListJourneysCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "ListJourneysResponse", JourneysResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.JourneysResponse = deserializeAws_restJson1JourneysResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1ListJourneysCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "ListTagsForResourceResponse", TagsModel: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.TagsModel = deserializeAws_restJson1TagsModel(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, parsedBody, message; var _b; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _b = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_b.body = _c.sent(), _b)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { default: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); } message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1ListTemplatesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1ListTemplatesCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "ListTemplatesResponse", TemplatesResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.TemplatesResponse = deserializeAws_restJson1TemplatesResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1ListTemplatesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "TooManyRequestsException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1ListTemplateVersionsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1ListTemplateVersionsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "ListTemplateVersionsResponse", TemplateVersionsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.TemplateVersionsResponse = deserializeAws_restJson1TemplateVersionsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1ListTemplateVersionsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1PhoneNumberValidateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1PhoneNumberValidateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "PhoneNumberValidateResponse", NumberValidateResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.NumberValidateResponse = deserializeAws_restJson1NumberValidateResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1PhoneNumberValidateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1PutEventsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 202 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1PutEventsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "PutEventsResponse", EventsResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.EventsResponse = deserializeAws_restJson1EventsResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1PutEventsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1PutEventStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1PutEventStreamCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "PutEventStreamResponse", EventStream: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.EventStream = deserializeAws_restJson1EventStream(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1PutEventStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1RemoveAttributesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1RemoveAttributesCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "RemoveAttributesResponse", AttributesResource: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.AttributesResource = deserializeAws_restJson1AttributesResource(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1RemoveAttributesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1SendMessagesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1SendMessagesCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "SendMessagesResponse", MessageResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.MessageResponse = deserializeAws_restJson1MessageResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1SendMessagesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1SendUsersMessagesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1SendUsersMessagesCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "SendUsersMessagesResponse", SendUsersMessageResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.SendUsersMessageResponse = deserializeAws_restJson1SendUsersMessageResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1SendUsersMessagesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1TagResourceCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 204 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1TagResourceCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), }; return [4 /*yield*/, collectBody(output.body, context)]; case 1: _a.sent(); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, parsedBody, message; var _b; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _b = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_b.body = _c.sent(), _b)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { default: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); } message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UntagResourceCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 204 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UntagResourceCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), }; return [4 /*yield*/, collectBody(output.body, context)]; case 1: _a.sent(); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, parsedBody, message; var _b; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _b = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_b.body = _c.sent(), _b)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { default: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); } message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateAdmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateAdmChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateAdmChannelResponse", ADMChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ADMChannelResponse = deserializeAws_restJson1ADMChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateAdmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateApnsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateApnsChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateApnsChannelResponse", APNSChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.APNSChannelResponse = deserializeAws_restJson1APNSChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateApnsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateApnsSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateApnsSandboxChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateApnsSandboxChannelResponse", APNSSandboxChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.APNSSandboxChannelResponse = deserializeAws_restJson1APNSSandboxChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateApnsSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateApnsVoipChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateApnsVoipChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateApnsVoipChannelResponse", APNSVoipChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.APNSVoipChannelResponse = deserializeAws_restJson1APNSVoipChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateApnsVoipChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateApnsVoipSandboxChannelResponse", APNSVoipSandboxChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.APNSVoipSandboxChannelResponse = deserializeAws_restJson1APNSVoipSandboxChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateApplicationSettingsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateApplicationSettingsCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateApplicationSettingsResponse", ApplicationSettingsResource: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.ApplicationSettingsResource = deserializeAws_restJson1ApplicationSettingsResource(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateApplicationSettingsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateBaiduChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateBaiduChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateBaiduChannelResponse", BaiduChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.BaiduChannelResponse = deserializeAws_restJson1BaiduChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateBaiduChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateCampaignCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateCampaignCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateCampaignResponse", CampaignResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateCampaignCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateEmailChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateEmailChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateEmailChannelResponse", EmailChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.EmailChannelResponse = deserializeAws_restJson1EmailChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateEmailChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateEmailTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 202 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateEmailTemplateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateEmailTemplateResponse", MessageBody: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateEmailTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateEndpointCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 202 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateEndpointCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateEndpointResponse", MessageBody: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateEndpointCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateEndpointsBatchCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 202 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateEndpointsBatchCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateEndpointsBatchResponse", MessageBody: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateEndpointsBatchCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateGcmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateGcmChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateGcmChannelResponse", GCMChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.GCMChannelResponse = deserializeAws_restJson1GCMChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateGcmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateJourneyCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateJourneyCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateJourneyResponse", JourneyResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateJourneyCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateJourneyStateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateJourneyStateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateJourneyStateResponse", JourneyResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateJourneyStateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdatePushTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 202 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdatePushTemplateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdatePushTemplateResponse", MessageBody: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdatePushTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateRecommenderConfigurationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateRecommenderConfigurationCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateRecommenderConfigurationResponse", RecommenderConfigurationResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.RecommenderConfigurationResponse = deserializeAws_restJson1RecommenderConfigurationResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateRecommenderConfigurationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateSegmentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateSegmentCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateSegmentResponse", SegmentResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateSegmentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateSmsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateSmsChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateSmsChannelResponse", SMSChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.SMSChannelResponse = deserializeAws_restJson1SMSChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateSmsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateSmsTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 202 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateSmsTemplateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateSmsTemplateResponse", MessageBody: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateSmsTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateTemplateActiveVersionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateTemplateActiveVersionCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateTemplateActiveVersionResponse", MessageBody: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateTemplateActiveVersionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateVoiceChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 200 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateVoiceChannelCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateVoiceChannelResponse", VoiceChannelResponse: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.VoiceChannelResponse = deserializeAws_restJson1VoiceChannelResponse(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateVoiceChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1UpdateVoiceTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode !== 202 && output.statusCode >= 400) { return [2 /*return*/, deserializeAws_restJson1UpdateVoiceTemplateCommandError(output, context)]; } contents = { $metadata: deserializeMetadata(output), __type: "UpdateVoiceTemplateResponse", MessageBody: undefined, }; return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return [2 /*return*/, Promise.resolve(contents)]; } }); }); }; var deserializeAws_restJson1UpdateVoiceTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorCode = loadRestJsonErrorCode(output, parsedOutput.body); _b = errorCode; switch (_b) { case "BadRequestException": return [3 /*break*/, 2]; case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2]; case "ForbiddenException": return [3 /*break*/, 4]; case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4]; case "InternalServerErrorException": return [3 /*break*/, 6]; case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6]; case "MethodNotAllowedException": return [3 /*break*/, 8]; case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8]; case "NotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10]; case "PayloadTooLargeException": return [3 /*break*/, 12]; case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "BadRequestException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), Message: undefined, RequestID: undefined, }; data = parsedOutput.body; if (data.Message !== undefined && data.Message !== null) { contents.Message = data.Message; } if (data.RequestID !== undefined && data.RequestID !== null) { contents.RequestID = data.RequestID; } return [2 /*return*/, contents]; }); }); }; var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "ForbiddenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), Message: undefined, RequestID: undefined, }; data = parsedOutput.body; if (data.Message !== undefined && data.Message !== null) { contents.Message = data.Message; } if (data.RequestID !== undefined && data.RequestID !== null) { contents.RequestID = data.RequestID; } return [2 /*return*/, contents]; }); }); }; var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "InternalServerErrorException", $fault: "server", $metadata: deserializeMetadata(parsedOutput), Message: undefined, RequestID: undefined, }; data = parsedOutput.body; if (data.Message !== undefined && data.Message !== null) { contents.Message = data.Message; } if (data.RequestID !== undefined && data.RequestID !== null) { contents.RequestID = data.RequestID; } return [2 /*return*/, contents]; }); }); }; var deserializeAws_restJson1MethodNotAllowedExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "MethodNotAllowedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), Message: undefined, RequestID: undefined, }; data = parsedOutput.body; if (data.Message !== undefined && data.Message !== null) { contents.Message = data.Message; } if (data.RequestID !== undefined && data.RequestID !== null) { contents.RequestID = data.RequestID; } return [2 /*return*/, contents]; }); }); }; var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "NotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), Message: undefined, RequestID: undefined, }; data = parsedOutput.body; if (data.Message !== undefined && data.Message !== null) { contents.Message = data.Message; } if (data.RequestID !== undefined && data.RequestID !== null) { contents.RequestID = data.RequestID; } return [2 /*return*/, contents]; }); }); }; var deserializeAws_restJson1PayloadTooLargeExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "PayloadTooLargeException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), Message: undefined, RequestID: undefined, }; data = parsedOutput.body; if (data.Message !== undefined && data.Message !== null) { contents.Message = data.Message; } if (data.RequestID !== undefined && data.RequestID !== null) { contents.RequestID = data.RequestID; } return [2 /*return*/, contents]; }); }); }; var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var contents, data; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { contents = { name: "TooManyRequestsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput), Message: undefined, RequestID: undefined, }; data = parsedOutput.body; if (data.Message !== undefined && data.Message !== null) { contents.Message = data.Message; } if (data.RequestID !== undefined && data.RequestID !== null) { contents.RequestID = data.RequestID; } return [2 /*return*/, contents]; }); }); }; var serializeAws_restJson1Activity = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CUSTOM !== undefined && { CUSTOM: serializeAws_restJson1CustomMessageActivity(input.CUSTOM, context) })), (input.ConditionalSplit !== undefined && { ConditionalSplit: serializeAws_restJson1ConditionalSplitActivity(input.ConditionalSplit, context), })), (input.Description !== undefined && { Description: input.Description })), (input.EMAIL !== undefined && { EMAIL: serializeAws_restJson1EmailMessageActivity(input.EMAIL, context) })), (input.Holdout !== undefined && { Holdout: serializeAws_restJson1HoldoutActivity(input.Holdout, context) })), (input.MultiCondition !== undefined && { MultiCondition: serializeAws_restJson1MultiConditionalSplitActivity(input.MultiCondition, context), })), (input.PUSH !== undefined && { PUSH: serializeAws_restJson1PushMessageActivity(input.PUSH, context) })), (input.RandomSplit !== undefined && { RandomSplit: serializeAws_restJson1RandomSplitActivity(input.RandomSplit, context), })), (input.SMS !== undefined && { SMS: serializeAws_restJson1SMSMessageActivity(input.SMS, context) })), (input.Wait !== undefined && { Wait: serializeAws_restJson1WaitActivity(input.Wait, context) })); }; var serializeAws_restJson1AddressConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BodyOverride !== undefined && { BodyOverride: input.BodyOverride })), (input.ChannelType !== undefined && { ChannelType: input.ChannelType })), (input.Context !== undefined && { Context: serializeAws_restJson1MapOf__string(input.Context, context) })), (input.RawContent !== undefined && { RawContent: input.RawContent })), (input.Substitutions !== undefined && { Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context), })), (input.TitleOverride !== undefined && { TitleOverride: input.TitleOverride })); }; var serializeAws_restJson1ADMChannelRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ClientId !== undefined && { ClientId: input.ClientId })), (input.ClientSecret !== undefined && { ClientSecret: input.ClientSecret })), (input.Enabled !== undefined && { Enabled: input.Enabled })); }; var serializeAws_restJson1ADMMessage = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Action !== undefined && { Action: input.Action })), (input.Body !== undefined && { Body: input.Body })), (input.ConsolidationKey !== undefined && { ConsolidationKey: input.ConsolidationKey })), (input.Data !== undefined && { Data: serializeAws_restJson1MapOf__string(input.Data, context) })), (input.ExpiresAfter !== undefined && { ExpiresAfter: input.ExpiresAfter })), (input.IconReference !== undefined && { IconReference: input.IconReference })), (input.ImageIconUrl !== undefined && { ImageIconUrl: input.ImageIconUrl })), (input.ImageUrl !== undefined && { ImageUrl: input.ImageUrl })), (input.MD5 !== undefined && { MD5: input.MD5 })), (input.RawContent !== undefined && { RawContent: input.RawContent })), (input.SilentPush !== undefined && { SilentPush: input.SilentPush })), (input.SmallImageIconUrl !== undefined && { SmallImageIconUrl: input.SmallImageIconUrl })), (input.Sound !== undefined && { Sound: input.Sound })), (input.Substitutions !== undefined && { Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context), })), (input.Title !== undefined && { Title: input.Title })), (input.Url !== undefined && { Url: input.Url })); }; var serializeAws_restJson1AndroidPushNotificationTemplate = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Action !== undefined && { Action: input.Action })), (input.Body !== undefined && { Body: input.Body })), (input.ImageIconUrl !== undefined && { ImageIconUrl: input.ImageIconUrl })), (input.ImageUrl !== undefined && { ImageUrl: input.ImageUrl })), (input.RawContent !== undefined && { RawContent: input.RawContent })), (input.SmallImageIconUrl !== undefined && { SmallImageIconUrl: input.SmallImageIconUrl })), (input.Sound !== undefined && { Sound: input.Sound })), (input.Title !== undefined && { Title: input.Title })), (input.Url !== undefined && { Url: input.Url })); }; var serializeAws_restJson1APNSChannelRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BundleId !== undefined && { BundleId: input.BundleId })), (input.Certificate !== undefined && { Certificate: input.Certificate })), (input.DefaultAuthenticationMethod !== undefined && { DefaultAuthenticationMethod: input.DefaultAuthenticationMethod, })), (input.Enabled !== undefined && { Enabled: input.Enabled })), (input.PrivateKey !== undefined && { PrivateKey: input.PrivateKey })), (input.TeamId !== undefined && { TeamId: input.TeamId })), (input.TokenKey !== undefined && { TokenKey: input.TokenKey })), (input.TokenKeyId !== undefined && { TokenKeyId: input.TokenKeyId })); }; var serializeAws_restJson1APNSMessage = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.APNSPushType !== undefined && { APNSPushType: input.APNSPushType })), (input.Action !== undefined && { Action: input.Action })), (input.Badge !== undefined && { Badge: input.Badge })), (input.Body !== undefined && { Body: input.Body })), (input.Category !== undefined && { Category: input.Category })), (input.CollapseId !== undefined && { CollapseId: input.CollapseId })), (input.Data !== undefined && { Data: serializeAws_restJson1MapOf__string(input.Data, context) })), (input.MediaUrl !== undefined && { MediaUrl: input.MediaUrl })), (input.PreferredAuthenticationMethod !== undefined && { PreferredAuthenticationMethod: input.PreferredAuthenticationMethod, })), (input.Priority !== undefined && { Priority: input.Priority })), (input.RawContent !== undefined && { RawContent: input.RawContent })), (input.SilentPush !== undefined && { SilentPush: input.SilentPush })), (input.Sound !== undefined && { Sound: input.Sound })), (input.Substitutions !== undefined && { Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context), })), (input.ThreadId !== undefined && { ThreadId: input.ThreadId })), (input.TimeToLive !== undefined && { TimeToLive: input.TimeToLive })), (input.Title !== undefined && { Title: input.Title })), (input.Url !== undefined && { Url: input.Url })); }; var serializeAws_restJson1APNSPushNotificationTemplate = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Action !== undefined && { Action: input.Action })), (input.Body !== undefined && { Body: input.Body })), (input.MediaUrl !== undefined && { MediaUrl: input.MediaUrl })), (input.RawContent !== undefined && { RawContent: input.RawContent })), (input.Sound !== undefined && { Sound: input.Sound })), (input.Title !== undefined && { Title: input.Title })), (input.Url !== undefined && { Url: input.Url })); }; var serializeAws_restJson1APNSSandboxChannelRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BundleId !== undefined && { BundleId: input.BundleId })), (input.Certificate !== undefined && { Certificate: input.Certificate })), (input.DefaultAuthenticationMethod !== undefined && { DefaultAuthenticationMethod: input.DefaultAuthenticationMethod, })), (input.Enabled !== undefined && { Enabled: input.Enabled })), (input.PrivateKey !== undefined && { PrivateKey: input.PrivateKey })), (input.TeamId !== undefined && { TeamId: input.TeamId })), (input.TokenKey !== undefined && { TokenKey: input.TokenKey })), (input.TokenKeyId !== undefined && { TokenKeyId: input.TokenKeyId })); }; var serializeAws_restJson1APNSVoipChannelRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BundleId !== undefined && { BundleId: input.BundleId })), (input.Certificate !== undefined && { Certificate: input.Certificate })), (input.DefaultAuthenticationMethod !== undefined && { DefaultAuthenticationMethod: input.DefaultAuthenticationMethod, })), (input.Enabled !== undefined && { Enabled: input.Enabled })), (input.PrivateKey !== undefined && { PrivateKey: input.PrivateKey })), (input.TeamId !== undefined && { TeamId: input.TeamId })), (input.TokenKey !== undefined && { TokenKey: input.TokenKey })), (input.TokenKeyId !== undefined && { TokenKeyId: input.TokenKeyId })); }; var serializeAws_restJson1APNSVoipSandboxChannelRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BundleId !== undefined && { BundleId: input.BundleId })), (input.Certificate !== undefined && { Certificate: input.Certificate })), (input.DefaultAuthenticationMethod !== undefined && { DefaultAuthenticationMethod: input.DefaultAuthenticationMethod, })), (input.Enabled !== undefined && { Enabled: input.Enabled })), (input.PrivateKey !== undefined && { PrivateKey: input.PrivateKey })), (input.TeamId !== undefined && { TeamId: input.TeamId })), (input.TokenKey !== undefined && { TokenKey: input.TokenKey })), (input.TokenKeyId !== undefined && { TokenKeyId: input.TokenKeyId })); }; var serializeAws_restJson1AttributeDimension = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AttributeType !== undefined && { AttributeType: input.AttributeType })), (input.Values !== undefined && { Values: serializeAws_restJson1ListOf__string(input.Values, context) })); }; var serializeAws_restJson1BaiduChannelRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ApiKey !== undefined && { ApiKey: input.ApiKey })), (input.Enabled !== undefined && { Enabled: input.Enabled })), (input.SecretKey !== undefined && { SecretKey: input.SecretKey })); }; var serializeAws_restJson1BaiduMessage = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Action !== undefined && { Action: input.Action })), (input.Body !== undefined && { Body: input.Body })), (input.Data !== undefined && { Data: serializeAws_restJson1MapOf__string(input.Data, context) })), (input.IconReference !== undefined && { IconReference: input.IconReference })), (input.ImageIconUrl !== undefined && { ImageIconUrl: input.ImageIconUrl })), (input.ImageUrl !== undefined && { ImageUrl: input.ImageUrl })), (input.RawContent !== undefined && { RawContent: input.RawContent })), (input.SilentPush !== undefined && { SilentPush: input.SilentPush })), (input.SmallImageIconUrl !== undefined && { SmallImageIconUrl: input.SmallImageIconUrl })), (input.Sound !== undefined && { Sound: input.Sound })), (input.Substitutions !== undefined && { Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context), })), (input.TimeToLive !== undefined && { TimeToLive: input.TimeToLive })), (input.Title !== undefined && { Title: input.Title })), (input.Url !== undefined && { Url: input.Url })); }; var serializeAws_restJson1CampaignCustomMessage = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Data !== undefined && { Data: input.Data })); }; var serializeAws_restJson1CampaignEmailMessage = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Body !== undefined && { Body: input.Body })), (input.FromAddress !== undefined && { FromAddress: input.FromAddress })), (input.HtmlBody !== undefined && { HtmlBody: input.HtmlBody })), (input.Title !== undefined && { Title: input.Title })); }; var serializeAws_restJson1CampaignEventFilter = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Dimensions !== undefined && { Dimensions: serializeAws_restJson1EventDimensions(input.Dimensions, context), })), (input.FilterType !== undefined && { FilterType: input.FilterType })); }; var serializeAws_restJson1CampaignHook = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.LambdaFunctionName !== undefined && { LambdaFunctionName: input.LambdaFunctionName })), (input.Mode !== undefined && { Mode: input.Mode })), (input.WebUrl !== undefined && { WebUrl: input.WebUrl })); }; var serializeAws_restJson1CampaignLimits = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Daily !== undefined && { Daily: input.Daily })), (input.MaximumDuration !== undefined && { MaximumDuration: input.MaximumDuration })), (input.MessagesPerSecond !== undefined && { MessagesPerSecond: input.MessagesPerSecond })), (input.Total !== undefined && { Total: input.Total })); }; var serializeAws_restJson1CampaignSmsMessage = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Body !== undefined && { Body: input.Body })), (input.MessageType !== undefined && { MessageType: input.MessageType })), (input.SenderId !== undefined && { SenderId: input.SenderId })); }; var serializeAws_restJson1Condition = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Conditions !== undefined && { Conditions: serializeAws_restJson1ListOfSimpleCondition(input.Conditions, context), })), (input.Operator !== undefined && { Operator: input.Operator })); }; var serializeAws_restJson1ConditionalSplitActivity = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Condition !== undefined && { Condition: serializeAws_restJson1Condition(input.Condition, context) })), (input.EvaluationWaitTime !== undefined && { EvaluationWaitTime: serializeAws_restJson1WaitTime(input.EvaluationWaitTime, context), })), (input.FalseActivity !== undefined && { FalseActivity: input.FalseActivity })), (input.TrueActivity !== undefined && { TrueActivity: input.TrueActivity })); }; var serializeAws_restJson1CreateApplicationRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Name !== undefined && { Name: input.Name })), (input.tags !== undefined && { tags: serializeAws_restJson1MapOf__string(input.tags, context) })); }; var serializeAws_restJson1CreateRecommenderConfigurationShape = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Attributes !== undefined && { Attributes: serializeAws_restJson1MapOf__string(input.Attributes, context), })), (input.Description !== undefined && { Description: input.Description })), (input.Name !== undefined && { Name: input.Name })), (input.RecommendationProviderIdType !== undefined && { RecommendationProviderIdType: input.RecommendationProviderIdType, })), (input.RecommendationProviderRoleArn !== undefined && { RecommendationProviderRoleArn: input.RecommendationProviderRoleArn, })), (input.RecommendationProviderUri !== undefined && { RecommendationProviderUri: input.RecommendationProviderUri, })), (input.RecommendationTransformerUri !== undefined && { RecommendationTransformerUri: input.RecommendationTransformerUri, })), (input.RecommendationsDisplayName !== undefined && { RecommendationsDisplayName: input.RecommendationsDisplayName, })), (input.RecommendationsPerMessage !== undefined && { RecommendationsPerMessage: input.RecommendationsPerMessage, })); }; var serializeAws_restJson1CustomDeliveryConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryUri !== undefined && { DeliveryUri: input.DeliveryUri })), (input.EndpointTypes !== undefined && { EndpointTypes: serializeAws_restJson1ListOf__EndpointTypesElement(input.EndpointTypes, context), })); }; var serializeAws_restJson1CustomMessageActivity = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryUri !== undefined && { DeliveryUri: input.DeliveryUri })), (input.EndpointTypes !== undefined && { EndpointTypes: serializeAws_restJson1ListOf__EndpointTypesElement(input.EndpointTypes, context), })), (input.MessageConfig !== undefined && { MessageConfig: serializeAws_restJson1JourneyCustomMessage(input.MessageConfig, context), })), (input.NextActivity !== undefined && { NextActivity: input.NextActivity })), (input.TemplateName !== undefined && { TemplateName: input.TemplateName })), (input.TemplateVersion !== undefined && { TemplateVersion: input.TemplateVersion })); }; var serializeAws_restJson1DefaultMessage = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Body !== undefined && { Body: input.Body })), (input.Substitutions !== undefined && { Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context), })); }; var serializeAws_restJson1DefaultPushNotificationMessage = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Action !== undefined && { Action: input.Action })), (input.Body !== undefined && { Body: input.Body })), (input.Data !== undefined && { Data: serializeAws_restJson1MapOf__string(input.Data, context) })), (input.SilentPush !== undefined && { SilentPush: input.SilentPush })), (input.Substitutions !== undefined && { Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context), })), (input.Title !== undefined && { Title: input.Title })), (input.Url !== undefined && { Url: input.Url })); }; var serializeAws_restJson1DefaultPushNotificationTemplate = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Action !== undefined && { Action: input.Action })), (input.Body !== undefined && { Body: input.Body })), (input.Sound !== undefined && { Sound: input.Sound })), (input.Title !== undefined && { Title: input.Title })), (input.Url !== undefined && { Url: input.Url })); }; var serializeAws_restJson1DirectMessageConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ADMMessage !== undefined && { ADMMessage: serializeAws_restJson1ADMMessage(input.ADMMessage, context) })), (input.APNSMessage !== undefined && { APNSMessage: serializeAws_restJson1APNSMessage(input.APNSMessage, context), })), (input.BaiduMessage !== undefined && { BaiduMessage: serializeAws_restJson1BaiduMessage(input.BaiduMessage, context), })), (input.DefaultMessage !== undefined && { DefaultMessage: serializeAws_restJson1DefaultMessage(input.DefaultMessage, context), })), (input.DefaultPushNotificationMessage !== undefined && { DefaultPushNotificationMessage: serializeAws_restJson1DefaultPushNotificationMessage(input.DefaultPushNotificationMessage, context), })), (input.EmailMessage !== undefined && { EmailMessage: serializeAws_restJson1EmailMessage(input.EmailMessage, context), })), (input.GCMMessage !== undefined && { GCMMessage: serializeAws_restJson1GCMMessage(input.GCMMessage, context) })), (input.SMSMessage !== undefined && { SMSMessage: serializeAws_restJson1SMSMessage(input.SMSMessage, context) })), (input.VoiceMessage !== undefined && { VoiceMessage: serializeAws_restJson1VoiceMessage(input.VoiceMessage, context), })); }; var serializeAws_restJson1EmailChannelRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ConfigurationSet !== undefined && { ConfigurationSet: input.ConfigurationSet })), (input.Enabled !== undefined && { Enabled: input.Enabled })), (input.FromAddress !== undefined && { FromAddress: input.FromAddress })), (input.Identity !== undefined && { Identity: input.Identity })), (input.RoleArn !== undefined && { RoleArn: input.RoleArn })); }; var serializeAws_restJson1EmailMessage = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Body !== undefined && { Body: input.Body })), (input.FeedbackForwardingAddress !== undefined && { FeedbackForwardingAddress: input.FeedbackForwardingAddress, })), (input.FromAddress !== undefined && { FromAddress: input.FromAddress })), (input.RawEmail !== undefined && { RawEmail: serializeAws_restJson1RawEmail(input.RawEmail, context) })), (input.ReplyToAddresses !== undefined && { ReplyToAddresses: serializeAws_restJson1ListOf__string(input.ReplyToAddresses, context), })), (input.SimpleEmail !== undefined && { SimpleEmail: serializeAws_restJson1SimpleEmail(input.SimpleEmail, context), })), (input.Substitutions !== undefined && { Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context), })); }; var serializeAws_restJson1EmailMessageActivity = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MessageConfig !== undefined && { MessageConfig: serializeAws_restJson1JourneyEmailMessage(input.MessageConfig, context), })), (input.NextActivity !== undefined && { NextActivity: input.NextActivity })), (input.TemplateName !== undefined && { TemplateName: input.TemplateName })), (input.TemplateVersion !== undefined && { TemplateVersion: input.TemplateVersion })); }; var serializeAws_restJson1EmailTemplateRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DefaultSubstitutions !== undefined && { DefaultSubstitutions: input.DefaultSubstitutions })), (input.HtmlPart !== undefined && { HtmlPart: input.HtmlPart })), (input.RecommenderId !== undefined && { RecommenderId: input.RecommenderId })), (input.Subject !== undefined && { Subject: input.Subject })), (input.TemplateDescription !== undefined && { TemplateDescription: input.TemplateDescription })), (input.TextPart !== undefined && { TextPart: input.TextPart })), (input.tags !== undefined && { tags: serializeAws_restJson1MapOf__string(input.tags, context) })); }; var serializeAws_restJson1EndpointBatchItem = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Address !== undefined && { Address: input.Address })), (input.Attributes !== undefined && { Attributes: serializeAws_restJson1MapOfListOf__string(input.Attributes, context), })), (input.ChannelType !== undefined && { ChannelType: input.ChannelType })), (input.Demographic !== undefined && { Demographic: serializeAws_restJson1EndpointDemographic(input.Demographic, context), })), (input.EffectiveDate !== undefined && { EffectiveDate: input.EffectiveDate })), (input.EndpointStatus !== undefined && { EndpointStatus: input.EndpointStatus })), (input.Id !== undefined && { Id: input.Id })), (input.Location !== undefined && { Location: serializeAws_restJson1EndpointLocation(input.Location, context) })), (input.Metrics !== undefined && { Metrics: serializeAws_restJson1MapOf__double(input.Metrics, context) })), (input.OptOut !== undefined && { OptOut: input.OptOut })), (input.RequestId !== undefined && { RequestId: input.RequestId })), (input.User !== undefined && { User: serializeAws_restJson1EndpointUser(input.User, context) })); }; var serializeAws_restJson1EndpointBatchRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Item !== undefined && { Item: serializeAws_restJson1ListOfEndpointBatchItem(input.Item, context) })); }; var serializeAws_restJson1EndpointDemographic = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AppVersion !== undefined && { AppVersion: input.AppVersion })), (input.Locale !== undefined && { Locale: input.Locale })), (input.Make !== undefined && { Make: input.Make })), (input.Model !== undefined && { Model: input.Model })), (input.ModelVersion !== undefined && { ModelVersion: input.ModelVersion })), (input.Platform !== undefined && { Platform: input.Platform })), (input.PlatformVersion !== undefined && { PlatformVersion: input.PlatformVersion })), (input.Timezone !== undefined && { Timezone: input.Timezone })); }; var serializeAws_restJson1EndpointLocation = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.City !== undefined && { City: input.City })), (input.Country !== undefined && { Country: input.Country })), (input.Latitude !== undefined && { Latitude: input.Latitude })), (input.Longitude !== undefined && { Longitude: input.Longitude })), (input.PostalCode !== undefined && { PostalCode: input.PostalCode })), (input.Region !== undefined && { Region: input.Region })); }; var serializeAws_restJson1EndpointRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Address !== undefined && { Address: input.Address })), (input.Attributes !== undefined && { Attributes: serializeAws_restJson1MapOfListOf__string(input.Attributes, context), })), (input.ChannelType !== undefined && { ChannelType: input.ChannelType })), (input.Demographic !== undefined && { Demographic: serializeAws_restJson1EndpointDemographic(input.Demographic, context), })), (input.EffectiveDate !== undefined && { EffectiveDate: input.EffectiveDate })), (input.EndpointStatus !== undefined && { EndpointStatus: input.EndpointStatus })), (input.Location !== undefined && { Location: serializeAws_restJson1EndpointLocation(input.Location, context) })), (input.Metrics !== undefined && { Metrics: serializeAws_restJson1MapOf__double(input.Metrics, context) })), (input.OptOut !== undefined && { OptOut: input.OptOut })), (input.RequestId !== undefined && { RequestId: input.RequestId })), (input.User !== undefined && { User: serializeAws_restJson1EndpointUser(input.User, context) })); }; var serializeAws_restJson1EndpointSendConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BodyOverride !== undefined && { BodyOverride: input.BodyOverride })), (input.Context !== undefined && { Context: serializeAws_restJson1MapOf__string(input.Context, context) })), (input.RawContent !== undefined && { RawContent: input.RawContent })), (input.Substitutions !== undefined && { Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context), })), (input.TitleOverride !== undefined && { TitleOverride: input.TitleOverride })); }; var serializeAws_restJson1EndpointUser = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.UserAttributes !== undefined && { UserAttributes: serializeAws_restJson1MapOfListOf__string(input.UserAttributes, context), })), (input.UserId !== undefined && { UserId: input.UserId })); }; var serializeAws_restJson1Event = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AppPackageName !== undefined && { AppPackageName: input.AppPackageName })), (input.AppTitle !== undefined && { AppTitle: input.AppTitle })), (input.AppVersionCode !== undefined && { AppVersionCode: input.AppVersionCode })), (input.Attributes !== undefined && { Attributes: serializeAws_restJson1MapOf__string(input.Attributes, context), })), (input.ClientSdkVersion !== undefined && { ClientSdkVersion: input.ClientSdkVersion })), (input.EventType !== undefined && { EventType: input.EventType })), (input.Metrics !== undefined && { Metrics: serializeAws_restJson1MapOf__double(input.Metrics, context) })), (input.SdkName !== undefined && { SdkName: input.SdkName })), (input.Session !== undefined && { Session: serializeAws_restJson1Session(input.Session, context) })), (input.Timestamp !== undefined && { Timestamp: input.Timestamp })); }; var serializeAws_restJson1EventCondition = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Dimensions !== undefined && { Dimensions: serializeAws_restJson1EventDimensions(input.Dimensions, context), })), (input.MessageActivity !== undefined && { MessageActivity: input.MessageActivity })); }; var serializeAws_restJson1EventDimensions = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Attributes !== undefined && { Attributes: serializeAws_restJson1MapOfAttributeDimension(input.Attributes, context), })), (input.EventType !== undefined && { EventType: serializeAws_restJson1SetDimension(input.EventType, context) })), (input.Metrics !== undefined && { Metrics: serializeAws_restJson1MapOfMetricDimension(input.Metrics, context) })); }; var serializeAws_restJson1EventsBatch = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Endpoint !== undefined && { Endpoint: serializeAws_restJson1PublicEndpoint(input.Endpoint, context) })), (input.Events !== undefined && { Events: serializeAws_restJson1MapOfEvent(input.Events, context) })); }; var serializeAws_restJson1EventsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BatchItem !== undefined && { BatchItem: serializeAws_restJson1MapOfEventsBatch(input.BatchItem, context), })); }; var serializeAws_restJson1ExportJobRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.RoleArn !== undefined && { RoleArn: input.RoleArn })), (input.S3UrlPrefix !== undefined && { S3UrlPrefix: input.S3UrlPrefix })), (input.SegmentId !== undefined && { SegmentId: input.SegmentId })), (input.SegmentVersion !== undefined && { SegmentVersion: input.SegmentVersion })); }; var serializeAws_restJson1GCMChannelRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ApiKey !== undefined && { ApiKey: input.ApiKey })), (input.Enabled !== undefined && { Enabled: input.Enabled })); }; var serializeAws_restJson1GCMMessage = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Action !== undefined && { Action: input.Action })), (input.Body !== undefined && { Body: input.Body })), (input.CollapseKey !== undefined && { CollapseKey: input.CollapseKey })), (input.Data !== undefined && { Data: serializeAws_restJson1MapOf__string(input.Data, context) })), (input.IconReference !== undefined && { IconReference: input.IconReference })), (input.ImageIconUrl !== undefined && { ImageIconUrl: input.ImageIconUrl })), (input.ImageUrl !== undefined && { ImageUrl: input.ImageUrl })), (input.Priority !== undefined && { Priority: input.Priority })), (input.RawContent !== undefined && { RawContent: input.RawContent })), (input.RestrictedPackageName !== undefined && { RestrictedPackageName: input.RestrictedPackageName })), (input.SilentPush !== undefined && { SilentPush: input.SilentPush })), (input.SmallImageIconUrl !== undefined && { SmallImageIconUrl: input.SmallImageIconUrl })), (input.Sound !== undefined && { Sound: input.Sound })), (input.Substitutions !== undefined && { Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context), })), (input.TimeToLive !== undefined && { TimeToLive: input.TimeToLive })), (input.Title !== undefined && { Title: input.Title })), (input.Url !== undefined && { Url: input.Url })); }; var serializeAws_restJson1GPSCoordinates = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Latitude !== undefined && { Latitude: input.Latitude })), (input.Longitude !== undefined && { Longitude: input.Longitude })); }; var serializeAws_restJson1GPSPointDimension = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Coordinates !== undefined && { Coordinates: serializeAws_restJson1GPSCoordinates(input.Coordinates, context), })), (input.RangeInKilometers !== undefined && { RangeInKilometers: input.RangeInKilometers })); }; var serializeAws_restJson1HoldoutActivity = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.NextActivity !== undefined && { NextActivity: input.NextActivity })), (input.Percentage !== undefined && { Percentage: input.Percentage })); }; var serializeAws_restJson1ImportJobRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DefineSegment !== undefined && { DefineSegment: input.DefineSegment })), (input.ExternalId !== undefined && { ExternalId: input.ExternalId })), (input.Format !== undefined && { Format: input.Format })), (input.RegisterEndpoints !== undefined && { RegisterEndpoints: input.RegisterEndpoints })), (input.RoleArn !== undefined && { RoleArn: input.RoleArn })), (input.S3Url !== undefined && { S3Url: input.S3Url })), (input.SegmentId !== undefined && { SegmentId: input.SegmentId })), (input.SegmentName !== undefined && { SegmentName: input.SegmentName })); }; var serializeAws_restJson1JourneyCustomMessage = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Data !== undefined && { Data: input.Data })); }; var serializeAws_restJson1JourneyEmailMessage = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.FromAddress !== undefined && { FromAddress: input.FromAddress })); }; var serializeAws_restJson1JourneyLimits = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DailyCap !== undefined && { DailyCap: input.DailyCap })), (input.EndpointReentryCap !== undefined && { EndpointReentryCap: input.EndpointReentryCap })), (input.MessagesPerSecond !== undefined && { MessagesPerSecond: input.MessagesPerSecond })); }; var serializeAws_restJson1JourneyPushMessage = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.TimeToLive !== undefined && { TimeToLive: input.TimeToLive })); }; var serializeAws_restJson1JourneySchedule = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EndTime !== undefined && { EndTime: input.EndTime.toISOString().split(".")[0] + "Z" })), (input.StartTime !== undefined && { StartTime: input.StartTime.toISOString().split(".")[0] + "Z" })), (input.Timezone !== undefined && { Timezone: input.Timezone })); }; var serializeAws_restJson1JourneySMSMessage = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MessageType !== undefined && { MessageType: input.MessageType })), (input.SenderId !== undefined && { SenderId: input.SenderId })); }; var serializeAws_restJson1JourneyStateRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.State !== undefined && { State: input.State })); }; var serializeAws_restJson1ListOf__EndpointTypesElement = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_restJson1ListOf__string = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_restJson1ListOfEndpointBatchItem = function (input, context) { return input.map(function (entry) { return serializeAws_restJson1EndpointBatchItem(entry, context); }); }; var serializeAws_restJson1ListOfMultiConditionalBranch = function (input, context) { return input.map(function (entry) { return serializeAws_restJson1MultiConditionalBranch(entry, context); }); }; var serializeAws_restJson1ListOfRandomSplitEntry = function (input, context) { return input.map(function (entry) { return serializeAws_restJson1RandomSplitEntry(entry, context); }); }; var serializeAws_restJson1ListOfSegmentDimensions = function (input, context) { return input.map(function (entry) { return serializeAws_restJson1SegmentDimensions(entry, context); }); }; var serializeAws_restJson1ListOfSegmentGroup = function (input, context) { return input.map(function (entry) { return serializeAws_restJson1SegmentGroup(entry, context); }); }; var serializeAws_restJson1ListOfSegmentReference = function (input, context) { return input.map(function (entry) { return serializeAws_restJson1SegmentReference(entry, context); }); }; var serializeAws_restJson1ListOfSimpleCondition = function (input, context) { return input.map(function (entry) { return serializeAws_restJson1SimpleCondition(entry, context); }); }; var serializeAws_restJson1ListOfWriteTreatmentResource = function (input, context) { return input.map(function (entry) { return serializeAws_restJson1WriteTreatmentResource(entry, context); }); }; var serializeAws_restJson1MapOf__double = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b))); }, {}); }; var serializeAws_restJson1MapOf__string = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b))); }, {}); }; var serializeAws_restJson1MapOfActivity = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1Activity(value, context), _b))); }, {}); }; var serializeAws_restJson1MapOfAddressConfiguration = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1AddressConfiguration(value, context), _b))); }, {}); }; var serializeAws_restJson1MapOfAttributeDimension = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1AttributeDimension(value, context), _b))); }, {}); }; var serializeAws_restJson1MapOfEndpointSendConfiguration = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1EndpointSendConfiguration(value, context), _b))); }, {}); }; var serializeAws_restJson1MapOfEvent = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1Event(value, context), _b))); }, {}); }; var serializeAws_restJson1MapOfEventsBatch = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1EventsBatch(value, context), _b))); }, {}); }; var serializeAws_restJson1MapOfListOf__string = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1ListOf__string(value, context), _b))); }, {}); }; var serializeAws_restJson1MapOfMetricDimension = function (input, context) { return Object.entries(input).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1MetricDimension(value, context), _b))); }, {}); }; var serializeAws_restJson1Message = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Action !== undefined && { Action: input.Action })), (input.Body !== undefined && { Body: input.Body })), (input.ImageIconUrl !== undefined && { ImageIconUrl: input.ImageIconUrl })), (input.ImageSmallIconUrl !== undefined && { ImageSmallIconUrl: input.ImageSmallIconUrl })), (input.ImageUrl !== undefined && { ImageUrl: input.ImageUrl })), (input.JsonBody !== undefined && { JsonBody: input.JsonBody })), (input.MediaUrl !== undefined && { MediaUrl: input.MediaUrl })), (input.RawContent !== undefined && { RawContent: input.RawContent })), (input.SilentPush !== undefined && { SilentPush: input.SilentPush })), (input.TimeToLive !== undefined && { TimeToLive: input.TimeToLive })), (input.Title !== undefined && { Title: input.Title })), (input.Url !== undefined && { Url: input.Url })); }; var serializeAws_restJson1MessageConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ADMMessage !== undefined && { ADMMessage: serializeAws_restJson1Message(input.ADMMessage, context) })), (input.APNSMessage !== undefined && { APNSMessage: serializeAws_restJson1Message(input.APNSMessage, context) })), (input.BaiduMessage !== undefined && { BaiduMessage: serializeAws_restJson1Message(input.BaiduMessage, context), })), (input.CustomMessage !== undefined && { CustomMessage: serializeAws_restJson1CampaignCustomMessage(input.CustomMessage, context), })), (input.DefaultMessage !== undefined && { DefaultMessage: serializeAws_restJson1Message(input.DefaultMessage, context), })), (input.EmailMessage !== undefined && { EmailMessage: serializeAws_restJson1CampaignEmailMessage(input.EmailMessage, context), })), (input.GCMMessage !== undefined && { GCMMessage: serializeAws_restJson1Message(input.GCMMessage, context) })), (input.SMSMessage !== undefined && { SMSMessage: serializeAws_restJson1CampaignSmsMessage(input.SMSMessage, context), })); }; var serializeAws_restJson1MessageRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Addresses !== undefined && { Addresses: serializeAws_restJson1MapOfAddressConfiguration(input.Addresses, context), })), (input.Context !== undefined && { Context: serializeAws_restJson1MapOf__string(input.Context, context) })), (input.Endpoints !== undefined && { Endpoints: serializeAws_restJson1MapOfEndpointSendConfiguration(input.Endpoints, context), })), (input.MessageConfiguration !== undefined && { MessageConfiguration: serializeAws_restJson1DirectMessageConfiguration(input.MessageConfiguration, context), })), (input.TemplateConfiguration !== undefined && { TemplateConfiguration: serializeAws_restJson1TemplateConfiguration(input.TemplateConfiguration, context), })), (input.TraceId !== undefined && { TraceId: input.TraceId })); }; var serializeAws_restJson1MetricDimension = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ComparisonOperator !== undefined && { ComparisonOperator: input.ComparisonOperator })), (input.Value !== undefined && { Value: input.Value })); }; var serializeAws_restJson1MultiConditionalBranch = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Condition !== undefined && { Condition: serializeAws_restJson1SimpleCondition(input.Condition, context), })), (input.NextActivity !== undefined && { NextActivity: input.NextActivity })); }; var serializeAws_restJson1MultiConditionalSplitActivity = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Branches !== undefined && { Branches: serializeAws_restJson1ListOfMultiConditionalBranch(input.Branches, context), })), (input.DefaultActivity !== undefined && { DefaultActivity: input.DefaultActivity })), (input.EvaluationWaitTime !== undefined && { EvaluationWaitTime: serializeAws_restJson1WaitTime(input.EvaluationWaitTime, context), })); }; var serializeAws_restJson1NumberValidateRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IsoCountryCode !== undefined && { IsoCountryCode: input.IsoCountryCode })), (input.PhoneNumber !== undefined && { PhoneNumber: input.PhoneNumber })); }; var serializeAws_restJson1PublicEndpoint = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Address !== undefined && { Address: input.Address })), (input.Attributes !== undefined && { Attributes: serializeAws_restJson1MapOfListOf__string(input.Attributes, context), })), (input.ChannelType !== undefined && { ChannelType: input.ChannelType })), (input.Demographic !== undefined && { Demographic: serializeAws_restJson1EndpointDemographic(input.Demographic, context), })), (input.EffectiveDate !== undefined && { EffectiveDate: input.EffectiveDate })), (input.EndpointStatus !== undefined && { EndpointStatus: input.EndpointStatus })), (input.Location !== undefined && { Location: serializeAws_restJson1EndpointLocation(input.Location, context) })), (input.Metrics !== undefined && { Metrics: serializeAws_restJson1MapOf__double(input.Metrics, context) })), (input.OptOut !== undefined && { OptOut: input.OptOut })), (input.RequestId !== undefined && { RequestId: input.RequestId })), (input.User !== undefined && { User: serializeAws_restJson1EndpointUser(input.User, context) })); }; var serializeAws_restJson1PushMessageActivity = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MessageConfig !== undefined && { MessageConfig: serializeAws_restJson1JourneyPushMessage(input.MessageConfig, context), })), (input.NextActivity !== undefined && { NextActivity: input.NextActivity })), (input.TemplateName !== undefined && { TemplateName: input.TemplateName })), (input.TemplateVersion !== undefined && { TemplateVersion: input.TemplateVersion })); }; var serializeAws_restJson1PushNotificationTemplateRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ADM !== undefined && { ADM: serializeAws_restJson1AndroidPushNotificationTemplate(input.ADM, context) })), (input.APNS !== undefined && { APNS: serializeAws_restJson1APNSPushNotificationTemplate(input.APNS, context) })), (input.Baidu !== undefined && { Baidu: serializeAws_restJson1AndroidPushNotificationTemplate(input.Baidu, context), })), (input.Default !== undefined && { Default: serializeAws_restJson1DefaultPushNotificationTemplate(input.Default, context), })), (input.DefaultSubstitutions !== undefined && { DefaultSubstitutions: input.DefaultSubstitutions })), (input.GCM !== undefined && { GCM: serializeAws_restJson1AndroidPushNotificationTemplate(input.GCM, context) })), (input.RecommenderId !== undefined && { RecommenderId: input.RecommenderId })), (input.TemplateDescription !== undefined && { TemplateDescription: input.TemplateDescription })), (input.tags !== undefined && { tags: serializeAws_restJson1MapOf__string(input.tags, context) })); }; var serializeAws_restJson1QuietTime = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.End !== undefined && { End: input.End })), (input.Start !== undefined && { Start: input.Start })); }; var serializeAws_restJson1RandomSplitActivity = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Branches !== undefined && { Branches: serializeAws_restJson1ListOfRandomSplitEntry(input.Branches, context), })); }; var serializeAws_restJson1RandomSplitEntry = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.NextActivity !== undefined && { NextActivity: input.NextActivity })), (input.Percentage !== undefined && { Percentage: input.Percentage })); }; var serializeAws_restJson1RawEmail = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Data !== undefined && { Data: context.base64Encoder(input.Data) })); }; var serializeAws_restJson1RecencyDimension = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Duration !== undefined && { Duration: input.Duration })), (input.RecencyType !== undefined && { RecencyType: input.RecencyType })); }; var serializeAws_restJson1Schedule = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EndTime !== undefined && { EndTime: input.EndTime })), (input.EventFilter !== undefined && { EventFilter: serializeAws_restJson1CampaignEventFilter(input.EventFilter, context), })), (input.Frequency !== undefined && { Frequency: input.Frequency })), (input.IsLocalTime !== undefined && { IsLocalTime: input.IsLocalTime })), (input.QuietTime !== undefined && { QuietTime: serializeAws_restJson1QuietTime(input.QuietTime, context) })), (input.StartTime !== undefined && { StartTime: input.StartTime })), (input.Timezone !== undefined && { Timezone: input.Timezone })); }; var serializeAws_restJson1SegmentBehaviors = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Recency !== undefined && { Recency: serializeAws_restJson1RecencyDimension(input.Recency, context) })); }; var serializeAws_restJson1SegmentCondition = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.SegmentId !== undefined && { SegmentId: input.SegmentId })); }; var serializeAws_restJson1SegmentDemographics = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AppVersion !== undefined && { AppVersion: serializeAws_restJson1SetDimension(input.AppVersion, context), })), (input.Channel !== undefined && { Channel: serializeAws_restJson1SetDimension(input.Channel, context) })), (input.DeviceType !== undefined && { DeviceType: serializeAws_restJson1SetDimension(input.DeviceType, context), })), (input.Make !== undefined && { Make: serializeAws_restJson1SetDimension(input.Make, context) })), (input.Model !== undefined && { Model: serializeAws_restJson1SetDimension(input.Model, context) })), (input.Platform !== undefined && { Platform: serializeAws_restJson1SetDimension(input.Platform, context) })); }; var serializeAws_restJson1SegmentDimensions = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Attributes !== undefined && { Attributes: serializeAws_restJson1MapOfAttributeDimension(input.Attributes, context), })), (input.Behavior !== undefined && { Behavior: serializeAws_restJson1SegmentBehaviors(input.Behavior, context) })), (input.Demographic !== undefined && { Demographic: serializeAws_restJson1SegmentDemographics(input.Demographic, context), })), (input.Location !== undefined && { Location: serializeAws_restJson1SegmentLocation(input.Location, context) })), (input.Metrics !== undefined && { Metrics: serializeAws_restJson1MapOfMetricDimension(input.Metrics, context) })), (input.UserAttributes !== undefined && { UserAttributes: serializeAws_restJson1MapOfAttributeDimension(input.UserAttributes, context), })); }; var serializeAws_restJson1SegmentGroup = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Dimensions !== undefined && { Dimensions: serializeAws_restJson1ListOfSegmentDimensions(input.Dimensions, context), })), (input.SourceSegments !== undefined && { SourceSegments: serializeAws_restJson1ListOfSegmentReference(input.SourceSegments, context), })), (input.SourceType !== undefined && { SourceType: input.SourceType })), (input.Type !== undefined && { Type: input.Type })); }; var serializeAws_restJson1SegmentGroupList = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Groups !== undefined && { Groups: serializeAws_restJson1ListOfSegmentGroup(input.Groups, context) })), (input.Include !== undefined && { Include: input.Include })); }; var serializeAws_restJson1SegmentLocation = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Country !== undefined && { Country: serializeAws_restJson1SetDimension(input.Country, context) })), (input.GPSPoint !== undefined && { GPSPoint: serializeAws_restJson1GPSPointDimension(input.GPSPoint, context) })); }; var serializeAws_restJson1SegmentReference = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Id !== undefined && { Id: input.Id })), (input.Version !== undefined && { Version: input.Version })); }; var serializeAws_restJson1SendUsersMessageRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Context !== undefined && { Context: serializeAws_restJson1MapOf__string(input.Context, context) })), (input.MessageConfiguration !== undefined && { MessageConfiguration: serializeAws_restJson1DirectMessageConfiguration(input.MessageConfiguration, context), })), (input.TemplateConfiguration !== undefined && { TemplateConfiguration: serializeAws_restJson1TemplateConfiguration(input.TemplateConfiguration, context), })), (input.TraceId !== undefined && { TraceId: input.TraceId })), (input.Users !== undefined && { Users: serializeAws_restJson1MapOfEndpointSendConfiguration(input.Users, context), })); }; var serializeAws_restJson1Session = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Duration !== undefined && { Duration: input.Duration })), (input.Id !== undefined && { Id: input.Id })), (input.StartTimestamp !== undefined && { StartTimestamp: input.StartTimestamp })), (input.StopTimestamp !== undefined && { StopTimestamp: input.StopTimestamp })); }; var serializeAws_restJson1SetDimension = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DimensionType !== undefined && { DimensionType: input.DimensionType })), (input.Values !== undefined && { Values: serializeAws_restJson1ListOf__string(input.Values, context) })); }; var serializeAws_restJson1SimpleCondition = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EventCondition !== undefined && { EventCondition: serializeAws_restJson1EventCondition(input.EventCondition, context), })), (input.SegmentCondition !== undefined && { SegmentCondition: serializeAws_restJson1SegmentCondition(input.SegmentCondition, context), })), (input.SegmentDimensions !== undefined && { segmentDimensions: serializeAws_restJson1SegmentDimensions(input.SegmentDimensions, context), })); }; var serializeAws_restJson1SimpleEmail = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.HtmlPart !== undefined && { HtmlPart: serializeAws_restJson1SimpleEmailPart(input.HtmlPart, context) })), (input.Subject !== undefined && { Subject: serializeAws_restJson1SimpleEmailPart(input.Subject, context) })), (input.TextPart !== undefined && { TextPart: serializeAws_restJson1SimpleEmailPart(input.TextPart, context) })); }; var serializeAws_restJson1SimpleEmailPart = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Charset !== undefined && { Charset: input.Charset })), (input.Data !== undefined && { Data: input.Data })); }; var serializeAws_restJson1SMSChannelRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Enabled !== undefined && { Enabled: input.Enabled })), (input.SenderId !== undefined && { SenderId: input.SenderId })), (input.ShortCode !== undefined && { ShortCode: input.ShortCode })); }; var serializeAws_restJson1SMSMessage = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Body !== undefined && { Body: input.Body })), (input.Keyword !== undefined && { Keyword: input.Keyword })), (input.MediaUrl !== undefined && { MediaUrl: input.MediaUrl })), (input.MessageType !== undefined && { MessageType: input.MessageType })), (input.OriginationNumber !== undefined && { OriginationNumber: input.OriginationNumber })), (input.SenderId !== undefined && { SenderId: input.SenderId })), (input.Substitutions !== undefined && { Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context), })); }; var serializeAws_restJson1SMSMessageActivity = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MessageConfig !== undefined && { MessageConfig: serializeAws_restJson1JourneySMSMessage(input.MessageConfig, context), })), (input.NextActivity !== undefined && { NextActivity: input.NextActivity })), (input.TemplateName !== undefined && { TemplateName: input.TemplateName })), (input.TemplateVersion !== undefined && { TemplateVersion: input.TemplateVersion })); }; var serializeAws_restJson1SMSTemplateRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Body !== undefined && { Body: input.Body })), (input.DefaultSubstitutions !== undefined && { DefaultSubstitutions: input.DefaultSubstitutions })), (input.RecommenderId !== undefined && { RecommenderId: input.RecommenderId })), (input.TemplateDescription !== undefined && { TemplateDescription: input.TemplateDescription })), (input.tags !== undefined && { tags: serializeAws_restJson1MapOf__string(input.tags, context) })); }; var serializeAws_restJson1StartCondition = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Description !== undefined && { Description: input.Description })), (input.SegmentStartCondition !== undefined && { SegmentStartCondition: serializeAws_restJson1SegmentCondition(input.SegmentStartCondition, context), })); }; var serializeAws_restJson1TagsModel = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.tags !== undefined && { tags: serializeAws_restJson1MapOf__string(input.tags, context) })); }; var serializeAws_restJson1Template = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Name !== undefined && { Name: input.Name })), (input.Version !== undefined && { Version: input.Version })); }; var serializeAws_restJson1TemplateActiveVersionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { Version: input.Version })); }; var serializeAws_restJson1TemplateConfiguration = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EmailTemplate !== undefined && { EmailTemplate: serializeAws_restJson1Template(input.EmailTemplate, context), })), (input.PushTemplate !== undefined && { PushTemplate: serializeAws_restJson1Template(input.PushTemplate, context), })), (input.SMSTemplate !== undefined && { SMSTemplate: serializeAws_restJson1Template(input.SMSTemplate, context) })), (input.VoiceTemplate !== undefined && { VoiceTemplate: serializeAws_restJson1Template(input.VoiceTemplate, context), })); }; var serializeAws_restJson1UpdateAttributesRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Blacklist !== undefined && { Blacklist: serializeAws_restJson1ListOf__string(input.Blacklist, context) })); }; var serializeAws_restJson1UpdateRecommenderConfigurationShape = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Attributes !== undefined && { Attributes: serializeAws_restJson1MapOf__string(input.Attributes, context), })), (input.Description !== undefined && { Description: input.Description })), (input.Name !== undefined && { Name: input.Name })), (input.RecommendationProviderIdType !== undefined && { RecommendationProviderIdType: input.RecommendationProviderIdType, })), (input.RecommendationProviderRoleArn !== undefined && { RecommendationProviderRoleArn: input.RecommendationProviderRoleArn, })), (input.RecommendationProviderUri !== undefined && { RecommendationProviderUri: input.RecommendationProviderUri, })), (input.RecommendationTransformerUri !== undefined && { RecommendationTransformerUri: input.RecommendationTransformerUri, })), (input.RecommendationsDisplayName !== undefined && { RecommendationsDisplayName: input.RecommendationsDisplayName, })), (input.RecommendationsPerMessage !== undefined && { RecommendationsPerMessage: input.RecommendationsPerMessage, })); }; var serializeAws_restJson1VoiceChannelRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Enabled !== undefined && { Enabled: input.Enabled })); }; var serializeAws_restJson1VoiceMessage = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Body !== undefined && { Body: input.Body })), (input.LanguageCode !== undefined && { LanguageCode: input.LanguageCode })), (input.OriginationNumber !== undefined && { OriginationNumber: input.OriginationNumber })), (input.Substitutions !== undefined && { Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context), })), (input.VoiceId !== undefined && { VoiceId: input.VoiceId })); }; var serializeAws_restJson1VoiceTemplateRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Body !== undefined && { Body: input.Body })), (input.DefaultSubstitutions !== undefined && { DefaultSubstitutions: input.DefaultSubstitutions })), (input.LanguageCode !== undefined && { LanguageCode: input.LanguageCode })), (input.TemplateDescription !== undefined && { TemplateDescription: input.TemplateDescription })), (input.VoiceId !== undefined && { VoiceId: input.VoiceId })), (input.tags !== undefined && { tags: serializeAws_restJson1MapOf__string(input.tags, context) })); }; var serializeAws_restJson1WaitActivity = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.NextActivity !== undefined && { NextActivity: input.NextActivity })), (input.WaitTime !== undefined && { WaitTime: serializeAws_restJson1WaitTime(input.WaitTime, context) })); }; var serializeAws_restJson1WaitTime = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.WaitFor !== undefined && { WaitFor: input.WaitFor })), (input.WaitUntil !== undefined && { WaitUntil: input.WaitUntil })); }; var serializeAws_restJson1WriteApplicationSettingsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CampaignHook !== undefined && { CampaignHook: serializeAws_restJson1CampaignHook(input.CampaignHook, context), })), (input.CloudWatchMetricsEnabled !== undefined && { CloudWatchMetricsEnabled: input.CloudWatchMetricsEnabled })), (input.Limits !== undefined && { Limits: serializeAws_restJson1CampaignLimits(input.Limits, context) })), (input.QuietTime !== undefined && { QuietTime: serializeAws_restJson1QuietTime(input.QuietTime, context) })); }; var serializeAws_restJson1WriteCampaignRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AdditionalTreatments !== undefined && { AdditionalTreatments: serializeAws_restJson1ListOfWriteTreatmentResource(input.AdditionalTreatments, context), })), (input.CustomDeliveryConfiguration !== undefined && { CustomDeliveryConfiguration: serializeAws_restJson1CustomDeliveryConfiguration(input.CustomDeliveryConfiguration, context), })), (input.Description !== undefined && { Description: input.Description })), (input.HoldoutPercent !== undefined && { HoldoutPercent: input.HoldoutPercent })), (input.Hook !== undefined && { Hook: serializeAws_restJson1CampaignHook(input.Hook, context) })), (input.IsPaused !== undefined && { IsPaused: input.IsPaused })), (input.Limits !== undefined && { Limits: serializeAws_restJson1CampaignLimits(input.Limits, context) })), (input.MessageConfiguration !== undefined && { MessageConfiguration: serializeAws_restJson1MessageConfiguration(input.MessageConfiguration, context), })), (input.Name !== undefined && { Name: input.Name })), (input.Schedule !== undefined && { Schedule: serializeAws_restJson1Schedule(input.Schedule, context) })), (input.SegmentId !== undefined && { SegmentId: input.SegmentId })), (input.SegmentVersion !== undefined && { SegmentVersion: input.SegmentVersion })), (input.TemplateConfiguration !== undefined && { TemplateConfiguration: serializeAws_restJson1TemplateConfiguration(input.TemplateConfiguration, context), })), (input.TreatmentDescription !== undefined && { TreatmentDescription: input.TreatmentDescription })), (input.TreatmentName !== undefined && { TreatmentName: input.TreatmentName })), (input.tags !== undefined && { tags: serializeAws_restJson1MapOf__string(input.tags, context) })); }; var serializeAws_restJson1WriteEventStream = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DestinationStreamArn !== undefined && { DestinationStreamArn: input.DestinationStreamArn })), (input.RoleArn !== undefined && { RoleArn: input.RoleArn })); }; var serializeAws_restJson1WriteJourneyRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Activities !== undefined && { Activities: serializeAws_restJson1MapOfActivity(input.Activities, context), })), (input.CreationDate !== undefined && { CreationDate: input.CreationDate })), (input.LastModifiedDate !== undefined && { LastModifiedDate: input.LastModifiedDate })), (input.Limits !== undefined && { Limits: serializeAws_restJson1JourneyLimits(input.Limits, context) })), (input.LocalTime !== undefined && { LocalTime: input.LocalTime })), (input.Name !== undefined && { Name: input.Name })), (input.QuietTime !== undefined && { QuietTime: serializeAws_restJson1QuietTime(input.QuietTime, context) })), (input.RefreshFrequency !== undefined && { RefreshFrequency: input.RefreshFrequency })), (input.Schedule !== undefined && { Schedule: serializeAws_restJson1JourneySchedule(input.Schedule, context) })), (input.StartActivity !== undefined && { StartActivity: input.StartActivity })), (input.StartCondition !== undefined && { StartCondition: serializeAws_restJson1StartCondition(input.StartCondition, context), })), (input.State !== undefined && { State: input.State })); }; var serializeAws_restJson1WriteSegmentRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Dimensions !== undefined && { Dimensions: serializeAws_restJson1SegmentDimensions(input.Dimensions, context), })), (input.Name !== undefined && { Name: input.Name })), (input.SegmentGroups !== undefined && { SegmentGroups: serializeAws_restJson1SegmentGroupList(input.SegmentGroups, context), })), (input.tags !== undefined && { tags: serializeAws_restJson1MapOf__string(input.tags, context) })); }; var serializeAws_restJson1WriteTreatmentResource = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CustomDeliveryConfiguration !== undefined && { CustomDeliveryConfiguration: serializeAws_restJson1CustomDeliveryConfiguration(input.CustomDeliveryConfiguration, context), })), (input.MessageConfiguration !== undefined && { MessageConfiguration: serializeAws_restJson1MessageConfiguration(input.MessageConfiguration, context), })), (input.Schedule !== undefined && { Schedule: serializeAws_restJson1Schedule(input.Schedule, context) })), (input.SizePercent !== undefined && { SizePercent: input.SizePercent })), (input.TemplateConfiguration !== undefined && { TemplateConfiguration: serializeAws_restJson1TemplateConfiguration(input.TemplateConfiguration, context), })), (input.TreatmentDescription !== undefined && { TreatmentDescription: input.TreatmentDescription })), (input.TreatmentName !== undefined && { TreatmentName: input.TreatmentName })); }; var deserializeAws_restJson1ActivitiesResponse = function (output, context) { return { __type: "ActivitiesResponse", Item: output.Item !== undefined && output.Item !== null ? deserializeAws_restJson1ListOfActivityResponse(output.Item, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_restJson1Activity = function (output, context) { return { __type: "Activity", CUSTOM: output.CUSTOM !== undefined && output.CUSTOM !== null ? deserializeAws_restJson1CustomMessageActivity(output.CUSTOM, context) : undefined, ConditionalSplit: output.ConditionalSplit !== undefined && output.ConditionalSplit !== null ? deserializeAws_restJson1ConditionalSplitActivity(output.ConditionalSplit, context) : undefined, Description: output.Description !== undefined && output.Description !== null ? output.Description : undefined, EMAIL: output.EMAIL !== undefined && output.EMAIL !== null ? deserializeAws_restJson1EmailMessageActivity(output.EMAIL, context) : undefined, Holdout: output.Holdout !== undefined && output.Holdout !== null ? deserializeAws_restJson1HoldoutActivity(output.Holdout, context) : undefined, MultiCondition: output.MultiCondition !== undefined && output.MultiCondition !== null ? deserializeAws_restJson1MultiConditionalSplitActivity(output.MultiCondition, context) : undefined, PUSH: output.PUSH !== undefined && output.PUSH !== null ? deserializeAws_restJson1PushMessageActivity(output.PUSH, context) : undefined, RandomSplit: output.RandomSplit !== undefined && output.RandomSplit !== null ? deserializeAws_restJson1RandomSplitActivity(output.RandomSplit, context) : undefined, SMS: output.SMS !== undefined && output.SMS !== null ? deserializeAws_restJson1SMSMessageActivity(output.SMS, context) : undefined, Wait: output.Wait !== undefined && output.Wait !== null ? deserializeAws_restJson1WaitActivity(output.Wait, context) : undefined, }; }; var deserializeAws_restJson1ActivityResponse = function (output, context) { return { __type: "ActivityResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, CampaignId: output.CampaignId !== undefined && output.CampaignId !== null ? output.CampaignId : undefined, End: output.End !== undefined && output.End !== null ? output.End : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, Result: output.Result !== undefined && output.Result !== null ? output.Result : undefined, ScheduledStart: output.ScheduledStart !== undefined && output.ScheduledStart !== null ? output.ScheduledStart : undefined, Start: output.Start !== undefined && output.Start !== null ? output.Start : undefined, State: output.State !== undefined && output.State !== null ? output.State : undefined, SuccessfulEndpointCount: output.SuccessfulEndpointCount !== undefined && output.SuccessfulEndpointCount !== null ? output.SuccessfulEndpointCount : undefined, TimezonesCompletedCount: output.TimezonesCompletedCount !== undefined && output.TimezonesCompletedCount !== null ? output.TimezonesCompletedCount : undefined, TimezonesTotalCount: output.TimezonesTotalCount !== undefined && output.TimezonesTotalCount !== null ? output.TimezonesTotalCount : undefined, TotalEndpointCount: output.TotalEndpointCount !== undefined && output.TotalEndpointCount !== null ? output.TotalEndpointCount : undefined, TreatmentId: output.TreatmentId !== undefined && output.TreatmentId !== null ? output.TreatmentId : undefined, }; }; var deserializeAws_restJson1ADMChannelResponse = function (output, context) { return { __type: "ADMChannelResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined, HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined, LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, }; }; var deserializeAws_restJson1AndroidPushNotificationTemplate = function (output, context) { return { __type: "AndroidPushNotificationTemplate", Action: output.Action !== undefined && output.Action !== null ? output.Action : undefined, Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined, ImageIconUrl: output.ImageIconUrl !== undefined && output.ImageIconUrl !== null ? output.ImageIconUrl : undefined, ImageUrl: output.ImageUrl !== undefined && output.ImageUrl !== null ? output.ImageUrl : undefined, RawContent: output.RawContent !== undefined && output.RawContent !== null ? output.RawContent : undefined, SmallImageIconUrl: output.SmallImageIconUrl !== undefined && output.SmallImageIconUrl !== null ? output.SmallImageIconUrl : undefined, Sound: output.Sound !== undefined && output.Sound !== null ? output.Sound : undefined, Title: output.Title !== undefined && output.Title !== null ? output.Title : undefined, Url: output.Url !== undefined && output.Url !== null ? output.Url : undefined, }; }; var deserializeAws_restJson1APNSChannelResponse = function (output, context) { return { __type: "APNSChannelResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, DefaultAuthenticationMethod: output.DefaultAuthenticationMethod !== undefined && output.DefaultAuthenticationMethod !== null ? output.DefaultAuthenticationMethod : undefined, Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined, HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined, HasTokenKey: output.HasTokenKey !== undefined && output.HasTokenKey !== null ? output.HasTokenKey : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined, LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, }; }; var deserializeAws_restJson1APNSPushNotificationTemplate = function (output, context) { return { __type: "APNSPushNotificationTemplate", Action: output.Action !== undefined && output.Action !== null ? output.Action : undefined, Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined, MediaUrl: output.MediaUrl !== undefined && output.MediaUrl !== null ? output.MediaUrl : undefined, RawContent: output.RawContent !== undefined && output.RawContent !== null ? output.RawContent : undefined, Sound: output.Sound !== undefined && output.Sound !== null ? output.Sound : undefined, Title: output.Title !== undefined && output.Title !== null ? output.Title : undefined, Url: output.Url !== undefined && output.Url !== null ? output.Url : undefined, }; }; var deserializeAws_restJson1APNSSandboxChannelResponse = function (output, context) { return { __type: "APNSSandboxChannelResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, DefaultAuthenticationMethod: output.DefaultAuthenticationMethod !== undefined && output.DefaultAuthenticationMethod !== null ? output.DefaultAuthenticationMethod : undefined, Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined, HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined, HasTokenKey: output.HasTokenKey !== undefined && output.HasTokenKey !== null ? output.HasTokenKey : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined, LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, }; }; var deserializeAws_restJson1APNSVoipChannelResponse = function (output, context) { return { __type: "APNSVoipChannelResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, DefaultAuthenticationMethod: output.DefaultAuthenticationMethod !== undefined && output.DefaultAuthenticationMethod !== null ? output.DefaultAuthenticationMethod : undefined, Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined, HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined, HasTokenKey: output.HasTokenKey !== undefined && output.HasTokenKey !== null ? output.HasTokenKey : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined, LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, }; }; var deserializeAws_restJson1APNSVoipSandboxChannelResponse = function (output, context) { return { __type: "APNSVoipSandboxChannelResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, DefaultAuthenticationMethod: output.DefaultAuthenticationMethod !== undefined && output.DefaultAuthenticationMethod !== null ? output.DefaultAuthenticationMethod : undefined, Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined, HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined, HasTokenKey: output.HasTokenKey !== undefined && output.HasTokenKey !== null ? output.HasTokenKey : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined, LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, }; }; var deserializeAws_restJson1ApplicationDateRangeKpiResponse = function (output, context) { return { __type: "ApplicationDateRangeKpiResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(output.EndTime) : undefined, KpiName: output.KpiName !== undefined && output.KpiName !== null ? output.KpiName : undefined, KpiResult: output.KpiResult !== undefined && output.KpiResult !== null ? deserializeAws_restJson1BaseKpiResult(output.KpiResult, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, StartTime: output.StartTime !== undefined && output.StartTime !== null ? new Date(output.StartTime) : undefined, }; }; var deserializeAws_restJson1ApplicationResponse = function (output, context) { return { __type: "ApplicationResponse", Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, tags: output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined, }; }; var deserializeAws_restJson1ApplicationSettingsResource = function (output, context) { return { __type: "ApplicationSettingsResource", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, CampaignHook: output.CampaignHook !== undefined && output.CampaignHook !== null ? deserializeAws_restJson1CampaignHook(output.CampaignHook, context) : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, Limits: output.Limits !== undefined && output.Limits !== null ? deserializeAws_restJson1CampaignLimits(output.Limits, context) : undefined, QuietTime: output.QuietTime !== undefined && output.QuietTime !== null ? deserializeAws_restJson1QuietTime(output.QuietTime, context) : undefined, }; }; var deserializeAws_restJson1ApplicationsResponse = function (output, context) { return { __type: "ApplicationsResponse", Item: output.Item !== undefined && output.Item !== null ? deserializeAws_restJson1ListOfApplicationResponse(output.Item, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_restJson1AttributeDimension = function (output, context) { return { __type: "AttributeDimension", AttributeType: output.AttributeType !== undefined && output.AttributeType !== null ? output.AttributeType : undefined, Values: output.Values !== undefined && output.Values !== null ? deserializeAws_restJson1ListOf__string(output.Values, context) : undefined, }; }; var deserializeAws_restJson1AttributesResource = function (output, context) { return { __type: "AttributesResource", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, AttributeType: output.AttributeType !== undefined && output.AttributeType !== null ? output.AttributeType : undefined, Attributes: output.Attributes !== undefined && output.Attributes !== null ? deserializeAws_restJson1ListOf__string(output.Attributes, context) : undefined, }; }; var deserializeAws_restJson1BaiduChannelResponse = function (output, context) { return { __type: "BaiduChannelResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, Credential: output.Credential !== undefined && output.Credential !== null ? output.Credential : undefined, Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined, HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined, LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, }; }; var deserializeAws_restJson1BaseKpiResult = function (output, context) { return { __type: "BaseKpiResult", Rows: output.Rows !== undefined && output.Rows !== null ? deserializeAws_restJson1ListOfResultRow(output.Rows, context) : undefined, }; }; var deserializeAws_restJson1CampaignCustomMessage = function (output, context) { return { __type: "CampaignCustomMessage", Data: output.Data !== undefined && output.Data !== null ? output.Data : undefined, }; }; var deserializeAws_restJson1CampaignDateRangeKpiResponse = function (output, context) { return { __type: "CampaignDateRangeKpiResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, CampaignId: output.CampaignId !== undefined && output.CampaignId !== null ? output.CampaignId : undefined, EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(output.EndTime) : undefined, KpiName: output.KpiName !== undefined && output.KpiName !== null ? output.KpiName : undefined, KpiResult: output.KpiResult !== undefined && output.KpiResult !== null ? deserializeAws_restJson1BaseKpiResult(output.KpiResult, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, StartTime: output.StartTime !== undefined && output.StartTime !== null ? new Date(output.StartTime) : undefined, }; }; var deserializeAws_restJson1CampaignEmailMessage = function (output, context) { return { __type: "CampaignEmailMessage", Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined, FromAddress: output.FromAddress !== undefined && output.FromAddress !== null ? output.FromAddress : undefined, HtmlBody: output.HtmlBody !== undefined && output.HtmlBody !== null ? output.HtmlBody : undefined, Title: output.Title !== undefined && output.Title !== null ? output.Title : undefined, }; }; var deserializeAws_restJson1CampaignEventFilter = function (output, context) { return { __type: "CampaignEventFilter", Dimensions: output.Dimensions !== undefined && output.Dimensions !== null ? deserializeAws_restJson1EventDimensions(output.Dimensions, context) : undefined, FilterType: output.FilterType !== undefined && output.FilterType !== null ? output.FilterType : undefined, }; }; var deserializeAws_restJson1CampaignHook = function (output, context) { return { __type: "CampaignHook", LambdaFunctionName: output.LambdaFunctionName !== undefined && output.LambdaFunctionName !== null ? output.LambdaFunctionName : undefined, Mode: output.Mode !== undefined && output.Mode !== null ? output.Mode : undefined, WebUrl: output.WebUrl !== undefined && output.WebUrl !== null ? output.WebUrl : undefined, }; }; var deserializeAws_restJson1CampaignLimits = function (output, context) { return { __type: "CampaignLimits", Daily: output.Daily !== undefined && output.Daily !== null ? output.Daily : undefined, MaximumDuration: output.MaximumDuration !== undefined && output.MaximumDuration !== null ? output.MaximumDuration : undefined, MessagesPerSecond: output.MessagesPerSecond !== undefined && output.MessagesPerSecond !== null ? output.MessagesPerSecond : undefined, Total: output.Total !== undefined && output.Total !== null ? output.Total : undefined, }; }; var deserializeAws_restJson1CampaignResponse = function (output, context) { return { __type: "CampaignResponse", AdditionalTreatments: output.AdditionalTreatments !== undefined && output.AdditionalTreatments !== null ? deserializeAws_restJson1ListOfTreatmentResource(output.AdditionalTreatments, context) : undefined, ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, CustomDeliveryConfiguration: output.CustomDeliveryConfiguration !== undefined && output.CustomDeliveryConfiguration !== null ? deserializeAws_restJson1CustomDeliveryConfiguration(output.CustomDeliveryConfiguration, context) : undefined, DefaultState: output.DefaultState !== undefined && output.DefaultState !== null ? deserializeAws_restJson1CampaignState(output.DefaultState, context) : undefined, Description: output.Description !== undefined && output.Description !== null ? output.Description : undefined, HoldoutPercent: output.HoldoutPercent !== undefined && output.HoldoutPercent !== null ? output.HoldoutPercent : undefined, Hook: output.Hook !== undefined && output.Hook !== null ? deserializeAws_restJson1CampaignHook(output.Hook, context) : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, IsPaused: output.IsPaused !== undefined && output.IsPaused !== null ? output.IsPaused : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, Limits: output.Limits !== undefined && output.Limits !== null ? deserializeAws_restJson1CampaignLimits(output.Limits, context) : undefined, MessageConfiguration: output.MessageConfiguration !== undefined && output.MessageConfiguration !== null ? deserializeAws_restJson1MessageConfiguration(output.MessageConfiguration, context) : undefined, Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, Schedule: output.Schedule !== undefined && output.Schedule !== null ? deserializeAws_restJson1Schedule(output.Schedule, context) : undefined, SegmentId: output.SegmentId !== undefined && output.SegmentId !== null ? output.SegmentId : undefined, SegmentVersion: output.SegmentVersion !== undefined && output.SegmentVersion !== null ? output.SegmentVersion : undefined, State: output.State !== undefined && output.State !== null ? deserializeAws_restJson1CampaignState(output.State, context) : undefined, TemplateConfiguration: output.TemplateConfiguration !== undefined && output.TemplateConfiguration !== null ? deserializeAws_restJson1TemplateConfiguration(output.TemplateConfiguration, context) : undefined, TreatmentDescription: output.TreatmentDescription !== undefined && output.TreatmentDescription !== null ? output.TreatmentDescription : undefined, TreatmentName: output.TreatmentName !== undefined && output.TreatmentName !== null ? output.TreatmentName : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, tags: output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined, }; }; var deserializeAws_restJson1CampaignSmsMessage = function (output, context) { return { __type: "CampaignSmsMessage", Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined, MessageType: output.MessageType !== undefined && output.MessageType !== null ? output.MessageType : undefined, SenderId: output.SenderId !== undefined && output.SenderId !== null ? output.SenderId : undefined, }; }; var deserializeAws_restJson1CampaignsResponse = function (output, context) { return { __type: "CampaignsResponse", Item: output.Item !== undefined && output.Item !== null ? deserializeAws_restJson1ListOfCampaignResponse(output.Item, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_restJson1CampaignState = function (output, context) { return { __type: "CampaignState", CampaignStatus: output.CampaignStatus !== undefined && output.CampaignStatus !== null ? output.CampaignStatus : undefined, }; }; var deserializeAws_restJson1ChannelResponse = function (output, context) { return { __type: "ChannelResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined, HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined, LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, }; }; var deserializeAws_restJson1ChannelsResponse = function (output, context) { return { __type: "ChannelsResponse", Channels: output.Channels !== undefined && output.Channels !== null ? deserializeAws_restJson1MapOfChannelResponse(output.Channels, context) : undefined, }; }; var deserializeAws_restJson1Condition = function (output, context) { return { __type: "Condition", Conditions: output.Conditions !== undefined && output.Conditions !== null ? deserializeAws_restJson1ListOfSimpleCondition(output.Conditions, context) : undefined, Operator: output.Operator !== undefined && output.Operator !== null ? output.Operator : undefined, }; }; var deserializeAws_restJson1ConditionalSplitActivity = function (output, context) { return { __type: "ConditionalSplitActivity", Condition: output.Condition !== undefined && output.Condition !== null ? deserializeAws_restJson1Condition(output.Condition, context) : undefined, EvaluationWaitTime: output.EvaluationWaitTime !== undefined && output.EvaluationWaitTime !== null ? deserializeAws_restJson1WaitTime(output.EvaluationWaitTime, context) : undefined, FalseActivity: output.FalseActivity !== undefined && output.FalseActivity !== null ? output.FalseActivity : undefined, TrueActivity: output.TrueActivity !== undefined && output.TrueActivity !== null ? output.TrueActivity : undefined, }; }; var deserializeAws_restJson1CreateTemplateMessageBody = function (output, context) { return { __type: "CreateTemplateMessageBody", Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, RequestID: output.RequestID !== undefined && output.RequestID !== null ? output.RequestID : undefined, }; }; var deserializeAws_restJson1CustomDeliveryConfiguration = function (output, context) { return { __type: "CustomDeliveryConfiguration", DeliveryUri: output.DeliveryUri !== undefined && output.DeliveryUri !== null ? output.DeliveryUri : undefined, EndpointTypes: output.EndpointTypes !== undefined && output.EndpointTypes !== null ? deserializeAws_restJson1ListOf__EndpointTypesElement(output.EndpointTypes, context) : undefined, }; }; var deserializeAws_restJson1CustomMessageActivity = function (output, context) { return { __type: "CustomMessageActivity", DeliveryUri: output.DeliveryUri !== undefined && output.DeliveryUri !== null ? output.DeliveryUri : undefined, EndpointTypes: output.EndpointTypes !== undefined && output.EndpointTypes !== null ? deserializeAws_restJson1ListOf__EndpointTypesElement(output.EndpointTypes, context) : undefined, MessageConfig: output.MessageConfig !== undefined && output.MessageConfig !== null ? deserializeAws_restJson1JourneyCustomMessage(output.MessageConfig, context) : undefined, NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined, TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined, TemplateVersion: output.TemplateVersion !== undefined && output.TemplateVersion !== null ? output.TemplateVersion : undefined, }; }; var deserializeAws_restJson1DefaultPushNotificationTemplate = function (output, context) { return { __type: "DefaultPushNotificationTemplate", Action: output.Action !== undefined && output.Action !== null ? output.Action : undefined, Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined, Sound: output.Sound !== undefined && output.Sound !== null ? output.Sound : undefined, Title: output.Title !== undefined && output.Title !== null ? output.Title : undefined, Url: output.Url !== undefined && output.Url !== null ? output.Url : undefined, }; }; var deserializeAws_restJson1EmailChannelResponse = function (output, context) { return { __type: "EmailChannelResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, ConfigurationSet: output.ConfigurationSet !== undefined && output.ConfigurationSet !== null ? output.ConfigurationSet : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined, FromAddress: output.FromAddress !== undefined && output.FromAddress !== null ? output.FromAddress : undefined, HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, Identity: output.Identity !== undefined && output.Identity !== null ? output.Identity : undefined, IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined, LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, MessagesPerSecond: output.MessagesPerSecond !== undefined && output.MessagesPerSecond !== null ? output.MessagesPerSecond : undefined, Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined, RoleArn: output.RoleArn !== undefined && output.RoleArn !== null ? output.RoleArn : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, }; }; var deserializeAws_restJson1EmailMessageActivity = function (output, context) { return { __type: "EmailMessageActivity", MessageConfig: output.MessageConfig !== undefined && output.MessageConfig !== null ? deserializeAws_restJson1JourneyEmailMessage(output.MessageConfig, context) : undefined, NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined, TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined, TemplateVersion: output.TemplateVersion !== undefined && output.TemplateVersion !== null ? output.TemplateVersion : undefined, }; }; var deserializeAws_restJson1EmailTemplateResponse = function (output, context) { return { __type: "EmailTemplateResponse", Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null ? output.DefaultSubstitutions : undefined, HtmlPart: output.HtmlPart !== undefined && output.HtmlPart !== null ? output.HtmlPart : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, RecommenderId: output.RecommenderId !== undefined && output.RecommenderId !== null ? output.RecommenderId : undefined, Subject: output.Subject !== undefined && output.Subject !== null ? output.Subject : undefined, TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null ? output.TemplateDescription : undefined, TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined, TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined, TextPart: output.TextPart !== undefined && output.TextPart !== null ? output.TextPart : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, tags: output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined, }; }; var deserializeAws_restJson1EndpointDemographic = function (output, context) { return { __type: "EndpointDemographic", AppVersion: output.AppVersion !== undefined && output.AppVersion !== null ? output.AppVersion : undefined, Locale: output.Locale !== undefined && output.Locale !== null ? output.Locale : undefined, Make: output.Make !== undefined && output.Make !== null ? output.Make : undefined, Model: output.Model !== undefined && output.Model !== null ? output.Model : undefined, ModelVersion: output.ModelVersion !== undefined && output.ModelVersion !== null ? output.ModelVersion : undefined, Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined, PlatformVersion: output.PlatformVersion !== undefined && output.PlatformVersion !== null ? output.PlatformVersion : undefined, Timezone: output.Timezone !== undefined && output.Timezone !== null ? output.Timezone : undefined, }; }; var deserializeAws_restJson1EndpointItemResponse = function (output, context) { return { __type: "EndpointItemResponse", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, StatusCode: output.StatusCode !== undefined && output.StatusCode !== null ? output.StatusCode : undefined, }; }; var deserializeAws_restJson1EndpointLocation = function (output, context) { return { __type: "EndpointLocation", City: output.City !== undefined && output.City !== null ? output.City : undefined, Country: output.Country !== undefined && output.Country !== null ? output.Country : undefined, Latitude: output.Latitude !== undefined && output.Latitude !== null ? output.Latitude : undefined, Longitude: output.Longitude !== undefined && output.Longitude !== null ? output.Longitude : undefined, PostalCode: output.PostalCode !== undefined && output.PostalCode !== null ? output.PostalCode : undefined, Region: output.Region !== undefined && output.Region !== null ? output.Region : undefined, }; }; var deserializeAws_restJson1EndpointMessageResult = function (output, context) { return { __type: "EndpointMessageResult", Address: output.Address !== undefined && output.Address !== null ? output.Address : undefined, DeliveryStatus: output.DeliveryStatus !== undefined && output.DeliveryStatus !== null ? output.DeliveryStatus : undefined, MessageId: output.MessageId !== undefined && output.MessageId !== null ? output.MessageId : undefined, StatusCode: output.StatusCode !== undefined && output.StatusCode !== null ? output.StatusCode : undefined, StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined, UpdatedToken: output.UpdatedToken !== undefined && output.UpdatedToken !== null ? output.UpdatedToken : undefined, }; }; var deserializeAws_restJson1EndpointResponse = function (output, context) { return { __type: "EndpointResponse", Address: output.Address !== undefined && output.Address !== null ? output.Address : undefined, ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, Attributes: output.Attributes !== undefined && output.Attributes !== null ? deserializeAws_restJson1MapOfListOf__string(output.Attributes, context) : undefined, ChannelType: output.ChannelType !== undefined && output.ChannelType !== null ? output.ChannelType : undefined, CohortId: output.CohortId !== undefined && output.CohortId !== null ? output.CohortId : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, Demographic: output.Demographic !== undefined && output.Demographic !== null ? deserializeAws_restJson1EndpointDemographic(output.Demographic, context) : undefined, EffectiveDate: output.EffectiveDate !== undefined && output.EffectiveDate !== null ? output.EffectiveDate : undefined, EndpointStatus: output.EndpointStatus !== undefined && output.EndpointStatus !== null ? output.EndpointStatus : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, Location: output.Location !== undefined && output.Location !== null ? deserializeAws_restJson1EndpointLocation(output.Location, context) : undefined, Metrics: output.Metrics !== undefined && output.Metrics !== null ? deserializeAws_restJson1MapOf__double(output.Metrics, context) : undefined, OptOut: output.OptOut !== undefined && output.OptOut !== null ? output.OptOut : undefined, RequestId: output.RequestId !== undefined && output.RequestId !== null ? output.RequestId : undefined, User: output.User !== undefined && output.User !== null ? deserializeAws_restJson1EndpointUser(output.User, context) : undefined, }; }; var deserializeAws_restJson1EndpointsResponse = function (output, context) { return { __type: "EndpointsResponse", Item: output.Item !== undefined && output.Item !== null ? deserializeAws_restJson1ListOfEndpointResponse(output.Item, context) : undefined, }; }; var deserializeAws_restJson1EndpointUser = function (output, context) { return { __type: "EndpointUser", UserAttributes: output.UserAttributes !== undefined && output.UserAttributes !== null ? deserializeAws_restJson1MapOfListOf__string(output.UserAttributes, context) : undefined, UserId: output.UserId !== undefined && output.UserId !== null ? output.UserId : undefined, }; }; var deserializeAws_restJson1EventCondition = function (output, context) { return { __type: "EventCondition", Dimensions: output.Dimensions !== undefined && output.Dimensions !== null ? deserializeAws_restJson1EventDimensions(output.Dimensions, context) : undefined, MessageActivity: output.MessageActivity !== undefined && output.MessageActivity !== null ? output.MessageActivity : undefined, }; }; var deserializeAws_restJson1EventDimensions = function (output, context) { return { __type: "EventDimensions", Attributes: output.Attributes !== undefined && output.Attributes !== null ? deserializeAws_restJson1MapOfAttributeDimension(output.Attributes, context) : undefined, EventType: output.EventType !== undefined && output.EventType !== null ? deserializeAws_restJson1SetDimension(output.EventType, context) : undefined, Metrics: output.Metrics !== undefined && output.Metrics !== null ? deserializeAws_restJson1MapOfMetricDimension(output.Metrics, context) : undefined, }; }; var deserializeAws_restJson1EventItemResponse = function (output, context) { return { __type: "EventItemResponse", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, StatusCode: output.StatusCode !== undefined && output.StatusCode !== null ? output.StatusCode : undefined, }; }; var deserializeAws_restJson1EventsResponse = function (output, context) { return { __type: "EventsResponse", Results: output.Results !== undefined && output.Results !== null ? deserializeAws_restJson1MapOfItemResponse(output.Results, context) : undefined, }; }; var deserializeAws_restJson1EventStream = function (output, context) { return { __type: "EventStream", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, DestinationStreamArn: output.DestinationStreamArn !== undefined && output.DestinationStreamArn !== null ? output.DestinationStreamArn : undefined, ExternalId: output.ExternalId !== undefined && output.ExternalId !== null ? output.ExternalId : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, LastUpdatedBy: output.LastUpdatedBy !== undefined && output.LastUpdatedBy !== null ? output.LastUpdatedBy : undefined, RoleArn: output.RoleArn !== undefined && output.RoleArn !== null ? output.RoleArn : undefined, }; }; var deserializeAws_restJson1ExportJobResource = function (output, context) { return { __type: "ExportJobResource", RoleArn: output.RoleArn !== undefined && output.RoleArn !== null ? output.RoleArn : undefined, S3UrlPrefix: output.S3UrlPrefix !== undefined && output.S3UrlPrefix !== null ? output.S3UrlPrefix : undefined, SegmentId: output.SegmentId !== undefined && output.SegmentId !== null ? output.SegmentId : undefined, SegmentVersion: output.SegmentVersion !== undefined && output.SegmentVersion !== null ? output.SegmentVersion : undefined, }; }; var deserializeAws_restJson1ExportJobResponse = function (output, context) { return { __type: "ExportJobResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, CompletedPieces: output.CompletedPieces !== undefined && output.CompletedPieces !== null ? output.CompletedPieces : undefined, CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null ? output.CompletionDate : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, Definition: output.Definition !== undefined && output.Definition !== null ? deserializeAws_restJson1ExportJobResource(output.Definition, context) : undefined, FailedPieces: output.FailedPieces !== undefined && output.FailedPieces !== null ? output.FailedPieces : undefined, Failures: output.Failures !== undefined && output.Failures !== null ? deserializeAws_restJson1ListOf__string(output.Failures, context) : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, TotalFailures: output.TotalFailures !== undefined && output.TotalFailures !== null ? output.TotalFailures : undefined, TotalPieces: output.TotalPieces !== undefined && output.TotalPieces !== null ? output.TotalPieces : undefined, TotalProcessed: output.TotalProcessed !== undefined && output.TotalProcessed !== null ? output.TotalProcessed : undefined, Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, }; }; var deserializeAws_restJson1ExportJobsResponse = function (output, context) { return { __type: "ExportJobsResponse", Item: output.Item !== undefined && output.Item !== null ? deserializeAws_restJson1ListOfExportJobResponse(output.Item, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_restJson1GCMChannelResponse = function (output, context) { return { __type: "GCMChannelResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, Credential: output.Credential !== undefined && output.Credential !== null ? output.Credential : undefined, Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined, HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined, LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, }; }; var deserializeAws_restJson1GPSCoordinates = function (output, context) { return { __type: "GPSCoordinates", Latitude: output.Latitude !== undefined && output.Latitude !== null ? output.Latitude : undefined, Longitude: output.Longitude !== undefined && output.Longitude !== null ? output.Longitude : undefined, }; }; var deserializeAws_restJson1GPSPointDimension = function (output, context) { return { __type: "GPSPointDimension", Coordinates: output.Coordinates !== undefined && output.Coordinates !== null ? deserializeAws_restJson1GPSCoordinates(output.Coordinates, context) : undefined, RangeInKilometers: output.RangeInKilometers !== undefined && output.RangeInKilometers !== null ? output.RangeInKilometers : undefined, }; }; var deserializeAws_restJson1HoldoutActivity = function (output, context) { return { __type: "HoldoutActivity", NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined, Percentage: output.Percentage !== undefined && output.Percentage !== null ? output.Percentage : undefined, }; }; var deserializeAws_restJson1ImportJobResource = function (output, context) { return { __type: "ImportJobResource", DefineSegment: output.DefineSegment !== undefined && output.DefineSegment !== null ? output.DefineSegment : undefined, ExternalId: output.ExternalId !== undefined && output.ExternalId !== null ? output.ExternalId : undefined, Format: output.Format !== undefined && output.Format !== null ? output.Format : undefined, RegisterEndpoints: output.RegisterEndpoints !== undefined && output.RegisterEndpoints !== null ? output.RegisterEndpoints : undefined, RoleArn: output.RoleArn !== undefined && output.RoleArn !== null ? output.RoleArn : undefined, S3Url: output.S3Url !== undefined && output.S3Url !== null ? output.S3Url : undefined, SegmentId: output.SegmentId !== undefined && output.SegmentId !== null ? output.SegmentId : undefined, SegmentName: output.SegmentName !== undefined && output.SegmentName !== null ? output.SegmentName : undefined, }; }; var deserializeAws_restJson1ImportJobResponse = function (output, context) { return { __type: "ImportJobResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, CompletedPieces: output.CompletedPieces !== undefined && output.CompletedPieces !== null ? output.CompletedPieces : undefined, CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null ? output.CompletionDate : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, Definition: output.Definition !== undefined && output.Definition !== null ? deserializeAws_restJson1ImportJobResource(output.Definition, context) : undefined, FailedPieces: output.FailedPieces !== undefined && output.FailedPieces !== null ? output.FailedPieces : undefined, Failures: output.Failures !== undefined && output.Failures !== null ? deserializeAws_restJson1ListOf__string(output.Failures, context) : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, TotalFailures: output.TotalFailures !== undefined && output.TotalFailures !== null ? output.TotalFailures : undefined, TotalPieces: output.TotalPieces !== undefined && output.TotalPieces !== null ? output.TotalPieces : undefined, TotalProcessed: output.TotalProcessed !== undefined && output.TotalProcessed !== null ? output.TotalProcessed : undefined, Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, }; }; var deserializeAws_restJson1ImportJobsResponse = function (output, context) { return { __type: "ImportJobsResponse", Item: output.Item !== undefined && output.Item !== null ? deserializeAws_restJson1ListOfImportJobResponse(output.Item, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_restJson1ItemResponse = function (output, context) { return { __type: "ItemResponse", EndpointItemResponse: output.EndpointItemResponse !== undefined && output.EndpointItemResponse !== null ? deserializeAws_restJson1EndpointItemResponse(output.EndpointItemResponse, context) : undefined, EventsItemResponse: output.EventsItemResponse !== undefined && output.EventsItemResponse !== null ? deserializeAws_restJson1MapOfEventItemResponse(output.EventsItemResponse, context) : undefined, }; }; var deserializeAws_restJson1JourneyCustomMessage = function (output, context) { return { __type: "JourneyCustomMessage", Data: output.Data !== undefined && output.Data !== null ? output.Data : undefined, }; }; var deserializeAws_restJson1JourneyDateRangeKpiResponse = function (output, context) { return { __type: "JourneyDateRangeKpiResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(output.EndTime) : undefined, JourneyId: output.JourneyId !== undefined && output.JourneyId !== null ? output.JourneyId : undefined, KpiName: output.KpiName !== undefined && output.KpiName !== null ? output.KpiName : undefined, KpiResult: output.KpiResult !== undefined && output.KpiResult !== null ? deserializeAws_restJson1BaseKpiResult(output.KpiResult, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, StartTime: output.StartTime !== undefined && output.StartTime !== null ? new Date(output.StartTime) : undefined, }; }; var deserializeAws_restJson1JourneyEmailMessage = function (output, context) { return { __type: "JourneyEmailMessage", FromAddress: output.FromAddress !== undefined && output.FromAddress !== null ? output.FromAddress : undefined, }; }; var deserializeAws_restJson1JourneyExecutionActivityMetricsResponse = function (output, context) { return { __type: "JourneyExecutionActivityMetricsResponse", ActivityType: output.ActivityType !== undefined && output.ActivityType !== null ? output.ActivityType : undefined, ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, JourneyActivityId: output.JourneyActivityId !== undefined && output.JourneyActivityId !== null ? output.JourneyActivityId : undefined, JourneyId: output.JourneyId !== undefined && output.JourneyId !== null ? output.JourneyId : undefined, LastEvaluatedTime: output.LastEvaluatedTime !== undefined && output.LastEvaluatedTime !== null ? output.LastEvaluatedTime : undefined, Metrics: output.Metrics !== undefined && output.Metrics !== null ? deserializeAws_restJson1MapOf__string(output.Metrics, context) : undefined, }; }; var deserializeAws_restJson1JourneyExecutionMetricsResponse = function (output, context) { return { __type: "JourneyExecutionMetricsResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, JourneyId: output.JourneyId !== undefined && output.JourneyId !== null ? output.JourneyId : undefined, LastEvaluatedTime: output.LastEvaluatedTime !== undefined && output.LastEvaluatedTime !== null ? output.LastEvaluatedTime : undefined, Metrics: output.Metrics !== undefined && output.Metrics !== null ? deserializeAws_restJson1MapOf__string(output.Metrics, context) : undefined, }; }; var deserializeAws_restJson1JourneyLimits = function (output, context) { return { __type: "JourneyLimits", DailyCap: output.DailyCap !== undefined && output.DailyCap !== null ? output.DailyCap : undefined, EndpointReentryCap: output.EndpointReentryCap !== undefined && output.EndpointReentryCap !== null ? output.EndpointReentryCap : undefined, MessagesPerSecond: output.MessagesPerSecond !== undefined && output.MessagesPerSecond !== null ? output.MessagesPerSecond : undefined, }; }; var deserializeAws_restJson1JourneyPushMessage = function (output, context) { return { __type: "JourneyPushMessage", TimeToLive: output.TimeToLive !== undefined && output.TimeToLive !== null ? output.TimeToLive : undefined, }; }; var deserializeAws_restJson1JourneyResponse = function (output, context) { return { __type: "JourneyResponse", Activities: output.Activities !== undefined && output.Activities !== null ? deserializeAws_restJson1MapOfActivity(output.Activities, context) : undefined, ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, Limits: output.Limits !== undefined && output.Limits !== null ? deserializeAws_restJson1JourneyLimits(output.Limits, context) : undefined, LocalTime: output.LocalTime !== undefined && output.LocalTime !== null ? output.LocalTime : undefined, Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, QuietTime: output.QuietTime !== undefined && output.QuietTime !== null ? deserializeAws_restJson1QuietTime(output.QuietTime, context) : undefined, RefreshFrequency: output.RefreshFrequency !== undefined && output.RefreshFrequency !== null ? output.RefreshFrequency : undefined, Schedule: output.Schedule !== undefined && output.Schedule !== null ? deserializeAws_restJson1JourneySchedule(output.Schedule, context) : undefined, StartActivity: output.StartActivity !== undefined && output.StartActivity !== null ? output.StartActivity : undefined, StartCondition: output.StartCondition !== undefined && output.StartCondition !== null ? deserializeAws_restJson1StartCondition(output.StartCondition, context) : undefined, State: output.State !== undefined && output.State !== null ? output.State : undefined, tags: output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined, }; }; var deserializeAws_restJson1JourneySchedule = function (output, context) { return { __type: "JourneySchedule", EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(output.EndTime) : undefined, StartTime: output.StartTime !== undefined && output.StartTime !== null ? new Date(output.StartTime) : undefined, Timezone: output.Timezone !== undefined && output.Timezone !== null ? output.Timezone : undefined, }; }; var deserializeAws_restJson1JourneySMSMessage = function (output, context) { return { __type: "JourneySMSMessage", MessageType: output.MessageType !== undefined && output.MessageType !== null ? output.MessageType : undefined, SenderId: output.SenderId !== undefined && output.SenderId !== null ? output.SenderId : undefined, }; }; var deserializeAws_restJson1JourneysResponse = function (output, context) { return { __type: "JourneysResponse", Item: output.Item !== undefined && output.Item !== null ? deserializeAws_restJson1ListOfJourneyResponse(output.Item, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_restJson1ListOf__EndpointTypesElement = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_restJson1ListOf__string = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_restJson1ListOfActivityResponse = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1ActivityResponse(entry, context); }); }; var deserializeAws_restJson1ListOfApplicationResponse = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1ApplicationResponse(entry, context); }); }; var deserializeAws_restJson1ListOfCampaignResponse = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1CampaignResponse(entry, context); }); }; var deserializeAws_restJson1ListOfEndpointResponse = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1EndpointResponse(entry, context); }); }; var deserializeAws_restJson1ListOfExportJobResponse = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1ExportJobResponse(entry, context); }); }; var deserializeAws_restJson1ListOfImportJobResponse = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1ImportJobResponse(entry, context); }); }; var deserializeAws_restJson1ListOfJourneyResponse = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1JourneyResponse(entry, context); }); }; var deserializeAws_restJson1ListOfMultiConditionalBranch = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1MultiConditionalBranch(entry, context); }); }; var deserializeAws_restJson1ListOfRandomSplitEntry = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1RandomSplitEntry(entry, context); }); }; var deserializeAws_restJson1ListOfRecommenderConfigurationResponse = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1RecommenderConfigurationResponse(entry, context); }); }; var deserializeAws_restJson1ListOfResultRow = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1ResultRow(entry, context); }); }; var deserializeAws_restJson1ListOfResultRowValue = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1ResultRowValue(entry, context); }); }; var deserializeAws_restJson1ListOfSegmentDimensions = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1SegmentDimensions(entry, context); }); }; var deserializeAws_restJson1ListOfSegmentGroup = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1SegmentGroup(entry, context); }); }; var deserializeAws_restJson1ListOfSegmentReference = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1SegmentReference(entry, context); }); }; var deserializeAws_restJson1ListOfSegmentResponse = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1SegmentResponse(entry, context); }); }; var deserializeAws_restJson1ListOfSimpleCondition = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1SimpleCondition(entry, context); }); }; var deserializeAws_restJson1ListOfTemplateResponse = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1TemplateResponse(entry, context); }); }; var deserializeAws_restJson1ListOfTemplateVersionResponse = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1TemplateVersionResponse(entry, context); }); }; var deserializeAws_restJson1ListOfTreatmentResource = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_restJson1TreatmentResource(entry, context); }); }; var deserializeAws_restJson1ListRecommenderConfigurationsResponse = function (output, context) { return { __type: "ListRecommenderConfigurationsResponse", Item: output.Item !== undefined && output.Item !== null ? deserializeAws_restJson1ListOfRecommenderConfigurationResponse(output.Item, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_restJson1MapOf__double = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b))); }, {}); }; var deserializeAws_restJson1MapOf__integer = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b))); }, {}); }; var deserializeAws_restJson1MapOf__string = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b))); }, {}); }; var deserializeAws_restJson1MapOfActivity = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1Activity(value, context), _b))); }, {}); }; var deserializeAws_restJson1MapOfAttributeDimension = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1AttributeDimension(value, context), _b))); }, {}); }; var deserializeAws_restJson1MapOfChannelResponse = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ChannelResponse(value, context), _b))); }, {}); }; var deserializeAws_restJson1MapOfEndpointMessageResult = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1EndpointMessageResult(value, context), _b))); }, {}); }; var deserializeAws_restJson1MapOfEventItemResponse = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1EventItemResponse(value, context), _b))); }, {}); }; var deserializeAws_restJson1MapOfItemResponse = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ItemResponse(value, context), _b))); }, {}); }; var deserializeAws_restJson1MapOfListOf__string = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ListOf__string(value, context), _b))); }, {}); }; var deserializeAws_restJson1MapOfMapOfEndpointMessageResult = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1MapOfEndpointMessageResult(value, context), _b))); }, {}); }; var deserializeAws_restJson1MapOfMessageResult = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1MessageResult(value, context), _b))); }, {}); }; var deserializeAws_restJson1MapOfMetricDimension = function (output, context) { return Object.entries(output).reduce(function (acc, _a) { var _b; var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1]; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1MetricDimension(value, context), _b))); }, {}); }; var deserializeAws_restJson1Message = function (output, context) { return { __type: "Message", Action: output.Action !== undefined && output.Action !== null ? output.Action : undefined, Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined, ImageIconUrl: output.ImageIconUrl !== undefined && output.ImageIconUrl !== null ? output.ImageIconUrl : undefined, ImageSmallIconUrl: output.ImageSmallIconUrl !== undefined && output.ImageSmallIconUrl !== null ? output.ImageSmallIconUrl : undefined, ImageUrl: output.ImageUrl !== undefined && output.ImageUrl !== null ? output.ImageUrl : undefined, JsonBody: output.JsonBody !== undefined && output.JsonBody !== null ? output.JsonBody : undefined, MediaUrl: output.MediaUrl !== undefined && output.MediaUrl !== null ? output.MediaUrl : undefined, RawContent: output.RawContent !== undefined && output.RawContent !== null ? output.RawContent : undefined, SilentPush: output.SilentPush !== undefined && output.SilentPush !== null ? output.SilentPush : undefined, TimeToLive: output.TimeToLive !== undefined && output.TimeToLive !== null ? output.TimeToLive : undefined, Title: output.Title !== undefined && output.Title !== null ? output.Title : undefined, Url: output.Url !== undefined && output.Url !== null ? output.Url : undefined, }; }; var deserializeAws_restJson1MessageBody = function (output, context) { return { __type: "MessageBody", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, RequestID: output.RequestID !== undefined && output.RequestID !== null ? output.RequestID : undefined, }; }; var deserializeAws_restJson1MessageConfiguration = function (output, context) { return { __type: "MessageConfiguration", ADMMessage: output.ADMMessage !== undefined && output.ADMMessage !== null ? deserializeAws_restJson1Message(output.ADMMessage, context) : undefined, APNSMessage: output.APNSMessage !== undefined && output.APNSMessage !== null ? deserializeAws_restJson1Message(output.APNSMessage, context) : undefined, BaiduMessage: output.BaiduMessage !== undefined && output.BaiduMessage !== null ? deserializeAws_restJson1Message(output.BaiduMessage, context) : undefined, CustomMessage: output.CustomMessage !== undefined && output.CustomMessage !== null ? deserializeAws_restJson1CampaignCustomMessage(output.CustomMessage, context) : undefined, DefaultMessage: output.DefaultMessage !== undefined && output.DefaultMessage !== null ? deserializeAws_restJson1Message(output.DefaultMessage, context) : undefined, EmailMessage: output.EmailMessage !== undefined && output.EmailMessage !== null ? deserializeAws_restJson1CampaignEmailMessage(output.EmailMessage, context) : undefined, GCMMessage: output.GCMMessage !== undefined && output.GCMMessage !== null ? deserializeAws_restJson1Message(output.GCMMessage, context) : undefined, SMSMessage: output.SMSMessage !== undefined && output.SMSMessage !== null ? deserializeAws_restJson1CampaignSmsMessage(output.SMSMessage, context) : undefined, }; }; var deserializeAws_restJson1MessageResponse = function (output, context) { return { __type: "MessageResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, EndpointResult: output.EndpointResult !== undefined && output.EndpointResult !== null ? deserializeAws_restJson1MapOfEndpointMessageResult(output.EndpointResult, context) : undefined, RequestId: output.RequestId !== undefined && output.RequestId !== null ? output.RequestId : undefined, Result: output.Result !== undefined && output.Result !== null ? deserializeAws_restJson1MapOfMessageResult(output.Result, context) : undefined, }; }; var deserializeAws_restJson1MessageResult = function (output, context) { return { __type: "MessageResult", DeliveryStatus: output.DeliveryStatus !== undefined && output.DeliveryStatus !== null ? output.DeliveryStatus : undefined, MessageId: output.MessageId !== undefined && output.MessageId !== null ? output.MessageId : undefined, StatusCode: output.StatusCode !== undefined && output.StatusCode !== null ? output.StatusCode : undefined, StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined, UpdatedToken: output.UpdatedToken !== undefined && output.UpdatedToken !== null ? output.UpdatedToken : undefined, }; }; var deserializeAws_restJson1MetricDimension = function (output, context) { return { __type: "MetricDimension", ComparisonOperator: output.ComparisonOperator !== undefined && output.ComparisonOperator !== null ? output.ComparisonOperator : undefined, Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined, }; }; var deserializeAws_restJson1MultiConditionalBranch = function (output, context) { return { __type: "MultiConditionalBranch", Condition: output.Condition !== undefined && output.Condition !== null ? deserializeAws_restJson1SimpleCondition(output.Condition, context) : undefined, NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined, }; }; var deserializeAws_restJson1MultiConditionalSplitActivity = function (output, context) { return { __type: "MultiConditionalSplitActivity", Branches: output.Branches !== undefined && output.Branches !== null ? deserializeAws_restJson1ListOfMultiConditionalBranch(output.Branches, context) : undefined, DefaultActivity: output.DefaultActivity !== undefined && output.DefaultActivity !== null ? output.DefaultActivity : undefined, EvaluationWaitTime: output.EvaluationWaitTime !== undefined && output.EvaluationWaitTime !== null ? deserializeAws_restJson1WaitTime(output.EvaluationWaitTime, context) : undefined, }; }; var deserializeAws_restJson1NumberValidateResponse = function (output, context) { return { __type: "NumberValidateResponse", Carrier: output.Carrier !== undefined && output.Carrier !== null ? output.Carrier : undefined, City: output.City !== undefined && output.City !== null ? output.City : undefined, CleansedPhoneNumberE164: output.CleansedPhoneNumberE164 !== undefined && output.CleansedPhoneNumberE164 !== null ? output.CleansedPhoneNumberE164 : undefined, CleansedPhoneNumberNational: output.CleansedPhoneNumberNational !== undefined && output.CleansedPhoneNumberNational !== null ? output.CleansedPhoneNumberNational : undefined, Country: output.Country !== undefined && output.Country !== null ? output.Country : undefined, CountryCodeIso2: output.CountryCodeIso2 !== undefined && output.CountryCodeIso2 !== null ? output.CountryCodeIso2 : undefined, CountryCodeNumeric: output.CountryCodeNumeric !== undefined && output.CountryCodeNumeric !== null ? output.CountryCodeNumeric : undefined, County: output.County !== undefined && output.County !== null ? output.County : undefined, OriginalCountryCodeIso2: output.OriginalCountryCodeIso2 !== undefined && output.OriginalCountryCodeIso2 !== null ? output.OriginalCountryCodeIso2 : undefined, OriginalPhoneNumber: output.OriginalPhoneNumber !== undefined && output.OriginalPhoneNumber !== null ? output.OriginalPhoneNumber : undefined, PhoneType: output.PhoneType !== undefined && output.PhoneType !== null ? output.PhoneType : undefined, PhoneTypeCode: output.PhoneTypeCode !== undefined && output.PhoneTypeCode !== null ? output.PhoneTypeCode : undefined, Timezone: output.Timezone !== undefined && output.Timezone !== null ? output.Timezone : undefined, ZipCode: output.ZipCode !== undefined && output.ZipCode !== null ? output.ZipCode : undefined, }; }; var deserializeAws_restJson1PushMessageActivity = function (output, context) { return { __type: "PushMessageActivity", MessageConfig: output.MessageConfig !== undefined && output.MessageConfig !== null ? deserializeAws_restJson1JourneyPushMessage(output.MessageConfig, context) : undefined, NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined, TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined, TemplateVersion: output.TemplateVersion !== undefined && output.TemplateVersion !== null ? output.TemplateVersion : undefined, }; }; var deserializeAws_restJson1PushNotificationTemplateResponse = function (output, context) { return { __type: "PushNotificationTemplateResponse", ADM: output.ADM !== undefined && output.ADM !== null ? deserializeAws_restJson1AndroidPushNotificationTemplate(output.ADM, context) : undefined, APNS: output.APNS !== undefined && output.APNS !== null ? deserializeAws_restJson1APNSPushNotificationTemplate(output.APNS, context) : undefined, Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined, Baidu: output.Baidu !== undefined && output.Baidu !== null ? deserializeAws_restJson1AndroidPushNotificationTemplate(output.Baidu, context) : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, Default: output.Default !== undefined && output.Default !== null ? deserializeAws_restJson1DefaultPushNotificationTemplate(output.Default, context) : undefined, DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null ? output.DefaultSubstitutions : undefined, GCM: output.GCM !== undefined && output.GCM !== null ? deserializeAws_restJson1AndroidPushNotificationTemplate(output.GCM, context) : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, RecommenderId: output.RecommenderId !== undefined && output.RecommenderId !== null ? output.RecommenderId : undefined, TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null ? output.TemplateDescription : undefined, TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined, TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, tags: output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined, }; }; var deserializeAws_restJson1QuietTime = function (output, context) { return { __type: "QuietTime", End: output.End !== undefined && output.End !== null ? output.End : undefined, Start: output.Start !== undefined && output.Start !== null ? output.Start : undefined, }; }; var deserializeAws_restJson1RandomSplitActivity = function (output, context) { return { __type: "RandomSplitActivity", Branches: output.Branches !== undefined && output.Branches !== null ? deserializeAws_restJson1ListOfRandomSplitEntry(output.Branches, context) : undefined, }; }; var deserializeAws_restJson1RandomSplitEntry = function (output, context) { return { __type: "RandomSplitEntry", NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined, Percentage: output.Percentage !== undefined && output.Percentage !== null ? output.Percentage : undefined, }; }; var deserializeAws_restJson1RecencyDimension = function (output, context) { return { __type: "RecencyDimension", Duration: output.Duration !== undefined && output.Duration !== null ? output.Duration : undefined, RecencyType: output.RecencyType !== undefined && output.RecencyType !== null ? output.RecencyType : undefined, }; }; var deserializeAws_restJson1RecommenderConfigurationResponse = function (output, context) { return { __type: "RecommenderConfigurationResponse", Attributes: output.Attributes !== undefined && output.Attributes !== null ? deserializeAws_restJson1MapOf__string(output.Attributes, context) : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, Description: output.Description !== undefined && output.Description !== null ? output.Description : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, RecommendationProviderIdType: output.RecommendationProviderIdType !== undefined && output.RecommendationProviderIdType !== null ? output.RecommendationProviderIdType : undefined, RecommendationProviderRoleArn: output.RecommendationProviderRoleArn !== undefined && output.RecommendationProviderRoleArn !== null ? output.RecommendationProviderRoleArn : undefined, RecommendationProviderUri: output.RecommendationProviderUri !== undefined && output.RecommendationProviderUri !== null ? output.RecommendationProviderUri : undefined, RecommendationTransformerUri: output.RecommendationTransformerUri !== undefined && output.RecommendationTransformerUri !== null ? output.RecommendationTransformerUri : undefined, RecommendationsDisplayName: output.RecommendationsDisplayName !== undefined && output.RecommendationsDisplayName !== null ? output.RecommendationsDisplayName : undefined, RecommendationsPerMessage: output.RecommendationsPerMessage !== undefined && output.RecommendationsPerMessage !== null ? output.RecommendationsPerMessage : undefined, }; }; var deserializeAws_restJson1ResultRow = function (output, context) { return { __type: "ResultRow", GroupedBys: output.GroupedBys !== undefined && output.GroupedBys !== null ? deserializeAws_restJson1ListOfResultRowValue(output.GroupedBys, context) : undefined, Values: output.Values !== undefined && output.Values !== null ? deserializeAws_restJson1ListOfResultRowValue(output.Values, context) : undefined, }; }; var deserializeAws_restJson1ResultRowValue = function (output, context) { return { __type: "ResultRowValue", Key: output.Key !== undefined && output.Key !== null ? output.Key : undefined, Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined, }; }; var deserializeAws_restJson1Schedule = function (output, context) { return { __type: "Schedule", EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined, EventFilter: output.EventFilter !== undefined && output.EventFilter !== null ? deserializeAws_restJson1CampaignEventFilter(output.EventFilter, context) : undefined, Frequency: output.Frequency !== undefined && output.Frequency !== null ? output.Frequency : undefined, IsLocalTime: output.IsLocalTime !== undefined && output.IsLocalTime !== null ? output.IsLocalTime : undefined, QuietTime: output.QuietTime !== undefined && output.QuietTime !== null ? deserializeAws_restJson1QuietTime(output.QuietTime, context) : undefined, StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined, Timezone: output.Timezone !== undefined && output.Timezone !== null ? output.Timezone : undefined, }; }; var deserializeAws_restJson1SegmentBehaviors = function (output, context) { return { __type: "SegmentBehaviors", Recency: output.Recency !== undefined && output.Recency !== null ? deserializeAws_restJson1RecencyDimension(output.Recency, context) : undefined, }; }; var deserializeAws_restJson1SegmentCondition = function (output, context) { return { __type: "SegmentCondition", SegmentId: output.SegmentId !== undefined && output.SegmentId !== null ? output.SegmentId : undefined, }; }; var deserializeAws_restJson1SegmentDemographics = function (output, context) { return { __type: "SegmentDemographics", AppVersion: output.AppVersion !== undefined && output.AppVersion !== null ? deserializeAws_restJson1SetDimension(output.AppVersion, context) : undefined, Channel: output.Channel !== undefined && output.Channel !== null ? deserializeAws_restJson1SetDimension(output.Channel, context) : undefined, DeviceType: output.DeviceType !== undefined && output.DeviceType !== null ? deserializeAws_restJson1SetDimension(output.DeviceType, context) : undefined, Make: output.Make !== undefined && output.Make !== null ? deserializeAws_restJson1SetDimension(output.Make, context) : undefined, Model: output.Model !== undefined && output.Model !== null ? deserializeAws_restJson1SetDimension(output.Model, context) : undefined, Platform: output.Platform !== undefined && output.Platform !== null ? deserializeAws_restJson1SetDimension(output.Platform, context) : undefined, }; }; var deserializeAws_restJson1SegmentDimensions = function (output, context) { return { __type: "SegmentDimensions", Attributes: output.Attributes !== undefined && output.Attributes !== null ? deserializeAws_restJson1MapOfAttributeDimension(output.Attributes, context) : undefined, Behavior: output.Behavior !== undefined && output.Behavior !== null ? deserializeAws_restJson1SegmentBehaviors(output.Behavior, context) : undefined, Demographic: output.Demographic !== undefined && output.Demographic !== null ? deserializeAws_restJson1SegmentDemographics(output.Demographic, context) : undefined, Location: output.Location !== undefined && output.Location !== null ? deserializeAws_restJson1SegmentLocation(output.Location, context) : undefined, Metrics: output.Metrics !== undefined && output.Metrics !== null ? deserializeAws_restJson1MapOfMetricDimension(output.Metrics, context) : undefined, UserAttributes: output.UserAttributes !== undefined && output.UserAttributes !== null ? deserializeAws_restJson1MapOfAttributeDimension(output.UserAttributes, context) : undefined, }; }; var deserializeAws_restJson1SegmentGroup = function (output, context) { return { __type: "SegmentGroup", Dimensions: output.Dimensions !== undefined && output.Dimensions !== null ? deserializeAws_restJson1ListOfSegmentDimensions(output.Dimensions, context) : undefined, SourceSegments: output.SourceSegments !== undefined && output.SourceSegments !== null ? deserializeAws_restJson1ListOfSegmentReference(output.SourceSegments, context) : undefined, SourceType: output.SourceType !== undefined && output.SourceType !== null ? output.SourceType : undefined, Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, }; }; var deserializeAws_restJson1SegmentGroupList = function (output, context) { return { __type: "SegmentGroupList", Groups: output.Groups !== undefined && output.Groups !== null ? deserializeAws_restJson1ListOfSegmentGroup(output.Groups, context) : undefined, Include: output.Include !== undefined && output.Include !== null ? output.Include : undefined, }; }; var deserializeAws_restJson1SegmentImportResource = function (output, context) { return { __type: "SegmentImportResource", ChannelCounts: output.ChannelCounts !== undefined && output.ChannelCounts !== null ? deserializeAws_restJson1MapOf__integer(output.ChannelCounts, context) : undefined, ExternalId: output.ExternalId !== undefined && output.ExternalId !== null ? output.ExternalId : undefined, Format: output.Format !== undefined && output.Format !== null ? output.Format : undefined, RoleArn: output.RoleArn !== undefined && output.RoleArn !== null ? output.RoleArn : undefined, S3Url: output.S3Url !== undefined && output.S3Url !== null ? output.S3Url : undefined, Size: output.Size !== undefined && output.Size !== null ? output.Size : undefined, }; }; var deserializeAws_restJson1SegmentLocation = function (output, context) { return { __type: "SegmentLocation", Country: output.Country !== undefined && output.Country !== null ? deserializeAws_restJson1SetDimension(output.Country, context) : undefined, GPSPoint: output.GPSPoint !== undefined && output.GPSPoint !== null ? deserializeAws_restJson1GPSPointDimension(output.GPSPoint, context) : undefined, }; }; var deserializeAws_restJson1SegmentReference = function (output, context) { return { __type: "SegmentReference", Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, }; }; var deserializeAws_restJson1SegmentResponse = function (output, context) { return { __type: "SegmentResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, Dimensions: output.Dimensions !== undefined && output.Dimensions !== null ? deserializeAws_restJson1SegmentDimensions(output.Dimensions, context) : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, ImportDefinition: output.ImportDefinition !== undefined && output.ImportDefinition !== null ? deserializeAws_restJson1SegmentImportResource(output.ImportDefinition, context) : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, SegmentGroups: output.SegmentGroups !== undefined && output.SegmentGroups !== null ? deserializeAws_restJson1SegmentGroupList(output.SegmentGroups, context) : undefined, SegmentType: output.SegmentType !== undefined && output.SegmentType !== null ? output.SegmentType : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, tags: output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined, }; }; var deserializeAws_restJson1SegmentsResponse = function (output, context) { return { __type: "SegmentsResponse", Item: output.Item !== undefined && output.Item !== null ? deserializeAws_restJson1ListOfSegmentResponse(output.Item, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_restJson1SendUsersMessageResponse = function (output, context) { return { __type: "SendUsersMessageResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, RequestId: output.RequestId !== undefined && output.RequestId !== null ? output.RequestId : undefined, Result: output.Result !== undefined && output.Result !== null ? deserializeAws_restJson1MapOfMapOfEndpointMessageResult(output.Result, context) : undefined, }; }; var deserializeAws_restJson1SetDimension = function (output, context) { return { __type: "SetDimension", DimensionType: output.DimensionType !== undefined && output.DimensionType !== null ? output.DimensionType : undefined, Values: output.Values !== undefined && output.Values !== null ? deserializeAws_restJson1ListOf__string(output.Values, context) : undefined, }; }; var deserializeAws_restJson1SimpleCondition = function (output, context) { return { __type: "SimpleCondition", EventCondition: output.EventCondition !== undefined && output.EventCondition !== null ? deserializeAws_restJson1EventCondition(output.EventCondition, context) : undefined, SegmentCondition: output.SegmentCondition !== undefined && output.SegmentCondition !== null ? deserializeAws_restJson1SegmentCondition(output.SegmentCondition, context) : undefined, SegmentDimensions: output.segmentDimensions !== undefined && output.segmentDimensions !== null ? deserializeAws_restJson1SegmentDimensions(output.segmentDimensions, context) : undefined, }; }; var deserializeAws_restJson1SMSChannelResponse = function (output, context) { return { __type: "SMSChannelResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined, HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined, LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined, PromotionalMessagesPerSecond: output.PromotionalMessagesPerSecond !== undefined && output.PromotionalMessagesPerSecond !== null ? output.PromotionalMessagesPerSecond : undefined, SenderId: output.SenderId !== undefined && output.SenderId !== null ? output.SenderId : undefined, ShortCode: output.ShortCode !== undefined && output.ShortCode !== null ? output.ShortCode : undefined, TransactionalMessagesPerSecond: output.TransactionalMessagesPerSecond !== undefined && output.TransactionalMessagesPerSecond !== null ? output.TransactionalMessagesPerSecond : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, }; }; var deserializeAws_restJson1SMSMessageActivity = function (output, context) { return { __type: "SMSMessageActivity", MessageConfig: output.MessageConfig !== undefined && output.MessageConfig !== null ? deserializeAws_restJson1JourneySMSMessage(output.MessageConfig, context) : undefined, NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined, TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined, TemplateVersion: output.TemplateVersion !== undefined && output.TemplateVersion !== null ? output.TemplateVersion : undefined, }; }; var deserializeAws_restJson1SMSTemplateResponse = function (output, context) { return { __type: "SMSTemplateResponse", Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined, Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null ? output.DefaultSubstitutions : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, RecommenderId: output.RecommenderId !== undefined && output.RecommenderId !== null ? output.RecommenderId : undefined, TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null ? output.TemplateDescription : undefined, TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined, TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, tags: output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined, }; }; var deserializeAws_restJson1StartCondition = function (output, context) { return { __type: "StartCondition", Description: output.Description !== undefined && output.Description !== null ? output.Description : undefined, SegmentStartCondition: output.SegmentStartCondition !== undefined && output.SegmentStartCondition !== null ? deserializeAws_restJson1SegmentCondition(output.SegmentStartCondition, context) : undefined, }; }; var deserializeAws_restJson1TagsModel = function (output, context) { return { __type: "TagsModel", tags: output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined, }; }; var deserializeAws_restJson1Template = function (output, context) { return { __type: "Template", Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, }; }; var deserializeAws_restJson1TemplateConfiguration = function (output, context) { return { __type: "TemplateConfiguration", EmailTemplate: output.EmailTemplate !== undefined && output.EmailTemplate !== null ? deserializeAws_restJson1Template(output.EmailTemplate, context) : undefined, PushTemplate: output.PushTemplate !== undefined && output.PushTemplate !== null ? deserializeAws_restJson1Template(output.PushTemplate, context) : undefined, SMSTemplate: output.SMSTemplate !== undefined && output.SMSTemplate !== null ? deserializeAws_restJson1Template(output.SMSTemplate, context) : undefined, VoiceTemplate: output.VoiceTemplate !== undefined && output.VoiceTemplate !== null ? deserializeAws_restJson1Template(output.VoiceTemplate, context) : undefined, }; }; var deserializeAws_restJson1TemplateResponse = function (output, context) { return { __type: "TemplateResponse", Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null ? output.DefaultSubstitutions : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null ? output.TemplateDescription : undefined, TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined, TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, tags: output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined, }; }; var deserializeAws_restJson1TemplatesResponse = function (output, context) { return { __type: "TemplatesResponse", Item: output.Item !== undefined && output.Item !== null ? deserializeAws_restJson1ListOfTemplateResponse(output.Item, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_restJson1TemplateVersionResponse = function (output, context) { return { __type: "TemplateVersionResponse", CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null ? output.DefaultSubstitutions : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null ? output.TemplateDescription : undefined, TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined, TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, }; }; var deserializeAws_restJson1TemplateVersionsResponse = function (output, context) { return { __type: "TemplateVersionsResponse", Item: output.Item !== undefined && output.Item !== null ? deserializeAws_restJson1ListOfTemplateVersionResponse(output.Item, context) : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, RequestID: output.RequestID !== undefined && output.RequestID !== null ? output.RequestID : undefined, }; }; var deserializeAws_restJson1TreatmentResource = function (output, context) { return { __type: "TreatmentResource", CustomDeliveryConfiguration: output.CustomDeliveryConfiguration !== undefined && output.CustomDeliveryConfiguration !== null ? deserializeAws_restJson1CustomDeliveryConfiguration(output.CustomDeliveryConfiguration, context) : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, MessageConfiguration: output.MessageConfiguration !== undefined && output.MessageConfiguration !== null ? deserializeAws_restJson1MessageConfiguration(output.MessageConfiguration, context) : undefined, Schedule: output.Schedule !== undefined && output.Schedule !== null ? deserializeAws_restJson1Schedule(output.Schedule, context) : undefined, SizePercent: output.SizePercent !== undefined && output.SizePercent !== null ? output.SizePercent : undefined, State: output.State !== undefined && output.State !== null ? deserializeAws_restJson1CampaignState(output.State, context) : undefined, TemplateConfiguration: output.TemplateConfiguration !== undefined && output.TemplateConfiguration !== null ? deserializeAws_restJson1TemplateConfiguration(output.TemplateConfiguration, context) : undefined, TreatmentDescription: output.TreatmentDescription !== undefined && output.TreatmentDescription !== null ? output.TreatmentDescription : undefined, TreatmentName: output.TreatmentName !== undefined && output.TreatmentName !== null ? output.TreatmentName : undefined, }; }; var deserializeAws_restJson1VoiceChannelResponse = function (output, context) { return { __type: "VoiceChannelResponse", ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined, HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined, LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, }; }; var deserializeAws_restJson1VoiceTemplateResponse = function (output, context) { return { __type: "VoiceTemplateResponse", Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined, Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined, CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined, DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null ? output.DefaultSubstitutions : undefined, LanguageCode: output.LanguageCode !== undefined && output.LanguageCode !== null ? output.LanguageCode : undefined, LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined, TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null ? output.TemplateDescription : undefined, TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined, TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, VoiceId: output.VoiceId !== undefined && output.VoiceId !== null ? output.VoiceId : undefined, tags: output.tags !== undefined && output.tags !== null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined, }; }; var deserializeAws_restJson1WaitActivity = function (output, context) { return { __type: "WaitActivity", NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined, WaitTime: output.WaitTime !== undefined && output.WaitTime !== null ? deserializeAws_restJson1WaitTime(output.WaitTime, context) : undefined, }; }; var deserializeAws_restJson1WaitTime = function (output, context) { return { __type: "WaitTime", WaitFor: output.WaitFor !== undefined && output.WaitFor !== null ? output.WaitFor : undefined, WaitUntil: output.WaitUntil !== undefined && output.WaitUntil !== null ? output.WaitUntil : undefined, }; }; var deserializeMetadata = function (output) { return ({ httpStatusCode: output.statusCode, httpHeaders: output.headers, requestId: output.headers["x-amzn-requestid"], }); }; // Collect low-level response body stream to Uint8Array. var collectBody = function (streamBody, context) { if (streamBody === void 0) { streamBody = new Uint8Array(); } if (streamBody instanceof Uint8Array) { return Promise.resolve(streamBody); } return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); }; // Encode Uint8Array data into string with utf-8. var collectBodyString = function (streamBody, context) { return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); }); }; var isSerializableHeaderValue = function (value) { return value !== undefined && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); }; var parseBody = function (streamBody, context) { return collectBodyString(streamBody, context).then(function (encoded) { if (encoded.length) { return JSON.parse(encoded); } return {}; }); }; /** * Load an error code for the aws.rest-json-1.1 protocol. */ var loadRestJsonErrorCode = function (output, data) { var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); }; var sanitizeErrorCode = function (rawValue) { var cleanValue = rawValue; if (cleanValue.indexOf(":") >= 0) { cleanValue = cleanValue.split(":")[0]; } if (cleanValue.indexOf("#") >= 0) { cleanValue = cleanValue.split("#")[1]; } return cleanValue; }; var headerKey = findKey(output.headers, "x-amzn-errortype"); if (headerKey !== undefined) { return sanitizeErrorCode(output.headers[headerKey]); } if (data.code !== undefined) { return sanitizeErrorCode(data.code); } if (data["__type"] !== undefined) { return sanitizeErrorCode(data["__type"]); } return ""; }; //# sourceMappingURL=Aws_restJson1.js.map /***/ }), /***/ "Lhse": /*!****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/symbol/iterator.js ***! \****************************************************************/ /*! exports provided: getSymbolIterator, iterator, $$iterator */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSymbolIterator", function() { return getSymbolIterator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "iterator", function() { return iterator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "$$iterator", function() { return $$iterator; }); function getSymbolIterator() { if (typeof Symbol !== 'function' || !Symbol.iterator) { return '@@iterator'; } return Symbol.iterator; } const iterator = getSymbolIterator(); const $$iterator = iterator; //# sourceMappingURL=iterator.js.map /***/ }), /***/ "LjFZ": /*!*****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateCampaignCommand.js ***! \*****************************************************************************************/ /*! exports provided: CreateCampaignCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignCommand", function() { return CreateCampaignCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CreateCampaignCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateCampaignCommand, _super); // Start section: command_properties // End section: command_properties function CreateCampaignCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CreateCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateCampaignRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateCampaignResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CreateCampaignCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateCampaignCommand"])(input, context); }; CreateCampaignCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateCampaignCommand"])(output, context); }; return CreateCampaignCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=CreateCampaignCommand.js.map /***/ }), /***/ "Lmem": /*!***************************************************!*\ !*** ./node_modules/axios/lib/cancel/isCancel.js ***! \***************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function isCancel(value) { return !!(value && value.__CANCEL__); }; /***/ }), /***/ "LnMm": /*!*************************************************************************************!*\ !*** ./node_modules/@aws-sdk/credential-provider-cognito-identity/dist/es/index.js ***! \*************************************************************************************/ /*! exports provided: fromCognitoIdentity, fromCognitoIdentityPool */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _CognitoProviderParameters__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CognitoProviderParameters */ "PVXq"); /* empty/unused harmony star reexport *//* harmony import */ var _fromCognitoIdentity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./fromCognitoIdentity */ "NJIg"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "fromCognitoIdentity", function() { return _fromCognitoIdentity__WEBPACK_IMPORTED_MODULE_1__["fromCognitoIdentity"]; }); /* harmony import */ var _fromCognitoIdentityPool__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fromCognitoIdentityPool */ "MRs/"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "fromCognitoIdentityPool", function() { return _fromCognitoIdentityPool__WEBPACK_IMPORTED_MODULE_2__["fromCognitoIdentityPool"]; }); /* harmony import */ var _Logins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Logins */ "UKJ6"); /* empty/unused harmony star reexport *//* harmony import */ var _Storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Storage */ "DCHX"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "LrBV": /*!*******************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/HeadObjectCommand.js ***! \*******************************************************************************/ /*! exports provided: HeadObjectCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeadObjectCommand", function() { return HeadObjectCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_ssec__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-ssec */ "CXEx"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var HeadObjectCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(HeadObjectCommand, _super); // Start section: command_properties // End section: command_properties function HeadObjectCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } HeadObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_ssec__WEBPACK_IMPORTED_MODULE_5__["getSsecPlugin"])(configuration)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["HeadObjectRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["HeadObjectOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; HeadObjectCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlHeadObjectCommand"])(input, context); }; HeadObjectCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlHeadObjectCommand"])(output, context); }; return HeadObjectCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__["Command"])); //# sourceMappingURL=HeadObjectCommand.js.map /***/ }), /***/ "M2ma": /*!*************************************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/lib-esm/sync/processors/subscription.js ***! \*************************************************************************************/ /*! exports provided: CONTROL_MSG, USER_CREDENTIALS, SubscriptionProcessor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONTROL_MSG", function() { return CONTROL_MSG; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "USER_CREDENTIALS", function() { return USER_CREDENTIALS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscriptionProcessor", function() { return SubscriptionProcessor; }); /* harmony import */ var _aws_amplify_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/api */ "Gyle"); /* harmony import */ var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/auth */ "AO/9"); /* harmony import */ var _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-amplify/cache */ "gr/K"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-amplify/pubsub */ "VHNH"); /* harmony import */ var zen_observable_ts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zen-observable-ts */ "b0dj"); /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "U1Cx"); var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__["ConsoleLogger"]('DataStore'); var CONTROL_MSG; (function (CONTROL_MSG) { CONTROL_MSG["CONNECTED"] = "CONNECTED"; })(CONTROL_MSG || (CONTROL_MSG = {})); var USER_CREDENTIALS; (function (USER_CREDENTIALS) { USER_CREDENTIALS[USER_CREDENTIALS["none"] = 0] = "none"; USER_CREDENTIALS[USER_CREDENTIALS["unauth"] = 1] = "unauth"; USER_CREDENTIALS[USER_CREDENTIALS["auth"] = 2] = "auth"; })(USER_CREDENTIALS || (USER_CREDENTIALS = {})); var SubscriptionProcessor = /** @class */ (function () { function SubscriptionProcessor(schema) { this.schema = schema; this.typeQuery = new WeakMap(); this.buffer = []; } SubscriptionProcessor.prototype.buildSubscription = function (namespace, model, transformerMutationType, userCredentials, cognitoTokenPayload, oidcTokenPayload) { var _a = this.getAuthorizationInfo(model, userCredentials, cognitoTokenPayload, oidcTokenPayload) || {}, authMode = _a.authMode, isOwner = _a.isOwner, ownerField = _a.ownerField, ownerValue = _a.ownerValue; var _b = __read(Object(_utils__WEBPACK_IMPORTED_MODULE_6__["buildSubscriptionGraphQLOperation"])(namespace, model, transformerMutationType, isOwner, ownerField), 3), opType = _b[0], opName = _b[1], query = _b[2]; return { authMode: authMode, opType: opType, opName: opName, query: query, isOwner: isOwner, ownerField: ownerField, ownerValue: ownerValue }; }; SubscriptionProcessor.prototype.getAuthorizationInfo = function (model, userCredentials, cognitoTokenPayload, oidcTokenPayload) { if (cognitoTokenPayload === void 0) { cognitoTokenPayload = {}; } if (oidcTokenPayload === void 0) { oidcTokenPayload = {}; } var result; var rules = Object(_utils__WEBPACK_IMPORTED_MODULE_6__["getAuthorizationRules"])(model); // check if has apiKey and public authorization var apiKeyAuth = rules.find(function (rule) { return rule.authStrategy === 'public' && rule.provider === 'apiKey'; }); if (apiKeyAuth) { return { authMode: _aws_amplify_api__WEBPACK_IMPORTED_MODULE_0__["GRAPHQL_AUTH_MODE"].API_KEY, isOwner: false }; } // check if has iam authorization if (userCredentials === USER_CREDENTIALS.unauth || userCredentials === USER_CREDENTIALS.auth) { var iamPublicAuth = rules.find(function (rule) { return rule.authStrategy === 'public' && rule.provider === 'iam'; }); if (iamPublicAuth) { return { authMode: _aws_amplify_api__WEBPACK_IMPORTED_MODULE_0__["GRAPHQL_AUTH_MODE"].AWS_IAM, isOwner: false }; } var iamPrivateAuth = userCredentials === USER_CREDENTIALS.auth && rules.find(function (rule) { return rule.authStrategy === 'private' && rule.provider === 'iam'; }); if (iamPrivateAuth) { return { authMode: _aws_amplify_api__WEBPACK_IMPORTED_MODULE_0__["GRAPHQL_AUTH_MODE"].AWS_IAM, isOwner: false }; } } // if not check if has groups authorization and token has groupClaim allowed for cognito token var groupAuthRules = rules.filter(function (rule) { return rule.authStrategy === 'groups' && rule.provider === 'userPools'; }); var validCognitoGroup = groupAuthRules.find(function (groupAuthRule) { // validate token agains groupClaim var userGroups = cognitoTokenPayload[groupAuthRule.groupClaim] || []; return userGroups.find(function (userGroup) { return groupAuthRule.groups.find(function (group) { return group === userGroup; }); }); }); if (validCognitoGroup) { return { authMode: _aws_amplify_api__WEBPACK_IMPORTED_MODULE_0__["GRAPHQL_AUTH_MODE"].AMAZON_COGNITO_USER_POOLS, isOwner: false, }; } // if not check if has groups authorization and token has groupClaim allowed for oidc token groupAuthRules = rules.filter(function (rule) { return rule.authStrategy === 'groups' && rule.provider === 'oidc'; }); var validOidcGroup = groupAuthRules.find(function (groupAuthRule) { // validate token agains groupClaim var userGroups = oidcTokenPayload[groupAuthRule.groupClaim] || []; userGroups.find(function (userGroup) { return groupAuthRule.groups.find(function (group) { return group === userGroup; }); }); }); if (validOidcGroup) { return { authMode: _aws_amplify_api__WEBPACK_IMPORTED_MODULE_0__["GRAPHQL_AUTH_MODE"].OPENID_CONNECT, isOwner: false, }; } // check if has owner auth authorization and token ownerField for cognito token var ownerAuthRules = rules.filter(function (rule) { return rule.authStrategy === 'owner' && rule.provider === 'userPools'; }); ownerAuthRules.forEach(function (ownerAuthRule) { var ownerValue = cognitoTokenPayload[ownerAuthRule.identityClaim]; if (ownerValue) { result = { authMode: _aws_amplify_api__WEBPACK_IMPORTED_MODULE_0__["GRAPHQL_AUTH_MODE"].AMAZON_COGNITO_USER_POOLS, isOwner: ownerAuthRule.areSubscriptionsPublic ? false : true, ownerField: ownerAuthRule.ownerField, ownerValue: ownerValue, }; } }); if (result) { return result; } // check if has owner auth authorization and token ownerField for oidc token ownerAuthRules = rules.filter(function (rule) { return rule.authStrategy === 'owner' && rule.provider === 'oidc'; }); ownerAuthRules.forEach(function (ownerAuthRule) { var ownerValue = oidcTokenPayload[ownerAuthRule.identityClaim]; if (ownerValue) { result = { authMode: _aws_amplify_api__WEBPACK_IMPORTED_MODULE_0__["GRAPHQL_AUTH_MODE"].OPENID_CONNECT, isOwner: ownerAuthRule.areSubscriptionsPublic ? false : true, ownerField: ownerAuthRule.ownerField, ownerValue: ownerValue, }; } }); if (result) { return result; } return null; }; SubscriptionProcessor.prototype.hubQueryCompletionListener = function (completed, capsule) { var event = capsule.payload.event; if (event === _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_4__["CONTROL_MSG"].SUBSCRIPTION_ACK) { completed(); } }; SubscriptionProcessor.prototype.start = function () { var _this = this; var ctlObservable = new zen_observable_ts__WEBPACK_IMPORTED_MODULE_5__["default"](function (observer) { var promises = []; var subscriptions = []; var cognitoTokenPayload, oidcTokenPayload; var userCredentials = USER_CREDENTIALS.none; (function () { return __awaiter(_this, void 0, void 0, function () { var credentials, err_1, session, err_2, token, federatedInfo, currentUser, payload, err_3; var _this = this; return __generator(this, function (_a) { switch (_a.label) { case 0: _a.trys.push([0, 2, , 3]); return [4 /*yield*/, _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_1__["default"].currentCredentials()]; case 1: credentials = _a.sent(); userCredentials = credentials.authenticated ? USER_CREDENTIALS.auth : USER_CREDENTIALS.unauth; return [3 /*break*/, 3]; case 2: err_1 = _a.sent(); return [3 /*break*/, 3]; case 3: _a.trys.push([3, 5, , 6]); return [4 /*yield*/, _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_1__["default"].currentSession()]; case 4: session = _a.sent(); cognitoTokenPayload = session.getIdToken().decodePayload(); return [3 /*break*/, 6]; case 5: err_2 = _a.sent(); return [3 /*break*/, 6]; case 6: _a.trys.push([6, 11, , 12]); token = void 0; return [4 /*yield*/, _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2__["default"].getItem('federatedInfo')]; case 7: federatedInfo = _a.sent(); if (!federatedInfo) return [3 /*break*/, 8]; token = federatedInfo.token; return [3 /*break*/, 10]; case 8: return [4 /*yield*/, _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_1__["default"].currentAuthenticatedUser()]; case 9: currentUser = _a.sent(); if (currentUser) { token = currentUser.token; } _a.label = 10; case 10: if (token) { payload = token.split('.')[1]; oidcTokenPayload = JSON.parse(Buffer.from(payload, 'base64').toString('utf8')); } return [3 /*break*/, 12]; case 11: err_3 = _a.sent(); logger.debug('error getting OIDC JWT', err_3); return [3 /*break*/, 12]; case 12: Object.values(this.schema.namespaces).forEach(function (namespace) { Object.values(namespace.models) .filter(function (_a) { var syncable = _a.syncable; return syncable; }) .forEach(function (modelDefinition) { return __awaiter(_this, void 0, void 0, function () { var queriesMetadata; var _this = this; return __generator(this, function (_a) { queriesMetadata = [ _utils__WEBPACK_IMPORTED_MODULE_6__["TransformerMutationType"].CREATE, _utils__WEBPACK_IMPORTED_MODULE_6__["TransformerMutationType"].UPDATE, _utils__WEBPACK_IMPORTED_MODULE_6__["TransformerMutationType"].DELETE, ].map(function (op) { return _this.buildSubscription(namespace, modelDefinition, op, userCredentials, cognitoTokenPayload, oidcTokenPayload); }); queriesMetadata.forEach(function (_a) { var transformerMutationType = _a.opType, opName = _a.opName, query = _a.query, isOwner = _a.isOwner, ownerField = _a.ownerField, ownerValue = _a.ownerValue, authMode = _a.authMode; return __awaiter(_this, void 0, void 0, function () { var variables, queryObservable, subscriptionReadyCallback; var _this = this; return __generator(this, function (_b) { variables = {}; if (isOwner) { if (!ownerValue) { // Check if there is an owner field, check where this error should be located observer.error('Owner field required, sign in is needed in order to perform this operation'); return [2 /*return*/]; } variables[ownerField] = ownerValue; } queryObservable = _aws_amplify_api__WEBPACK_IMPORTED_MODULE_0__["default"].graphql(__assign({ query: query, variables: variables }, { authMode: authMode })); subscriptions.push(queryObservable .map(function (_a) { var value = _a.value; return value; }) .subscribe({ next: function (_a) { var data = _a.data, errors = _a.errors; if (Array.isArray(errors) && errors.length > 0) { var messages = errors.map(function (_a) { var message = _a.message; return message; }); logger.warn("Skipping incoming subscription. Messages: " + messages.join('\n')); _this.drainBuffer(); return; } var _b = opName, record = data[_b]; _this.pushToBuffer(transformerMutationType, modelDefinition, record); _this.drainBuffer(); }, error: function (subscriptionError) { var _a = subscriptionError.error, _b = __read((_a === void 0 ? { errors: [], } : _a).errors, 1), _c = _b[0], _d = (_c === void 0 ? {} : _c).message, message = _d === void 0 ? '' : _d; logger.warn('subscriptionError', message); if (typeof subscriptionReadyCallback === 'function') { subscriptionReadyCallback(); } if (message.includes('"errorType":"Unauthorized"')) { return; } observer.error(message); }, })); promises.push((function () { return __awaiter(_this, void 0, void 0, function () { var boundFunction; var _this = this; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, new Promise(function (res) { subscriptionReadyCallback = res; boundFunction = _this.hubQueryCompletionListener.bind(_this, res); _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__["Hub"].listen('api', boundFunction); })]; case 1: _a.sent(); _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__["Hub"].remove('api', boundFunction); return [2 /*return*/]; } }); }); })()); return [2 /*return*/]; }); }); }); return [2 /*return*/]; }); }); }); }); Promise.all(promises).then(function () { return observer.next(CONTROL_MSG.CONNECTED); }); return [2 /*return*/]; } }); }); })(); return function () { subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); }); }; }); var dataObservable = new zen_observable_ts__WEBPACK_IMPORTED_MODULE_5__["default"](function (observer) { _this.dataObserver = observer; _this.drainBuffer(); return function () { _this.dataObserver = null; }; }); return [ctlObservable, dataObservable]; }; SubscriptionProcessor.prototype.pushToBuffer = function (transformerMutationType, modelDefinition, data) { this.buffer.push([transformerMutationType, modelDefinition, data]); }; SubscriptionProcessor.prototype.drainBuffer = function () { var _this = this; if (this.dataObserver) { this.buffer.forEach(function (data) { return _this.dataObserver.next(data); }); this.buffer = []; } }; return SubscriptionProcessor; }()); //# sourceMappingURL=subscription.js.map /***/ }), /***/ "M3TC": /*!******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetBucketPolicyStatusCommand.js ***! \******************************************************************************************/ /*! exports provided: GetBucketPolicyStatusCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBucketPolicyStatusCommand", function() { return GetBucketPolicyStatusCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetBucketPolicyStatusCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetBucketPolicyStatusCommand, _super); // Start section: command_properties // End section: command_properties function GetBucketPolicyStatusCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetBucketPolicyStatusCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketPolicyStatusRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketPolicyStatusOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetBucketPolicyStatusCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetBucketPolicyStatusCommand"])(input, context); }; GetBucketPolicyStatusCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetBucketPolicyStatusCommand"])(output, context); }; return GetBucketPolicyStatusCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetBucketPolicyStatusCommand.js.map /***/ }), /***/ "M8Rd": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-lex-runtime-service/dist/es/commands/PutSessionCommand.js ***! \************************************************************************************************/ /*! exports provided: PutSessionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutSessionCommand", function() { return PutSessionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "Vu3y"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "3fs/"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutSessionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutSessionCommand, _super); // Start section: command_properties // End section: command_properties function PutSessionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutSessionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutSessionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutSessionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutSessionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PutSessionCommand"])(input, context); }; PutSessionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PutSessionCommand"])(output, context); }; return PutSessionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=PutSessionCommand.js.map /***/ }), /***/ "MBAA": /*!***************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/scheduled/scheduleIterable.js ***! \***************************************************************************/ /*! exports provided: scheduleIterable */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheduleIterable", function() { return scheduleIterable; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subscription */ "quSY"); /* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../symbol/iterator */ "Lhse"); function scheduleIterable(input, scheduler) { if (!input) { throw new Error('Iterable cannot be null'); } return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => { const sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"](); let iterator; sub.add(() => { if (iterator && typeof iterator.return === 'function') { iterator.return(); } }); sub.add(scheduler.schedule(() => { iterator = input[_symbol_iterator__WEBPACK_IMPORTED_MODULE_2__["iterator"]](); sub.add(scheduler.schedule(function () { if (subscriber.closed) { return; } let value; let done; try { const result = iterator.next(); value = result.value; done = result.done; } catch (err) { subscriber.error(err); return; } if (done) { subscriber.complete(); } else { subscriber.next(value); this.schedule(); } })); })); return sub; }); } //# sourceMappingURL=scheduleIterable.js.map /***/ }), /***/ "MDZc": /*!*************************************************************************!*\ !*** ./node_modules/@aws-sdk/s3-request-presigner/dist/es/constants.js ***! \*************************************************************************/ /*! exports provided: UNSIGNED_PAYLOAD, SHA256_HEADER, ALGORITHM_QUERY_PARAM, CREDENTIAL_QUERY_PARAM, AMZ_DATE_QUERY_PARAM, SIGNED_HEADERS_QUERY_PARAM, EXPIRES_QUERY_PARAM, HOST_HEADER, ALGORITHM_IDENTIFIER */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSIGNED_PAYLOAD", function() { return UNSIGNED_PAYLOAD; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHA256_HEADER", function() { return SHA256_HEADER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALGORITHM_QUERY_PARAM", function() { return ALGORITHM_QUERY_PARAM; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CREDENTIAL_QUERY_PARAM", function() { return CREDENTIAL_QUERY_PARAM; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AMZ_DATE_QUERY_PARAM", function() { return AMZ_DATE_QUERY_PARAM; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIGNED_HEADERS_QUERY_PARAM", function() { return SIGNED_HEADERS_QUERY_PARAM; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EXPIRES_QUERY_PARAM", function() { return EXPIRES_QUERY_PARAM; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HOST_HEADER", function() { return HOST_HEADER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALGORITHM_IDENTIFIER", function() { return ALGORITHM_IDENTIFIER; }); var UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; var SHA256_HEADER = "X-Amz-Content-Sha256"; var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; var CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; var AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; var SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; var EXPIRES_QUERY_PARAM = "X-Amz-Expires"; var HOST_HEADER = "host"; var ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBTSxnQkFBZ0IsR0FBRyxrQkFBa0IsQ0FBQztBQUNuRCxNQUFNLENBQUMsSUFBTSxhQUFhLEdBQUcsc0JBQXNCLENBQUM7QUFFcEQsTUFBTSxDQUFDLElBQU0scUJBQXFCLEdBQUcsaUJBQWlCLENBQUM7QUFDdkQsTUFBTSxDQUFDLElBQU0sc0JBQXNCLEdBQUcsa0JBQWtCLENBQUM7QUFDekQsTUFBTSxDQUFDLElBQU0sb0JBQW9CLEdBQUcsWUFBWSxDQUFDO0FBQ2pELE1BQU0sQ0FBQyxJQUFNLDBCQUEwQixHQUFHLHFCQUFxQixDQUFDO0FBQ2hFLE1BQU0sQ0FBQyxJQUFNLG1CQUFtQixHQUFHLGVBQWUsQ0FBQztBQUNuRCxNQUFNLENBQUMsSUFBTSxXQUFXLEdBQUcsTUFBTSxDQUFDO0FBQ2xDLE1BQU0sQ0FBQyxJQUFNLG9CQUFvQixHQUFHLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IFVOU0lHTkVEX1BBWUxPQUQgPSBcIlVOU0lHTkVELVBBWUxPQURcIjtcbmV4cG9ydCBjb25zdCBTSEEyNTZfSEVBREVSID0gXCJYLUFtei1Db250ZW50LVNoYTI1NlwiO1xuXG5leHBvcnQgY29uc3QgQUxHT1JJVEhNX1FVRVJZX1BBUkFNID0gXCJYLUFtei1BbGdvcml0aG1cIjtcbmV4cG9ydCBjb25zdCBDUkVERU5USUFMX1FVRVJZX1BBUkFNID0gXCJYLUFtei1DcmVkZW50aWFsXCI7XG5leHBvcnQgY29uc3QgQU1aX0RBVEVfUVVFUllfUEFSQU0gPSBcIlgtQW16LURhdGVcIjtcbmV4cG9ydCBjb25zdCBTSUdORURfSEVBREVSU19RVUVSWV9QQVJBTSA9IFwiWC1BbXotU2lnbmVkSGVhZGVyc1wiO1xuZXhwb3J0IGNvbnN0IEVYUElSRVNfUVVFUllfUEFSQU0gPSBcIlgtQW16LUV4cGlyZXNcIjtcbmV4cG9ydCBjb25zdCBIT1NUX0hFQURFUiA9IFwiaG9zdFwiO1xuZXhwb3J0IGNvbnN0IEFMR09SSVRITV9JREVOVElGSUVSID0gXCJBV1M0LUhNQUMtU0hBMjU2XCI7XG4iXX0= /***/ }), /***/ "MFMH": /*!*************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/runtimeConfig.shared.js ***! \*************************************************************************/ /*! exports provided: ClientSharedValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientSharedValues", function() { return ClientSharedValues; }); /* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "edo5"); var ClientSharedValues = { apiVersion: "2006-03-01", disableHostPrefix: false, regionInfoProvider: _endpoints__WEBPACK_IMPORTED_MODULE_0__["defaultRegionInfoProvider"], signingEscapePath: false, signingName: "s3", useArnRegion: false, }; //# sourceMappingURL=runtimeConfig.shared.js.map /***/ }), /***/ "MFbZ": /*!******************************************************************************!*\ !*** ./node_modules/@aws-amplify/ui-components/dist/esm/helpers-01ecf5f9.js ***! \******************************************************************************/ /*! exports provided: a, b, c, d, e, h, i, o, r */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return dispatchToastHubEvent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return composePhoneNumberInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return checkUsernameAlias; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return dispatchAuthStateChangeEvent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return hasShadowDom; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return handlePhoneNumberChange; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return isHintValid; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return onAuthUIStateChange; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return requiredAttributesMap; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _auth_types_78df304e_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./auth-types-78df304e.js */ "s1tr"); /* harmony import */ var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-amplify/auth */ "AO/9"); /* harmony import */ var _Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Translations-392acb9b.js */ "c82j"); /* harmony import */ var _constants_d1abe7de_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constants-d1abe7de.js */ "/vcS"); const logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Logger"]('helpers'); const hasShadowDom = (el) => { return !!el.shadowRoot && !!el.attachShadow; }; const dispatchToastHubEvent = (error) => { _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].dispatch(_constants_d1abe7de_js__WEBPACK_IMPORTED_MODULE_4__["U"], { event: _constants_d1abe7de_js__WEBPACK_IMPORTED_MODULE_4__["T"], message: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(error.message), }); }; const dispatchAuthStateChangeEvent = (nextAuthState, data) => { _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].dispatch(_constants_d1abe7de_js__WEBPACK_IMPORTED_MODULE_4__["U"], { event: _constants_d1abe7de_js__WEBPACK_IMPORTED_MODULE_4__["a"], message: nextAuthState, data, }); }; const composePhoneNumberInput = (phoneNumber) => { if (!phoneNumber.phoneNumberValue) { throw new Error(_constants_d1abe7de_js__WEBPACK_IMPORTED_MODULE_4__["P"]); } const sanitizedPhoneNumberValue = phoneNumber.phoneNumberValue.replace(/[-()\s]/g, ''); return `${phoneNumber.countryDialCodeValue}${sanitizedPhoneNumberValue}`; }; const checkUsernameAlias = (usernameAlias) => { if (!(usernameAlias in _auth_types_78df304e_js__WEBPACK_IMPORTED_MODULE_1__["U"])) { throw new Error(`Invalid username Alias - ${usernameAlias}. Instead use ${Object.values(_auth_types_78df304e_js__WEBPACK_IMPORTED_MODULE_1__["U"])}`); } }; const onAuthUIStateChange = (authStateHandler) => { const authUIStateHandler = async (data) => { const { payload } = data; switch (payload.event) { case _constants_d1abe7de_js__WEBPACK_IMPORTED_MODULE_4__["a"]: if (payload.message) { if (payload.message === _auth_types_78df304e_js__WEBPACK_IMPORTED_MODULE_1__["A"].SignedIn) { // for AuthState.SignedIn, use an Auth Guard try { const user = await _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_2__["default"].currentAuthenticatedUser(); authStateHandler(payload.message, user); } catch (e) { logger.error('User is not authenticated'); } } else { authStateHandler(payload.message, payload.data); } } break; } }; _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].listen(_constants_d1abe7de_js__WEBPACK_IMPORTED_MODULE_4__["U"], authUIStateHandler); return () => _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].remove(_constants_d1abe7de_js__WEBPACK_IMPORTED_MODULE_4__["U"], authUIStateHandler); }; const isHintValid = field => { return !(field['hint'] === null || typeof field['hint'] === 'string'); }; // Required attributes come from https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims const requiredAttributesMap = { address: { label: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].ADDRESS_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].ADDRESS_PLACEHOLDER), }, nickname: { label: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].NICKNAME_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].NICKNAME_PLACEHOLDER), }, birthdate: { label: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].BIRTHDATE_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].BIRTHDATE_PLACEHOLDER), }, phone_number: { label: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].PHONE_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].PHONE_PLACEHOLDER), }, email: { lable: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].EMAIL_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].EMAIL_PLACEHOLDER), }, picture: { label: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].PICTURE_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].PICTURE_PLACEHOLDER), }, family_name: { label: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].FAMILY_NAME_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].FAMILY_NAME_PLACEHOLDER), }, preferred_username: { label: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].PREFERRED_USERNAME_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].PREFERRED_USERNAME_PLACEHOLDER), }, gender: { label: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].GENDER_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].GENDER_PLACEHOLDER), }, profile: { label: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].PROFILE_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].PROFILE_PLACEHOLDER), }, given_name: { label: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].GIVEN_NAME_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].GIVEN_NAME_LABEL), }, zoneinfo: { label: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].ZONEINFO_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].ZONEINFO_PLACEHOLDER), }, locale: { label: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].LOCALE_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].LOCALE_PLACEHOLDER), }, updated_at: { label: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].UPDATED_AT_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].UPDATED_AT_PLACEHOLDER), }, middle_name: { label: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].MIDDLE_NAME_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].MIDDLE_NAME_PLACEHOLDER), }, website: { label: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].WEBSITE_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].WEBSITE_PLACEHOLDER), }, name: { label: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].NAME_LABEL), placeholder: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["I18n"].get(_Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_3__["T"].NAME_PLACEHOLDER), }, }; function handlePhoneNumberChange(event, phoneNumber) { const name = event.target.name; const value = event.target.value; /** Cognito expects to have a string be passed when signing up. Since the Select input is separate * input from the phone number input, we need to first capture both components values and combined * them together. */ if (name === _constants_d1abe7de_js__WEBPACK_IMPORTED_MODULE_4__["C"]) { phoneNumber.countryDialCodeValue = value; } if (name === _constants_d1abe7de_js__WEBPACK_IMPORTED_MODULE_4__["b"]) { phoneNumber.phoneNumberValue = value; } } /***/ }), /***/ "MLWZ": /*!****************************************************!*\ !*** ./node_modules/axios/lib/helpers/buildURL.js ***! \****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./../utils */ "xTJ+"); function encode(val) { return encodeURIComponent(val). replace(/%40/gi, '@'). replace(/%3A/gi, ':'). replace(/%24/g, '$'). replace(/%2C/gi, ','). replace(/%20/g, '+'). replace(/%5B/gi, '['). replace(/%5D/gi, ']'); } /** * Build a URL by appending params to the end * * @param {string} url The base of the url (e.g., http://www.google.com) * @param {object} [params] The params to be appended * @returns {string} The formatted url */ module.exports = function buildURL(url, params, paramsSerializer) { /*eslint no-param-reassign:0*/ if (!params) { return url; } var serializedParams; if (paramsSerializer) { serializedParams = paramsSerializer(params); } else if (utils.isURLSearchParams(params)) { serializedParams = params.toString(); } else { var parts = []; utils.forEach(params, function serialize(val, key) { if (val === null || typeof val === 'undefined') { return; } if (utils.isArray(val)) { key = key + '[]'; } else { val = [val]; } utils.forEach(val, function parseValue(v) { if (utils.isDate(v)) { v = v.toISOString(); } else if (utils.isObject(v)) { v = JSON.stringify(v); } parts.push(encode(key) + '=' + encode(v)); }); }); serializedParams = parts.join('&'); } if (serializedParams) { var hashmarkIndex = url.indexOf('#'); if (hashmarkIndex !== -1) { url = url.slice(0, hashmarkIndex); } url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; } return url; }; /***/ }), /***/ "MMmD": /*!********************************************!*\ !*** ./node_modules/lodash/isArrayLike.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__(/*! ./isFunction */ "lSCD"), isLength = __webpack_require__(/*! ./isLength */ "shjB"); /** * Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * * _.isArrayLike([1, 2, 3]); * // => true * * _.isArrayLike(document.body.children); * // => true * * _.isArrayLike('abc'); * // => true * * _.isArrayLike(_.noop); * // => false */ function isArrayLike(value) { return value != null && isLength(value.length) && !isFunction(value); } module.exports = isArrayLike; /***/ }), /***/ "MRs/": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/credential-provider-cognito-identity/dist/es/fromCognitoIdentityPool.js ***! \*******************************************************************************************************/ /*! exports provided: fromCognitoIdentityPool */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromCognitoIdentityPool", function() { return fromCognitoIdentityPool; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_client_cognito_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/client-cognito-identity */ "f1ex"); /* harmony import */ var _aws_sdk_property_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/property-provider */ "eAe6"); /* harmony import */ var _fromCognitoIdentity__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fromCognitoIdentity */ "NJIg"); /* harmony import */ var _localStorage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./localStorage */ "oOIm"); /* harmony import */ var _resolveLogins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./resolveLogins */ "PK/e"); /** * Retrieves or generates a unique identifier using Amazon Cognito's `GetId` * operation, then generates temporary AWS credentials using Amazon Cognito's * `GetCredentialsForIdentity` operation. * * Results from `GetId` are cached internally, but results from * `GetCredentialsForIdentity` are not. */ function fromCognitoIdentityPool(_a) { var _this = this; var accountId = _a.accountId, _b = _a.cache, cache = _b === void 0 ? Object(_localStorage__WEBPACK_IMPORTED_MODULE_4__["localStorage"])() : _b, client = _a.client, customRoleArn = _a.customRoleArn, identityPoolId = _a.identityPoolId, logins = _a.logins, _c = _a.userIdentifier, userIdentifier = _c === void 0 ? !logins || Object.keys(logins).length === 0 ? "ANONYMOUS" : undefined : _c; var cacheKey = userIdentifier ? "aws:cognito-identity-credentials:" + identityPoolId + ":" + userIdentifier : undefined; var provider = function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () { var identityId, _a, _b, IdentityId, _c, _d, _e, _f; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = cacheKey; if (!_a) return [3 /*break*/, 2]; return [4 /*yield*/, cache.getItem(cacheKey)]; case 1: _a = (_h.sent()); _h.label = 2; case 2: identityId = _a; if (!!identityId) return [3 /*break*/, 7]; _d = (_c = client).send; _e = _aws_sdk_client_cognito_identity__WEBPACK_IMPORTED_MODULE_1__["GetIdCommand"].bind; _g = { AccountId: accountId, IdentityPoolId: identityPoolId }; if (!logins) return [3 /*break*/, 4]; return [4 /*yield*/, Object(_resolveLogins__WEBPACK_IMPORTED_MODULE_5__["resolveLogins"])(logins)]; case 3: _f = _h.sent(); return [3 /*break*/, 5]; case 4: _f = undefined; _h.label = 5; case 5: return [4 /*yield*/, _d.apply(_c, [new (_e.apply(_aws_sdk_client_cognito_identity__WEBPACK_IMPORTED_MODULE_1__["GetIdCommand"], [void 0, (_g.Logins = _f, _g)]))()])]; case 6: _b = (_h.sent()).IdentityId, IdentityId = _b === void 0 ? throwOnMissingId() : _b; identityId = IdentityId; if (cacheKey) { Promise.resolve(cache.setItem(cacheKey, identityId)).catch(function () { }); } _h.label = 7; case 7: provider = Object(_fromCognitoIdentity__WEBPACK_IMPORTED_MODULE_3__["fromCognitoIdentity"])({ client: client, customRoleArn: customRoleArn, logins: logins, identityId: identityId, }); return [2 /*return*/, provider()]; } }); }); }; return function () { return provider().catch(function (err) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { if (cacheKey) { Promise.resolve(cache.removeItem(cacheKey)).catch(function () { }); } throw err; }); }); }); }; } function throwOnMissingId() { throw new _aws_sdk_property_provider__WEBPACK_IMPORTED_MODULE_2__["ProviderError"]("Response from Amazon Cognito contained no identity ID"); } //# sourceMappingURL=fromCognitoIdentityPool.js.map /***/ }), /***/ "MXMf": /*!***************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/CreateEntityRecognizerCommand.js ***! \***************************************************************************************************/ /*! exports provided: CreateEntityRecognizerCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEntityRecognizerCommand", function() { return CreateEntityRecognizerCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CreateEntityRecognizerCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateEntityRecognizerCommand, _super); // Start section: command_properties // End section: command_properties function CreateEntityRecognizerCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CreateEntityRecognizerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateEntityRecognizerRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateEntityRecognizerResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CreateEntityRecognizerCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1CreateEntityRecognizerCommand"])(input, context); }; CreateEntityRecognizerCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1CreateEntityRecognizerCommand"])(output, context); }; return CreateEntityRecognizerCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=CreateEntityRecognizerCommand.js.map /***/ }), /***/ "Mbdf": /*!*********************************************************!*\ !*** ./node_modules/graphql/utilities/valueFromAST.mjs ***! \*********************************************************/ /*! exports provided: valueFromAST */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "valueFromAST", function() { return valueFromAST; }); /* harmony import */ var _jsutils_keyMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/keyMap */ "kBjl"); /* harmony import */ var _jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/isInvalid */ "/kEc"); /* harmony import */ var _jsutils_objectValues__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../jsutils/objectValues */ "S4Ci"); /* harmony import */ var _language_kinds__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../language/kinds */ "/jXB"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../type/definition */ "axIb"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Produces a JavaScript value given a GraphQL Value AST. * * A GraphQL type must be provided, which will be used to interpret different * GraphQL Value literals. * * Returns `undefined` when the value could not be validly coerced according to * the provided type. * * | GraphQL Value | JSON Value | * | -------------------- | ------------- | * | Input Object | Object | * | List | Array | * | Boolean | Boolean | * | String | String | * | Int / Float | Number | * | Enum Value | Mixed | * | NullValue | null | * */ function valueFromAST(valueNode, type, variables) { if (!valueNode) { // When there is no node, then there is also no value. // Importantly, this is different from returning the value null. return; } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isNonNullType"])(type)) { if (valueNode.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_3__["Kind"].NULL) { return; // Invalid: intentionally return no value. } return valueFromAST(valueNode, type.ofType, variables); } if (valueNode.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_3__["Kind"].NULL) { // This is explicitly returning the value null. return null; } if (valueNode.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_3__["Kind"].VARIABLE) { var variableName = valueNode.name.value; if (!variables || Object(_jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_1__["default"])(variables[variableName])) { // No valid return value. return; } var variableValue = variables[variableName]; if (variableValue === null && Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isNonNullType"])(type)) { return; // Invalid: intentionally return no value. } // Note: This does no further checking that this variable is correct. // This assumes that this query has been validated and the variable // usage here is of the correct type. return variableValue; } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isListType"])(type)) { var itemType = type.ofType; if (valueNode.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_3__["Kind"].LIST) { var coercedValues = []; var itemNodes = valueNode.values; for (var i = 0; i < itemNodes.length; i++) { if (isMissingVariable(itemNodes[i], variables)) { // If an array contains a missing variable, it is either coerced to // null or if the item type is non-null, it considered invalid. if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isNonNullType"])(itemType)) { return; // Invalid: intentionally return no value. } coercedValues.push(null); } else { var itemValue = valueFromAST(itemNodes[i], itemType, variables); if (Object(_jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_1__["default"])(itemValue)) { return; // Invalid: intentionally return no value. } coercedValues.push(itemValue); } } return coercedValues; } var coercedValue = valueFromAST(valueNode, itemType, variables); if (Object(_jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_1__["default"])(coercedValue)) { return; // Invalid: intentionally return no value. } return [coercedValue]; } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isInputObjectType"])(type)) { if (valueNode.kind !== _language_kinds__WEBPACK_IMPORTED_MODULE_3__["Kind"].OBJECT) { return; // Invalid: intentionally return no value. } var coercedObj = Object.create(null); var fieldNodes = Object(_jsutils_keyMap__WEBPACK_IMPORTED_MODULE_0__["default"])(valueNode.fields, function (field) { return field.name.value; }); var fields = Object(_jsutils_objectValues__WEBPACK_IMPORTED_MODULE_2__["default"])(type.getFields()); for (var _i = 0; _i < fields.length; _i++) { var field = fields[_i]; var fieldNode = fieldNodes[field.name]; if (!fieldNode || isMissingVariable(fieldNode.value, variables)) { if (field.defaultValue !== undefined) { coercedObj[field.name] = field.defaultValue; } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isNonNullType"])(field.type)) { return; // Invalid: intentionally return no value. } continue; } var fieldValue = valueFromAST(fieldNode.value, field.type, variables); if (Object(_jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_1__["default"])(fieldValue)) { return; // Invalid: intentionally return no value. } coercedObj[field.name] = fieldValue; } return coercedObj; } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isEnumType"])(type)) { if (valueNode.kind !== _language_kinds__WEBPACK_IMPORTED_MODULE_3__["Kind"].ENUM) { return; // Invalid: intentionally return no value. } var enumValue = type.getValue(valueNode.value); if (!enumValue) { return; // Invalid: intentionally return no value. } return enumValue.value; } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isScalarType"])(type)) { // Scalars fulfill parsing a literal value via parseLiteral(). // Invalid values represent a failure to parse correctly, in which case // no value is returned. var result; try { result = type.parseLiteral(valueNode, variables); } catch (_error) { return; // Invalid: intentionally return no value. } if (Object(_jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_1__["default"])(result)) { return; // Invalid: intentionally return no value. } return result; } /* istanbul ignore next */ throw new Error("Unknown type: ".concat(type, ".")); } // Returns true if the provided valueNode is a variable which is not defined // in the set of variables. function isMissingVariable(valueNode, variables) { return valueNode.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_3__["Kind"].VARIABLE && (!variables || Object(_jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_1__["default"])(variables[valueNode.name.value])); } /***/ }), /***/ "MfnF": /*!*********************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/constants.js ***! \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* * Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); /** * This Symbol is used to reference an internal-only PubSub provider that * is used for AppSync/GraphQL subscriptions in the API category. */ var hasSymbol = typeof Symbol !== 'undefined' && typeof Symbol.for === 'function'; exports.INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER = hasSymbol ? Symbol.for('INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER') : '@@INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER'; exports.INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER = hasSymbol ? Symbol.for('INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER') : '@@INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER'; exports.USER_AGENT_HEADER = 'x-amz-user-agent'; //# sourceMappingURL=constants.js.map /***/ }), /***/ "MiHR": /*!***************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/index.js ***! \***************************************************************/ /*! exports provided: KinesisClient, Kinesis, AddTagsToStreamCommand, CreateStreamCommand, DecreaseStreamRetentionPeriodCommand, DeleteStreamCommand, DeregisterStreamConsumerCommand, DescribeLimitsCommand, DescribeStreamCommand, DescribeStreamConsumerCommand, DescribeStreamSummaryCommand, DisableEnhancedMonitoringCommand, EnableEnhancedMonitoringCommand, GetRecordsCommand, GetShardIteratorCommand, IncreaseStreamRetentionPeriodCommand, ListShardsCommand, ListStreamConsumersCommand, listStreamConsumersPaginate, ListStreamsCommand, ListTagsForStreamCommand, MergeShardsCommand, PutRecordCommand, PutRecordsCommand, RegisterStreamConsumerCommand, RemoveTagsFromStreamCommand, SplitShardCommand, StartStreamEncryptionCommand, StopStreamEncryptionCommand, SubscribeToShardCommand, UpdateShardCountCommand, AddTagsToStreamInput, Consumer, ConsumerDescription, ConsumerStatus, CreateStreamInput, DecreaseStreamRetentionPeriodInput, DeleteStreamInput, DeregisterStreamConsumerInput, DescribeLimitsInput, DescribeLimitsOutput, DescribeStreamConsumerInput, DescribeStreamConsumerOutput, DescribeStreamInput, DescribeStreamOutput, DescribeStreamSummaryInput, DescribeStreamSummaryOutput, DisableEnhancedMonitoringInput, EnableEnhancedMonitoringInput, EncryptionType, EnhancedMetrics, EnhancedMonitoringOutput, ExpiredIteratorException, ExpiredNextTokenException, GetRecordsInput, GetRecordsOutput, GetShardIteratorInput, GetShardIteratorOutput, HashKeyRange, IncreaseStreamRetentionPeriodInput, InternalFailureException, InvalidArgumentException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, LimitExceededException, ListShardsInput, ListShardsOutput, ListStreamConsumersInput, ListStreamConsumersOutput, ListStreamsInput, ListStreamsOutput, ListTagsForStreamInput, ListTagsForStreamOutput, MergeShardsInput, MetricsName, ProvisionedThroughputExceededException, PutRecordInput, PutRecordOutput, PutRecordsInput, PutRecordsOutput, PutRecordsRequestEntry, PutRecordsResultEntry, _Record, RegisterStreamConsumerInput, RegisterStreamConsumerOutput, RemoveTagsFromStreamInput, ResourceInUseException, ResourceNotFoundException, ScalingType, SequenceNumberRange, Shard, ShardIteratorType, SplitShardInput, StartingPosition, StartStreamEncryptionInput, StopStreamEncryptionInput, StreamDescription, StreamDescriptionSummary, StreamStatus, SubscribeToShardEvent, SubscribeToShardEventStream, SubscribeToShardInput, SubscribeToShardOutput, Tag, UpdateShardCountInput, UpdateShardCountOutput */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _KinesisClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./KinesisClient */ "zDFU"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KinesisClient", function() { return _KinesisClient__WEBPACK_IMPORTED_MODULE_0__["KinesisClient"]; }); /* harmony import */ var _Kinesis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Kinesis */ "89JE"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Kinesis", function() { return _Kinesis__WEBPACK_IMPORTED_MODULE_1__["Kinesis"]; }); /* harmony import */ var _commands_AddTagsToStreamCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/AddTagsToStreamCommand */ "nNfj"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AddTagsToStreamCommand", function() { return _commands_AddTagsToStreamCommand__WEBPACK_IMPORTED_MODULE_2__["AddTagsToStreamCommand"]; }); /* harmony import */ var _commands_CreateStreamCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/CreateStreamCommand */ "ETva"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateStreamCommand", function() { return _commands_CreateStreamCommand__WEBPACK_IMPORTED_MODULE_3__["CreateStreamCommand"]; }); /* harmony import */ var _commands_DecreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/DecreaseStreamRetentionPeriodCommand */ "sYVI"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DecreaseStreamRetentionPeriodCommand", function() { return _commands_DecreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_4__["DecreaseStreamRetentionPeriodCommand"]; }); /* harmony import */ var _commands_DeleteStreamCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/DeleteStreamCommand */ "hM2z"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamCommand", function() { return _commands_DeleteStreamCommand__WEBPACK_IMPORTED_MODULE_5__["DeleteStreamCommand"]; }); /* harmony import */ var _commands_DeregisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/DeregisterStreamConsumerCommand */ "T0KU"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeregisterStreamConsumerCommand", function() { return _commands_DeregisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_6__["DeregisterStreamConsumerCommand"]; }); /* harmony import */ var _commands_DescribeLimitsCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/DescribeLimitsCommand */ "mfpG"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsCommand", function() { return _commands_DescribeLimitsCommand__WEBPACK_IMPORTED_MODULE_7__["DescribeLimitsCommand"]; }); /* harmony import */ var _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/DescribeStreamCommand */ "1F7f"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamCommand", function() { return _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_8__["DescribeStreamCommand"]; }); /* harmony import */ var _commands_DescribeStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/DescribeStreamConsumerCommand */ "IkNI"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerCommand", function() { return _commands_DescribeStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_9__["DescribeStreamConsumerCommand"]; }); /* harmony import */ var _commands_DescribeStreamSummaryCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/DescribeStreamSummaryCommand */ "jIBd"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryCommand", function() { return _commands_DescribeStreamSummaryCommand__WEBPACK_IMPORTED_MODULE_10__["DescribeStreamSummaryCommand"]; }); /* harmony import */ var _commands_DisableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/DisableEnhancedMonitoringCommand */ "axPF"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DisableEnhancedMonitoringCommand", function() { return _commands_DisableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_11__["DisableEnhancedMonitoringCommand"]; }); /* harmony import */ var _commands_EnableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/EnableEnhancedMonitoringCommand */ "TRML"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnableEnhancedMonitoringCommand", function() { return _commands_EnableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_12__["EnableEnhancedMonitoringCommand"]; }); /* harmony import */ var _commands_GetRecordsCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/GetRecordsCommand */ "0PI4"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecordsCommand", function() { return _commands_GetRecordsCommand__WEBPACK_IMPORTED_MODULE_13__["GetRecordsCommand"]; }); /* harmony import */ var _commands_GetShardIteratorCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/GetShardIteratorCommand */ "IqeB"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorCommand", function() { return _commands_GetShardIteratorCommand__WEBPACK_IMPORTED_MODULE_14__["GetShardIteratorCommand"]; }); /* harmony import */ var _commands_IncreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/IncreaseStreamRetentionPeriodCommand */ "6HaD"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IncreaseStreamRetentionPeriodCommand", function() { return _commands_IncreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_15__["IncreaseStreamRetentionPeriodCommand"]; }); /* harmony import */ var _commands_ListShardsCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/ListShardsCommand */ "YzBE"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListShardsCommand", function() { return _commands_ListShardsCommand__WEBPACK_IMPORTED_MODULE_16__["ListShardsCommand"]; }); /* harmony import */ var _commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/ListStreamConsumersCommand */ "VtXw"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersCommand", function() { return _commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_17__["ListStreamConsumersCommand"]; }); /* harmony import */ var _pagination_ListStreamConsumersPaginator__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./pagination/ListStreamConsumersPaginator */ "AoYT"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "listStreamConsumersPaginate", function() { return _pagination_ListStreamConsumersPaginator__WEBPACK_IMPORTED_MODULE_18__["listStreamConsumersPaginate"]; }); /* harmony import */ var _commands_ListStreamsCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/ListStreamsCommand */ "L8QR"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamsCommand", function() { return _commands_ListStreamsCommand__WEBPACK_IMPORTED_MODULE_19__["ListStreamsCommand"]; }); /* harmony import */ var _commands_ListTagsForStreamCommand__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./commands/ListTagsForStreamCommand */ "u4xJ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamCommand", function() { return _commands_ListTagsForStreamCommand__WEBPACK_IMPORTED_MODULE_20__["ListTagsForStreamCommand"]; }); /* harmony import */ var _commands_MergeShardsCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/MergeShardsCommand */ "3OOI"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MergeShardsCommand", function() { return _commands_MergeShardsCommand__WEBPACK_IMPORTED_MODULE_21__["MergeShardsCommand"]; }); /* harmony import */ var _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/PutRecordCommand */ "Rzw5"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordCommand", function() { return _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_22__["PutRecordCommand"]; }); /* harmony import */ var _commands_PutRecordsCommand__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./commands/PutRecordsCommand */ "/wK6"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsCommand", function() { return _commands_PutRecordsCommand__WEBPACK_IMPORTED_MODULE_23__["PutRecordsCommand"]; }); /* harmony import */ var _commands_RegisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./commands/RegisterStreamConsumerCommand */ "0lYC"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerCommand", function() { return _commands_RegisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_24__["RegisterStreamConsumerCommand"]; }); /* harmony import */ var _commands_RemoveTagsFromStreamCommand__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./commands/RemoveTagsFromStreamCommand */ "heFw"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveTagsFromStreamCommand", function() { return _commands_RemoveTagsFromStreamCommand__WEBPACK_IMPORTED_MODULE_25__["RemoveTagsFromStreamCommand"]; }); /* harmony import */ var _commands_SplitShardCommand__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./commands/SplitShardCommand */ "CoaD"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplitShardCommand", function() { return _commands_SplitShardCommand__WEBPACK_IMPORTED_MODULE_26__["SplitShardCommand"]; }); /* harmony import */ var _commands_StartStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./commands/StartStreamEncryptionCommand */ "fW1I"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartStreamEncryptionCommand", function() { return _commands_StartStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_27__["StartStreamEncryptionCommand"]; }); /* harmony import */ var _commands_StopStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./commands/StopStreamEncryptionCommand */ "eBKz"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopStreamEncryptionCommand", function() { return _commands_StopStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_28__["StopStreamEncryptionCommand"]; }); /* harmony import */ var _commands_SubscribeToShardCommand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./commands/SubscribeToShardCommand */ "8iDP"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardCommand", function() { return _commands_SubscribeToShardCommand__WEBPACK_IMPORTED_MODULE_29__["SubscribeToShardCommand"]; }); /* harmony import */ var _commands_UpdateShardCountCommand__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./commands/UpdateShardCountCommand */ "wlME"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountCommand", function() { return _commands_UpdateShardCountCommand__WEBPACK_IMPORTED_MODULE_30__["UpdateShardCountCommand"]; }); /* harmony import */ var _pagination_Interfaces__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./pagination/Interfaces */ "dAmv"); /* empty/unused harmony star reexport *//* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./models/index */ "96Y9"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AddTagsToStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["AddTagsToStreamInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Consumer", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["Consumer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConsumerDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ConsumerDescription"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConsumerStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ConsumerStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["CreateStreamInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DecreaseStreamRetentionPeriodInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["DecreaseStreamRetentionPeriodInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["DeleteStreamInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeregisterStreamConsumerInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["DeregisterStreamConsumerInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["DescribeLimitsInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["DescribeLimitsOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["DescribeStreamConsumerInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["DescribeStreamConsumerOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["DescribeStreamInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["DescribeStreamOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["DescribeStreamSummaryInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["DescribeStreamSummaryOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DisableEnhancedMonitoringInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["DisableEnhancedMonitoringInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnableEnhancedMonitoringInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["EnableEnhancedMonitoringInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EncryptionType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["EncryptionType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnhancedMetrics", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["EnhancedMetrics"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnhancedMonitoringOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["EnhancedMonitoringOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpiredIteratorException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ExpiredIteratorException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpiredNextTokenException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ExpiredNextTokenException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecordsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["GetRecordsInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecordsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["GetRecordsOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["GetShardIteratorInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["GetShardIteratorOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HashKeyRange", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["HashKeyRange"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IncreaseStreamRetentionPeriodInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["IncreaseStreamRetentionPeriodInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InternalFailureException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["InternalFailureException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidArgumentException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["InvalidArgumentException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSAccessDeniedException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["KMSAccessDeniedException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSDisabledException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["KMSDisabledException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSInvalidStateException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["KMSInvalidStateException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSNotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["KMSNotFoundException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSOptInRequired", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["KMSOptInRequired"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSThrottlingException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["KMSThrottlingException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["LimitExceededException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListShardsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ListShardsInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListShardsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ListShardsOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ListStreamConsumersInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ListStreamConsumersOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ListStreamsInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ListStreamsOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ListTagsForStreamInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ListTagsForStreamOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MergeShardsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["MergeShardsInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MetricsName", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["MetricsName"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProvisionedThroughputExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ProvisionedThroughputExceededException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["PutRecordInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["PutRecordOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["PutRecordsInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["PutRecordsOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsRequestEntry", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["PutRecordsRequestEntry"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsResultEntry", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["PutRecordsResultEntry"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_Record", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["_Record"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["RegisterStreamConsumerInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["RegisterStreamConsumerOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveTagsFromStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["RemoveTagsFromStreamInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceInUseException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ResourceInUseException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ResourceNotFoundException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScalingType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ScalingType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SequenceNumberRange", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["SequenceNumberRange"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Shard", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["Shard"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShardIteratorType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["ShardIteratorType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplitShardInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["SplitShardInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartingPosition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["StartingPosition"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartStreamEncryptionInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["StartStreamEncryptionInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopStreamEncryptionInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["StopStreamEncryptionInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["StreamDescription"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamDescriptionSummary", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["StreamDescriptionSummary"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["StreamStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardEvent", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["SubscribeToShardEvent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardEventStream", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["SubscribeToShardEventStream"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["SubscribeToShardInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["SubscribeToShardOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["Tag"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["UpdateShardCountInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_32__["UpdateShardCountOutput"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "MjkZ": /*!*************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/Rekognition.js ***! \*************************************************************************/ /*! exports provided: Rekognition */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rekognition", function() { return Rekognition; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _RekognitionClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RekognitionClient */ "YOij"); /* harmony import */ var _commands_CompareFacesCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/CompareFacesCommand */ "XofR"); /* harmony import */ var _commands_CreateCollectionCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/CreateCollectionCommand */ "Nvd9"); /* harmony import */ var _commands_CreateProjectCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/CreateProjectCommand */ "Je4A"); /* harmony import */ var _commands_CreateProjectVersionCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/CreateProjectVersionCommand */ "rF6z"); /* harmony import */ var _commands_CreateStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/CreateStreamProcessorCommand */ "IeH0"); /* harmony import */ var _commands_DeleteCollectionCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/DeleteCollectionCommand */ "CajK"); /* harmony import */ var _commands_DeleteFacesCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/DeleteFacesCommand */ "j8sq"); /* harmony import */ var _commands_DeleteProjectCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/DeleteProjectCommand */ "xTwE"); /* harmony import */ var _commands_DeleteProjectVersionCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/DeleteProjectVersionCommand */ "shiI"); /* harmony import */ var _commands_DeleteStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/DeleteStreamProcessorCommand */ "RVjW"); /* harmony import */ var _commands_DescribeCollectionCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/DescribeCollectionCommand */ "+VsY"); /* harmony import */ var _commands_DescribeProjectVersionsCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/DescribeProjectVersionsCommand */ "anbC"); /* harmony import */ var _commands_DescribeProjectsCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/DescribeProjectsCommand */ "GhKt"); /* harmony import */ var _commands_DescribeStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/DescribeStreamProcessorCommand */ "WGKf"); /* harmony import */ var _commands_DetectCustomLabelsCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/DetectCustomLabelsCommand */ "bpfF"); /* harmony import */ var _commands_DetectFacesCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/DetectFacesCommand */ "zl4K"); /* harmony import */ var _commands_DetectLabelsCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/DetectLabelsCommand */ "tiHn"); /* harmony import */ var _commands_DetectModerationLabelsCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/DetectModerationLabelsCommand */ "D38H"); /* harmony import */ var _commands_DetectTextCommand__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./commands/DetectTextCommand */ "3wOB"); /* harmony import */ var _commands_GetCelebrityInfoCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/GetCelebrityInfoCommand */ "SUoz"); /* harmony import */ var _commands_GetCelebrityRecognitionCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/GetCelebrityRecognitionCommand */ "aCkC"); /* harmony import */ var _commands_GetContentModerationCommand__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./commands/GetContentModerationCommand */ "jQbL"); /* harmony import */ var _commands_GetFaceDetectionCommand__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./commands/GetFaceDetectionCommand */ "aMBS"); /* harmony import */ var _commands_GetFaceSearchCommand__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./commands/GetFaceSearchCommand */ "37TR"); /* harmony import */ var _commands_GetLabelDetectionCommand__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./commands/GetLabelDetectionCommand */ "4wFL"); /* harmony import */ var _commands_GetPersonTrackingCommand__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./commands/GetPersonTrackingCommand */ "TLcn"); /* harmony import */ var _commands_GetSegmentDetectionCommand__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./commands/GetSegmentDetectionCommand */ "oZY4"); /* harmony import */ var _commands_GetTextDetectionCommand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./commands/GetTextDetectionCommand */ "pfJv"); /* harmony import */ var _commands_IndexFacesCommand__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./commands/IndexFacesCommand */ "Xyjb"); /* harmony import */ var _commands_ListCollectionsCommand__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./commands/ListCollectionsCommand */ "cEH/"); /* harmony import */ var _commands_ListFacesCommand__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./commands/ListFacesCommand */ "fZP1"); /* harmony import */ var _commands_ListStreamProcessorsCommand__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./commands/ListStreamProcessorsCommand */ "weia"); /* harmony import */ var _commands_RecognizeCelebritiesCommand__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./commands/RecognizeCelebritiesCommand */ "0gvd"); /* harmony import */ var _commands_SearchFacesByImageCommand__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./commands/SearchFacesByImageCommand */ "xTIa"); /* harmony import */ var _commands_SearchFacesCommand__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./commands/SearchFacesCommand */ "/0mR"); /* harmony import */ var _commands_StartCelebrityRecognitionCommand__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./commands/StartCelebrityRecognitionCommand */ "7fx8"); /* harmony import */ var _commands_StartContentModerationCommand__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./commands/StartContentModerationCommand */ "ljlb"); /* harmony import */ var _commands_StartFaceDetectionCommand__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./commands/StartFaceDetectionCommand */ "j+72"); /* harmony import */ var _commands_StartFaceSearchCommand__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./commands/StartFaceSearchCommand */ "kgou"); /* harmony import */ var _commands_StartLabelDetectionCommand__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./commands/StartLabelDetectionCommand */ "eIcr"); /* harmony import */ var _commands_StartPersonTrackingCommand__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./commands/StartPersonTrackingCommand */ "ckW+"); /* harmony import */ var _commands_StartProjectVersionCommand__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./commands/StartProjectVersionCommand */ "X6NG"); /* harmony import */ var _commands_StartSegmentDetectionCommand__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./commands/StartSegmentDetectionCommand */ "fnsL"); /* harmony import */ var _commands_StartStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./commands/StartStreamProcessorCommand */ "XlVz"); /* harmony import */ var _commands_StartTextDetectionCommand__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./commands/StartTextDetectionCommand */ "6T2O"); /* harmony import */ var _commands_StopProjectVersionCommand__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./commands/StopProjectVersionCommand */ "WwzQ"); /* harmony import */ var _commands_StopStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./commands/StopStreamProcessorCommand */ "tPz/"); /** *

This is the Amazon Rekognition API reference.

*/ var Rekognition = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Rekognition, _super); function Rekognition() { return _super !== null && _super.apply(this, arguments) || this; } Rekognition.prototype.compareFaces = function (args, optionsOrCb, cb) { var command = new _commands_CompareFacesCommand__WEBPACK_IMPORTED_MODULE_2__["CompareFacesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.createCollection = function (args, optionsOrCb, cb) { var command = new _commands_CreateCollectionCommand__WEBPACK_IMPORTED_MODULE_3__["CreateCollectionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.createProject = function (args, optionsOrCb, cb) { var command = new _commands_CreateProjectCommand__WEBPACK_IMPORTED_MODULE_4__["CreateProjectCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.createProjectVersion = function (args, optionsOrCb, cb) { var command = new _commands_CreateProjectVersionCommand__WEBPACK_IMPORTED_MODULE_5__["CreateProjectVersionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.createStreamProcessor = function (args, optionsOrCb, cb) { var command = new _commands_CreateStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_6__["CreateStreamProcessorCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.deleteCollection = function (args, optionsOrCb, cb) { var command = new _commands_DeleteCollectionCommand__WEBPACK_IMPORTED_MODULE_7__["DeleteCollectionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.deleteFaces = function (args, optionsOrCb, cb) { var command = new _commands_DeleteFacesCommand__WEBPACK_IMPORTED_MODULE_8__["DeleteFacesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.deleteProject = function (args, optionsOrCb, cb) { var command = new _commands_DeleteProjectCommand__WEBPACK_IMPORTED_MODULE_9__["DeleteProjectCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.deleteProjectVersion = function (args, optionsOrCb, cb) { var command = new _commands_DeleteProjectVersionCommand__WEBPACK_IMPORTED_MODULE_10__["DeleteProjectVersionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.deleteStreamProcessor = function (args, optionsOrCb, cb) { var command = new _commands_DeleteStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_11__["DeleteStreamProcessorCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.describeCollection = function (args, optionsOrCb, cb) { var command = new _commands_DescribeCollectionCommand__WEBPACK_IMPORTED_MODULE_12__["DescribeCollectionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.describeProjects = function (args, optionsOrCb, cb) { var command = new _commands_DescribeProjectsCommand__WEBPACK_IMPORTED_MODULE_14__["DescribeProjectsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.describeProjectVersions = function (args, optionsOrCb, cb) { var command = new _commands_DescribeProjectVersionsCommand__WEBPACK_IMPORTED_MODULE_13__["DescribeProjectVersionsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.describeStreamProcessor = function (args, optionsOrCb, cb) { var command = new _commands_DescribeStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_15__["DescribeStreamProcessorCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.detectCustomLabels = function (args, optionsOrCb, cb) { var command = new _commands_DetectCustomLabelsCommand__WEBPACK_IMPORTED_MODULE_16__["DetectCustomLabelsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.detectFaces = function (args, optionsOrCb, cb) { var command = new _commands_DetectFacesCommand__WEBPACK_IMPORTED_MODULE_17__["DetectFacesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.detectLabels = function (args, optionsOrCb, cb) { var command = new _commands_DetectLabelsCommand__WEBPACK_IMPORTED_MODULE_18__["DetectLabelsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.detectModerationLabels = function (args, optionsOrCb, cb) { var command = new _commands_DetectModerationLabelsCommand__WEBPACK_IMPORTED_MODULE_19__["DetectModerationLabelsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.detectText = function (args, optionsOrCb, cb) { var command = new _commands_DetectTextCommand__WEBPACK_IMPORTED_MODULE_20__["DetectTextCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.getCelebrityInfo = function (args, optionsOrCb, cb) { var command = new _commands_GetCelebrityInfoCommand__WEBPACK_IMPORTED_MODULE_21__["GetCelebrityInfoCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.getCelebrityRecognition = function (args, optionsOrCb, cb) { var command = new _commands_GetCelebrityRecognitionCommand__WEBPACK_IMPORTED_MODULE_22__["GetCelebrityRecognitionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.getContentModeration = function (args, optionsOrCb, cb) { var command = new _commands_GetContentModerationCommand__WEBPACK_IMPORTED_MODULE_23__["GetContentModerationCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.getFaceDetection = function (args, optionsOrCb, cb) { var command = new _commands_GetFaceDetectionCommand__WEBPACK_IMPORTED_MODULE_24__["GetFaceDetectionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.getFaceSearch = function (args, optionsOrCb, cb) { var command = new _commands_GetFaceSearchCommand__WEBPACK_IMPORTED_MODULE_25__["GetFaceSearchCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.getLabelDetection = function (args, optionsOrCb, cb) { var command = new _commands_GetLabelDetectionCommand__WEBPACK_IMPORTED_MODULE_26__["GetLabelDetectionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.getPersonTracking = function (args, optionsOrCb, cb) { var command = new _commands_GetPersonTrackingCommand__WEBPACK_IMPORTED_MODULE_27__["GetPersonTrackingCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.getSegmentDetection = function (args, optionsOrCb, cb) { var command = new _commands_GetSegmentDetectionCommand__WEBPACK_IMPORTED_MODULE_28__["GetSegmentDetectionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.getTextDetection = function (args, optionsOrCb, cb) { var command = new _commands_GetTextDetectionCommand__WEBPACK_IMPORTED_MODULE_29__["GetTextDetectionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.indexFaces = function (args, optionsOrCb, cb) { var command = new _commands_IndexFacesCommand__WEBPACK_IMPORTED_MODULE_30__["IndexFacesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.listCollections = function (args, optionsOrCb, cb) { var command = new _commands_ListCollectionsCommand__WEBPACK_IMPORTED_MODULE_31__["ListCollectionsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.listFaces = function (args, optionsOrCb, cb) { var command = new _commands_ListFacesCommand__WEBPACK_IMPORTED_MODULE_32__["ListFacesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.listStreamProcessors = function (args, optionsOrCb, cb) { var command = new _commands_ListStreamProcessorsCommand__WEBPACK_IMPORTED_MODULE_33__["ListStreamProcessorsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.recognizeCelebrities = function (args, optionsOrCb, cb) { var command = new _commands_RecognizeCelebritiesCommand__WEBPACK_IMPORTED_MODULE_34__["RecognizeCelebritiesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.searchFaces = function (args, optionsOrCb, cb) { var command = new _commands_SearchFacesCommand__WEBPACK_IMPORTED_MODULE_36__["SearchFacesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.searchFacesByImage = function (args, optionsOrCb, cb) { var command = new _commands_SearchFacesByImageCommand__WEBPACK_IMPORTED_MODULE_35__["SearchFacesByImageCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.startCelebrityRecognition = function (args, optionsOrCb, cb) { var command = new _commands_StartCelebrityRecognitionCommand__WEBPACK_IMPORTED_MODULE_37__["StartCelebrityRecognitionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.startContentModeration = function (args, optionsOrCb, cb) { var command = new _commands_StartContentModerationCommand__WEBPACK_IMPORTED_MODULE_38__["StartContentModerationCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.startFaceDetection = function (args, optionsOrCb, cb) { var command = new _commands_StartFaceDetectionCommand__WEBPACK_IMPORTED_MODULE_39__["StartFaceDetectionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.startFaceSearch = function (args, optionsOrCb, cb) { var command = new _commands_StartFaceSearchCommand__WEBPACK_IMPORTED_MODULE_40__["StartFaceSearchCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.startLabelDetection = function (args, optionsOrCb, cb) { var command = new _commands_StartLabelDetectionCommand__WEBPACK_IMPORTED_MODULE_41__["StartLabelDetectionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.startPersonTracking = function (args, optionsOrCb, cb) { var command = new _commands_StartPersonTrackingCommand__WEBPACK_IMPORTED_MODULE_42__["StartPersonTrackingCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.startProjectVersion = function (args, optionsOrCb, cb) { var command = new _commands_StartProjectVersionCommand__WEBPACK_IMPORTED_MODULE_43__["StartProjectVersionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.startSegmentDetection = function (args, optionsOrCb, cb) { var command = new _commands_StartSegmentDetectionCommand__WEBPACK_IMPORTED_MODULE_44__["StartSegmentDetectionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.startStreamProcessor = function (args, optionsOrCb, cb) { var command = new _commands_StartStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_45__["StartStreamProcessorCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.startTextDetection = function (args, optionsOrCb, cb) { var command = new _commands_StartTextDetectionCommand__WEBPACK_IMPORTED_MODULE_46__["StartTextDetectionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.stopProjectVersion = function (args, optionsOrCb, cb) { var command = new _commands_StopProjectVersionCommand__WEBPACK_IMPORTED_MODULE_47__["StopProjectVersionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Rekognition.prototype.stopStreamProcessor = function (args, optionsOrCb, cb) { var command = new _commands_StopStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_48__["StopStreamProcessorCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; return Rekognition; }(_RekognitionClient__WEBPACK_IMPORTED_MODULE_1__["RekognitionClient"])); //# sourceMappingURL=Rekognition.js.map /***/ }), /***/ "MkjW": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteJourneyCommand.js ***! \****************************************************************************************/ /*! exports provided: DeleteJourneyCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyCommand", function() { return DeleteJourneyCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteJourneyCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteJourneyCommand, _super); // Start section: command_properties // End section: command_properties function DeleteJourneyCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteJourneyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteJourneyRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteJourneyResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteJourneyCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteJourneyCommand"])(input, context); }; DeleteJourneyCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteJourneyCommand"])(output, context); }; return DeleteJourneyCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteJourneyCommand.js.map /***/ }), /***/ "MmyK": /*!***************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutObjectLegalHoldCommand.js ***! \***************************************************************************************/ /*! exports provided: PutObjectLegalHoldCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutObjectLegalHoldCommand", function() { return PutObjectLegalHoldCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutObjectLegalHoldCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutObjectLegalHoldCommand, _super); // Start section: command_properties // End section: command_properties function PutObjectLegalHoldCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutObjectLegalHoldCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutObjectLegalHoldRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutObjectLegalHoldOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutObjectLegalHoldCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutObjectLegalHoldCommand"])(input, context); }; PutObjectLegalHoldCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutObjectLegalHoldCommand"])(output, context); }; return PutObjectLegalHoldCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=PutObjectLegalHoldCommand.js.map /***/ }), /***/ "MtjB": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/retryWhen.js ***! \********************************************************************/ /*! exports provided: retryWhen */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retryWhen", function() { return retryWhen; }); /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subject */ "XNiG"); /* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../innerSubscribe */ "zx2A"); function retryWhen(notifier) { return (source) => source.lift(new RetryWhenOperator(notifier, source)); } class RetryWhenOperator { constructor(notifier, source) { this.notifier = notifier; this.source = source; } call(subscriber, source) { return source.subscribe(new RetryWhenSubscriber(subscriber, this.notifier, this.source)); } } class RetryWhenSubscriber extends _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleOuterSubscriber"] { constructor(destination, notifier, source) { super(destination); this.notifier = notifier; this.source = source; } error(err) { if (!this.isStopped) { let errors = this.errors; let retries = this.retries; let retriesSubscription = this.retriesSubscription; if (!retries) { errors = new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"](); try { const { notifier } = this; retries = notifier(errors); } catch (e) { return super.error(e); } retriesSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["innerSubscribe"])(retries, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleInnerSubscriber"](this)); } else { this.errors = undefined; this.retriesSubscription = undefined; } this._unsubscribeAndRecycle(); this.errors = errors; this.retries = retries; this.retriesSubscription = retriesSubscription; errors.next(err); } } _unsubscribe() { const { errors, retriesSubscription } = this; if (errors) { errors.unsubscribe(); this.errors = undefined; } if (retriesSubscription) { retriesSubscription.unsubscribe(); this.retriesSubscription = undefined; } this.retries = undefined; } notifyNext() { const { _unsubscribe } = this; this._unsubscribe = null; this._unsubscribeAndRecycle(); this._unsubscribe = _unsubscribe; this.source.subscribe(this); } } //# sourceMappingURL=retryWhen.js.map /***/ }), /***/ "MvSz": /*!********************************************!*\ !*** ./node_modules/lodash/_getSymbols.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "LXxW"), stubArray = __webpack_require__(/*! ./stubArray */ "0ycA"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols; /** * Creates an array of the own enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbols = !nativeGetSymbols ? stubArray : function(object) { if (object == null) { return []; } object = Object(object); return arrayFilter(nativeGetSymbols(object), function(symbol) { return propertyIsEnumerable.call(object, symbol); }); }; module.exports = getSymbols; /***/ }), /***/ "Mw0p": /*!*****************************************************!*\ !*** ./node_modules/graphql/jsutils/instanceOf.mjs ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * A replacement for instanceof which includes an error warning when multi-realm * constructors are detected. */ // See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production // See: https://webpack.js.org/guides/production/ /* harmony default export */ __webpack_exports__["default"] = ( false ? // eslint-disable-next-line no-shadow undefined : // eslint-disable-next-line no-shadow function instanceOf(value, constructor) { if (value instanceof constructor) { return true; } if (value) { var valueClass = value.constructor; var className = constructor.name; if (className && valueClass && valueClass.name === className) { throw new Error("Cannot use ".concat(className, " \"").concat(value, "\" from another module or realm.\n\nEnsure that there is only one instance of \"graphql\" in the node_modules\ndirectory. If different versions of \"graphql\" are the dependencies of other\nrelied on modules, use \"resolutions\" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate \"graphql\" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.")); } } return false; }); /***/ }), /***/ "Mx8r": /*!*********************************************************************!*\ !*** ./node_modules/@aws-sdk/client-translate/dist/es/package.json ***! \*********************************************************************/ /*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, author, license, default */ /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"@aws-sdk/client-translate\",\"description\":\"@aws-sdk/client-translate client\",\"version\":\"1.0.0-gamma.8\",\"scripts\":{\"clean\":\"npm run remove-definitions && npm run remove-dist\",\"build-documentation\":\"npm run clean && typedoc ./\",\"prepublishOnly\":\"yarn build\",\"pretest\":\"yarn build:cjs\",\"remove-definitions\":\"rimraf ./types\",\"remove-dist\":\"rimraf ./dist\",\"remove-documentation\":\"rimraf ./docs\",\"test\":\"exit 0\",\"build:cjs\":\"tsc -p tsconfig.json\",\"build:es\":\"tsc -p tsconfig.es.json\",\"build\":\"yarn build:cjs && yarn build:es\"},\"main\":\"./dist/cjs/index.js\",\"types\":\"./types/index.d.ts\",\"module\":\"./dist/es/index.js\",\"browser\":{\"./runtimeConfig\":\"./runtimeConfig.browser\"},\"react-native\":{\"./runtimeConfig\":\"./runtimeConfig.native\"},\"sideEffects\":false,\"dependencies\":{\"@aws-crypto/sha256-browser\":\"^1.0.0-alpha.0\",\"@aws-crypto/sha256-js\":\"^1.0.0-alpha.0\",\"@aws-sdk/config-resolver\":\"1.0.0-gamma.7\",\"@aws-sdk/credential-provider-node\":\"1.0.0-gamma.7\",\"@aws-sdk/fetch-http-handler\":\"1.0.0-gamma.8\",\"@aws-sdk/hash-node\":\"1.0.0-gamma.7\",\"@aws-sdk/invalid-dependency\":\"1.0.0-gamma.5\",\"@aws-sdk/middleware-content-length\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-host-header\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-logger\":\"1.0.0-gamma.1\",\"@aws-sdk/middleware-retry\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-serde\":\"1.0.0-gamma.6\",\"@aws-sdk/middleware-signing\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-stack\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-user-agent\":\"1.0.0-gamma.7\",\"@aws-sdk/node-config-provider\":\"1.0.0-gamma.2\",\"@aws-sdk/node-http-handler\":\"1.0.0-gamma.7\",\"@aws-sdk/protocol-http\":\"1.0.0-gamma.7\",\"@aws-sdk/smithy-client\":\"1.0.0-gamma.7\",\"@aws-sdk/types\":\"1.0.0-gamma.6\",\"@aws-sdk/url-parser-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/url-parser-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-base64-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-base64-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-user-agent-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/util-user-agent-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-utf8-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-utf8-node\":\"1.0.0-gamma.6\",\"tslib\":\"^2.0.0\",\"uuid\":\"^3.0.0\"},\"devDependencies\":{\"@aws-sdk/client-documentation-generator\":\"1.0.0-gamma.5\",\"@types/node\":\"^12.7.5\",\"@types/uuid\":\"^3.0.0\",\"jest\":\"^26.1.0\",\"rimraf\":\"^3.0.0\",\"typedoc\":\"^0.17.8\",\"typescript\":\"~4.0.2\"},\"engines\":{\"node\":\">=8.0.0\"},\"author\":{\"name\":\"AWS SDK for JavaScript Team\",\"url\":\"https://aws.amazon.com/javascript/\"},\"license\":\"Apache-2.0\"}"); /***/ }), /***/ "N+i5": /*!**************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/Util/DateUtils.js ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Date & time utility functions to abstract the `aws-sdk` away from users. * (v2 => v3 modularization is a breaking change) * * @see https://github.com/aws/aws-sdk-js/blob/6edf586dcc1de7fe8fbfbbd9a0d2b1847921e6e1/lib/util.js#L262 */ var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); var FIVE_MINUTES_IN_MS = 1000 * 60 * 5; exports.DateUtils = { /** * Milliseconds to offset the date to compensate for clock skew between device & services */ clockOffset: 0, getDateWithClockOffset: function () { if (exports.DateUtils.clockOffset) { return new Date(new Date().getTime() + exports.DateUtils.clockOffset); } else { return new Date(); } }, /** * @returns {number} Clock offset in milliseconds */ getClockOffset: function () { return exports.DateUtils.clockOffset; }, getHeaderStringFromDate: function (date) { if (date === void 0) { date = exports.DateUtils.getDateWithClockOffset(); } return date.toISOString().replace(/[:\-]|\.\d{3}/g, ''); }, getDateFromHeaderString: function (header) { var _a = __read(header.match(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2}).+/), 7), year = _a[1], month = _a[2], day = _a[3], hour = _a[4], minute = _a[5], second = _a[6]; return new Date(Date.UTC(Number(year), Number(month) - 1, Number(day), Number(hour), Number(minute), Number(second))); }, isClockSkewed: function (serverDate) { // API gateway permits client calls that are off by no more than ±5 minutes return (Math.abs(serverDate.getTime() - exports.DateUtils.getDateWithClockOffset().getTime()) >= FIVE_MINUTES_IN_MS); }, isClockSkewError: function (error) { if (!error.response || !error.response.headers) { return false; } var headers = error.response.headers; return Boolean(headers['x-amzn-errortype'] === 'BadRequestException' && (headers.date || headers.Date)); }, /** * @param {number} offset Clock offset in milliseconds */ setClockOffset: function (offset) { exports.DateUtils.clockOffset = offset; }, }; //# sourceMappingURL=DateUtils.js.map /***/ }), /***/ "N9sX": /*!*************************************************************************!*\ !*** ./node_modules/@aws-sdk/util-body-length-browser/dist/es/index.js ***! \*************************************************************************/ /*! exports provided: calculateBodyLength */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateBodyLength", function() { return calculateBodyLength; }); function calculateBodyLength(body) { if (typeof body === "string") { var len = body.length; for (var i = len - 1; i >= 0; i--) { var code = body.charCodeAt(i); if (code > 0x7f && code <= 0x7ff) len++; else if (code > 0x7ff && code <= 0xffff) len += 2; } return len; } else if (typeof body.byteLength === "number") { // handles Uint8Array, ArrayBuffer, Buffer, and ArrayBufferView return body.byteLength; } else if (typeof body.size === "number") { // handles browser File object return body.size; } } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxVQUFVLG1CQUFtQixDQUFDLElBQVM7SUFDM0MsSUFBSSxPQUFPLElBQUksS0FBSyxRQUFRLEVBQUU7UUFDNUIsSUFBSSxHQUFHLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQztRQUV0QixLQUFLLElBQUksQ0FBQyxHQUFHLEdBQUcsR0FBRyxDQUFDLEVBQUUsQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRTtZQUNqQyxJQUFNLElBQUksR0FBRyxJQUFJLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDO1lBQ2hDLElBQUksSUFBSSxHQUFHLElBQUksSUFBSSxJQUFJLElBQUksS0FBSztnQkFBRSxHQUFHLEVBQUUsQ0FBQztpQkFDbkMsSUFBSSxJQUFJLEdBQUcsS0FBSyxJQUFJLElBQUksSUFBSSxNQUFNO2dCQUFFLEdBQUcsSUFBSSxDQUFDLENBQUM7U0FDbkQ7UUFFRCxPQUFPLEdBQUcsQ0FBQztLQUNaO1NBQU0sSUFBSSxPQUFPLElBQUksQ0FBQyxVQUFVLEtBQUssUUFBUSxFQUFFO1FBQzlDLCtEQUErRDtRQUMvRCxPQUFPLElBQUksQ0FBQyxVQUFVLENBQUM7S0FDeEI7U0FBTSxJQUFJLE9BQU8sSUFBSSxDQUFDLElBQUksS0FBSyxRQUFRLEVBQUU7UUFDeEMsOEJBQThCO1FBQzlCLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQztLQUNsQjtBQUNILENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gY2FsY3VsYXRlQm9keUxlbmd0aChib2R5OiBhbnkpOiBudW1iZXIgfCB1bmRlZmluZWQge1xuICBpZiAodHlwZW9mIGJvZHkgPT09IFwic3RyaW5nXCIpIHtcbiAgICBsZXQgbGVuID0gYm9keS5sZW5ndGg7XG5cbiAgICBmb3IgKGxldCBpID0gbGVuIC0gMTsgaSA+PSAwOyBpLS0pIHtcbiAgICAgIGNvbnN0IGNvZGUgPSBib2R5LmNoYXJDb2RlQXQoaSk7XG4gICAgICBpZiAoY29kZSA+IDB4N2YgJiYgY29kZSA8PSAweDdmZikgbGVuKys7XG4gICAgICBlbHNlIGlmIChjb2RlID4gMHg3ZmYgJiYgY29kZSA8PSAweGZmZmYpIGxlbiArPSAyO1xuICAgIH1cblxuICAgIHJldHVybiBsZW47XG4gIH0gZWxzZSBpZiAodHlwZW9mIGJvZHkuYnl0ZUxlbmd0aCA9PT0gXCJudW1iZXJcIikge1xuICAgIC8vIGhhbmRsZXMgVWludDhBcnJheSwgQXJyYXlCdWZmZXIsIEJ1ZmZlciwgYW5kIEFycmF5QnVmZmVyVmlld1xuICAgIHJldHVybiBib2R5LmJ5dGVMZW5ndGg7XG4gIH0gZWxzZSBpZiAodHlwZW9mIGJvZHkuc2l6ZSA9PT0gXCJudW1iZXJcIikge1xuICAgIC8vIGhhbmRsZXMgYnJvd3NlciBGaWxlIG9iamVjdFxuICAgIHJldHVybiBib2R5LnNpemU7XG4gIH1cbn1cbiJdfQ== /***/ }), /***/ "NAJP": /*!*****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/pagination/GetSegmentDetectionPaginator.js ***! \*****************************************************************************************************/ /*! exports provided: getSegmentDetectionPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSegmentDetectionPaginate", function() { return getSegmentDetectionPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Rekognition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Rekognition */ "MjkZ"); /* harmony import */ var _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../RekognitionClient */ "YOij"); /* harmony import */ var _commands_GetSegmentDetectionCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/GetSegmentDetectionCommand */ "oZY4"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_GetSegmentDetectionCommand__WEBPACK_IMPORTED_MODULE_3__["GetSegmentDetectionCommand"].bind.apply(_commands_GetSegmentDetectionCommand__WEBPACK_IMPORTED_MODULE_3__["GetSegmentDetectionCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.getSegmentDetection.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function getSegmentDetectionPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function getSegmentDetectionPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Rekognition__WEBPACK_IMPORTED_MODULE_1__["Rekognition"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__["RekognitionClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Rekognition | RekognitionClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=GetSegmentDetectionPaginator.js.map /***/ }), /***/ "NE84": /*!*************************************************************************************************************!*\ !*** ./node_modules/@aws-amplify/predictions/lib-esm/types/Providers/AbstractConvertPredictionsProvider.js ***! \*************************************************************************************************************/ /*! exports provided: AbstractConvertPredictionsProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AbstractConvertPredictionsProvider", function() { return AbstractConvertPredictionsProvider; }); /* harmony import */ var _Predictions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Predictions */ "QVn7"); /* harmony import */ var _AbstractPredictionsProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AbstractPredictionsProvider */ "qFjB"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["ConsoleLogger"]('AbstractConvertPredictionsProvider'); var AbstractConvertPredictionsProvider = /** @class */ (function (_super) { __extends(AbstractConvertPredictionsProvider, _super); function AbstractConvertPredictionsProvider() { return _super !== null && _super.apply(this, arguments) || this; } AbstractConvertPredictionsProvider.prototype.getCategory = function () { return 'Convert'; }; AbstractConvertPredictionsProvider.prototype.convert = function (input) { if (Object(_Predictions__WEBPACK_IMPORTED_MODULE_0__["isTranslateTextInput"])(input)) { logger.debug('translateText'); return this.translateText(input); } else if (Object(_Predictions__WEBPACK_IMPORTED_MODULE_0__["isTextToSpeechInput"])(input)) { logger.debug('textToSpeech'); return this.convertTextToSpeech(input); } else if (Object(_Predictions__WEBPACK_IMPORTED_MODULE_0__["isSpeechToTextInput"])(input)) { logger.debug('textToSpeech'); return this.convertSpeechToText(input); } }; AbstractConvertPredictionsProvider.prototype.translateText = function (translateTextInput) { throw new Error('convertText is not implemented by this provider'); }; AbstractConvertPredictionsProvider.prototype.convertTextToSpeech = function (textToSpeechInput) { throw new Error('convertTextToSpeech is not implemented by this provider'); }; AbstractConvertPredictionsProvider.prototype.convertSpeechToText = function (speechToTextInput) { throw new Error('convertSpeechToText is not implemented by this provider'); }; return AbstractConvertPredictionsProvider; }(_AbstractPredictionsProvider__WEBPACK_IMPORTED_MODULE_1__["AbstractPredictionsProvider"])); //# sourceMappingURL=AbstractConvertPredictionsProvider.js.map /***/ }), /***/ "NFeN": /*!**********************************************************************!*\ !*** ./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js ***! \**********************************************************************/ /*! exports provided: ICON_REGISTRY_PROVIDER, ICON_REGISTRY_PROVIDER_FACTORY, MAT_ICON_LOCATION, MAT_ICON_LOCATION_FACTORY, MatIcon, MatIconModule, MatIconRegistry, getMatIconFailedToSanitizeLiteralError, getMatIconFailedToSanitizeUrlError, getMatIconNameNotFoundError, getMatIconNoHttpProviderError, ɵ0 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ICON_REGISTRY_PROVIDER", function() { return ICON_REGISTRY_PROVIDER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ICON_REGISTRY_PROVIDER_FACTORY", function() { return ICON_REGISTRY_PROVIDER_FACTORY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAT_ICON_LOCATION", function() { return MAT_ICON_LOCATION; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAT_ICON_LOCATION_FACTORY", function() { return MAT_ICON_LOCATION_FACTORY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatIcon", function() { return MatIcon; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatIconModule", function() { return MatIconModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatIconRegistry", function() { return MatIconRegistry; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMatIconFailedToSanitizeLiteralError", function() { return getMatIconFailedToSanitizeLiteralError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMatIconFailedToSanitizeUrlError", function() { return getMatIconFailedToSanitizeUrlError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMatIconNameNotFoundError", function() { return getMatIconNameNotFoundError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMatIconNoHttpProviderError", function() { return getMatIconNoHttpProviderError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ0", function() { return ɵ0; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL"); /* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/core */ "FKr1"); /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/cdk/coercion */ "8LU1"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ "ofXK"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "qCKp"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "kU1M"); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common/http */ "tk/3"); /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/platform-browser */ "jhN1"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Returns an exception to be thrown in the case when attempting to * load an icon with a name that cannot be found. * @docs-private */ const _c0 = ["*"]; function getMatIconNameNotFoundError(iconName) { return Error(`Unable to find icon with the name "${iconName}"`); } /** * Returns an exception to be thrown when the consumer attempts to use * `` without including @angular/common/http. * @docs-private */ function getMatIconNoHttpProviderError() { return Error('Could not find HttpClient provider for use with Angular Material icons. ' + 'Please include the HttpClientModule from @angular/common/http in your ' + 'app imports.'); } /** * Returns an exception to be thrown when a URL couldn't be sanitized. * @param url URL that was attempted to be sanitized. * @docs-private */ function getMatIconFailedToSanitizeUrlError(url) { return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL ` + `via Angular's DomSanitizer. Attempted URL was "${url}".`); } /** * Returns an exception to be thrown when a HTML string couldn't be sanitized. * @param literal HTML that was attempted to be sanitized. * @docs-private */ function getMatIconFailedToSanitizeLiteralError(literal) { return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by ` + `Angular's DomSanitizer. Attempted literal was "${literal}".`); } /** * Configuration for an icon, including the URL and possibly the cached SVG element. * @docs-private */ class SvgIconConfig { constructor(url, svgText, options) { this.url = url; this.svgText = svgText; this.options = options; } } /** * Service to register and display icons used by the `` component. * - Registers icon URLs by namespace and name. * - Registers icon set URLs by namespace. * - Registers aliases for CSS classes, for use with icon fonts. * - Loads icons from URLs and extracts individual icons from icon sets. */ class MatIconRegistry { constructor(_httpClient, _sanitizer, document, _errorHandler) { this._httpClient = _httpClient; this._sanitizer = _sanitizer; this._errorHandler = _errorHandler; /** * URLs and cached SVG elements for individual icons. Keys are of the format "[namespace]:[icon]". */ this._svgIconConfigs = new Map(); /** * SvgIconConfig objects and cached SVG elements for icon sets, keyed by namespace. * Multiple icon sets can be registered under the same namespace. */ this._iconSetConfigs = new Map(); /** Cache for icons loaded by direct URLs. */ this._cachedIconsByUrl = new Map(); /** In-progress icon fetches. Used to coalesce multiple requests to the same URL. */ this._inProgressUrlFetches = new Map(); /** Map from font identifiers to their CSS class names. Used for icon fonts. */ this._fontCssClassesByAlias = new Map(); /** * The CSS class to apply when an `` component has no icon name, url, or font specified. * The default 'material-icons' value assumes that the material icon font has been loaded as * described at http://google.github.io/material-design-icons/#icon-font-for-the-web */ this._defaultFontSetClass = 'material-icons'; this._document = document; } /** * Registers an icon by URL in the default namespace. * @param iconName Name under which the icon should be registered. * @param url */ addSvgIcon(iconName, url, options) { return this.addSvgIconInNamespace('', iconName, url, options); } /** * Registers an icon using an HTML string in the default namespace. * @param iconName Name under which the icon should be registered. * @param literal SVG source of the icon. */ addSvgIconLiteral(iconName, literal, options) { return this.addSvgIconLiteralInNamespace('', iconName, literal, options); } /** * Registers an icon by URL in the specified namespace. * @param namespace Namespace in which the icon should be registered. * @param iconName Name under which the icon should be registered. * @param url */ addSvgIconInNamespace(namespace, iconName, url, options) { return this._addSvgIconConfig(namespace, iconName, new SvgIconConfig(url, null, options)); } /** * Registers an icon using an HTML string in the specified namespace. * @param namespace Namespace in which the icon should be registered. * @param iconName Name under which the icon should be registered. * @param literal SVG source of the icon. */ addSvgIconLiteralInNamespace(namespace, iconName, literal, options) { const cleanLiteral = this._sanitizer.sanitize(_angular_core__WEBPACK_IMPORTED_MODULE_0__["SecurityContext"].HTML, literal); // TODO: add an ngDevMode check if (!cleanLiteral) { throw getMatIconFailedToSanitizeLiteralError(literal); } return this._addSvgIconConfig(namespace, iconName, new SvgIconConfig('', cleanLiteral, options)); } /** * Registers an icon set by URL in the default namespace. * @param url */ addSvgIconSet(url, options) { return this.addSvgIconSetInNamespace('', url, options); } /** * Registers an icon set using an HTML string in the default namespace. * @param literal SVG source of the icon set. */ addSvgIconSetLiteral(literal, options) { return this.addSvgIconSetLiteralInNamespace('', literal, options); } /** * Registers an icon set by URL in the specified namespace. * @param namespace Namespace in which to register the icon set. * @param url */ addSvgIconSetInNamespace(namespace, url, options) { return this._addSvgIconSetConfig(namespace, new SvgIconConfig(url, null, options)); } /** * Registers an icon set using an HTML string in the specified namespace. * @param namespace Namespace in which to register the icon set. * @param literal SVG source of the icon set. */ addSvgIconSetLiteralInNamespace(namespace, literal, options) { const cleanLiteral = this._sanitizer.sanitize(_angular_core__WEBPACK_IMPORTED_MODULE_0__["SecurityContext"].HTML, literal); if (!cleanLiteral) { throw getMatIconFailedToSanitizeLiteralError(literal); } return this._addSvgIconSetConfig(namespace, new SvgIconConfig('', cleanLiteral, options)); } /** * Defines an alias for a CSS class name to be used for icon fonts. Creating an matIcon * component with the alias as the fontSet input will cause the class name to be applied * to the `` element. * * @param alias Alias for the font. * @param className Class name override to be used instead of the alias. */ registerFontClassAlias(alias, className = alias) { this._fontCssClassesByAlias.set(alias, className); return this; } /** * Returns the CSS class name associated with the alias by a previous call to * registerFontClassAlias. If no CSS class has been associated, returns the alias unmodified. */ classNameForFontAlias(alias) { return this._fontCssClassesByAlias.get(alias) || alias; } /** * Sets the CSS class name to be used for icon fonts when an `` component does not * have a fontSet input value, and is not loading an icon by name or URL. * * @param className */ setDefaultFontSetClass(className) { this._defaultFontSetClass = className; return this; } /** * Returns the CSS class name to be used for icon fonts when an `` component does not * have a fontSet input value, and is not loading an icon by name or URL. */ getDefaultFontSetClass() { return this._defaultFontSetClass; } /** * Returns an Observable that produces the icon (as an `` DOM element) from the given URL. * The response from the URL may be cached so this will not always cause an HTTP request, but * the produced element will always be a new copy of the originally fetched icon. (That is, * it will not contain any modifications made to elements previously returned). * * @param safeUrl URL from which to fetch the SVG icon. */ getSvgIconFromUrl(safeUrl) { const url = this._sanitizer.sanitize(_angular_core__WEBPACK_IMPORTED_MODULE_0__["SecurityContext"].RESOURCE_URL, safeUrl); if (!url) { throw getMatIconFailedToSanitizeUrlError(safeUrl); } const cachedIcon = this._cachedIconsByUrl.get(url); if (cachedIcon) { return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(cloneSvg(cachedIcon)); } return this._loadSvgIconFromConfig(new SvgIconConfig(safeUrl, null)).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["tap"])(svg => this._cachedIconsByUrl.set(url, svg)), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(svg => cloneSvg(svg))); } /** * Returns an Observable that produces the icon (as an `` DOM element) with the given name * and namespace. The icon must have been previously registered with addIcon or addIconSet; * if not, the Observable will throw an error. * * @param name Name of the icon to be retrieved. * @param namespace Namespace in which to look for the icon. */ getNamedSvgIcon(name, namespace = '') { // Return (copy of) cached icon if possible. const key = iconKey(namespace, name); const config = this._svgIconConfigs.get(key); if (config) { return this._getSvgFromConfig(config); } // See if we have any icon sets registered for the namespace. const iconSetConfigs = this._iconSetConfigs.get(namespace); if (iconSetConfigs) { return this._getSvgFromIconSetConfigs(name, iconSetConfigs); } return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["throwError"])(getMatIconNameNotFoundError(key)); } ngOnDestroy() { this._svgIconConfigs.clear(); this._iconSetConfigs.clear(); this._cachedIconsByUrl.clear(); } /** * Returns the cached icon for a SvgIconConfig if available, or fetches it from its URL if not. */ _getSvgFromConfig(config) { if (config.svgText) { // We already have the SVG element for this icon, return a copy. return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(cloneSvg(this._svgElementFromConfig(config))); } else { // Fetch the icon from the config's URL, cache it, and return a copy. return this._loadSvgIconFromConfig(config).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(svg => cloneSvg(svg))); } } /** * Attempts to find an icon with the specified name in any of the SVG icon sets. * First searches the available cached icons for a nested element with a matching name, and * if found copies the element to a new `` element. If not found, fetches all icon sets * that have not been cached, and searches again after all fetches are completed. * The returned Observable produces the SVG element if possible, and throws * an error if no icon with the specified name can be found. */ _getSvgFromIconSetConfigs(name, iconSetConfigs) { // For all the icon set SVG elements we've fetched, see if any contain an icon with the // requested name. const namedIcon = this._extractIconWithNameFromAnySet(name, iconSetConfigs); if (namedIcon) { // We could cache namedIcon in _svgIconConfigs, but since we have to make a copy every // time anyway, there's probably not much advantage compared to just always extracting // it from the icon set. return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(namedIcon); } // Not found in any cached icon sets. If there are icon sets with URLs that we haven't // fetched, fetch them now and look for iconName in the results. const iconSetFetchRequests = iconSetConfigs .filter(iconSetConfig => !iconSetConfig.svgText) .map(iconSetConfig => { return this._loadSvgIconSetFromConfig(iconSetConfig).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])((err) => { const url = this._sanitizer.sanitize(_angular_core__WEBPACK_IMPORTED_MODULE_0__["SecurityContext"].RESOURCE_URL, iconSetConfig.url); // Swallow errors fetching individual URLs so the // combined Observable won't necessarily fail. const errorMessage = `Loading icon set URL: ${url} failed: ${err.message}`; this._errorHandler.handleError(new Error(errorMessage)); return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(null); })); }); // Fetch all the icon set URLs. When the requests complete, every IconSet should have a // cached SVG element (unless the request failed), and we can check again for the icon. return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["forkJoin"])(iconSetFetchRequests).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(() => { const foundIcon = this._extractIconWithNameFromAnySet(name, iconSetConfigs); // TODO: add an ngDevMode check if (!foundIcon) { throw getMatIconNameNotFoundError(name); } return foundIcon; })); } /** * Searches the cached SVG elements for the given icon sets for a nested icon element whose "id" * tag matches the specified name. If found, copies the nested element to a new SVG element and * returns it. Returns null if no matching element is found. */ _extractIconWithNameFromAnySet(iconName, iconSetConfigs) { // Iterate backwards, so icon sets added later have precedence. for (let i = iconSetConfigs.length - 1; i >= 0; i--) { const config = iconSetConfigs[i]; // Parsing the icon set's text into an SVG element can be expensive. We can avoid some of // the parsing by doing a quick check using `indexOf` to see if there's any chance for the // icon to be in the set. This won't be 100% accurate, but it should help us avoid at least // some of the parsing. if (config.svgText && config.svgText.indexOf(iconName) > -1) { const svg = this._svgElementFromConfig(config); const foundIcon = this._extractSvgIconFromSet(svg, iconName, config.options); if (foundIcon) { return foundIcon; } } } return null; } /** * Loads the content of the icon URL specified in the SvgIconConfig and creates an SVG element * from it. */ _loadSvgIconFromConfig(config) { return this._fetchIcon(config).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["tap"])(svgText => config.svgText = svgText), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(() => this._svgElementFromConfig(config))); } /** * Loads the content of the icon set URL specified in the * SvgIconConfig and attaches it to the config. */ _loadSvgIconSetFromConfig(config) { if (config.svgText) { return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(null); } return this._fetchIcon(config).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["tap"])(svgText => config.svgText = svgText)); } /** * Searches the cached element of the given SvgIconConfig for a nested icon element whose "id" * tag matches the specified name. If found, copies the nested element to a new SVG element and * returns it. Returns null if no matching element is found. */ _extractSvgIconFromSet(iconSet, iconName, options) { // Use the `id="iconName"` syntax in order to escape special // characters in the ID (versus using the #iconName syntax). const iconSource = iconSet.querySelector(`[id="${iconName}"]`); if (!iconSource) { return null; } // Clone the element and remove the ID to prevent multiple elements from being added // to the page with the same ID. const iconElement = iconSource.cloneNode(true); iconElement.removeAttribute('id'); // If the icon node is itself an node, clone and return it directly. If not, set it as // the content of a new node. if (iconElement.nodeName.toLowerCase() === 'svg') { return this._setSvgAttributes(iconElement, options); } // If the node is a , it won't be rendered so we have to convert it into . Note // that the same could be achieved by referring to it via , however the // tag is problematic on Firefox, because it needs to include the current page path. if (iconElement.nodeName.toLowerCase() === 'symbol') { return this._setSvgAttributes(this._toSvgElement(iconElement), options); } // createElement('SVG') doesn't work as expected; the DOM ends up with // the correct nodes, but the SVG content doesn't render. Instead we // have to create an empty SVG node using innerHTML and append its content. // Elements created using DOMParser.parseFromString have the same problem. // http://stackoverflow.com/questions/23003278/svg-innerhtml-in-firefox-can-not-display const svg = this._svgElementFromString(''); // Clone the node so we don't remove it from the parent icon set element. svg.appendChild(iconElement); return this._setSvgAttributes(svg, options); } /** * Creates a DOM element from the given SVG string. */ _svgElementFromString(str) { const div = this._document.createElement('DIV'); div.innerHTML = str; const svg = div.querySelector('svg'); // TODO: add an ngDevMode check if (!svg) { throw Error(' tag not found'); } return svg; } /** * Converts an element into an SVG node by cloning all of its children. */ _toSvgElement(element) { const svg = this._svgElementFromString(''); const attributes = element.attributes; // Copy over all the attributes from the `symbol` to the new SVG, except the id. for (let i = 0; i < attributes.length; i++) { const { name, value } = attributes[i]; if (name !== 'id') { svg.setAttribute(name, value); } } for (let i = 0; i < element.childNodes.length; i++) { if (element.childNodes[i].nodeType === this._document.ELEMENT_NODE) { svg.appendChild(element.childNodes[i].cloneNode(true)); } } return svg; } /** * Sets the default attributes for an SVG element to be used as an icon. */ _setSvgAttributes(svg, options) { svg.setAttribute('fit', ''); svg.setAttribute('height', '100%'); svg.setAttribute('width', '100%'); svg.setAttribute('preserveAspectRatio', 'xMidYMid meet'); svg.setAttribute('focusable', 'false'); // Disable IE11 default behavior to make SVGs focusable. if (options && options.viewBox) { svg.setAttribute('viewBox', options.viewBox); } return svg; } /** * Returns an Observable which produces the string contents of the given icon. Results may be * cached, so future calls with the same URL may not cause another HTTP request. */ _fetchIcon(iconConfig) { var _a; const { url: safeUrl, options } = iconConfig; const withCredentials = (_a = options === null || options === void 0 ? void 0 : options.withCredentials) !== null && _a !== void 0 ? _a : false; if (!this._httpClient) { throw getMatIconNoHttpProviderError(); } // TODO: add an ngDevMode check if (safeUrl == null) { throw Error(`Cannot fetch icon from URL "${safeUrl}".`); } const url = this._sanitizer.sanitize(_angular_core__WEBPACK_IMPORTED_MODULE_0__["SecurityContext"].RESOURCE_URL, safeUrl); // TODO: add an ngDevMode check if (!url) { throw getMatIconFailedToSanitizeUrlError(safeUrl); } // Store in-progress fetches to avoid sending a duplicate request for a URL when there is // already a request in progress for that URL. It's necessary to call share() on the // Observable returned by http.get() so that multiple subscribers don't cause multiple XHRs. const inProgressFetch = this._inProgressUrlFetches.get(url); if (inProgressFetch) { return inProgressFetch; } const req = this._httpClient.get(url, { responseType: 'text', withCredentials }).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => this._inProgressUrlFetches.delete(url)), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["share"])()); this._inProgressUrlFetches.set(url, req); return req; } /** * Registers an icon config by name in the specified namespace. * @param namespace Namespace in which to register the icon config. * @param iconName Name under which to register the config. * @param config Config to be registered. */ _addSvgIconConfig(namespace, iconName, config) { this._svgIconConfigs.set(iconKey(namespace, iconName), config); return this; } /** * Registers an icon set config in the specified namespace. * @param namespace Namespace in which to register the icon config. * @param config Config to be registered. */ _addSvgIconSetConfig(namespace, config) { const configNamespace = this._iconSetConfigs.get(namespace); if (configNamespace) { configNamespace.push(config); } else { this._iconSetConfigs.set(namespace, [config]); } return this; } /** Parses a config's text into an SVG element. */ _svgElementFromConfig(config) { if (!config.svgElement) { const svg = this._svgElementFromString(config.svgText); this._setSvgAttributes(svg, config.options); config.svgElement = svg; } return config.svgElement; } } MatIconRegistry.ɵfac = function MatIconRegistry_Factory(t) { return new (t || MatIconRegistry)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_6__["HttpClient"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__["DomSanitizer"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"])); }; MatIconRegistry.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function MatIconRegistry_Factory() { return new MatIconRegistry(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_common_http__WEBPACK_IMPORTED_MODULE_6__["HttpClient"], 8), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__["DomSanitizer"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"], 8), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"])); }, token: MatIconRegistry, providedIn: "root" }); MatIconRegistry.ctorParameters = () => [ { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_6__["HttpClient"], decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }] }, { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__["DomSanitizer"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"],] }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"] } ]; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatIconRegistry, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"], args: [{ providedIn: 'root' }] }], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_6__["HttpClient"], decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }] }, { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__["DomSanitizer"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]] }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"] }]; }, null); })(); /** @docs-private */ function ICON_REGISTRY_PROVIDER_FACTORY(parentRegistry, httpClient, sanitizer, errorHandler, document) { return parentRegistry || new MatIconRegistry(httpClient, sanitizer, document, errorHandler); } /** @docs-private */ const ICON_REGISTRY_PROVIDER = { // If there is already an MatIconRegistry available, use that. Otherwise, provide a new one. provide: MatIconRegistry, deps: [ [new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"](), new _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"](), MatIconRegistry], [new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"](), _angular_common_http__WEBPACK_IMPORTED_MODULE_6__["HttpClient"]], _angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__["DomSanitizer"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"], [new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"](), _angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]], ], useFactory: ICON_REGISTRY_PROVIDER_FACTORY, }; /** Clones an SVGElement while preserving type information. */ function cloneSvg(svg) { return svg.cloneNode(true); } /** Returns the cache key to use for an icon namespace and name. */ function iconKey(namespace, name) { return namespace + ':' + name; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // Boilerplate for applying mixins to MatIcon. /** @docs-private */ class MatIconBase { constructor(_elementRef) { this._elementRef = _elementRef; } } const _MatIconMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["mixinColor"])(MatIconBase); /** * Injection token used to provide the current location to `MatIcon`. * Used to handle server-side rendering and to stub out during unit tests. * @docs-private */ const MAT_ICON_LOCATION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('mat-icon-location', { providedIn: 'root', factory: MAT_ICON_LOCATION_FACTORY }); /** @docs-private */ function MAT_ICON_LOCATION_FACTORY() { const _document = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["inject"])(_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]); const _location = _document ? _document.location : null; return { // Note that this needs to be a function, rather than a property, because Angular // will only resolve it once, but we want the current path on each call. getPathname: () => _location ? (_location.pathname + _location.search) : '' }; } /** SVG attributes that accept a FuncIRI (e.g. `url()`). */ const funcIriAttributes = [ 'clip-path', 'color-profile', 'src', 'cursor', 'fill', 'filter', 'marker', 'marker-start', 'marker-mid', 'marker-end', 'mask', 'stroke' ]; const ɵ0 = attr => `[${attr}]`; /** Selector that can be used to find all elements that are using a `FuncIRI`. */ const funcIriAttributeSelector = funcIriAttributes.map(ɵ0).join(', '); /** Regex that can be used to extract the id out of a FuncIRI. */ const funcIriPattern = /^url\(['"]?#(.*?)['"]?\)$/; /** * Component to display an icon. It can be used in the following ways: * * - Specify the svgIcon input to load an SVG icon from a URL previously registered with the * addSvgIcon, addSvgIconInNamespace, addSvgIconSet, or addSvgIconSetInNamespace methods of * MatIconRegistry. If the svgIcon value contains a colon it is assumed to be in the format * "[namespace]:[name]", if not the value will be the name of an icon in the default namespace. * Examples: * ` * ` * * - Use a font ligature as an icon by putting the ligature text in the content of the `` * component. By default the Material icons font is used as described at * http://google.github.io/material-design-icons/#icon-font-for-the-web. You can specify an * alternate font by setting the fontSet input to either the CSS class to apply to use the * desired font, or to an alias previously registered with MatIconRegistry.registerFontClassAlias. * Examples: * `home * sun` * * - Specify a font glyph to be included via CSS rules by setting the fontSet input to specify the * font, and the fontIcon input to specify the icon. Typically the fontIcon will specify a * CSS class which causes the glyph to be displayed via a :before selector, as in * https://fortawesome.github.io/Font-Awesome/examples/ * Example: * `` */ class MatIcon extends _MatIconMixinBase { constructor(elementRef, _iconRegistry, ariaHidden, _location, _errorHandler) { super(elementRef); this._iconRegistry = _iconRegistry; this._location = _location; this._errorHandler = _errorHandler; this._inline = false; /** Subscription to the current in-progress SVG icon request. */ this._currentIconFetch = rxjs__WEBPACK_IMPORTED_MODULE_4__["Subscription"].EMPTY; // If the user has not explicitly set aria-hidden, mark the icon as hidden, as this is // the right thing to do for the majority of icon use-cases. if (!ariaHidden) { elementRef.nativeElement.setAttribute('aria-hidden', 'true'); } } /** * Whether the icon should be inlined, automatically sizing the icon to match the font size of * the element the icon is contained in. */ get inline() { return this._inline; } set inline(inline) { this._inline = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceBooleanProperty"])(inline); } /** Font set that the icon is a part of. */ get fontSet() { return this._fontSet; } set fontSet(value) { this._fontSet = this._cleanupFontValue(value); } /** Name of an icon within a font set. */ get fontIcon() { return this._fontIcon; } set fontIcon(value) { this._fontIcon = this._cleanupFontValue(value); } /** * Splits an svgIcon binding value into its icon set and icon name components. * Returns a 2-element array of [(icon set), (icon name)]. * The separator for the two fields is ':'. If there is no separator, an empty * string is returned for the icon set and the entire value is returned for * the icon name. If the argument is falsy, returns an array of two empty strings. * Throws an error if the name contains two or more ':' separators. * Examples: * `'social:cake' -> ['social', 'cake'] * 'penguin' -> ['', 'penguin'] * null -> ['', ''] * 'a:b:c' -> (throws Error)` */ _splitIconName(iconName) { if (!iconName) { return ['', '']; } const parts = iconName.split(':'); switch (parts.length) { case 1: return ['', parts[0]]; // Use default namespace. case 2: return parts; default: throw Error(`Invalid icon name: "${iconName}"`); // TODO: add an ngDevMode check } } ngOnChanges(changes) { // Only update the inline SVG icon if the inputs changed, to avoid unnecessary DOM operations. const svgIconChanges = changes['svgIcon']; this._svgNamespace = null; this._svgName = null; if (svgIconChanges) { this._currentIconFetch.unsubscribe(); if (this.svgIcon) { const [namespace, iconName] = this._splitIconName(this.svgIcon); if (namespace) { this._svgNamespace = namespace; } if (iconName) { this._svgName = iconName; } this._currentIconFetch = this._iconRegistry.getNamedSvgIcon(iconName, namespace) .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["take"])(1)) .subscribe(svg => this._setSvgElement(svg), (err) => { const errorMessage = `Error retrieving icon ${namespace}:${iconName}! ${err.message}`; this._errorHandler.handleError(new Error(errorMessage)); }); } else if (svgIconChanges.previousValue) { this._clearSvgElement(); } } if (this._usingFontIcon()) { this._updateFontIconClasses(); } } ngOnInit() { // Update font classes because ngOnChanges won't be called if none of the inputs are present, // e.g. arrow In this case we need to add a CSS class for the default font. if (this._usingFontIcon()) { this._updateFontIconClasses(); } } ngAfterViewChecked() { const cachedElements = this._elementsWithExternalReferences; if (cachedElements && cachedElements.size) { const newPath = this._location.getPathname(); // We need to check whether the URL has changed on each change detection since // the browser doesn't have an API that will let us react on link clicks and // we can't depend on the Angular router. The references need to be updated, // because while most browsers don't care whether the URL is correct after // the first render, Safari will break if the user navigates to a different // page and the SVG isn't re-rendered. if (newPath !== this._previousPath) { this._previousPath = newPath; this._prependPathToReferences(newPath); } } } ngOnDestroy() { this._currentIconFetch.unsubscribe(); if (this._elementsWithExternalReferences) { this._elementsWithExternalReferences.clear(); } } _usingFontIcon() { return !this.svgIcon; } _setSvgElement(svg) { this._clearSvgElement(); // Workaround for IE11 and Edge ignoring `style` tags inside dynamically-created SVGs. // See: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/10898469/ // Do this before inserting the element into the DOM, in order to avoid a style recalculation. const styleTags = svg.querySelectorAll('style'); for (let i = 0; i < styleTags.length; i++) { styleTags[i].textContent += ' '; } // Note: we do this fix here, rather than the icon registry, because the // references have to point to the URL at the time that the icon was created. const path = this._location.getPathname(); this._previousPath = path; this._cacheChildrenWithExternalReferences(svg); this._prependPathToReferences(path); this._elementRef.nativeElement.appendChild(svg); } _clearSvgElement() { const layoutElement = this._elementRef.nativeElement; let childCount = layoutElement.childNodes.length; if (this._elementsWithExternalReferences) { this._elementsWithExternalReferences.clear(); } // Remove existing non-element child nodes and SVGs, and add the new SVG element. Note that // we can't use innerHTML, because IE will throw if the element has a data binding. while (childCount--) { const child = layoutElement.childNodes[childCount]; // 1 corresponds to Node.ELEMENT_NODE. We remove all non-element nodes in order to get rid // of any loose text nodes, as well as any SVG elements in order to remove any old icons. if (child.nodeType !== 1 || child.nodeName.toLowerCase() === 'svg') { layoutElement.removeChild(child); } } } _updateFontIconClasses() { if (!this._usingFontIcon()) { return; } const elem = this._elementRef.nativeElement; const fontSetClass = this.fontSet ? this._iconRegistry.classNameForFontAlias(this.fontSet) : this._iconRegistry.getDefaultFontSetClass(); if (fontSetClass != this._previousFontSetClass) { if (this._previousFontSetClass) { elem.classList.remove(this._previousFontSetClass); } if (fontSetClass) { elem.classList.add(fontSetClass); } this._previousFontSetClass = fontSetClass; } if (this.fontIcon != this._previousFontIconClass) { if (this._previousFontIconClass) { elem.classList.remove(this._previousFontIconClass); } if (this.fontIcon) { elem.classList.add(this.fontIcon); } this._previousFontIconClass = this.fontIcon; } } /** * Cleans up a value to be used as a fontIcon or fontSet. * Since the value ends up being assigned as a CSS class, we * have to trim the value and omit space-separated values. */ _cleanupFontValue(value) { return typeof value === 'string' ? value.trim().split(' ')[0] : value; } /** * Prepends the current path to all elements that have an attribute pointing to a `FuncIRI` * reference. This is required because WebKit browsers require references to be prefixed with * the current path, if the page has a `base` tag. */ _prependPathToReferences(path) { const elements = this._elementsWithExternalReferences; if (elements) { elements.forEach((attrs, element) => { attrs.forEach(attr => { element.setAttribute(attr.name, `url('${path}#${attr.value}')`); }); }); } } /** * Caches the children of an SVG element that have `url()` * references that we need to prefix with the current path. */ _cacheChildrenWithExternalReferences(element) { const elementsWithFuncIri = element.querySelectorAll(funcIriAttributeSelector); const elements = this._elementsWithExternalReferences = this._elementsWithExternalReferences || new Map(); for (let i = 0; i < elementsWithFuncIri.length; i++) { funcIriAttributes.forEach(attr => { const elementWithReference = elementsWithFuncIri[i]; const value = elementWithReference.getAttribute(attr); const match = value ? value.match(funcIriPattern) : null; if (match) { let attributes = elements.get(elementWithReference); if (!attributes) { attributes = []; elements.set(elementWithReference, attributes); } attributes.push({ name: attr, value: match[1] }); } }); } } } MatIcon.ɵfac = function MatIcon_Factory(t) { return new (t || MatIcon)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MatIconRegistry), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectAttribute"]('aria-hidden'), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_ICON_LOCATION), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"])); }; MatIcon.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: MatIcon, selectors: [["mat-icon"]], hostAttrs: ["role", "img", 1, "mat-icon", "notranslate"], hostVars: 7, hostBindings: function MatIcon_HostBindings(rf, ctx) { if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("data-mat-icon-type", ctx._usingFontIcon() ? "font" : "svg")("data-mat-icon-name", ctx._svgName || ctx.fontIcon)("data-mat-icon-namespace", ctx._svgNamespace || ctx.fontSet); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-icon-inline", ctx.inline)("mat-icon-no-color", ctx.color !== "primary" && ctx.color !== "accent" && ctx.color !== "warn"); } }, inputs: { color: "color", inline: "inline", fontSet: "fontSet", fontIcon: "fontIcon", svgIcon: "svgIcon" }, exportAs: ["matIcon"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], ngContentSelectors: _c0, decls: 1, vars: 0, template: function MatIcon_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](0); } }, styles: [".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"], encapsulation: 2, changeDetection: 0 }); MatIcon.ctorParameters = () => [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: MatIconRegistry }, { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"], args: ['aria-hidden',] }] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [MAT_ICON_LOCATION,] }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"] } ]; MatIcon.propDecorators = { inline: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }], svgIcon: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }], fontSet: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }], fontIcon: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }] }; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatIcon, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ template: '', selector: 'mat-icon', exportAs: 'matIcon', inputs: ['color'], host: { 'role': 'img', 'class': 'mat-icon notranslate', '[attr.data-mat-icon-type]': '_usingFontIcon() ? "font" : "svg"', '[attr.data-mat-icon-name]': '_svgName || fontIcon', '[attr.data-mat-icon-namespace]': '_svgNamespace || fontSet', '[class.mat-icon-inline]': 'inline', '[class.mat-icon-no-color]': 'color !== "primary" && color !== "accent" && color !== "warn"' }, encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, styles: [".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: MatIconRegistry }, { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"], args: ['aria-hidden'] }] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [MAT_ICON_LOCATION] }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"] }]; }, { inline: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }], fontSet: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }], fontIcon: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }], svgIcon: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }] }); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class MatIconModule { } MatIconModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: MatIconModule }); MatIconModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function MatIconModule_Factory(t) { return new (t || MatIconModule)(); }, imports: [[_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatIconModule, { declarations: function () { return [MatIcon]; }, imports: function () { return [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]]; }, exports: function () { return [MatIcon, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]]; } }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatIconModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"], args: [{ imports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]], exports: [MatIcon, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]], declarations: [MatIcon] }] }], null, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Generated bundle index. Do not edit. */ //# sourceMappingURL=icon.js.map /***/ }), /***/ "NFk7": /*!****************************************************************************!*\ !*** ./node_modules/@aws-amplify/xr/lib-esm/Providers/SumerianProvider.js ***! \****************************************************************************/ /*! exports provided: SumerianProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SumerianProvider", function() { return SumerianProvider; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _XRProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./XRProvider */ "r+8E"); /* harmony import */ var _Errors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Errors */ "teFF"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __values = (undefined && undefined.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; /* * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var SUMERIAN_SERVICE_NAME = 'sumerian'; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('SumerianProvider'); var SumerianProvider = /** @class */ (function (_super) { __extends(SumerianProvider, _super); function SumerianProvider(options) { if (options === void 0) { options = {}; } return _super.call(this, options) || this; } SumerianProvider.prototype.getProviderName = function () { return 'SumerianProvider'; }; SumerianProvider.prototype.loadScript = function (url) { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { return [2 /*return*/, new Promise(function (resolve, reject) { var scriptElement = document.createElement('script'); scriptElement.src = url; scriptElement.addEventListener('load', function (event) { resolve(); }); scriptElement.addEventListener('error', function (event) { reject(new Error("Failed to load script: " + url)); }); document.head.appendChild(scriptElement); })]; }); }); }; SumerianProvider.prototype.loadScene = function (sceneName, domElementId, sceneOptions) { return __awaiter(this, void 0, void 0, function () { var errorMsg, errorMsg, element, errorMsg, scene, errorMsg, sceneUrl, sceneId, sceneRegion, errorMsg, awsSDKConfigOverride, fetchOptions, url, credentials, accessInfo, serviceInfo, request, e_1, apiResponse, apiResponseJson, sceneBundleData, sceneBundle, sceneBundleJson, error_1, progressCallback, publishParamOverrides, sceneLoadParams, sceneController, _a, _b, warning; var e_2, _c; return __generator(this, function (_d) { switch (_d.label) { case 0: if (!sceneName) { errorMsg = 'No scene name passed into loadScene'; logger.error(errorMsg); throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRSceneLoadFailure"](errorMsg); } if (!domElementId) { errorMsg = 'No dom element id passed into loadScene'; logger.error(errorMsg); throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRNoDomElement"](errorMsg); } element = document.getElementById(domElementId); if (!element) { errorMsg = "DOM element id, " + domElementId + " not found"; logger.error(errorMsg); throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRNoDomElement"](errorMsg); } scene = this.getScene(sceneName); if (!scene.sceneConfig) { errorMsg = "No scene config configured for scene: " + sceneName; logger.error(errorMsg); throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRSceneLoadFailure"](errorMsg); } sceneUrl = scene.sceneConfig.url; sceneId = scene.sceneConfig.sceneId; if (scene.sceneConfig.hasOwnProperty('region')) { // Use the scene region on the Sumerian scene configuration sceneRegion = scene.sceneConfig.region; } else if (this.options.hasOwnProperty('region')) { // Use the scene region on the XR category configuration sceneRegion = this.options.region; } else { errorMsg = "No region configured for scene: " + sceneName; logger.error(errorMsg); throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRSceneLoadFailure"](errorMsg); } awsSDKConfigOverride = { region: sceneRegion, // This is passed to the AWS clients created in // Sumerian's AwsSystem // This helps other services(like Lex and Polly) to track // traffic coming from Sumerian scenes embedded with Amplify customUserAgent: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Constants"].userAgent + "-SumerianScene", }; fetchOptions = { headers: { // This sets the AWS user agent string // So the Sumerian service knows this request is // from Amplify 'X-Amz-User-Agent': _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Constants"].userAgent, }, }; url = sceneUrl; _d.label = 1; case 1: _d.trys.push([1, 3, , 4]); return [4 /*yield*/, _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].get()]; case 2: credentials = _d.sent(); awsSDKConfigOverride['credentials'] = credentials; accessInfo = { secret_key: credentials.secretAccessKey, access_key: credentials.accessKeyId, session_token: credentials.sessionToken, }; serviceInfo = { region: sceneRegion, service: SUMERIAN_SERVICE_NAME, }; request = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Signer"].sign({ method: 'GET', url: sceneUrl }, accessInfo, serviceInfo); fetchOptions.headers = __assign(__assign({}, fetchOptions.headers), request.headers); url = request.url; return [3 /*break*/, 4]; case 3: e_1 = _d.sent(); logger.debug('No credentials available, the request will be unsigned'); return [3 /*break*/, 4]; case 4: return [4 /*yield*/, fetch(url, fetchOptions)]; case 5: apiResponse = _d.sent(); return [4 /*yield*/, apiResponse.json()]; case 6: apiResponseJson = _d.sent(); if (apiResponse.status === 403) { if (apiResponseJson.message) { logger.error("Failure to authenticate user: " + apiResponseJson.message); throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRSceneLoadFailure"]("Failure to authenticate user: " + apiResponseJson.message); } else { logger.error("Failure to authenticate user"); throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRSceneLoadFailure"]("Failure to authenticate user"); } } sceneBundleData = apiResponseJson.bundleData[sceneId]; return [4 /*yield*/, fetch(sceneBundleData.url, { headers: sceneBundleData.headers, })]; case 7: sceneBundle = _d.sent(); return [4 /*yield*/, sceneBundle.json()]; case 8: sceneBundleJson = _d.sent(); _d.label = 9; case 9: _d.trys.push([9, 11, , 12]); // Load the Sumerian bootstrapper script into the DOM return [4 /*yield*/, this.loadScript(sceneBundleJson[sceneId].bootstrapperUrl)]; case 10: // Load the Sumerian bootstrapper script into the DOM _d.sent(); return [3 /*break*/, 12]; case 11: error_1 = _d.sent(); logger.error(error_1); throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRSceneLoadFailure"](error_1); case 12: progressCallback = sceneOptions.progressCallback ? sceneOptions.progressCallback : undefined; publishParamOverrides = scene.publishParamOverrides ? scene.publishParamOverrides : undefined; sceneLoadParams = { element: element, sceneId: sceneId, sceneBundle: sceneBundleJson, apiResponse: apiResponseJson, progressCallback: progressCallback, publishParamOverrides: publishParamOverrides, awsSDKConfigOverride: awsSDKConfigOverride, }; return [4 /*yield*/, window.SumerianBootstrapper.loadScene(sceneLoadParams)]; case 13: sceneController = _d.sent(); scene.sceneController = sceneController; scene.isLoaded = true; try { // Log scene warnings for (_a = __values(sceneController.sceneLoadWarnings), _b = _a.next(); !_b.done; _b = _a.next()) { warning = _b.value; logger.warn("loadScene warning: " + warning); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_b && !_b.done && (_c = _a.return)) _c.call(_a); } finally { if (e_2) throw e_2.error; } } return [2 /*return*/]; } }); }); }; SumerianProvider.prototype.isSceneLoaded = function (sceneName) { var scene = this.getScene(sceneName); return scene.isLoaded || false; }; SumerianProvider.prototype.getScene = function (sceneName) { if (!this.options.scenes) { var errorMsg = 'No scenes were defined in the configuration'; logger.error(errorMsg); throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRNoSceneConfiguredError"](errorMsg); } if (!sceneName) { var errorMsg = 'No scene name was passed'; logger.error(errorMsg); throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRSceneNotFoundError"](errorMsg); } if (!this.options.scenes[sceneName]) { var errorMsg = "Scene '" + sceneName + "' is not configured"; logger.error(errorMsg); throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRSceneNotFoundError"](errorMsg); } return this.options.scenes[sceneName]; }; SumerianProvider.prototype.getSceneController = function (sceneName) { if (!this.options.scenes) { var errorMsg = 'No scenes were defined in the configuration'; logger.error(errorMsg); throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRNoSceneConfiguredError"](errorMsg); } var scene = this.options.scenes[sceneName]; if (!scene) { var errorMsg = "Scene '" + sceneName + "' is not configured"; logger.error(errorMsg); throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRSceneNotFoundError"](errorMsg); } var sceneController = scene.sceneController; if (!sceneController) { var errorMsg = "Scene controller for '" + sceneName + "' has not been loaded"; logger.error(errorMsg); throw new _Errors__WEBPACK_IMPORTED_MODULE_2__["XRSceneNotLoadedError"](errorMsg); } return sceneController; }; SumerianProvider.prototype.isVRCapable = function (sceneName) { var sceneController = this.getSceneController(sceneName); return sceneController.vrCapable; }; SumerianProvider.prototype.isVRPresentationActive = function (sceneName) { var sceneController = this.getSceneController(sceneName); return sceneController.vrPresentationActive; }; SumerianProvider.prototype.start = function (sceneName) { var sceneController = this.getSceneController(sceneName); sceneController.start(); }; SumerianProvider.prototype.enterVR = function (sceneName) { var sceneController = this.getSceneController(sceneName); sceneController.enterVR(); }; SumerianProvider.prototype.exitVR = function (sceneName) { var sceneController = this.getSceneController(sceneName); sceneController.exitVR(); }; SumerianProvider.prototype.isMuted = function (sceneName) { var sceneController = this.getSceneController(sceneName); return sceneController.muted; }; SumerianProvider.prototype.setMuted = function (sceneName, muted) { var sceneController = this.getSceneController(sceneName); sceneController.muted = muted; }; SumerianProvider.prototype.onSceneEvent = function (sceneName, eventName, eventHandler) { var sceneController = this.getSceneController(sceneName); sceneController.on(eventName, eventHandler); }; SumerianProvider.prototype.enableAudio = function (sceneName) { var sceneController = this.getSceneController(sceneName); sceneController.enableAudio(); }; return SumerianProvider; }(_XRProvider__WEBPACK_IMPORTED_MODULE_1__["AbstractXRProvider"])); //# sourceMappingURL=SumerianProvider.js.map /***/ }), /***/ "NHP+": /*!*************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/AsyncSubject.js ***! \*************************************************************/ /*! exports provided: AsyncSubject */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncSubject", function() { return AsyncSubject; }); /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Subject */ "XNiG"); /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Subscription */ "quSY"); class AsyncSubject extends _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"] { constructor() { super(...arguments); this.value = null; this.hasNext = false; this.hasCompleted = false; } _subscribe(subscriber) { if (this.hasError) { subscriber.error(this.thrownError); return _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"].EMPTY; } else if (this.hasCompleted && this.hasNext) { subscriber.next(this.value); subscriber.complete(); return _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"].EMPTY; } return super._subscribe(subscriber); } next(value) { if (!this.hasCompleted) { this.value = value; this.hasNext = true; } } error(error) { if (!this.hasCompleted) { super.error(error); } } complete() { this.hasCompleted = true; if (this.hasNext) { super.next(this.value); } super.complete(); } } //# sourceMappingURL=AsyncSubject.js.map /***/ }), /***/ "NJ4a": /*!*********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/hostReportError.js ***! \*********************************************************************/ /*! exports provided: hostReportError */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hostReportError", function() { return hostReportError; }); function hostReportError(err) { setTimeout(() => { throw err; }, 0); } //# sourceMappingURL=hostReportError.js.map /***/ }), /***/ "NJ9Y": /*!***************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/last.js ***! \***************************************************************/ /*! exports provided: last */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "last", function() { return last; }); /* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/EmptyError */ "sVev"); /* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./filter */ "pLZG"); /* harmony import */ var _takeLast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./takeLast */ "BFxc"); /* harmony import */ var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./throwIfEmpty */ "XDbj"); /* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./defaultIfEmpty */ "xbPD"); /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/identity */ "SpAZ"); function last(predicate, defaultValue) { const hasDefaultValue = arguments.length >= 2; return (source) => source.pipe(predicate ? Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])((v, i) => predicate(v, i, source)) : _util_identity__WEBPACK_IMPORTED_MODULE_5__["identity"], Object(_takeLast__WEBPACK_IMPORTED_MODULE_2__["takeLast"])(1), hasDefaultValue ? Object(_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_4__["defaultIfEmpty"])(defaultValue) : Object(_throwIfEmpty__WEBPACK_IMPORTED_MODULE_3__["throwIfEmpty"])(() => new _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__["EmptyError"]())); } //# sourceMappingURL=last.js.map /***/ }), /***/ "NJIg": /*!***************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/credential-provider-cognito-identity/dist/es/fromCognitoIdentity.js ***! \***************************************************************************************************/ /*! exports provided: fromCognitoIdentity */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromCognitoIdentity", function() { return fromCognitoIdentity; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_client_cognito_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/client-cognito-identity */ "f1ex"); /* harmony import */ var _aws_sdk_property_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/property-provider */ "eAe6"); /* harmony import */ var _resolveLogins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./resolveLogins */ "PK/e"); /** * Retrieves temporary AWS credentials using Amazon Cognito's * `GetCredentialsForIdentity` operation. * * Results from this function call are not cached internally. */ function fromCognitoIdentity(parameters) { var _this = this; return function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () { var _a, _b, _c, AccessKeyId, Expiration, _d, SecretKey, SessionToken, _e, _f, _g, _h; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _f = (_e = parameters.client).send; _g = _aws_sdk_client_cognito_identity__WEBPACK_IMPORTED_MODULE_1__["GetCredentialsForIdentityCommand"].bind; _j = { CustomRoleArn: parameters.customRoleArn, IdentityId: parameters.identityId }; if (!parameters.logins) return [3 /*break*/, 2]; return [4 /*yield*/, Object(_resolveLogins__WEBPACK_IMPORTED_MODULE_3__["resolveLogins"])(parameters.logins)]; case 1: _h = _k.sent(); return [3 /*break*/, 3]; case 2: _h = undefined; _k.label = 3; case 3: return [4 /*yield*/, _f.apply(_e, [new (_g.apply(_aws_sdk_client_cognito_identity__WEBPACK_IMPORTED_MODULE_1__["GetCredentialsForIdentityCommand"], [void 0, (_j.Logins = _h, _j)]))()])]; case 4: _a = (_k.sent()).Credentials, _b = _a === void 0 ? throwOnMissingCredentials() : _a, _c = _b.AccessKeyId, AccessKeyId = _c === void 0 ? throwOnMissingAccessKeyId() : _c, Expiration = _b.Expiration, _d = _b.SecretKey, SecretKey = _d === void 0 ? throwOnMissingSecretKey() : _d, SessionToken = _b.SessionToken; return [2 /*return*/, { accessKeyId: AccessKeyId, secretAccessKey: SecretKey, sessionToken: SessionToken, expiration: Expiration, }]; } }); }); }; } function throwOnMissingAccessKeyId() { throw new _aws_sdk_property_provider__WEBPACK_IMPORTED_MODULE_2__["ProviderError"]("Response from Amazon Cognito contained no access key ID"); } function throwOnMissingCredentials() { throw new _aws_sdk_property_provider__WEBPACK_IMPORTED_MODULE_2__["ProviderError"]("Response from Amazon Cognito contained no credentials"); } function throwOnMissingSecretKey() { throw new _aws_sdk_property_provider__WEBPACK_IMPORTED_MODULE_2__["ProviderError"]("Response from Amazon Cognito contained no secret key"); } //# sourceMappingURL=fromCognitoIdentity.js.map /***/ }), /***/ "NKxu": /*!**********************************************!*\ !*** ./node_modules/lodash/_baseIsNative.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__(/*! ./isFunction */ "lSCD"), isMasked = __webpack_require__(/*! ./_isMasked */ "E2jh"), isObject = __webpack_require__(/*! ./isObject */ "GoyQ"), toSource = __webpack_require__(/*! ./_toSource */ "3Fdi"); /** * Used to match `RegExp` * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; /** Used to detect host constructors (Safari). */ var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to detect if a method is native. */ var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ); /** * The base implementation of `_.isNative` without bad shim checks. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a native function, * else `false`. */ function baseIsNative(value) { if (!isObject(value) || isMasked(value)) { return false; } var pattern = isFunction(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource(value)); } module.exports = baseIsNative; /***/ }), /***/ "NL7a": /*!******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/ListTagsForResourceCommand.js ***! \******************************************************************************************************/ /*! exports provided: ListTagsForResourceCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceCommand", function() { return ListTagsForResourceCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListTagsForResourceCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTagsForResourceCommand, _super); // Start section: command_properties // End section: command_properties function ListTagsForResourceCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__["getAwsAuthPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListTagsForResourceInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListTagsForResourceResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListTagsForResourceCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListTagsForResourceCommand"])(input, context); }; ListTagsForResourceCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListTagsForResourceCommand"])(output, context); }; return ListTagsForResourceCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=ListTagsForResourceCommand.js.map /***/ }), /***/ "NNCq": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/range.js ***! \*****************************************************************/ /*! exports provided: range, dispatch */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "range", function() { return range; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return dispatch; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); function range(start = 0, count, scheduler) { return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => { if (count === undefined) { count = start; start = 0; } let index = 0; let current = start; if (scheduler) { return scheduler.schedule(dispatch, 0, { index, count, start, subscriber }); } else { do { if (index++ >= count) { subscriber.complete(); break; } subscriber.next(current++); if (subscriber.closed) { break; } } while (true); } return undefined; }); } function dispatch(state) { const { start, index, count, subscriber } = state; if (index >= count) { subscriber.complete(); return; } subscriber.next(start); if (subscriber.closed) { return; } state.index = index + 1; state.start = start + 1; this.schedule(state); } //# sourceMappingURL=range.js.map /***/ }), /***/ "NTFb": /*!****************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/index.js ***! \****************************************************************/ /*! exports provided: PinpointClient, Pinpoint, CreateAppCommand, CreateCampaignCommand, CreateEmailTemplateCommand, CreateExportJobCommand, CreateImportJobCommand, CreateJourneyCommand, CreatePushTemplateCommand, CreateRecommenderConfigurationCommand, CreateSegmentCommand, CreateSmsTemplateCommand, CreateVoiceTemplateCommand, DeleteAdmChannelCommand, DeleteApnsChannelCommand, DeleteApnsSandboxChannelCommand, DeleteApnsVoipChannelCommand, DeleteApnsVoipSandboxChannelCommand, DeleteAppCommand, DeleteBaiduChannelCommand, DeleteCampaignCommand, DeleteEmailChannelCommand, DeleteEmailTemplateCommand, DeleteEndpointCommand, DeleteEventStreamCommand, DeleteGcmChannelCommand, DeleteJourneyCommand, DeletePushTemplateCommand, DeleteRecommenderConfigurationCommand, DeleteSegmentCommand, DeleteSmsChannelCommand, DeleteSmsTemplateCommand, DeleteUserEndpointsCommand, DeleteVoiceChannelCommand, DeleteVoiceTemplateCommand, GetAdmChannelCommand, GetApnsChannelCommand, GetApnsSandboxChannelCommand, GetApnsVoipChannelCommand, GetApnsVoipSandboxChannelCommand, GetAppCommand, GetApplicationDateRangeKpiCommand, GetApplicationSettingsCommand, GetAppsCommand, GetBaiduChannelCommand, GetCampaignCommand, GetCampaignActivitiesCommand, GetCampaignDateRangeKpiCommand, GetCampaignsCommand, GetCampaignVersionCommand, GetCampaignVersionsCommand, GetChannelsCommand, GetEmailChannelCommand, GetEmailTemplateCommand, GetEndpointCommand, GetEventStreamCommand, GetExportJobCommand, GetExportJobsCommand, GetGcmChannelCommand, GetImportJobCommand, GetImportJobsCommand, GetJourneyCommand, GetJourneyDateRangeKpiCommand, GetJourneyExecutionActivityMetricsCommand, GetJourneyExecutionMetricsCommand, GetPushTemplateCommand, GetRecommenderConfigurationCommand, GetRecommenderConfigurationsCommand, GetSegmentCommand, GetSegmentExportJobsCommand, GetSegmentImportJobsCommand, GetSegmentsCommand, GetSegmentVersionCommand, GetSegmentVersionsCommand, GetSmsChannelCommand, GetSmsTemplateCommand, GetUserEndpointsCommand, GetVoiceChannelCommand, GetVoiceTemplateCommand, ListJourneysCommand, ListTagsForResourceCommand, ListTemplatesCommand, ListTemplateVersionsCommand, PhoneNumberValidateCommand, PutEventsCommand, PutEventStreamCommand, RemoveAttributesCommand, SendMessagesCommand, SendUsersMessagesCommand, TagResourceCommand, UntagResourceCommand, UpdateAdmChannelCommand, UpdateApnsChannelCommand, UpdateApnsSandboxChannelCommand, UpdateApnsVoipChannelCommand, UpdateApnsVoipSandboxChannelCommand, UpdateApplicationSettingsCommand, UpdateBaiduChannelCommand, UpdateCampaignCommand, UpdateEmailChannelCommand, UpdateEmailTemplateCommand, UpdateEndpointCommand, UpdateEndpointsBatchCommand, UpdateGcmChannelCommand, UpdateJourneyCommand, UpdateJourneyStateCommand, UpdatePushTemplateCommand, UpdateRecommenderConfigurationCommand, UpdateSegmentCommand, UpdateSmsChannelCommand, UpdateSmsTemplateCommand, UpdateTemplateActiveVersionCommand, UpdateVoiceChannelCommand, UpdateVoiceTemplateCommand, __EndpointTypesElement, Action, ActivitiesResponse, Activity, ActivityResponse, AddressConfiguration, ADMChannelRequest, ADMChannelResponse, ADMMessage, AndroidPushNotificationTemplate, APNSChannelRequest, APNSChannelResponse, APNSMessage, APNSPushNotificationTemplate, APNSSandboxChannelRequest, APNSSandboxChannelResponse, APNSVoipChannelRequest, APNSVoipChannelResponse, APNSVoipSandboxChannelRequest, APNSVoipSandboxChannelResponse, ApplicationDateRangeKpiResponse, ApplicationResponse, ApplicationSettingsResource, ApplicationsResponse, AttributeDimension, AttributesResource, AttributeType, BadRequestException, BaiduChannelRequest, BaiduChannelResponse, BaiduMessage, BaseKpiResult, CampaignCustomMessage, CampaignDateRangeKpiResponse, CampaignEmailMessage, CampaignEventFilter, CampaignHook, CampaignLimits, CampaignResponse, CampaignSmsMessage, CampaignsResponse, CampaignState, CampaignStatus, ChannelResponse, ChannelsResponse, ChannelType, Condition, ConditionalSplitActivity, CreateApplicationRequest, CreateAppRequest, CreateAppResponse, CreateCampaignRequest, CreateCampaignResponse, CreateEmailTemplateRequest, CreateEmailTemplateResponse, CreateExportJobRequest, CreateExportJobResponse, CreateImportJobRequest, CreateImportJobResponse, CreateJourneyRequest, CreateJourneyResponse, CreatePushTemplateRequest, CreatePushTemplateResponse, CreateRecommenderConfigurationRequest, CreateRecommenderConfigurationResponse, CreateRecommenderConfigurationShape, CreateSegmentRequest, CreateSegmentResponse, CreateSmsTemplateRequest, CreateSmsTemplateResponse, CreateTemplateMessageBody, CreateVoiceTemplateRequest, CreateVoiceTemplateResponse, CustomDeliveryConfiguration, CustomMessageActivity, DefaultMessage, DefaultPushNotificationMessage, DefaultPushNotificationTemplate, DeleteAdmChannelRequest, DeleteAdmChannelResponse, DeleteApnsChannelRequest, DeleteApnsChannelResponse, DeleteApnsSandboxChannelRequest, DeleteApnsSandboxChannelResponse, DeleteApnsVoipChannelRequest, DeleteApnsVoipChannelResponse, DeleteApnsVoipSandboxChannelRequest, DeleteApnsVoipSandboxChannelResponse, DeleteAppRequest, DeleteAppResponse, DeleteBaiduChannelRequest, DeleteBaiduChannelResponse, DeleteCampaignRequest, DeleteCampaignResponse, DeleteEmailChannelRequest, DeleteEmailChannelResponse, DeleteEmailTemplateRequest, DeleteEmailTemplateResponse, DeleteEndpointRequest, DeleteEndpointResponse, DeleteEventStreamRequest, DeleteEventStreamResponse, DeleteGcmChannelRequest, DeleteGcmChannelResponse, DeleteJourneyRequest, DeleteJourneyResponse, DeletePushTemplateRequest, DeletePushTemplateResponse, DeleteRecommenderConfigurationRequest, DeleteRecommenderConfigurationResponse, DeleteSegmentRequest, DeleteSegmentResponse, DeleteSmsChannelRequest, DeleteSmsChannelResponse, DeleteSmsTemplateRequest, DeleteSmsTemplateResponse, DeleteUserEndpointsRequest, DeleteUserEndpointsResponse, DeleteVoiceChannelRequest, DeleteVoiceChannelResponse, DeleteVoiceTemplateRequest, DeleteVoiceTemplateResponse, DeliveryStatus, DimensionType, DirectMessageConfiguration, Duration, EmailChannelRequest, EmailChannelResponse, EmailMessage, EmailMessageActivity, EmailTemplateRequest, EmailTemplateResponse, EndpointBatchItem, EndpointBatchRequest, EndpointDemographic, EndpointItemResponse, EndpointLocation, EndpointMessageResult, EndpointRequest, EndpointResponse, EndpointSendConfiguration, EndpointsResponse, EndpointUser, Event, EventCondition, EventDimensions, EventItemResponse, EventsBatch, EventsRequest, EventsResponse, EventStream, ExportJobRequest, ExportJobResource, ExportJobResponse, ExportJobsResponse, FilterType, ForbiddenException, Format, Frequency, GCMChannelRequest, GCMChannelResponse, GCMMessage, GetAdmChannelRequest, GetAdmChannelResponse, GetApnsChannelRequest, GetApnsChannelResponse, GetApnsSandboxChannelRequest, GetApnsSandboxChannelResponse, GetApnsVoipChannelRequest, GetApnsVoipChannelResponse, GetApnsVoipSandboxChannelRequest, GetApnsVoipSandboxChannelResponse, GetApplicationDateRangeKpiRequest, GetApplicationDateRangeKpiResponse, GetApplicationSettingsRequest, GetApplicationSettingsResponse, GetAppRequest, GetAppResponse, GetAppsRequest, GetAppsResponse, GetBaiduChannelRequest, GetBaiduChannelResponse, GetCampaignActivitiesRequest, GetCampaignActivitiesResponse, GetCampaignDateRangeKpiRequest, GetCampaignDateRangeKpiResponse, GetCampaignRequest, GetCampaignResponse, GetCampaignsRequest, GetCampaignsResponse, GetCampaignVersionRequest, GetCampaignVersionResponse, GetCampaignVersionsRequest, GetCampaignVersionsResponse, GetChannelsRequest, GetChannelsResponse, GetEmailChannelRequest, GetEmailChannelResponse, GetEmailTemplateRequest, GetEmailTemplateResponse, GetEndpointRequest, GetEndpointResponse, GetEventStreamRequest, GetEventStreamResponse, GetExportJobRequest, GetExportJobResponse, GetExportJobsRequest, GetExportJobsResponse, GetGcmChannelRequest, GetGcmChannelResponse, GetImportJobRequest, GetImportJobResponse, GetImportJobsRequest, GetImportJobsResponse, GetJourneyDateRangeKpiRequest, GetJourneyDateRangeKpiResponse, GetJourneyExecutionActivityMetricsRequest, GetJourneyExecutionActivityMetricsResponse, GetJourneyExecutionMetricsRequest, GetJourneyExecutionMetricsResponse, GetJourneyRequest, GetJourneyResponse, GetPushTemplateRequest, GetPushTemplateResponse, GetRecommenderConfigurationRequest, GetRecommenderConfigurationResponse, GetRecommenderConfigurationsRequest, GetRecommenderConfigurationsResponse, GetSegmentExportJobsRequest, GetSegmentExportJobsResponse, GetSegmentImportJobsRequest, GetSegmentImportJobsResponse, GetSegmentRequest, GetSegmentResponse, GetSegmentsRequest, GetSegmentsResponse, GetSegmentVersionRequest, GetSegmentVersionResponse, GetSegmentVersionsRequest, GetSegmentVersionsResponse, GetSmsChannelRequest, GetSmsChannelResponse, GetSmsTemplateRequest, GetSmsTemplateResponse, GetUserEndpointsRequest, GetUserEndpointsResponse, GetVoiceChannelRequest, GetVoiceChannelResponse, GetVoiceTemplateRequest, GetVoiceTemplateResponse, GPSCoordinates, GPSPointDimension, HoldoutActivity, ImportJobRequest, ImportJobResource, ImportJobResponse, ImportJobsResponse, Include, InternalServerErrorException, ItemResponse, JobStatus, JourneyCustomMessage, JourneyDateRangeKpiResponse, JourneyEmailMessage, JourneyExecutionActivityMetricsResponse, JourneyExecutionMetricsResponse, JourneyLimits, JourneyPushMessage, JourneyResponse, JourneySchedule, JourneySMSMessage, JourneysResponse, JourneyStateRequest, ListJourneysRequest, ListJourneysResponse, ListRecommenderConfigurationsResponse, ListTagsForResourceRequest, ListTagsForResourceResponse, ListTemplatesRequest, ListTemplatesResponse, ListTemplateVersionsRequest, ListTemplateVersionsResponse, Message, MessageBody, MessageConfiguration, MessageRequest, MessageResponse, MessageResult, MessageType, MethodNotAllowedException, MetricDimension, Mode, MultiConditionalBranch, MultiConditionalSplitActivity, NotFoundException, NumberValidateRequest, NumberValidateResponse, Operator, PayloadTooLargeException, PhoneNumberValidateRequest, PhoneNumberValidateResponse, PublicEndpoint, PushMessageActivity, PushNotificationTemplateRequest, PushNotificationTemplateResponse, PutEventsRequest, PutEventsResponse, PutEventStreamRequest, PutEventStreamResponse, QuietTime, RandomSplitActivity, RandomSplitEntry, RawEmail, RecencyDimension, RecencyType, RecommenderConfigurationResponse, RemoveAttributesRequest, RemoveAttributesResponse, ResultRow, ResultRowValue, Schedule, SegmentBehaviors, SegmentCondition, SegmentDemographics, SegmentDimensions, SegmentGroup, SegmentGroupList, SegmentImportResource, SegmentLocation, SegmentReference, SegmentResponse, SegmentsResponse, SegmentType, SendMessagesRequest, SendMessagesResponse, SendUsersMessageRequest, SendUsersMessageResponse, SendUsersMessagesRequest, SendUsersMessagesResponse, Session, SetDimension, SimpleCondition, SimpleEmail, SimpleEmailPart, SMSChannelRequest, SMSChannelResponse, SMSMessage, SMSMessageActivity, SMSTemplateRequest, SMSTemplateResponse, SourceType, StartCondition, State, TagResourceRequest, TagsModel, Template, TemplateActiveVersionRequest, TemplateConfiguration, TemplateResponse, TemplatesResponse, TemplateType, TemplateVersionResponse, TemplateVersionsResponse, TooManyRequestsException, TreatmentResource, Type, UntagResourceRequest, UpdateAdmChannelRequest, UpdateAdmChannelResponse, UpdateApnsChannelRequest, UpdateApnsChannelResponse, UpdateApnsSandboxChannelRequest, UpdateApnsSandboxChannelResponse, UpdateApnsVoipChannelRequest, UpdateApnsVoipChannelResponse, UpdateApnsVoipSandboxChannelRequest, UpdateApnsVoipSandboxChannelResponse, UpdateApplicationSettingsRequest, UpdateApplicationSettingsResponse, UpdateAttributesRequest, UpdateBaiduChannelRequest, UpdateBaiduChannelResponse, UpdateCampaignRequest, UpdateCampaignResponse, UpdateEmailChannelRequest, UpdateEmailChannelResponse, UpdateEmailTemplateRequest, UpdateEmailTemplateResponse, UpdateEndpointRequest, UpdateEndpointResponse, UpdateEndpointsBatchRequest, UpdateEndpointsBatchResponse, UpdateGcmChannelRequest, UpdateGcmChannelResponse, UpdateJourneyRequest, UpdateJourneyResponse, UpdateJourneyStateRequest, UpdateJourneyStateResponse, UpdatePushTemplateRequest, UpdatePushTemplateResponse, UpdateRecommenderConfigurationRequest, UpdateRecommenderConfigurationResponse, UpdateRecommenderConfigurationShape, UpdateSegmentRequest, UpdateSegmentResponse, UpdateSmsChannelRequest, UpdateSmsChannelResponse, UpdateSmsTemplateRequest, UpdateSmsTemplateResponse, UpdateTemplateActiveVersionRequest, UpdateTemplateActiveVersionResponse, UpdateVoiceChannelRequest, UpdateVoiceChannelResponse, UpdateVoiceTemplateRequest, UpdateVoiceTemplateResponse, VoiceChannelRequest, VoiceChannelResponse, VoiceMessage, VoiceTemplateRequest, VoiceTemplateResponse, WaitActivity, WaitTime, WriteApplicationSettingsRequest, WriteCampaignRequest, WriteEventStream, WriteJourneyRequest, WriteSegmentRequest, WriteTreatmentResource */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _PinpointClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PinpointClient */ "uy0C"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PinpointClient", function() { return _PinpointClient__WEBPACK_IMPORTED_MODULE_0__["PinpointClient"]; }); /* harmony import */ var _Pinpoint__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Pinpoint */ "Rsbi"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Pinpoint", function() { return _Pinpoint__WEBPACK_IMPORTED_MODULE_1__["Pinpoint"]; }); /* harmony import */ var _commands_CreateAppCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/CreateAppCommand */ "e0nL"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateAppCommand", function() { return _commands_CreateAppCommand__WEBPACK_IMPORTED_MODULE_2__["CreateAppCommand"]; }); /* harmony import */ var _commands_CreateCampaignCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/CreateCampaignCommand */ "LjFZ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignCommand", function() { return _commands_CreateCampaignCommand__WEBPACK_IMPORTED_MODULE_3__["CreateCampaignCommand"]; }); /* harmony import */ var _commands_CreateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/CreateEmailTemplateCommand */ "Q9wF"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateCommand", function() { return _commands_CreateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_4__["CreateEmailTemplateCommand"]; }); /* harmony import */ var _commands_CreateExportJobCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/CreateExportJobCommand */ "xmZz"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobCommand", function() { return _commands_CreateExportJobCommand__WEBPACK_IMPORTED_MODULE_5__["CreateExportJobCommand"]; }); /* harmony import */ var _commands_CreateImportJobCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/CreateImportJobCommand */ "x+YT"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobCommand", function() { return _commands_CreateImportJobCommand__WEBPACK_IMPORTED_MODULE_6__["CreateImportJobCommand"]; }); /* harmony import */ var _commands_CreateJourneyCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/CreateJourneyCommand */ "c7rq"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyCommand", function() { return _commands_CreateJourneyCommand__WEBPACK_IMPORTED_MODULE_7__["CreateJourneyCommand"]; }); /* harmony import */ var _commands_CreatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/CreatePushTemplateCommand */ "3spr"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateCommand", function() { return _commands_CreatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_8__["CreatePushTemplateCommand"]; }); /* harmony import */ var _commands_CreateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/CreateRecommenderConfigurationCommand */ "y9DR"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationCommand", function() { return _commands_CreateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_9__["CreateRecommenderConfigurationCommand"]; }); /* harmony import */ var _commands_CreateSegmentCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/CreateSegmentCommand */ "8LHb"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentCommand", function() { return _commands_CreateSegmentCommand__WEBPACK_IMPORTED_MODULE_10__["CreateSegmentCommand"]; }); /* harmony import */ var _commands_CreateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/CreateSmsTemplateCommand */ "vSw9"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateCommand", function() { return _commands_CreateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_11__["CreateSmsTemplateCommand"]; }); /* harmony import */ var _commands_CreateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/CreateVoiceTemplateCommand */ "Eds4"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateCommand", function() { return _commands_CreateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_12__["CreateVoiceTemplateCommand"]; }); /* harmony import */ var _commands_DeleteAdmChannelCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/DeleteAdmChannelCommand */ "Ukkh"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelCommand", function() { return _commands_DeleteAdmChannelCommand__WEBPACK_IMPORTED_MODULE_13__["DeleteAdmChannelCommand"]; }); /* harmony import */ var _commands_DeleteApnsChannelCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/DeleteApnsChannelCommand */ "yIMh"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelCommand", function() { return _commands_DeleteApnsChannelCommand__WEBPACK_IMPORTED_MODULE_14__["DeleteApnsChannelCommand"]; }); /* harmony import */ var _commands_DeleteApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/DeleteApnsSandboxChannelCommand */ "izAz"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelCommand", function() { return _commands_DeleteApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_15__["DeleteApnsSandboxChannelCommand"]; }); /* harmony import */ var _commands_DeleteApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/DeleteApnsVoipChannelCommand */ "Gju0"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelCommand", function() { return _commands_DeleteApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_16__["DeleteApnsVoipChannelCommand"]; }); /* harmony import */ var _commands_DeleteApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/DeleteApnsVoipSandboxChannelCommand */ "b+5N"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelCommand", function() { return _commands_DeleteApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_17__["DeleteApnsVoipSandboxChannelCommand"]; }); /* harmony import */ var _commands_DeleteAppCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/DeleteAppCommand */ "LB7D"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAppCommand", function() { return _commands_DeleteAppCommand__WEBPACK_IMPORTED_MODULE_18__["DeleteAppCommand"]; }); /* harmony import */ var _commands_DeleteBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/DeleteBaiduChannelCommand */ "iq4p"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelCommand", function() { return _commands_DeleteBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_19__["DeleteBaiduChannelCommand"]; }); /* harmony import */ var _commands_DeleteCampaignCommand__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./commands/DeleteCampaignCommand */ "6B53"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignCommand", function() { return _commands_DeleteCampaignCommand__WEBPACK_IMPORTED_MODULE_20__["DeleteCampaignCommand"]; }); /* harmony import */ var _commands_DeleteEmailChannelCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/DeleteEmailChannelCommand */ "2ACi"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelCommand", function() { return _commands_DeleteEmailChannelCommand__WEBPACK_IMPORTED_MODULE_21__["DeleteEmailChannelCommand"]; }); /* harmony import */ var _commands_DeleteEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/DeleteEmailTemplateCommand */ "fuE7"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateCommand", function() { return _commands_DeleteEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_22__["DeleteEmailTemplateCommand"]; }); /* harmony import */ var _commands_DeleteEndpointCommand__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./commands/DeleteEndpointCommand */ "3hse"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointCommand", function() { return _commands_DeleteEndpointCommand__WEBPACK_IMPORTED_MODULE_23__["DeleteEndpointCommand"]; }); /* harmony import */ var _commands_DeleteEventStreamCommand__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./commands/DeleteEventStreamCommand */ "Wb+S"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamCommand", function() { return _commands_DeleteEventStreamCommand__WEBPACK_IMPORTED_MODULE_24__["DeleteEventStreamCommand"]; }); /* harmony import */ var _commands_DeleteGcmChannelCommand__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./commands/DeleteGcmChannelCommand */ "oimN"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelCommand", function() { return _commands_DeleteGcmChannelCommand__WEBPACK_IMPORTED_MODULE_25__["DeleteGcmChannelCommand"]; }); /* harmony import */ var _commands_DeleteJourneyCommand__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./commands/DeleteJourneyCommand */ "MkjW"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyCommand", function() { return _commands_DeleteJourneyCommand__WEBPACK_IMPORTED_MODULE_26__["DeleteJourneyCommand"]; }); /* harmony import */ var _commands_DeletePushTemplateCommand__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./commands/DeletePushTemplateCommand */ "88cP"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateCommand", function() { return _commands_DeletePushTemplateCommand__WEBPACK_IMPORTED_MODULE_27__["DeletePushTemplateCommand"]; }); /* harmony import */ var _commands_DeleteRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./commands/DeleteRecommenderConfigurationCommand */ "mE6a"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationCommand", function() { return _commands_DeleteRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_28__["DeleteRecommenderConfigurationCommand"]; }); /* harmony import */ var _commands_DeleteSegmentCommand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./commands/DeleteSegmentCommand */ "W7TT"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentCommand", function() { return _commands_DeleteSegmentCommand__WEBPACK_IMPORTED_MODULE_29__["DeleteSegmentCommand"]; }); /* harmony import */ var _commands_DeleteSmsChannelCommand__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./commands/DeleteSmsChannelCommand */ "Q6gB"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelCommand", function() { return _commands_DeleteSmsChannelCommand__WEBPACK_IMPORTED_MODULE_30__["DeleteSmsChannelCommand"]; }); /* harmony import */ var _commands_DeleteSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./commands/DeleteSmsTemplateCommand */ "F0qz"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateCommand", function() { return _commands_DeleteSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_31__["DeleteSmsTemplateCommand"]; }); /* harmony import */ var _commands_DeleteUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./commands/DeleteUserEndpointsCommand */ "Rnto"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsCommand", function() { return _commands_DeleteUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_32__["DeleteUserEndpointsCommand"]; }); /* harmony import */ var _commands_DeleteVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./commands/DeleteVoiceChannelCommand */ "YwP6"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelCommand", function() { return _commands_DeleteVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_33__["DeleteVoiceChannelCommand"]; }); /* harmony import */ var _commands_DeleteVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./commands/DeleteVoiceTemplateCommand */ "Az6a"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateCommand", function() { return _commands_DeleteVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_34__["DeleteVoiceTemplateCommand"]; }); /* harmony import */ var _commands_GetAdmChannelCommand__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./commands/GetAdmChannelCommand */ "3Mas"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelCommand", function() { return _commands_GetAdmChannelCommand__WEBPACK_IMPORTED_MODULE_35__["GetAdmChannelCommand"]; }); /* harmony import */ var _commands_GetApnsChannelCommand__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./commands/GetApnsChannelCommand */ "jZem"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelCommand", function() { return _commands_GetApnsChannelCommand__WEBPACK_IMPORTED_MODULE_36__["GetApnsChannelCommand"]; }); /* harmony import */ var _commands_GetApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./commands/GetApnsSandboxChannelCommand */ "Aj/d"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelCommand", function() { return _commands_GetApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_37__["GetApnsSandboxChannelCommand"]; }); /* harmony import */ var _commands_GetApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./commands/GetApnsVoipChannelCommand */ "Vxrz"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelCommand", function() { return _commands_GetApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_38__["GetApnsVoipChannelCommand"]; }); /* harmony import */ var _commands_GetApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./commands/GetApnsVoipSandboxChannelCommand */ "O/zc"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelCommand", function() { return _commands_GetApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_39__["GetApnsVoipSandboxChannelCommand"]; }); /* harmony import */ var _commands_GetAppCommand__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./commands/GetAppCommand */ "2lIZ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppCommand", function() { return _commands_GetAppCommand__WEBPACK_IMPORTED_MODULE_40__["GetAppCommand"]; }); /* harmony import */ var _commands_GetApplicationDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./commands/GetApplicationDateRangeKpiCommand */ "jq1Y"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiCommand", function() { return _commands_GetApplicationDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_41__["GetApplicationDateRangeKpiCommand"]; }); /* harmony import */ var _commands_GetApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./commands/GetApplicationSettingsCommand */ "/sDv"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsCommand", function() { return _commands_GetApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_42__["GetApplicationSettingsCommand"]; }); /* harmony import */ var _commands_GetAppsCommand__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./commands/GetAppsCommand */ "P6/G"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppsCommand", function() { return _commands_GetAppsCommand__WEBPACK_IMPORTED_MODULE_43__["GetAppsCommand"]; }); /* harmony import */ var _commands_GetBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./commands/GetBaiduChannelCommand */ "pFec"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelCommand", function() { return _commands_GetBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_44__["GetBaiduChannelCommand"]; }); /* harmony import */ var _commands_GetCampaignCommand__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./commands/GetCampaignCommand */ "BLt0"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignCommand", function() { return _commands_GetCampaignCommand__WEBPACK_IMPORTED_MODULE_45__["GetCampaignCommand"]; }); /* harmony import */ var _commands_GetCampaignActivitiesCommand__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./commands/GetCampaignActivitiesCommand */ "EkgW"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesCommand", function() { return _commands_GetCampaignActivitiesCommand__WEBPACK_IMPORTED_MODULE_46__["GetCampaignActivitiesCommand"]; }); /* harmony import */ var _commands_GetCampaignDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./commands/GetCampaignDateRangeKpiCommand */ "G8u8"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiCommand", function() { return _commands_GetCampaignDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_47__["GetCampaignDateRangeKpiCommand"]; }); /* harmony import */ var _commands_GetCampaignsCommand__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./commands/GetCampaignsCommand */ "e8O2"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsCommand", function() { return _commands_GetCampaignsCommand__WEBPACK_IMPORTED_MODULE_48__["GetCampaignsCommand"]; }); /* harmony import */ var _commands_GetCampaignVersionCommand__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./commands/GetCampaignVersionCommand */ "cJkL"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionCommand", function() { return _commands_GetCampaignVersionCommand__WEBPACK_IMPORTED_MODULE_49__["GetCampaignVersionCommand"]; }); /* harmony import */ var _commands_GetCampaignVersionsCommand__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./commands/GetCampaignVersionsCommand */ "L4K2"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsCommand", function() { return _commands_GetCampaignVersionsCommand__WEBPACK_IMPORTED_MODULE_50__["GetCampaignVersionsCommand"]; }); /* harmony import */ var _commands_GetChannelsCommand__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./commands/GetChannelsCommand */ "tFPS"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetChannelsCommand", function() { return _commands_GetChannelsCommand__WEBPACK_IMPORTED_MODULE_51__["GetChannelsCommand"]; }); /* harmony import */ var _commands_GetEmailChannelCommand__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./commands/GetEmailChannelCommand */ "il/R"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelCommand", function() { return _commands_GetEmailChannelCommand__WEBPACK_IMPORTED_MODULE_52__["GetEmailChannelCommand"]; }); /* harmony import */ var _commands_GetEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./commands/GetEmailTemplateCommand */ "Pokg"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateCommand", function() { return _commands_GetEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_53__["GetEmailTemplateCommand"]; }); /* harmony import */ var _commands_GetEndpointCommand__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./commands/GetEndpointCommand */ "DMc/"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEndpointCommand", function() { return _commands_GetEndpointCommand__WEBPACK_IMPORTED_MODULE_54__["GetEndpointCommand"]; }); /* harmony import */ var _commands_GetEventStreamCommand__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./commands/GetEventStreamCommand */ "fry/"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamCommand", function() { return _commands_GetEventStreamCommand__WEBPACK_IMPORTED_MODULE_55__["GetEventStreamCommand"]; }); /* harmony import */ var _commands_GetExportJobCommand__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./commands/GetExportJobCommand */ "hMvX"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobCommand", function() { return _commands_GetExportJobCommand__WEBPACK_IMPORTED_MODULE_56__["GetExportJobCommand"]; }); /* harmony import */ var _commands_GetExportJobsCommand__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./commands/GetExportJobsCommand */ "lAb6"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsCommand", function() { return _commands_GetExportJobsCommand__WEBPACK_IMPORTED_MODULE_57__["GetExportJobsCommand"]; }); /* harmony import */ var _commands_GetGcmChannelCommand__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./commands/GetGcmChannelCommand */ "A1a1"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelCommand", function() { return _commands_GetGcmChannelCommand__WEBPACK_IMPORTED_MODULE_58__["GetGcmChannelCommand"]; }); /* harmony import */ var _commands_GetImportJobCommand__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./commands/GetImportJobCommand */ "f3Bl"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobCommand", function() { return _commands_GetImportJobCommand__WEBPACK_IMPORTED_MODULE_59__["GetImportJobCommand"]; }); /* harmony import */ var _commands_GetImportJobsCommand__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./commands/GetImportJobsCommand */ "DoJc"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsCommand", function() { return _commands_GetImportJobsCommand__WEBPACK_IMPORTED_MODULE_60__["GetImportJobsCommand"]; }); /* harmony import */ var _commands_GetJourneyCommand__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./commands/GetJourneyCommand */ "UOWG"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyCommand", function() { return _commands_GetJourneyCommand__WEBPACK_IMPORTED_MODULE_61__["GetJourneyCommand"]; }); /* harmony import */ var _commands_GetJourneyDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./commands/GetJourneyDateRangeKpiCommand */ "tlLW"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiCommand", function() { return _commands_GetJourneyDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_62__["GetJourneyDateRangeKpiCommand"]; }); /* harmony import */ var _commands_GetJourneyExecutionActivityMetricsCommand__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./commands/GetJourneyExecutionActivityMetricsCommand */ "vaJ9"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsCommand", function() { return _commands_GetJourneyExecutionActivityMetricsCommand__WEBPACK_IMPORTED_MODULE_63__["GetJourneyExecutionActivityMetricsCommand"]; }); /* harmony import */ var _commands_GetJourneyExecutionMetricsCommand__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./commands/GetJourneyExecutionMetricsCommand */ "wofK"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsCommand", function() { return _commands_GetJourneyExecutionMetricsCommand__WEBPACK_IMPORTED_MODULE_64__["GetJourneyExecutionMetricsCommand"]; }); /* harmony import */ var _commands_GetPushTemplateCommand__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./commands/GetPushTemplateCommand */ "aSwM"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateCommand", function() { return _commands_GetPushTemplateCommand__WEBPACK_IMPORTED_MODULE_65__["GetPushTemplateCommand"]; }); /* harmony import */ var _commands_GetRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./commands/GetRecommenderConfigurationCommand */ "qpcA"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationCommand", function() { return _commands_GetRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_66__["GetRecommenderConfigurationCommand"]; }); /* harmony import */ var _commands_GetRecommenderConfigurationsCommand__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./commands/GetRecommenderConfigurationsCommand */ "59Yy"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsCommand", function() { return _commands_GetRecommenderConfigurationsCommand__WEBPACK_IMPORTED_MODULE_67__["GetRecommenderConfigurationsCommand"]; }); /* harmony import */ var _commands_GetSegmentCommand__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./commands/GetSegmentCommand */ "9ETN"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentCommand", function() { return _commands_GetSegmentCommand__WEBPACK_IMPORTED_MODULE_68__["GetSegmentCommand"]; }); /* harmony import */ var _commands_GetSegmentExportJobsCommand__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./commands/GetSegmentExportJobsCommand */ "OEcO"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsCommand", function() { return _commands_GetSegmentExportJobsCommand__WEBPACK_IMPORTED_MODULE_69__["GetSegmentExportJobsCommand"]; }); /* harmony import */ var _commands_GetSegmentImportJobsCommand__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./commands/GetSegmentImportJobsCommand */ "hhRY"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsCommand", function() { return _commands_GetSegmentImportJobsCommand__WEBPACK_IMPORTED_MODULE_70__["GetSegmentImportJobsCommand"]; }); /* harmony import */ var _commands_GetSegmentsCommand__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./commands/GetSegmentsCommand */ "uazp"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsCommand", function() { return _commands_GetSegmentsCommand__WEBPACK_IMPORTED_MODULE_71__["GetSegmentsCommand"]; }); /* harmony import */ var _commands_GetSegmentVersionCommand__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./commands/GetSegmentVersionCommand */ "4wMv"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionCommand", function() { return _commands_GetSegmentVersionCommand__WEBPACK_IMPORTED_MODULE_72__["GetSegmentVersionCommand"]; }); /* harmony import */ var _commands_GetSegmentVersionsCommand__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ./commands/GetSegmentVersionsCommand */ "hjI9"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsCommand", function() { return _commands_GetSegmentVersionsCommand__WEBPACK_IMPORTED_MODULE_73__["GetSegmentVersionsCommand"]; }); /* harmony import */ var _commands_GetSmsChannelCommand__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ./commands/GetSmsChannelCommand */ "2Ctp"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelCommand", function() { return _commands_GetSmsChannelCommand__WEBPACK_IMPORTED_MODULE_74__["GetSmsChannelCommand"]; }); /* harmony import */ var _commands_GetSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ./commands/GetSmsTemplateCommand */ "FiXj"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateCommand", function() { return _commands_GetSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_75__["GetSmsTemplateCommand"]; }); /* harmony import */ var _commands_GetUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ./commands/GetUserEndpointsCommand */ "dJlu"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsCommand", function() { return _commands_GetUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_76__["GetUserEndpointsCommand"]; }); /* harmony import */ var _commands_GetVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ./commands/GetVoiceChannelCommand */ "yxa1"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelCommand", function() { return _commands_GetVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_77__["GetVoiceChannelCommand"]; }); /* harmony import */ var _commands_GetVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ./commands/GetVoiceTemplateCommand */ "ocBX"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateCommand", function() { return _commands_GetVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_78__["GetVoiceTemplateCommand"]; }); /* harmony import */ var _commands_ListJourneysCommand__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ./commands/ListJourneysCommand */ "81uo"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListJourneysCommand", function() { return _commands_ListJourneysCommand__WEBPACK_IMPORTED_MODULE_79__["ListJourneysCommand"]; }); /* harmony import */ var _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ./commands/ListTagsForResourceCommand */ "Fp+q"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceCommand", function() { return _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_80__["ListTagsForResourceCommand"]; }); /* harmony import */ var _commands_ListTemplatesCommand__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ./commands/ListTemplatesCommand */ "L9KU"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesCommand", function() { return _commands_ListTemplatesCommand__WEBPACK_IMPORTED_MODULE_81__["ListTemplatesCommand"]; }); /* harmony import */ var _commands_ListTemplateVersionsCommand__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ./commands/ListTemplateVersionsCommand */ "kM94"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsCommand", function() { return _commands_ListTemplateVersionsCommand__WEBPACK_IMPORTED_MODULE_82__["ListTemplateVersionsCommand"]; }); /* harmony import */ var _commands_PhoneNumberValidateCommand__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ./commands/PhoneNumberValidateCommand */ "ogT0"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateCommand", function() { return _commands_PhoneNumberValidateCommand__WEBPACK_IMPORTED_MODULE_83__["PhoneNumberValidateCommand"]; }); /* harmony import */ var _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ./commands/PutEventsCommand */ "Gd6z"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsCommand", function() { return _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_84__["PutEventsCommand"]; }); /* harmony import */ var _commands_PutEventStreamCommand__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ./commands/PutEventStreamCommand */ "r393"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamCommand", function() { return _commands_PutEventStreamCommand__WEBPACK_IMPORTED_MODULE_85__["PutEventStreamCommand"]; }); /* harmony import */ var _commands_RemoveAttributesCommand__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ./commands/RemoveAttributesCommand */ "dTNM"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesCommand", function() { return _commands_RemoveAttributesCommand__WEBPACK_IMPORTED_MODULE_86__["RemoveAttributesCommand"]; }); /* harmony import */ var _commands_SendMessagesCommand__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ./commands/SendMessagesCommand */ "yfh8"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendMessagesCommand", function() { return _commands_SendMessagesCommand__WEBPACK_IMPORTED_MODULE_87__["SendMessagesCommand"]; }); /* harmony import */ var _commands_SendUsersMessagesCommand__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ./commands/SendUsersMessagesCommand */ "y9dF"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesCommand", function() { return _commands_SendUsersMessagesCommand__WEBPACK_IMPORTED_MODULE_88__["SendUsersMessagesCommand"]; }); /* harmony import */ var _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! ./commands/TagResourceCommand */ "Qll+"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagResourceCommand", function() { return _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_89__["TagResourceCommand"]; }); /* harmony import */ var _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(/*! ./commands/UntagResourceCommand */ "vj/8"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagResourceCommand", function() { return _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_90__["UntagResourceCommand"]; }); /* harmony import */ var _commands_UpdateAdmChannelCommand__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(/*! ./commands/UpdateAdmChannelCommand */ "YwjR"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelCommand", function() { return _commands_UpdateAdmChannelCommand__WEBPACK_IMPORTED_MODULE_91__["UpdateAdmChannelCommand"]; }); /* harmony import */ var _commands_UpdateApnsChannelCommand__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(/*! ./commands/UpdateApnsChannelCommand */ "PwNr"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelCommand", function() { return _commands_UpdateApnsChannelCommand__WEBPACK_IMPORTED_MODULE_92__["UpdateApnsChannelCommand"]; }); /* harmony import */ var _commands_UpdateApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(/*! ./commands/UpdateApnsSandboxChannelCommand */ "5XLS"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelCommand", function() { return _commands_UpdateApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_93__["UpdateApnsSandboxChannelCommand"]; }); /* harmony import */ var _commands_UpdateApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(/*! ./commands/UpdateApnsVoipChannelCommand */ "DP5i"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelCommand", function() { return _commands_UpdateApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_94__["UpdateApnsVoipChannelCommand"]; }); /* harmony import */ var _commands_UpdateApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(/*! ./commands/UpdateApnsVoipSandboxChannelCommand */ "tO/H"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelCommand", function() { return _commands_UpdateApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_95__["UpdateApnsVoipSandboxChannelCommand"]; }); /* harmony import */ var _commands_UpdateApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(/*! ./commands/UpdateApplicationSettingsCommand */ "LP1H"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsCommand", function() { return _commands_UpdateApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_96__["UpdateApplicationSettingsCommand"]; }); /* harmony import */ var _commands_UpdateBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(/*! ./commands/UpdateBaiduChannelCommand */ "bWGS"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelCommand", function() { return _commands_UpdateBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_97__["UpdateBaiduChannelCommand"]; }); /* harmony import */ var _commands_UpdateCampaignCommand__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(/*! ./commands/UpdateCampaignCommand */ "wKfR"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignCommand", function() { return _commands_UpdateCampaignCommand__WEBPACK_IMPORTED_MODULE_98__["UpdateCampaignCommand"]; }); /* harmony import */ var _commands_UpdateEmailChannelCommand__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(/*! ./commands/UpdateEmailChannelCommand */ "FL9v"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelCommand", function() { return _commands_UpdateEmailChannelCommand__WEBPACK_IMPORTED_MODULE_99__["UpdateEmailChannelCommand"]; }); /* harmony import */ var _commands_UpdateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(/*! ./commands/UpdateEmailTemplateCommand */ "mpod"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateCommand", function() { return _commands_UpdateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_100__["UpdateEmailTemplateCommand"]; }); /* harmony import */ var _commands_UpdateEndpointCommand__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(/*! ./commands/UpdateEndpointCommand */ "ZM/B"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointCommand", function() { return _commands_UpdateEndpointCommand__WEBPACK_IMPORTED_MODULE_101__["UpdateEndpointCommand"]; }); /* harmony import */ var _commands_UpdateEndpointsBatchCommand__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(/*! ./commands/UpdateEndpointsBatchCommand */ "rCU/"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchCommand", function() { return _commands_UpdateEndpointsBatchCommand__WEBPACK_IMPORTED_MODULE_102__["UpdateEndpointsBatchCommand"]; }); /* harmony import */ var _commands_UpdateGcmChannelCommand__WEBPACK_IMPORTED_MODULE_103__ = __webpack_require__(/*! ./commands/UpdateGcmChannelCommand */ "caCD"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelCommand", function() { return _commands_UpdateGcmChannelCommand__WEBPACK_IMPORTED_MODULE_103__["UpdateGcmChannelCommand"]; }); /* harmony import */ var _commands_UpdateJourneyCommand__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(/*! ./commands/UpdateJourneyCommand */ "EmLY"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyCommand", function() { return _commands_UpdateJourneyCommand__WEBPACK_IMPORTED_MODULE_104__["UpdateJourneyCommand"]; }); /* harmony import */ var _commands_UpdateJourneyStateCommand__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(/*! ./commands/UpdateJourneyStateCommand */ "UHnt"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateCommand", function() { return _commands_UpdateJourneyStateCommand__WEBPACK_IMPORTED_MODULE_105__["UpdateJourneyStateCommand"]; }); /* harmony import */ var _commands_UpdatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(/*! ./commands/UpdatePushTemplateCommand */ "p78j"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateCommand", function() { return _commands_UpdatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_106__["UpdatePushTemplateCommand"]; }); /* harmony import */ var _commands_UpdateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(/*! ./commands/UpdateRecommenderConfigurationCommand */ "ufDZ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationCommand", function() { return _commands_UpdateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_107__["UpdateRecommenderConfigurationCommand"]; }); /* harmony import */ var _commands_UpdateSegmentCommand__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(/*! ./commands/UpdateSegmentCommand */ "F5/f"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentCommand", function() { return _commands_UpdateSegmentCommand__WEBPACK_IMPORTED_MODULE_108__["UpdateSegmentCommand"]; }); /* harmony import */ var _commands_UpdateSmsChannelCommand__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(/*! ./commands/UpdateSmsChannelCommand */ "v+fT"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelCommand", function() { return _commands_UpdateSmsChannelCommand__WEBPACK_IMPORTED_MODULE_109__["UpdateSmsChannelCommand"]; }); /* harmony import */ var _commands_UpdateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(/*! ./commands/UpdateSmsTemplateCommand */ "7slb"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateCommand", function() { return _commands_UpdateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_110__["UpdateSmsTemplateCommand"]; }); /* harmony import */ var _commands_UpdateTemplateActiveVersionCommand__WEBPACK_IMPORTED_MODULE_111__ = __webpack_require__(/*! ./commands/UpdateTemplateActiveVersionCommand */ "vK35"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionCommand", function() { return _commands_UpdateTemplateActiveVersionCommand__WEBPACK_IMPORTED_MODULE_111__["UpdateTemplateActiveVersionCommand"]; }); /* harmony import */ var _commands_UpdateVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_112__ = __webpack_require__(/*! ./commands/UpdateVoiceChannelCommand */ "xW1F"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelCommand", function() { return _commands_UpdateVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_112__["UpdateVoiceChannelCommand"]; }); /* harmony import */ var _commands_UpdateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(/*! ./commands/UpdateVoiceTemplateCommand */ "x+c/"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateCommand", function() { return _commands_UpdateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_113__["UpdateVoiceTemplateCommand"]; }); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_114__ = __webpack_require__(/*! ./models/index */ "xdo1"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__EndpointTypesElement", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["__EndpointTypesElement"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Action", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Action"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActivitiesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ActivitiesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Activity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Activity"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActivityResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ActivityResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AddressConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["AddressConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ADMChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ADMChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ADMChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ADMChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ADMMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ADMMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AndroidPushNotificationTemplate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["AndroidPushNotificationTemplate"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSPushNotificationTemplate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSPushNotificationTemplate"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSSandboxChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSSandboxChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSVoipChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSVoipChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSVoipSandboxChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSVoipSandboxChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ApplicationDateRangeKpiResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ApplicationResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationSettingsResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ApplicationSettingsResource"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ApplicationsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributeDimension", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["AttributeDimension"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributesResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["AttributesResource"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributeType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["AttributeType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BadRequestException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["BadRequestException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaiduChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["BaiduChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaiduChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["BaiduChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaiduMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["BaiduMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseKpiResult", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["BaseKpiResult"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignCustomMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignCustomMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignDateRangeKpiResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignEmailMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignEmailMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignEventFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignEventFilter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignHook", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignHook"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignLimits", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignLimits"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignSmsMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignSmsMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignState", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignState"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChannelsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ChannelsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChannelType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ChannelType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Condition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Condition"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConditionalSplitActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ConditionalSplitActivity"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateApplicationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateApplicationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateAppRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateAppRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateAppResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateAppResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateCampaignRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateCampaignResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateEmailTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateEmailTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateExportJobRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateExportJobResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateImportJobRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateImportJobResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateJourneyRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateJourneyResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreatePushTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreatePushTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateRecommenderConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateRecommenderConfigurationResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationShape", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateRecommenderConfigurationShape"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateSegmentRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateSegmentResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateSmsTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateSmsTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateTemplateMessageBody", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateTemplateMessageBody"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateVoiceTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateVoiceTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomDeliveryConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CustomDeliveryConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomMessageActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CustomMessageActivity"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DefaultMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultPushNotificationMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DefaultPushNotificationMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultPushNotificationTemplate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DefaultPushNotificationTemplate"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteAdmChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteAdmChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsSandboxChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsSandboxChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsVoipChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsVoipChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsVoipSandboxChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsVoipSandboxChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAppRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteAppRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAppResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteAppResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteBaiduChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteBaiduChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteCampaignRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteCampaignResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEmailChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEmailChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEmailTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEmailTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEndpointRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEndpointResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEventStreamRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEventStreamResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteGcmChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteGcmChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteJourneyRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteJourneyResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeletePushTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeletePushTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteRecommenderConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteRecommenderConfigurationResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSegmentRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSegmentResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSmsChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSmsChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSmsTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSmsTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteUserEndpointsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteUserEndpointsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteVoiceChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteVoiceChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteVoiceTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteVoiceTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeliveryStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DimensionType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DimensionType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DirectMessageConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DirectMessageConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Duration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Duration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailMessageActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailMessageActivity"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointBatchItem", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointBatchItem"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointBatchRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointBatchRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointDemographic", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointDemographic"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointItemResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointItemResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointLocation", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointLocation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointMessageResult", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointMessageResult"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointSendConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointSendConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointUser", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointUser"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Event", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Event"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventCondition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventCondition"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventDimensions", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventDimensions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventItemResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventItemResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventsBatch", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventsBatch"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStream", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventStream"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ExportJobRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ExportJobResource"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ExportJobResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ExportJobsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["FilterType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ForbiddenException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ForbiddenException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Format", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Format"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Frequency", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Frequency"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GCMChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GCMChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GCMChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GCMChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GCMMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GCMMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAdmChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAdmChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsSandboxChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsSandboxChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsVoipChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsVoipChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsVoipSandboxChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsVoipSandboxChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApplicationDateRangeKpiRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApplicationDateRangeKpiResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApplicationSettingsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApplicationSettingsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAppRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAppResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAppsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAppsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetBaiduChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetBaiduChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignActivitiesRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignActivitiesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignDateRangeKpiRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignDateRangeKpiResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignVersionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignVersionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignVersionsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignVersionsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetChannelsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetChannelsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetChannelsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetChannelsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEmailChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEmailChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEmailTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEmailTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEndpointRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEndpointRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEndpointResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEndpointResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEventStreamRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEventStreamResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetExportJobRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetExportJobResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetExportJobsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetExportJobsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetGcmChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetGcmChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetImportJobRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetImportJobResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetImportJobsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetImportJobsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyDateRangeKpiRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyDateRangeKpiResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyExecutionActivityMetricsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyExecutionActivityMetricsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyExecutionMetricsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyExecutionMetricsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetPushTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetPushTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetRecommenderConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetRecommenderConfigurationResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetRecommenderConfigurationsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetRecommenderConfigurationsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentExportJobsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentExportJobsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentImportJobsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentImportJobsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentVersionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentVersionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentVersionsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentVersionsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSmsChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSmsChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSmsTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSmsTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetUserEndpointsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetUserEndpointsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetVoiceChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetVoiceChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetVoiceTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetVoiceTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GPSCoordinates", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GPSCoordinates"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GPSPointDimension", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GPSPointDimension"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HoldoutActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["HoldoutActivity"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ImportJobRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ImportJobResource"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ImportJobResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ImportJobsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Include", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Include"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InternalServerErrorException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["InternalServerErrorException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ItemResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JobStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JobStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyCustomMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyCustomMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyDateRangeKpiResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyEmailMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyEmailMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyExecutionActivityMetricsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyExecutionActivityMetricsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyExecutionMetricsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyExecutionMetricsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyLimits", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyLimits"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyPushMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyPushMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneySchedule", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneySchedule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneySMSMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneySMSMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneysResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneysResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyStateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyStateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListJourneysRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListJourneysRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListJourneysResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListJourneysResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListRecommenderConfigurationsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListRecommenderConfigurationsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTagsForResourceRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTagsForResourceResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTemplatesRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTemplatesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTemplateVersionsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTemplateVersionsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Message", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Message"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageBody", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageBody"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageResult", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageResult"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MethodNotAllowedException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MethodNotAllowedException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MetricDimension", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MetricDimension"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Mode", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Mode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MultiConditionalBranch", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MultiConditionalBranch"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MultiConditionalSplitActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MultiConditionalSplitActivity"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["NotFoundException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NumberValidateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["NumberValidateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NumberValidateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["NumberValidateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Operator", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Operator"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PayloadTooLargeException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PayloadTooLargeException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PhoneNumberValidateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PhoneNumberValidateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PublicEndpoint", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PublicEndpoint"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PushMessageActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PushMessageActivity"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PushNotificationTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PushNotificationTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PushNotificationTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PushNotificationTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PutEventsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PutEventsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PutEventStreamRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PutEventStreamResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuietTime", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["QuietTime"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RandomSplitActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RandomSplitActivity"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RandomSplitEntry", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RandomSplitEntry"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RawEmail", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RawEmail"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecencyDimension", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RecencyDimension"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecencyType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RecencyType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecommenderConfigurationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RecommenderConfigurationResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RemoveAttributesRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RemoveAttributesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResultRow", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ResultRow"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResultRowValue", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ResultRowValue"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Schedule", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Schedule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentBehaviors", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentBehaviors"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentCondition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentCondition"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentDemographics", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentDemographics"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentDimensions", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentDimensions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentGroup", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentGroup"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentGroupList", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentGroupList"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentImportResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentImportResource"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentLocation", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentLocation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentReference", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentReference"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendMessagesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendMessagesRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendMessagesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendMessagesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessageRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendUsersMessageRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessageResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendUsersMessageResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendUsersMessagesRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendUsersMessagesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Session", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Session"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SetDimension", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SetDimension"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SimpleCondition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SimpleCondition"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SimpleEmail", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SimpleEmail"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SimpleEmailPart", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SimpleEmailPart"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSMessageActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSMessageActivity"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SourceType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SourceType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartCondition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["StartCondition"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "State", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["State"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagResourceRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TagResourceRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagsModel", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TagsModel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Template", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Template"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateActiveVersionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateActiveVersionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateConfiguration"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplatesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplatesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateVersionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateVersionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateVersionsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateVersionsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooManyRequestsException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TooManyRequestsException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreatmentResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TreatmentResource"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Type", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Type"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagResourceRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UntagResourceRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateAdmChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateAdmChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsSandboxChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsSandboxChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsVoipChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsVoipChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsVoipSandboxChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsVoipSandboxChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApplicationSettingsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApplicationSettingsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAttributesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateAttributesRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateBaiduChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateBaiduChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateCampaignRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateCampaignResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEmailChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEmailChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEmailTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEmailTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEndpointRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEndpointResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEndpointsBatchRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEndpointsBatchResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateGcmChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateGcmChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateJourneyRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateJourneyResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateJourneyStateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateJourneyStateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdatePushTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdatePushTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateRecommenderConfigurationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateRecommenderConfigurationResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationShape", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateRecommenderConfigurationShape"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSegmentRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSegmentResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSmsChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSmsChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSmsTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSmsTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateTemplateActiveVersionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateTemplateActiveVersionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateVoiceChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateVoiceChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateVoiceTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateVoiceTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["VoiceChannelRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["VoiceChannelResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["VoiceMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["VoiceTemplateRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["VoiceTemplateResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WaitActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WaitActivity"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WaitTime", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WaitTime"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteApplicationSettingsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteApplicationSettingsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteCampaignRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteCampaignRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteEventStream", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteEventStream"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteJourneyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteJourneyRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteSegmentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteSegmentRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteTreatmentResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteTreatmentResource"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "NX9z": /*!*******************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/CopyObjectCommand.js ***! \*******************************************************************************/ /*! exports provided: CopyObjectCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CopyObjectCommand", function() { return CopyObjectCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_ssec__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-ssec */ "CXEx"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CopyObjectCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CopyObjectCommand, _super); // Start section: command_properties // End section: command_properties function CopyObjectCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CopyObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_ssec__WEBPACK_IMPORTED_MODULE_5__["getSsecPlugin"])(configuration)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CopyObjectRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CopyObjectOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CopyObjectCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlCopyObjectCommand"])(input, context); }; CopyObjectCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlCopyObjectCommand"])(output, context); }; return CopyObjectCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__["Command"])); //# sourceMappingURL=CopyObjectCommand.js.map /***/ }), /***/ "NXyV": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/defer.js ***! \*****************************************************************/ /*! exports provided: defer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defer", function() { return defer; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./from */ "Cfvw"); /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./empty */ "EY2u"); function defer(observableFactory) { return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => { let input; try { input = observableFactory(); } catch (err) { subscriber.error(err); return undefined; } const source = input ? Object(_from__WEBPACK_IMPORTED_MODULE_1__["from"])(input) : Object(_empty__WEBPACK_IMPORTED_MODULE_2__["empty"])(); return source.subscribe(subscriber); }); } //# sourceMappingURL=defer.js.map /***/ }), /***/ "NYFs": /*!*******************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/runtimeConfig.browser.js ***! \*******************************************************************************/ /*! exports provided: ClientDefaultValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientDefaultValues", function() { return ClientDefaultValues; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./package.json */ "bPa+"); var _package_json__WEBPACK_IMPORTED_MODULE_1___namespace = /*#__PURE__*/__webpack_require__.t(/*! ./package.json */ "bPa+", 1); /* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-crypto/sha256-browser */ "viNG"); /* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _aws_sdk_eventstream_serde_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/eventstream-serde-browser */ "TVPv"); /* harmony import */ var _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/fetch-http-handler */ "LUnR"); /* harmony import */ var _aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/invalid-dependency */ "J2eM"); /* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "UMev"); /* harmony import */ var _aws_sdk_url_parser_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/url-parser-browser */ "c14h"); /* harmony import */ var _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/util-base64-browser */ "S3Uu"); /* harmony import */ var _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/util-body-length-browser */ "N9sX"); /* harmony import */ var _aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @aws-sdk/util-user-agent-browser */ "wU8f"); /* harmony import */ var _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "kg8h"); /* harmony import */ var _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./runtimeConfig.shared */ "VDiX"); var ClientDefaultValues = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_12__["ClientSharedValues"]), { runtime: "browser", base64Decoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_8__["fromBase64"], base64Encoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_8__["toBase64"], bodyLengthChecker: _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_9__["calculateBodyLength"], credentialDefaultProvider: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_5__["invalidFunction"])("Credential is missing"), defaultUserAgent: Object(_aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_10__["defaultUserAgent"])(_package_json__WEBPACK_IMPORTED_MODULE_1__["name"], _package_json__WEBPACK_IMPORTED_MODULE_1__["version"]), eventStreamSerdeProvider: _aws_sdk_eventstream_serde_browser__WEBPACK_IMPORTED_MODULE_3__["eventStreamSerdeProvider"], maxAttempts: _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["DEFAULT_MAX_ATTEMPTS"], region: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_5__["invalidFunction"])("Region is missing"), requestHandler: new _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_4__["FetchHttpHandler"](), sha256: _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__["Sha256"], streamCollector: _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_4__["streamCollector"], urlParser: _aws_sdk_url_parser_browser__WEBPACK_IMPORTED_MODULE_7__["parseUrl"], utf8Decoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_11__["fromUtf8"], utf8Encoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_11__["toUtf8"] }); //# sourceMappingURL=runtimeConfig.browser.js.map /***/ }), /***/ "Na0I": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-translate/dist/es/commands/ListTerminologiesCommand.js ***! \*********************************************************************************************/ /*! exports provided: ListTerminologiesCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTerminologiesCommand", function() { return ListTerminologiesCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "B4mn"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "eh4a"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListTerminologiesCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTerminologiesCommand, _super); // Start section: command_properties // End section: command_properties function ListTerminologiesCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListTerminologiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListTerminologiesRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListTerminologiesResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListTerminologiesCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListTerminologiesCommand"])(input, context); }; ListTerminologiesCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListTerminologiesCommand"])(output, context); }; return ListTerminologiesCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListTerminologiesCommand.js.map /***/ }), /***/ "NaSI": /*!****************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/endpoints.js ***! \****************************************************************************/ /*! exports provided: defaultRegionInfoProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRegionInfoProvider", function() { return defaultRegionInfoProvider; }); // Partition default templates var AWS_TEMPLATE = "cognito-identity.{region}.amazonaws.com"; var AWS_CN_TEMPLATE = "cognito-identity.{region}.amazonaws.com.cn"; var AWS_ISO_TEMPLATE = "cognito-identity.{region}.c2s.ic.gov"; var AWS_ISO_B_TEMPLATE = "cognito-identity.{region}.sc2s.sgov.gov"; var AWS_US_GOV_TEMPLATE = "cognito-identity.{region}.amazonaws.com"; // Partition regions var AWS_REGIONS = new Set([ "ap-east-1", "ap-northeast-1", "ap-northeast-2", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "eu-central-1", "eu-north-1", "eu-west-1", "eu-west-2", "eu-west-3", "me-south-1", "sa-east-1", "us-east-1", "us-east-2", "us-west-1", "us-west-2", ]); var AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]); var AWS_ISO_REGIONS = new Set(["us-iso-east-1"]); var AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]); var AWS_US_GOV_REGIONS = new Set(["us-gov-east-1", "us-gov-west-1"]); var defaultRegionInfoProvider = function (region, options) { var regionInfo = undefined; switch (region) { // First, try to match exact region names. case "ap-northeast-1": regionInfo = { hostname: "cognito-identity.ap-northeast-1.amazonaws.com", partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "cognito-identity.ap-northeast-2.amazonaws.com", partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "cognito-identity.ap-south-1.amazonaws.com", partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "cognito-identity.ap-southeast-1.amazonaws.com", partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "cognito-identity.ap-southeast-2.amazonaws.com", partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "cognito-identity.ca-central-1.amazonaws.com", partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "cognito-identity.cn-north-1.amazonaws.com.cn", partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "cognito-identity.eu-central-1.amazonaws.com", partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "cognito-identity.eu-west-1.amazonaws.com", partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "cognito-identity.eu-west-2.amazonaws.com", partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "cognito-identity.us-east-1.amazonaws.com", partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "cognito-identity.us-east-2.amazonaws.com", partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "cognito-identity.us-west-2.amazonaws.com", partition: "aws", }; break; // Next, try to match partition endpoints. default: if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), partition: "aws", }; } } return Promise.resolve(regionInfo); }; //# sourceMappingURL=endpoints.js.map /***/ }), /***/ "Nc/2": /*!************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-polly/dist/es/commands/ListLexiconsCommand.js ***! \************************************************************************************/ /*! exports provided: ListLexiconsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListLexiconsCommand", function() { return ListLexiconsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "uUVK"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "h3LU"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListLexiconsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListLexiconsCommand, _super); // Start section: command_properties // End section: command_properties function ListLexiconsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListLexiconsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListLexiconsInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListLexiconsOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListLexiconsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1ListLexiconsCommand"])(input, context); }; ListLexiconsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1ListLexiconsCommand"])(output, context); }; return ListLexiconsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListLexiconsCommand.js.map /***/ }), /***/ "Nehr": /*!**********************************!*\ !*** ./node_modules/url/util.js ***! \**********************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = { isString: function(arg) { return typeof(arg) === 'string'; }, isObject: function(arg) { return typeof(arg) === 'object' && arg !== null; }, isNull: function(arg) { return arg === null; }, isNullOrUndefined: function(arg) { return arg == null; } }; /***/ }), /***/ "NfdI": /*!******************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/publish.js ***! \******************************************************************/ /*! exports provided: publish */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "publish", function() { return publish; }); /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subject */ "XNiG"); /* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./multicast */ "oB13"); function publish(selector) { return selector ? Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(() => new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"](), selector) : Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]()); } //# sourceMappingURL=publish.js.map /***/ }), /***/ "Nl9j": /*!***********************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-host-header/dist/es/index.js ***! \***********************************************************************/ /*! exports provided: resolveHostHeaderConfig, hostHeaderMiddleware, hostHeaderMiddlewareOptions, getHostHeaderPlugin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveHostHeaderConfig", function() { return resolveHostHeaderConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hostHeaderMiddleware", function() { return hostHeaderMiddleware; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hostHeaderMiddlewareOptions", function() { return hostHeaderMiddlewareOptions; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getHostHeaderPlugin", function() { return getHostHeaderPlugin; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "Enk7"); function resolveHostHeaderConfig(input) { return input; } var hostHeaderMiddleware = function (options) { return function (next) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var request, _a, handlerProtocol; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { if (!_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(args.request)) return [2 /*return*/, next(args)]; request = args.request; _a = (options.requestHandler.metadata || {}).handlerProtocol, handlerProtocol = _a === void 0 ? "" : _a; //For H2 request, remove 'host' header and use ':authority' header instead //reference: https://nodejs.org/dist/latest-v13.x/docs/api/errors.html#ERR_HTTP2_INVALID_CONNECTION_HEADERS if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) { delete request.headers["host"]; request.headers[":authority"] = ""; //non-H2 request and 'host' header is not set, set the 'host' header to request's hostname. } else if (!request.headers["host"]) { request.headers["host"] = request.hostname; } return [2 /*return*/, next(args)]; }); }); }; }; }; var hostHeaderMiddlewareOptions = { name: "hostHeaderMiddleware", step: "build", tags: ["HOST"], }; var getHostHeaderPlugin = function (options) { return ({ applyToStack: function (clientStack) { clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions); }, }); }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQVVyRCxNQUFNLFVBQVUsdUJBQXVCLENBQ3JDLEtBQXFEO0lBRXJELE9BQU8sS0FBSyxDQUFDO0FBQ2YsQ0FBQztBQUVELE1BQU0sQ0FBQyxJQUFNLG9CQUFvQixHQUFHLFVBQ2xDLE9BQWlDLElBQ0UsT0FBQSxVQUFDLElBQUksSUFBSyxPQUFBLFVBQU8sSUFBSTs7O1FBQ3hELElBQUksQ0FBQyxXQUFXLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7WUFBRSxzQkFBTyxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQUM7UUFDckQsT0FBTyxHQUFLLElBQUksUUFBVCxDQUFVO1FBQ2pCLEtBQXlCLENBQUEsT0FBTyxDQUFDLGNBQWMsQ0FBQyxRQUFRLElBQUksRUFBRSxDQUFBLGdCQUExQyxFQUFwQixlQUFlLG1CQUFHLEVBQUUsS0FBQSxDQUEyQztRQUN2RSwwRUFBMEU7UUFDMUUsMkdBQTJHO1FBQzNHLElBQUksZUFBZSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLFlBQVksQ0FBQyxFQUFFO1lBQ3hFLE9BQU8sT0FBTyxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQztZQUMvQixPQUFPLENBQUMsT0FBTyxDQUFDLFlBQVksQ0FBQyxHQUFHLEVBQUUsQ0FBQztZQUNuQywyRkFBMkY7U0FDNUY7YUFBTSxJQUFJLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsRUFBRTtZQUNuQyxPQUFPLENBQUMsT0FBTyxDQUFDLE1BQU0sQ0FBQyxHQUFHLE9BQU8sQ0FBQyxRQUFRLENBQUM7U0FDNUM7UUFDRCxzQkFBTyxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQUM7O0tBQ25CLEVBZDhDLENBYzlDLEVBZG9DLENBY3BDLENBQUM7QUFFRixNQUFNLENBQUMsSUFBTSwyQkFBMkIsR0FBMkM7SUFDakYsSUFBSSxFQUFFLHNCQUFzQjtJQUM1QixJQUFJLEVBQUUsT0FBTztJQUNiLElBQUksRUFBRSxDQUFDLE1BQU0sQ0FBQztDQUNmLENBQUM7QUFFRixNQUFNLENBQUMsSUFBTSxtQkFBbUIsR0FBRyxVQUFDLE9BQWlDLElBQTBCLE9BQUEsQ0FBQztJQUM5RixZQUFZLEVBQUUsVUFBQyxXQUFXO1FBQ3hCLFdBQVcsQ0FBQyxHQUFHLENBQUMsb0JBQW9CLENBQUMsT0FBTyxDQUFDLEVBQUUsMkJBQTJCLENBQUMsQ0FBQztJQUM5RSxDQUFDO0NBQ0YsQ0FBQyxFQUo2RixDQUk3RixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSHR0cFJlcXVlc3QgfSBmcm9tIFwiQGF3cy1zZGsvcHJvdG9jb2wtaHR0cFwiO1xuaW1wb3J0IHsgQWJzb2x1dGVMb2NhdGlvbiwgQnVpbGRIYW5kbGVyT3B0aW9ucywgQnVpbGRNaWRkbGV3YXJlLCBQbHVnZ2FibGUsIFJlcXVlc3RIYW5kbGVyIH0gZnJvbSBcIkBhd3Mtc2RrL3R5cGVzXCI7XG5cbmV4cG9ydCBpbnRlcmZhY2UgSG9zdEhlYWRlcklucHV0Q29uZmlnIHt9XG5pbnRlcmZhY2UgUHJldmlvdXNseVJlc29sdmVkIHtcbiAgcmVxdWVzdEhhbmRsZXI6IFJlcXVlc3RIYW5kbGVyPGFueSwgYW55Pjtcbn1cbmV4cG9ydCBpbnRlcmZhY2UgSG9zdEhlYWRlclJlc29sdmVkQ29uZmlnIHtcbiAgcmVxdWVzdEhhbmRsZXI6IFJlcXVlc3RIYW5kbGVyPGFueSwgYW55Pjtcbn1cbmV4cG9ydCBmdW5jdGlvbiByZXNvbHZlSG9zdEhlYWRlckNvbmZpZzxUPihcbiAgaW5wdXQ6IFQgJiBQcmV2aW91c2x5UmVzb2x2ZWQgJiBIb3N0SGVhZGVySW5wdXRDb25maWdcbik6IFQgJiBIb3N0SGVhZGVyUmVzb2x2ZWRDb25maWcge1xuICByZXR1cm4gaW5wdXQ7XG59XG5cbmV4cG9ydCBjb25zdCBob3N0SGVhZGVyTWlkZGxld2FyZSA9IDxJbnB1dCBleHRlbmRzIG9iamVjdCwgT3V0cHV0IGV4dGVuZHMgb2JqZWN0PihcbiAgb3B0aW9uczogSG9zdEhlYWRlclJlc29sdmVkQ29uZmlnXG4pOiBCdWlsZE1pZGRsZXdhcmU8SW5wdXQsIE91dHB1dD4gPT4gKG5leHQpID0+IGFzeW5jIChhcmdzKSA9PiB7XG4gIGlmICghSHR0cFJlcXVlc3QuaXNJbnN0YW5jZShhcmdzLnJlcXVlc3QpKSByZXR1cm4gbmV4dChhcmdzKTtcbiAgY29uc3QgeyByZXF1ZXN0IH0gPSBhcmdzO1xuICBjb25zdCB7IGhhbmRsZXJQcm90b2NvbCA9IFwiXCIgfSA9IG9wdGlvbnMucmVxdWVzdEhhbmRsZXIubWV0YWRhdGEgfHwge307XG4gIC8vRm9yIEgyIHJlcXVlc3QsIHJlbW92ZSAnaG9zdCcgaGVhZGVyIGFuZCB1c2UgJzphdXRob3JpdHknIGhlYWRlciBpbnN0ZWFkXG4gIC8vcmVmZXJlbmNlOiBodHRwczovL25vZGVqcy5vcmcvZGlzdC9sYXRlc3QtdjEzLngvZG9jcy9hcGkvZXJyb3JzLmh0bWwjRVJSX0hUVFAyX0lOVkFMSURfQ09OTkVDVElPTl9IRUFERVJTXG4gIGlmIChoYW5kbGVyUHJvdG9jb2wuaW5kZXhPZihcImgyXCIpID49IDAgJiYgIXJlcXVlc3QuaGVhZGVyc1tcIjphdXRob3JpdHlcIl0pIHtcbiAgICBkZWxldGUgcmVxdWVzdC5oZWFkZXJzW1wiaG9zdFwiXTtcbiAgICByZXF1ZXN0LmhlYWRlcnNbXCI6YXV0aG9yaXR5XCJdID0gXCJcIjtcbiAgICAvL25vbi1IMiByZXF1ZXN0IGFuZCAnaG9zdCcgaGVhZGVyIGlzIG5vdCBzZXQsIHNldCB0aGUgJ2hvc3QnIGhlYWRlciB0byByZXF1ZXN0J3MgaG9zdG5hbWUuXG4gIH0gZWxzZSBpZiAoIXJlcXVlc3QuaGVhZGVyc1tcImhvc3RcIl0pIHtcbiAgICByZXF1ZXN0LmhlYWRlcnNbXCJob3N0XCJdID0gcmVxdWVzdC5ob3N0bmFtZTtcbiAgfVxuICByZXR1cm4gbmV4dChhcmdzKTtcbn07XG5cbmV4cG9ydCBjb25zdCBob3N0SGVhZGVyTWlkZGxld2FyZU9wdGlvbnM6IEJ1aWxkSGFuZGxlck9wdGlvbnMgJiBBYnNvbHV0ZUxvY2F0aW9uID0ge1xuICBuYW1lOiBcImhvc3RIZWFkZXJNaWRkbGV3YXJlXCIsXG4gIHN0ZXA6IFwiYnVpbGRcIixcbiAgdGFnczogW1wiSE9TVFwiXSxcbn07XG5cbmV4cG9ydCBjb25zdCBnZXRIb3N0SGVhZGVyUGx1Z2luID0gKG9wdGlvbnM6IEhvc3RIZWFkZXJSZXNvbHZlZENvbmZpZyk6IFBsdWdnYWJsZTxhbnksIGFueT4gPT4gKHtcbiAgYXBwbHlUb1N0YWNrOiAoY2xpZW50U3RhY2spID0+IHtcbiAgICBjbGllbnRTdGFjay5hZGQoaG9zdEhlYWRlck1pZGRsZXdhcmUob3B0aW9ucyksIGhvc3RIZWFkZXJNaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcbiJdfQ== /***/ }), /***/ "Np1J": /*!**************************************************************************!*\ !*** ./node_modules/@aws-amplify/analytics/lib-esm/utils/MethodEmbed.js ***! \**************************************************************************/ /*! exports provided: MethodEmbed, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MethodEmbed", function() { return MethodEmbed; }); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (undefined && undefined.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var lists = []; var MethodEmbed = /** @class */ (function () { function MethodEmbed(context, methodName) { this.context = context; this.methodName = methodName; this._originalMethod = context[methodName].bind(context); } MethodEmbed.add = function (context, methodName, methodOverride) { getInstance(context, methodName).set(methodOverride); }; MethodEmbed.remove = function (context, methodName) { getInstance(context, methodName).remove(); }; MethodEmbed.prototype.set = function (methodOverride) { var _this = this; this.context[this.methodName] = function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } return methodOverride(_this._originalMethod.apply(_this, __spread(args))); }; }; MethodEmbed.prototype.remove = function () { this.context[this.methodName] = this._originalMethod; }; return MethodEmbed; }()); function getInstance(context, methodName) { var instance = lists.filter(function (h) { return h.context === context && h.methodName === methodName; })[0]; if (!instance) { instance = new MethodEmbed(context, methodName); lists.push(instance); } return instance; } /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (MethodEmbed); //# sourceMappingURL=MethodEmbed.js.map /***/ }), /***/ "Npjl": /*!******************************************!*\ !*** ./node_modules/lodash/_getValue.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Gets the value at `key` of `object`. * * @private * @param {Object} [object] The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function getValue(object, key) { return object == null ? undefined : object[key]; } module.exports = getValue; /***/ }), /***/ "NsQP": /*!********************************************************************!*\ !*** ./node_modules/@aws-sdk/signature-v4/dist/es/cloneRequest.js ***! \********************************************************************/ /*! exports provided: cloneRequest */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneRequest", function() { return cloneRequest; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /** * @internal */ function cloneRequest(_a) { var headers = _a.headers, query = _a.query, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["headers", "query"]); return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, rest), { headers: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, headers), query: query ? cloneQuery(query) : undefined }); } function cloneQuery(query) { return Object.keys(query).reduce(function (carry, paramName) { var _a; var param = query[paramName]; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, carry), (_a = {}, _a[paramName] = Array.isArray(param) ? Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])(param) : param, _a)); }, {}); } //# sourceMappingURL=cloneRequest.js.map /***/ }), /***/ "Nt7R": /*!************************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/Logger/ConsoleLogger.js ***! \************************************************************************/ /*! exports provided: ConsoleLogger */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsoleLogger", function() { return ConsoleLogger; }); /* * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (undefined && undefined.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var LOG_LEVELS = { VERBOSE: 1, DEBUG: 2, INFO: 3, WARN: 4, ERROR: 5, }; /** * Write logs * @class Logger */ var ConsoleLogger = /** @class */ (function () { /** * @constructor * @param {string} name - Name of the logger */ function ConsoleLogger(name, level) { if (level === void 0) { level = 'WARN'; } this.name = name; this.level = level; } ConsoleLogger.prototype._padding = function (n) { return n < 10 ? '0' + n : '' + n; }; ConsoleLogger.prototype._ts = function () { var dt = new Date(); return ([this._padding(dt.getMinutes()), this._padding(dt.getSeconds())].join(':') + '.' + dt.getMilliseconds()); }; /** * Write log * @method * @memeberof Logger * @param {string} type - log type, default INFO * @param {string|object} msg - Logging message or object */ ConsoleLogger.prototype._log = function (type) { var msg = []; for (var _i = 1; _i < arguments.length; _i++) { msg[_i - 1] = arguments[_i]; } var logger_level_name = this.level; if (ConsoleLogger.LOG_LEVEL) { logger_level_name = ConsoleLogger.LOG_LEVEL; } if (typeof window !== 'undefined' && window.LOG_LEVEL) { logger_level_name = window.LOG_LEVEL; } var logger_level = LOG_LEVELS[logger_level_name]; var type_level = LOG_LEVELS[type]; if (!(type_level >= logger_level)) { // Do nothing if type is not greater than or equal to logger level (handle undefined) return; } var log = console.log.bind(console); if (type === 'ERROR' && console.error) { log = console.error.bind(console); } if (type === 'WARN' && console.warn) { log = console.warn.bind(console); } var prefix = "[" + type + "] " + this._ts() + " " + this.name; if (msg.length === 1 && typeof msg[0] === 'string') { log(prefix + " - " + msg[0]); } else if (msg.length === 1) { log(prefix, msg[0]); } else if (typeof msg[0] === 'string') { var obj = msg.slice(1); if (obj.length === 1) { obj = obj[0]; } log(prefix + " - " + msg[0], obj); } else { log(prefix, msg); } }; /** * Write General log. Default to INFO * @method * @memeberof Logger * @param {string|object} msg - Logging message or object */ ConsoleLogger.prototype.log = function () { var msg = []; for (var _i = 0; _i < arguments.length; _i++) { msg[_i] = arguments[_i]; } this._log.apply(this, __spread(['INFO'], msg)); }; /** * Write INFO log * @method * @memeberof Logger * @param {string|object} msg - Logging message or object */ ConsoleLogger.prototype.info = function () { var msg = []; for (var _i = 0; _i < arguments.length; _i++) { msg[_i] = arguments[_i]; } this._log.apply(this, __spread(['INFO'], msg)); }; /** * Write WARN log * @method * @memeberof Logger * @param {string|object} msg - Logging message or object */ ConsoleLogger.prototype.warn = function () { var msg = []; for (var _i = 0; _i < arguments.length; _i++) { msg[_i] = arguments[_i]; } this._log.apply(this, __spread(['WARN'], msg)); }; /** * Write ERROR log * @method * @memeberof Logger * @param {string|object} msg - Logging message or object */ ConsoleLogger.prototype.error = function () { var msg = []; for (var _i = 0; _i < arguments.length; _i++) { msg[_i] = arguments[_i]; } this._log.apply(this, __spread(['ERROR'], msg)); }; /** * Write DEBUG log * @method * @memeberof Logger * @param {string|object} msg - Logging message or object */ ConsoleLogger.prototype.debug = function () { var msg = []; for (var _i = 0; _i < arguments.length; _i++) { msg[_i] = arguments[_i]; } this._log.apply(this, __spread(['DEBUG'], msg)); }; /** * Write VERBOSE log * @method * @memeberof Logger * @param {string|object} msg - Logging message or object */ ConsoleLogger.prototype.verbose = function () { var msg = []; for (var _i = 0; _i < arguments.length; _i++) { msg[_i] = arguments[_i]; } this._log.apply(this, __spread(['VERBOSE'], msg)); }; ConsoleLogger.LOG_LEVEL = null; return ConsoleLogger; }()); //# sourceMappingURL=ConsoleLogger.js.map /***/ }), /***/ "NtRE": /*!****************************************************************!*\ !*** ./node_modules/@aws-sdk/config-resolver/dist/es/index.js ***! \****************************************************************/ /*! exports provided: resolveEndpointsConfig, REGION_ENV_NAME, REGION_INI_NAME, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _EndpointsConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EndpointsConfig */ "OTGF"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveEndpointsConfig", function() { return _EndpointsConfig__WEBPACK_IMPORTED_MODULE_0__["resolveEndpointsConfig"]; }); /* harmony import */ var _RegionConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RegionConfig */ "QlCb"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "REGION_ENV_NAME", function() { return _RegionConfig__WEBPACK_IMPORTED_MODULE_1__["REGION_ENV_NAME"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "REGION_INI_NAME", function() { return _RegionConfig__WEBPACK_IMPORTED_MODULE_1__["REGION_INI_NAME"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NODE_REGION_CONFIG_OPTIONS", function() { return _RegionConfig__WEBPACK_IMPORTED_MODULE_1__["NODE_REGION_CONFIG_OPTIONS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NODE_REGION_CONFIG_FILE_OPTIONS", function() { return _RegionConfig__WEBPACK_IMPORTED_MODULE_1__["NODE_REGION_CONFIG_FILE_OPTIONS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveRegionConfig", function() { return _RegionConfig__WEBPACK_IMPORTED_MODULE_1__["resolveRegionConfig"]; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLGdCQUFnQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vRW5kcG9pbnRzQ29uZmlnXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9SZWdpb25Db25maWdcIjtcbiJdfQ== /***/ }), /***/ "Nv8m": /*!****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/race.js ***! \****************************************************************/ /*! exports provided: race, RaceOperator, RaceSubscriber */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "race", function() { return race; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RaceOperator", function() { return RaceOperator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RaceSubscriber", function() { return RaceSubscriber; }); /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isArray */ "DH7j"); /* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./fromArray */ "yCtX"); /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE"); /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj"); function race(...observables) { if (observables.length === 1) { if (Object(_util_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(observables[0])) { observables = observables[0]; } else { return observables[0]; } } return Object(_fromArray__WEBPACK_IMPORTED_MODULE_1__["fromArray"])(observables, undefined).lift(new RaceOperator()); } class RaceOperator { call(subscriber, source) { return source.subscribe(new RaceSubscriber(subscriber)); } } class RaceSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"] { constructor(destination) { super(destination); this.hasFirst = false; this.observables = []; this.subscriptions = []; } _next(observable) { this.observables.push(observable); } _complete() { const observables = this.observables; const len = observables.length; if (len === 0) { this.destination.complete(); } else { for (let i = 0; i < len && !this.hasFirst; i++) { const observable = observables[i]; const subscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__["subscribeToResult"])(this, observable, undefined, i); if (this.subscriptions) { this.subscriptions.push(subscription); } this.add(subscription); } this.observables = null; } } notifyNext(_outerValue, innerValue, outerIndex) { if (!this.hasFirst) { this.hasFirst = true; for (let i = 0; i < this.subscriptions.length; i++) { if (i !== outerIndex) { let subscription = this.subscriptions[i]; subscription.unsubscribe(); this.remove(subscription); } } this.subscriptions = null; } this.destination.next(innerValue); } } //# sourceMappingURL=race.js.map /***/ }), /***/ "NvLO": /*!**********************************************************************!*\ !*** ./node_modules/@aws-sdk/signature-v4/dist/es/prepareRequest.js ***! \**********************************************************************/ /*! exports provided: prepareRequest */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prepareRequest", function() { return prepareRequest; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _cloneRequest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cloneRequest */ "NsQP"); /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "IkwW"); /** * @internal */ function prepareRequest(request) { var e_1, _a; // Create a clone of the request object that does not clone the body request = typeof request.clone === "function" ? request.clone() : Object(_cloneRequest__WEBPACK_IMPORTED_MODULE_1__["cloneRequest"])(request); try { for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(request.headers)), _c = _b.next(); !_c.done; _c = _b.next()) { var headerName = _c.value; if (_constants__WEBPACK_IMPORTED_MODULE_2__["GENERATED_HEADERS"].indexOf(headerName.toLowerCase()) > -1) { delete request.headers[headerName]; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return request; } //# sourceMappingURL=prepareRequest.js.map /***/ }), /***/ "Nvd9": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/CreateCollectionCommand.js ***! \**********************************************************************************************/ /*! exports provided: CreateCollectionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateCollectionCommand", function() { return CreateCollectionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CreateCollectionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateCollectionCommand, _super); // Start section: command_properties // End section: command_properties function CreateCollectionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CreateCollectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateCollectionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateCollectionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CreateCollectionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1CreateCollectionCommand"])(input, context); }; CreateCollectionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1CreateCollectionCommand"])(output, context); }; return CreateCollectionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=CreateCollectionCommand.js.map /***/ }), /***/ "NykK": /*!********************************************!*\ !*** ./node_modules/lodash/_baseGetTag.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(/*! ./_Symbol */ "nmnc"), getRawTag = __webpack_require__(/*! ./_getRawTag */ "AP2z"), objectToString = __webpack_require__(/*! ./_objectToString */ "KfNM"); /** `Object#toString` result references. */ var nullTag = '[object Null]', undefinedTag = '[object Undefined]'; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * The base implementation of `getTag` without fallbacks for buggy environments. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ function baseGetTag(value) { if (value == null) { return value === undefined ? undefinedTag : nullTag; } return (symToStringTag && symToStringTag in Object(value)) ? getRawTag(value) : objectToString(value); } module.exports = baseGetTag; /***/ }), /***/ "O/zc": /*!****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipSandboxChannelCommand.js ***! \****************************************************************************************************/ /*! exports provided: GetApnsVoipSandboxChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelCommand", function() { return GetApnsVoipSandboxChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetApnsVoipSandboxChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetApnsVoipSandboxChannelCommand, _super); // Start section: command_properties // End section: command_properties function GetApnsVoipSandboxChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetApnsVoipSandboxChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetApnsVoipSandboxChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetApnsVoipSandboxChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetApnsVoipSandboxChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetApnsVoipSandboxChannelCommand"])(input, context); }; GetApnsVoipSandboxChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetApnsVoipSandboxChannelCommand"])(output, context); }; return GetApnsVoipSandboxChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetApnsVoipSandboxChannelCommand.js.map /***/ }), /***/ "O4y0": /*!*********************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/SubscribeOnObservable.js ***! \*********************************************************************************/ /*! exports provided: SubscribeOnObservable */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeOnObservable", function() { return SubscribeOnObservable; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _scheduler_asap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scheduler/asap */ "7Hc7"); /* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isNumeric */ "Y7HM"); class SubscribeOnObservable extends _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"] { constructor(source, delayTime = 0, scheduler = _scheduler_asap__WEBPACK_IMPORTED_MODULE_1__["asap"]) { super(); this.source = source; this.delayTime = delayTime; this.scheduler = scheduler; if (!Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_2__["isNumeric"])(delayTime) || delayTime < 0) { this.delayTime = 0; } if (!scheduler || typeof scheduler.schedule !== 'function') { this.scheduler = _scheduler_asap__WEBPACK_IMPORTED_MODULE_1__["asap"]; } } static create(source, delay = 0, scheduler = _scheduler_asap__WEBPACK_IMPORTED_MODULE_1__["asap"]) { return new SubscribeOnObservable(source, delay, scheduler); } static dispatch(arg) { const { source, subscriber } = arg; return this.add(source.subscribe(subscriber)); } _subscribe(subscriber) { const delay = this.delayTime; const source = this.source; const scheduler = this.scheduler; return scheduler.schedule(SubscribeOnObservable.dispatch, delay, { source, subscriber }); } } //# sourceMappingURL=SubscribeOnObservable.js.map /***/ }), /***/ "OEcO": /*!***********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentExportJobsCommand.js ***! \***********************************************************************************************/ /*! exports provided: GetSegmentExportJobsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsCommand", function() { return GetSegmentExportJobsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetSegmentExportJobsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSegmentExportJobsCommand, _super); // Start section: command_properties // End section: command_properties function GetSegmentExportJobsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetSegmentExportJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetSegmentExportJobsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetSegmentExportJobsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetSegmentExportJobsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSegmentExportJobsCommand"])(input, context); }; GetSegmentExportJobsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSegmentExportJobsCommand"])(output, context); }; return GetSegmentExportJobsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetSegmentExportJobsCommand.js.map /***/ }), /***/ "OFUB": /*!***************************************************************************************!*\ !*** ./node_modules/@aws-sdk/eventstream-serde-universal/dist/es/getChunkedStream.js ***! \***************************************************************************************/ /*! exports provided: getChunkedStream */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getChunkedStream", function() { return getChunkedStream; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); function getChunkedStream(source) { var _a; var currentMessageTotalLength = 0; var currentMessagePendingLength = 0; var currentMessage = null; var messageLengthBuffer = null; var allocateMessage = function (size) { if (typeof size !== "number") { throw new Error("Attempted to allocate an event message where size was not a number: " + size); } currentMessageTotalLength = size; currentMessagePendingLength = 4; currentMessage = new Uint8Array(size); var currentMessageView = new DataView(currentMessage.buffer); currentMessageView.setUint32(0, size, false); //set big-endian Uint32 to 0~3 bytes }; var iterator = function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function () { var sourceIterator, _a, value, done, chunkLength, currentOffset, bytesRemaining, numBytesForTotal, numBytesToWrite; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: sourceIterator = source[Symbol.asyncIterator](); _b.label = 1; case 1: if (false) {} return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(sourceIterator.next())]; case 2: _a = _b.sent(), value = _a.value, done = _a.done; if (!done) return [3 /*break*/, 10]; if (!!currentMessageTotalLength) return [3 /*break*/, 4]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(void 0)]; case 3: return [2 /*return*/, _b.sent()]; case 4: if (!(currentMessageTotalLength === currentMessagePendingLength)) return [3 /*break*/, 7]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(currentMessage)]; case 5: return [4 /*yield*/, _b.sent()]; case 6: _b.sent(); return [3 /*break*/, 8]; case 7: throw new Error("Truncated event message received."); case 8: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(void 0)]; case 9: return [2 /*return*/, _b.sent()]; case 10: chunkLength = value.length; currentOffset = 0; _b.label = 11; case 11: if (!(currentOffset < chunkLength)) return [3 /*break*/, 15]; // create new message if necessary if (!currentMessage) { bytesRemaining = chunkLength - currentOffset; // prevent edge case where total length spans 2 chunks if (!messageLengthBuffer) { messageLengthBuffer = new Uint8Array(4); } numBytesForTotal = Math.min(4 - currentMessagePendingLength, // remaining bytes to fill the messageLengthBuffer bytesRemaining // bytes left in chunk ); messageLengthBuffer.set( // @ts-ignore error TS2532: Object is possibly 'undefined' for value value.slice(currentOffset, currentOffset + numBytesForTotal), currentMessagePendingLength); currentMessagePendingLength += numBytesForTotal; currentOffset += numBytesForTotal; if (currentMessagePendingLength < 4) { // not enough information to create the current message return [3 /*break*/, 15]; } allocateMessage(new DataView(messageLengthBuffer.buffer).getUint32(0, false)); messageLengthBuffer = null; } numBytesToWrite = Math.min(currentMessageTotalLength - currentMessagePendingLength, // number of bytes left to complete message chunkLength - currentOffset // number of bytes left in the original chunk ); currentMessage.set( // @ts-ignore error TS2532: Object is possibly 'undefined' for value value.slice(currentOffset, currentOffset + numBytesToWrite), currentMessagePendingLength); currentMessagePendingLength += numBytesToWrite; currentOffset += numBytesToWrite; if (!(currentMessageTotalLength && currentMessageTotalLength === currentMessagePendingLength)) return [3 /*break*/, 14]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(currentMessage)]; case 12: // push out the message return [4 /*yield*/, _b.sent()]; case 13: // push out the message _b.sent(); // cleanup currentMessage = null; currentMessageTotalLength = 0; currentMessagePendingLength = 0; _b.label = 14; case 14: return [3 /*break*/, 11]; case 15: return [3 /*break*/, 1]; case 16: return [2 /*return*/]; } }); }); }; return _a = {}, _a[Symbol.asyncIterator] = iterator, _a; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0Q2h1bmtlZFN0cmVhbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9nZXRDaHVua2VkU3RyZWFtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxNQUFNLFVBQVUsZ0JBQWdCLENBQUMsTUFBaUM7O0lBQ2hFLElBQUkseUJBQXlCLEdBQUcsQ0FBQyxDQUFDO0lBQ2xDLElBQUksMkJBQTJCLEdBQUcsQ0FBQyxDQUFDO0lBQ3BDLElBQUksY0FBYyxHQUFzQixJQUFJLENBQUM7SUFDN0MsSUFBSSxtQkFBbUIsR0FBc0IsSUFBSSxDQUFDO0lBQ2xELElBQU0sZUFBZSxHQUFHLFVBQUMsSUFBWTtRQUNuQyxJQUFJLE9BQU8sSUFBSSxLQUFLLFFBQVEsRUFBRTtZQUM1QixNQUFNLElBQUksS0FBSyxDQUFDLHNFQUFzRSxHQUFHLElBQUksQ0FBQyxDQUFDO1NBQ2hHO1FBQ0QseUJBQXlCLEdBQUcsSUFBSSxDQUFDO1FBQ2pDLDJCQUEyQixHQUFHLENBQUMsQ0FBQztRQUNoQyxjQUFjLEdBQUcsSUFBSSxVQUFVLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDdEMsSUFBTSxrQkFBa0IsR0FBRyxJQUFJLFFBQVEsQ0FBQyxjQUFjLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDL0Qsa0JBQWtCLENBQUMsU0FBUyxDQUFDLENBQUMsRUFBRSxJQUFJLEVBQUUsS0FBSyxDQUFDLENBQUMsQ0FBQyxvQ0FBb0M7SUFDcEYsQ0FBQyxDQUFDO0lBRUYsSUFBTSxRQUFRLEdBQUc7Ozs7Ozt3QkFDVCxjQUFjLEdBQUcsTUFBTSxDQUFDLE1BQU0sQ0FBQyxhQUFhLENBQUMsRUFBRSxDQUFDOzs7NkJBQy9DLElBQUk7d0JBQ2UsNkJBQU0sY0FBYyxDQUFDLElBQUksRUFBRSxHQUFBOzt3QkFBN0MsS0FBa0IsU0FBMkIsRUFBM0MsS0FBSyxXQUFBLEVBQUUsSUFBSSxVQUFBOzZCQUNmLElBQUksRUFBSix5QkFBSTs2QkFDRixDQUFDLHlCQUF5QixFQUExQix3QkFBMEI7OzRCQUM1QixpQ0FBTzs7NkJBQ0UsQ0FBQSx5QkFBeUIsS0FBSywyQkFBMkIsQ0FBQSxFQUF6RCx3QkFBeUQ7cURBQzVELGNBQTRCOzRCQUFsQyxnQ0FBa0M7O3dCQUFsQyxTQUFrQyxDQUFDOzs0QkFFbkMsTUFBTSxJQUFJLEtBQUssQ0FBQyxtQ0FBbUMsQ0FBQyxDQUFDOzs0QkFFdkQsaUNBQU87O3dCQUdILFdBQVcsR0FBRyxLQUFLLENBQUMsTUFBTSxDQUFDO3dCQUM3QixhQUFhLEdBQUcsQ0FBQyxDQUFDOzs7NkJBRWYsQ0FBQSxhQUFhLEdBQUcsV0FBVyxDQUFBO3dCQUNoQyxrQ0FBa0M7d0JBQ2xDLElBQUksQ0FBQyxjQUFjLEVBQUU7NEJBRWIsY0FBYyxHQUFHLFdBQVcsR0FBRyxhQUFhLENBQUM7NEJBQ25ELHNEQUFzRDs0QkFDdEQsSUFBSSxDQUFDLG1CQUFtQixFQUFFO2dDQUN4QixtQkFBbUIsR0FBRyxJQUFJLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQzs2QkFDekM7NEJBQ0ssZ0JBQWdCLEdBQUcsSUFBSSxDQUFDLEdBQUcsQ0FDL0IsQ0FBQyxHQUFHLDJCQUEyQixFQUFFLGtEQUFrRDs0QkFDbkYsY0FBYyxDQUFDLHNCQUFzQjs2QkFDdEMsQ0FBQzs0QkFFRixtQkFBbUIsQ0FBQyxHQUFHOzRCQUNyQixvRUFBb0U7NEJBQ3BFLEtBQUssQ0FBQyxLQUFLLENBQUMsYUFBYSxFQUFFLGFBQWEsR0FBRyxnQkFBZ0IsQ0FBQyxFQUM1RCwyQkFBMkIsQ0FDNUIsQ0FBQzs0QkFFRiwyQkFBMkIsSUFBSSxnQkFBZ0IsQ0FBQzs0QkFDaEQsYUFBYSxJQUFJLGdCQUFnQixDQUFDOzRCQUVsQyxJQUFJLDJCQUEyQixHQUFHLENBQUMsRUFBRTtnQ0FDbkMsdURBQXVEO2dDQUN2RCx5QkFBTTs2QkFDUDs0QkFDRCxlQUFlLENBQUMsSUFBSSxRQUFRLENBQUMsbUJBQW1CLENBQUMsTUFBTSxDQUFDLENBQUMsU0FBUyxDQUFDLENBQUMsRUFBRSxLQUFLLENBQUMsQ0FBQyxDQUFDOzRCQUM5RSxtQkFBbUIsR0FBRyxJQUFJLENBQUM7eUJBQzVCO3dCQUdLLGVBQWUsR0FBRyxJQUFJLENBQUMsR0FBRyxDQUM5Qix5QkFBeUIsR0FBRywyQkFBMkIsRUFBRSwyQ0FBMkM7d0JBQ3BHLFdBQVcsR0FBRyxhQUFhLENBQUMsNkNBQTZDO3lCQUMxRSxDQUFDO3dCQUNGLGNBQWUsQ0FBQyxHQUFHO3dCQUNqQixvRUFBb0U7d0JBQ3BFLEtBQUssQ0FBQyxLQUFLLENBQUMsYUFBYSxFQUFFLGFBQWEsR0FBRyxlQUFlLENBQUMsRUFDM0QsMkJBQTJCLENBQzVCLENBQUM7d0JBQ0YsMkJBQTJCLElBQUksZUFBZSxDQUFDO3dCQUMvQyxhQUFhLElBQUksZUFBZSxDQUFDOzZCQUc3QixDQUFBLHlCQUF5QixJQUFJLHlCQUF5QixLQUFLLDJCQUEyQixDQUFBLEVBQXRGLHlCQUFzRjtxREFFbEYsY0FBNEI7O29CQURsQyx1QkFBdUI7b0JBQ3ZCLGdDQUFrQzs7d0JBRGxDLHVCQUF1Qjt3QkFDdkIsU0FBa0MsQ0FBQzt3QkFDbkMsVUFBVTt3QkFDVixjQUFjLEdBQUcsSUFBSSxDQUFDO3dCQUN0Qix5QkFBeUIsR0FBRyxDQUFDLENBQUM7d0JBQzlCLDJCQUEyQixHQUFHLENBQUMsQ0FBQzs7Ozs7Ozs7S0FJdkMsQ0FBQztJQUVGO1FBQ0UsR0FBQyxNQUFNLENBQUMsYUFBYSxJQUFHLFFBQVE7V0FDaEM7QUFDSixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGdldENodW5rZWRTdHJlYW0oc291cmNlOiBBc3luY0l0ZXJhYmxlPFVpbnQ4QXJyYXk+KTogQXN5bmNJdGVyYWJsZTxVaW50OEFycmF5PiB7XG4gIGxldCBjdXJyZW50TWVzc2FnZVRvdGFsTGVuZ3RoID0gMDtcbiAgbGV0IGN1cnJlbnRNZXNzYWdlUGVuZGluZ0xlbmd0aCA9IDA7XG4gIGxldCBjdXJyZW50TWVzc2FnZTogVWludDhBcnJheSB8IG51bGwgPSBudWxsO1xuICBsZXQgbWVzc2FnZUxlbmd0aEJ1ZmZlcjogVWludDhBcnJheSB8IG51bGwgPSBudWxsO1xuICBjb25zdCBhbGxvY2F0ZU1lc3NhZ2UgPSAoc2l6ZTogbnVtYmVyKSA9PiB7XG4gICAgaWYgKHR5cGVvZiBzaXplICE9PSBcIm51bWJlclwiKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoXCJBdHRlbXB0ZWQgdG8gYWxsb2NhdGUgYW4gZXZlbnQgbWVzc2FnZSB3aGVyZSBzaXplIHdhcyBub3QgYSBudW1iZXI6IFwiICsgc2l6ZSk7XG4gICAgfVxuICAgIGN1cnJlbnRNZXNzYWdlVG90YWxMZW5ndGggPSBzaXplO1xuICAgIGN1cnJlbnRNZXNzYWdlUGVuZGluZ0xlbmd0aCA9IDQ7XG4gICAgY3VycmVudE1lc3NhZ2UgPSBuZXcgVWludDhBcnJheShzaXplKTtcbiAgICBjb25zdCBjdXJyZW50TWVzc2FnZVZpZXcgPSBuZXcgRGF0YVZpZXcoY3VycmVudE1lc3NhZ2UuYnVmZmVyKTtcbiAgICBjdXJyZW50TWVzc2FnZVZpZXcuc2V0VWludDMyKDAsIHNpemUsIGZhbHNlKTsgLy9zZXQgYmlnLWVuZGlhbiBVaW50MzIgdG8gMH4zIGJ5dGVzXG4gIH07XG5cbiAgY29uc3QgaXRlcmF0b3IgPSBhc3luYyBmdW5jdGlvbiogKCkge1xuICAgIGNvbnN0IHNvdXJjZUl0ZXJhdG9yID0gc291cmNlW1N5bWJvbC5hc3luY0l0ZXJhdG9yXSgpO1xuICAgIHdoaWxlICh0cnVlKSB7XG4gICAgICBjb25zdCB7IHZhbHVlLCBkb25lIH0gPSBhd2FpdCBzb3VyY2VJdGVyYXRvci5uZXh0KCk7XG4gICAgICBpZiAoZG9uZSkge1xuICAgICAgICBpZiAoIWN1cnJlbnRNZXNzYWdlVG90YWxMZW5ndGgpIHtcbiAgICAgICAgICByZXR1cm47XG4gICAgICAgIH0gZWxzZSBpZiAoY3VycmVudE1lc3NhZ2VUb3RhbExlbmd0aCA9PT0gY3VycmVudE1lc3NhZ2VQZW5kaW5nTGVuZ3RoKSB7XG4gICAgICAgICAgeWllbGQgY3VycmVudE1lc3NhZ2UgYXMgVWludDhBcnJheTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXCJUcnVuY2F0ZWQgZXZlbnQgbWVzc2FnZSByZWNlaXZlZC5cIik7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuO1xuICAgICAgfVxuXG4gICAgICBjb25zdCBjaHVua0xlbmd0aCA9IHZhbHVlLmxlbmd0aDtcbiAgICAgIGxldCBjdXJyZW50T2Zmc2V0ID0gMDtcblxuICAgICAgd2hpbGUgKGN1cnJlbnRPZmZzZXQgPCBjaHVua0xlbmd0aCkge1xuICAgICAgICAvLyBjcmVhdGUgbmV3IG1lc3NhZ2UgaWYgbmVjZXNzYXJ5XG4gICAgICAgIGlmICghY3VycmVudE1lc3NhZ2UpIHtcbiAgICAgICAgICAvLyB3b3JraW5nIG9uIGEgbmV3IG1lc3NhZ2UsIGRldGVybWluZSB0b3RhbCBsZW5ndGhcbiAgICAgICAgICBjb25zdCBieXRlc1JlbWFpbmluZyA9IGNodW5rTGVuZ3RoIC0gY3VycmVudE9mZnNldDtcbiAgICAgICAgICAvLyBwcmV2ZW50IGVkZ2UgY2FzZSB3aGVyZSB0b3RhbCBsZW5ndGggc3BhbnMgMiBjaHVua3NcbiAgICAgICAgICBpZiAoIW1lc3NhZ2VMZW5ndGhCdWZmZXIpIHtcbiAgICAgICAgICAgIG1lc3NhZ2VMZW5ndGhCdWZmZXIgPSBuZXcgVWludDhBcnJheSg0KTtcbiAgICAgICAgICB9XG4gICAgICAgICAgY29uc3QgbnVtQnl0ZXNGb3JUb3RhbCA9IE1hdGgubWluKFxuICAgICAgICAgICAgNCAtIGN1cnJlbnRNZXNzYWdlUGVuZGluZ0xlbmd0aCwgLy8gcmVtYWluaW5nIGJ5dGVzIHRvIGZpbGwgdGhlIG1lc3NhZ2VMZW5ndGhCdWZmZXJcbiAgICAgICAgICAgIGJ5dGVzUmVtYWluaW5nIC8vIGJ5dGVzIGxlZnQgaW4gY2h1bmtcbiAgICAgICAgICApO1xuXG4gICAgICAgICAgbWVzc2FnZUxlbmd0aEJ1ZmZlci5zZXQoXG4gICAgICAgICAgICAvLyBAdHMtaWdub3JlIGVycm9yIFRTMjUzMjogT2JqZWN0IGlzIHBvc3NpYmx5ICd1bmRlZmluZWQnIGZvciB2YWx1ZVxuICAgICAgICAgICAgdmFsdWUuc2xpY2UoY3VycmVudE9mZnNldCwgY3VycmVudE9mZnNldCArIG51bUJ5dGVzRm9yVG90YWwpLFxuICAgICAgICAgICAgY3VycmVudE1lc3NhZ2VQZW5kaW5nTGVuZ3RoXG4gICAgICAgICAgKTtcblxuICAgICAgICAgIGN1cnJlbnRNZXNzYWdlUGVuZGluZ0xlbmd0aCArPSBudW1CeXRlc0ZvclRvdGFsO1xuICAgICAgICAgIGN1cnJlbnRPZmZzZXQgKz0gbnVtQnl0ZXNGb3JUb3RhbDtcblxuICAgICAgICAgIGlmIChjdXJyZW50TWVzc2FnZVBlbmRpbmdMZW5ndGggPCA0KSB7XG4gICAgICAgICAgICAvLyBub3QgZW5vdWdoIGluZm9ybWF0aW9uIHRvIGNyZWF0ZSB0aGUgY3VycmVudCBtZXNzYWdlXG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgICB9XG4gICAgICAgICAgYWxsb2NhdGVNZXNzYWdlKG5ldyBEYXRhVmlldyhtZXNzYWdlTGVuZ3RoQnVmZmVyLmJ1ZmZlcikuZ2V0VWludDMyKDAsIGZhbHNlKSk7XG4gICAgICAgICAgbWVzc2FnZUxlbmd0aEJ1ZmZlciA9IG51bGw7XG4gICAgICAgIH1cblxuICAgICAgICAvLyB3cml0ZSBkYXRhIGludG8gY3VycmVudCBtZXNzYWdlXG4gICAgICAgIGNvbnN0IG51bUJ5dGVzVG9Xcml0ZSA9IE1hdGgubWluKFxuICAgICAgICAgIGN1cnJlbnRNZXNzYWdlVG90YWxMZW5ndGggLSBjdXJyZW50TWVzc2FnZVBlbmRpbmdMZW5ndGgsIC8vIG51bWJlciBvZiBieXRlcyBsZWZ0IHRvIGNvbXBsZXRlIG1lc3NhZ2VcbiAgICAgICAgICBjaHVua0xlbmd0aCAtIGN1cnJlbnRPZmZzZXQgLy8gbnVtYmVyIG9mIGJ5dGVzIGxlZnQgaW4gdGhlIG9yaWdpbmFsIGNodW5rXG4gICAgICAgICk7XG4gICAgICAgIGN1cnJlbnRNZXNzYWdlIS5zZXQoXG4gICAgICAgICAgLy8gQHRzLWlnbm9yZSBlcnJvciBUUzI1MzI6IE9iamVjdCBpcyBwb3NzaWJseSAndW5kZWZpbmVkJyBmb3IgdmFsdWVcbiAgICAgICAgICB2YWx1ZS5zbGljZShjdXJyZW50T2Zmc2V0LCBjdXJyZW50T2Zmc2V0ICsgbnVtQnl0ZXNUb1dyaXRlKSxcbiAgICAgICAgICBjdXJyZW50TWVzc2FnZVBlbmRpbmdMZW5ndGhcbiAgICAgICAgKTtcbiAgICAgICAgY3VycmVudE1lc3NhZ2VQZW5kaW5nTGVuZ3RoICs9IG51bUJ5dGVzVG9Xcml0ZTtcbiAgICAgICAgY3VycmVudE9mZnNldCArPSBudW1CeXRlc1RvV3JpdGU7XG5cbiAgICAgICAgLy8gY2hlY2sgaWYgYSBtZXNzYWdlIGlzIHJlYWR5IHRvIGJlIHB1c2hlZFxuICAgICAgICBpZiAoY3VycmVudE1lc3NhZ2VUb3RhbExlbmd0aCAmJiBjdXJyZW50TWVzc2FnZVRvdGFsTGVuZ3RoID09PSBjdXJyZW50TWVzc2FnZVBlbmRpbmdMZW5ndGgpIHtcbiAgICAgICAgICAvLyBwdXNoIG91dCB0aGUgbWVzc2FnZVxuICAgICAgICAgIHlpZWxkIGN1cnJlbnRNZXNzYWdlIGFzIFVpbnQ4QXJyYXk7XG4gICAgICAgICAgLy8gY2xlYW51cFxuICAgICAgICAgIGN1cnJlbnRNZXNzYWdlID0gbnVsbDtcbiAgICAgICAgICBjdXJyZW50TWVzc2FnZVRvdGFsTGVuZ3RoID0gMDtcbiAgICAgICAgICBjdXJyZW50TWVzc2FnZVBlbmRpbmdMZW5ndGggPSAwO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9O1xuXG4gIHJldHVybiB7XG4gICAgW1N5bWJvbC5hc3luY0l0ZXJhdG9yXTogaXRlcmF0b3IsXG4gIH07XG59XG4iXX0= /***/ }), /***/ "OH9c": /*!*****************************************************!*\ !*** ./node_modules/axios/lib/core/enhanceError.js ***! \*****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Update an Error with the specified config, error code, and response. * * @param {Error} error The error to update. * @param {Object} config The config. * @param {string} [code] The error code (for example, 'ECONNABORTED'). * @param {Object} [request] The request. * @param {Object} [response] The response. * @returns {Error} The error. */ module.exports = function enhanceError(error, config, code, request, response) { error.config = config; if (code) { error.code = code; } error.request = request; error.response = response; error.isAxiosError = true; error.toJSON = function() { return { // Standard message: this.message, name: this.name, // Microsoft description: this.description, number: this.number, // Mozilla fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, // Axios config: this.config, code: this.code }; }; return error; }; /***/ }), /***/ "OQgR": /*!******************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/groupBy.js ***! \******************************************************************/ /*! exports provided: groupBy, GroupedObservable */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "groupBy", function() { return groupBy; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GroupedObservable", function() { return GroupedObservable; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subscription */ "quSY"); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Subject */ "XNiG"); function groupBy(keySelector, elementSelector, durationSelector, subjectSelector) { return (source) => source.lift(new GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector)); } class GroupByOperator { constructor(keySelector, elementSelector, durationSelector, subjectSelector) { this.keySelector = keySelector; this.elementSelector = elementSelector; this.durationSelector = durationSelector; this.subjectSelector = subjectSelector; } call(subscriber, source) { return source.subscribe(new GroupBySubscriber(subscriber, this.keySelector, this.elementSelector, this.durationSelector, this.subjectSelector)); } } class GroupBySubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, keySelector, elementSelector, durationSelector, subjectSelector) { super(destination); this.keySelector = keySelector; this.elementSelector = elementSelector; this.durationSelector = durationSelector; this.subjectSelector = subjectSelector; this.groups = null; this.attemptedToUnsubscribe = false; this.count = 0; } _next(value) { let key; try { key = this.keySelector(value); } catch (err) { this.error(err); return; } this._group(value, key); } _group(value, key) { let groups = this.groups; if (!groups) { groups = this.groups = new Map(); } let group = groups.get(key); let element; if (this.elementSelector) { try { element = this.elementSelector(value); } catch (err) { this.error(err); } } else { element = value; } if (!group) { group = (this.subjectSelector ? this.subjectSelector() : new _Subject__WEBPACK_IMPORTED_MODULE_3__["Subject"]()); groups.set(key, group); const groupedObservable = new GroupedObservable(key, group, this); this.destination.next(groupedObservable); if (this.durationSelector) { let duration; try { duration = this.durationSelector(new GroupedObservable(key, group)); } catch (err) { this.error(err); return; } this.add(duration.subscribe(new GroupDurationSubscriber(key, group, this))); } } if (!group.closed) { group.next(element); } } _error(err) { const groups = this.groups; if (groups) { groups.forEach((group, key) => { group.error(err); }); groups.clear(); } this.destination.error(err); } _complete() { const groups = this.groups; if (groups) { groups.forEach((group, key) => { group.complete(); }); groups.clear(); } this.destination.complete(); } removeGroup(key) { this.groups.delete(key); } unsubscribe() { if (!this.closed) { this.attemptedToUnsubscribe = true; if (this.count === 0) { super.unsubscribe(); } } } } class GroupDurationSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(key, group, parent) { super(group); this.key = key; this.group = group; this.parent = parent; } _next(value) { this.complete(); } _unsubscribe() { const { parent, key } = this; this.key = this.parent = null; if (parent) { parent.removeGroup(key); } } } class GroupedObservable extends _Observable__WEBPACK_IMPORTED_MODULE_2__["Observable"] { constructor(key, groupSubject, refCountSubscription) { super(); this.key = key; this.groupSubject = groupSubject; this.refCountSubscription = refCountSubscription; } _subscribe(subscriber) { const subscription = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"](); const { refCountSubscription, groupSubject } = this; if (refCountSubscription && !refCountSubscription.closed) { subscription.add(new InnerRefCountSubscription(refCountSubscription)); } subscription.add(groupSubject.subscribe(subscriber)); return subscription; } } class InnerRefCountSubscription extends _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"] { constructor(parent) { super(); this.parent = parent; parent.count++; } unsubscribe() { const parent = this.parent; if (!parent.closed && !this.closed) { super.unsubscribe(); parent.count -= 1; if (parent.count === 0 && parent.attemptedToUnsubscribe) { parent.unsubscribe(); } } } } //# sourceMappingURL=groupBy.js.map /***/ }), /***/ "ORaX": /*!*****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-translate/dist/es/commands/TranslateTextCommand.js ***! \*****************************************************************************************/ /*! exports provided: TranslateTextCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TranslateTextCommand", function() { return TranslateTextCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "B4mn"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "eh4a"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var TranslateTextCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TranslateTextCommand, _super); // Start section: command_properties // End section: command_properties function TranslateTextCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } TranslateTextCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["TranslateTextRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["TranslateTextResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; TranslateTextCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1TranslateTextCommand"])(input, context); }; TranslateTextCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1TranslateTextCommand"])(output, context); }; return TranslateTextCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=TranslateTextCommand.js.map /***/ }), /***/ "OTGF": /*!**************************************************************************!*\ !*** ./node_modules/@aws-sdk/config-resolver/dist/es/EndpointsConfig.js ***! \**************************************************************************/ /*! exports provided: resolveEndpointsConfig */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveEndpointsConfig", function() { return resolveEndpointsConfig; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); var resolveEndpointsConfig = function (input) { var _a; return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, input), { tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, endpoint: input.endpoint ? normalizeEndpoint(input) : function () { return getEndPointFromRegion(input); } })); }; var normalizeEndpoint = function (input) { var endpoint = input.endpoint, urlParser = input.urlParser; if (typeof endpoint === "string") { var promisified_1 = Promise.resolve(urlParser(endpoint)); return function () { return promisified_1; }; } else if (typeof endpoint === "object") { var promisified_2 = Promise.resolve(endpoint); return function () { return promisified_2; }; } return endpoint; }; var getEndPointFromRegion = function (input) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var _a, tls, region, dnsHostRegex, hostname; var _b; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: _a = input.tls, tls = _a === void 0 ? true : _a; return [4 /*yield*/, input.region()]; case 1: region = _c.sent(); dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); if (!dnsHostRegex.test(region)) { throw new Error("Invalid region in client config"); } return [4 /*yield*/, input.regionInfoProvider(region)]; case 2: hostname = ((_b = (_c.sent())) !== null && _b !== void 0 ? _b : {}).hostname; if (!hostname) { throw new Error("Cannot resolve hostname from client config"); } return [2 /*return*/, input.urlParser((tls ? "https:" : "http:") + "//" + hostname)]; } }); }); }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRW5kcG9pbnRzQ29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL0VuZHBvaW50c0NvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBd0JBLE1BQU0sQ0FBQyxJQUFNLHNCQUFzQixHQUFHLFVBQ3BDLEtBQW9EOztJQUNwQixPQUFBLHVCQUM3QixLQUFLLEtBQ1IsR0FBRyxRQUFFLEtBQUssQ0FBQyxHQUFHLG1DQUFJLElBQUksRUFDdEIsUUFBUSxFQUFFLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDLGlCQUFpQixDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxjQUFNLE9BQUEscUJBQXFCLENBQUMsS0FBSyxDQUFDLEVBQTVCLENBQTRCLElBQ3hGLENBQUE7Q0FBQSxDQUFDO0FBRUgsSUFBTSxpQkFBaUIsR0FBRyxVQUFDLEtBQWdEO0lBQ2pFLElBQUEsUUFBUSxHQUFnQixLQUFLLFNBQXJCLEVBQUUsU0FBUyxHQUFLLEtBQUssVUFBVixDQUFXO0lBQ3RDLElBQUksT0FBTyxRQUFRLEtBQUssUUFBUSxFQUFFO1FBQ2hDLElBQU0sYUFBVyxHQUFHLE9BQU8sQ0FBQyxPQUFPLENBQUMsU0FBUyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUM7UUFDekQsT0FBTyxjQUFNLE9BQUEsYUFBVyxFQUFYLENBQVcsQ0FBQztLQUMxQjtTQUFNLElBQUksT0FBTyxRQUFRLEtBQUssUUFBUSxFQUFFO1FBQ3ZDLElBQU0sYUFBVyxHQUFHLE9BQU8sQ0FBQyxPQUFPLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDOUMsT0FBTyxjQUFNLE9BQUEsYUFBVyxFQUFYLENBQVcsQ0FBQztLQUMxQjtJQUNELE9BQU8sUUFBUyxDQUFDO0FBQ25CLENBQUMsQ0FBQztBQUVGLElBQU0scUJBQXFCLEdBQUcsVUFBTyxLQUFnRDs7Ozs7O2dCQUMzRSxLQUFlLEtBQUssSUFBVixFQUFWLEdBQUcsbUJBQUcsSUFBSSxLQUFBLENBQVc7Z0JBQ2QscUJBQU0sS0FBSyxDQUFDLE1BQU0sRUFBRSxFQUFBOztnQkFBN0IsTUFBTSxHQUFHLFNBQW9CO2dCQUU3QixZQUFZLEdBQUcsSUFBSSxNQUFNLENBQUMsMERBQTBELENBQUMsQ0FBQztnQkFDNUYsSUFBSSxDQUFDLFlBQVksQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLEVBQUU7b0JBQzlCLE1BQU0sSUFBSSxLQUFLLENBQUMsaUNBQWlDLENBQUMsQ0FBQztpQkFDcEQ7Z0JBRXFCLHFCQUFNLEtBQUssQ0FBQyxrQkFBa0IsQ0FBQyxNQUFNLENBQUMsRUFBQTs7Z0JBQXBELFFBQVEsVUFBSyxDQUFDLFNBQXNDLENBQUMsbUNBQUksRUFBRSxVQUFuRDtnQkFDaEIsSUFBSSxDQUFDLFFBQVEsRUFBRTtvQkFDYixNQUFNLElBQUksS0FBSyxDQUFDLDRDQUE0QyxDQUFDLENBQUM7aUJBQy9EO2dCQUVELHNCQUFPLEtBQUssQ0FBQyxTQUFTLENBQUMsQ0FBRyxHQUFHLENBQUMsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsT0FBTyxXQUFLLFFBQVUsQ0FBQyxFQUFDOzs7S0FDcEUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEVuZHBvaW50LCBQcm92aWRlciwgUmVnaW9uSW5mb1Byb3ZpZGVyLCBVcmxQYXJzZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuZXhwb3J0IGludGVyZmFjZSBFbmRwb2ludHNJbnB1dENvbmZpZyB7XG4gIC8qKlxuICAgKiBUaGUgZnVsbHkgcXVhbGlmaWVkIGVuZHBvaW50IG9mIHRoZSB3ZWJzZXJ2aWNlLiBUaGlzIGlzIG9ubHkgcmVxdWlyZWQgd2hlbiB1c2luZyBhIGN1c3RvbSBlbmRwb2ludCAoZm9yIGV4YW1wbGUsIHdoZW4gdXNpbmcgYSBsb2NhbCB2ZXJzaW9uIG9mIFMzKS5cbiAgICovXG4gIGVuZHBvaW50Pzogc3RyaW5nIHwgRW5kcG9pbnQgfCBQcm92aWRlcjxFbmRwb2ludD47XG5cbiAgLyoqXG4gICAqIFdoZXRoZXIgVExTIGlzIGVuYWJsZWQgZm9yIHJlcXVlc3RzLlxuICAgKi9cbiAgdGxzPzogYm9vbGVhbjtcbn1cblxuaW50ZXJmYWNlIFByZXZpb3VzbHlSZXNvbHZlZCB7XG4gIHJlZ2lvbkluZm9Qcm92aWRlcjogUmVnaW9uSW5mb1Byb3ZpZGVyO1xuICB1cmxQYXJzZXI6IFVybFBhcnNlcjtcbiAgcmVnaW9uOiBQcm92aWRlcjxzdHJpbmc+O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEVuZHBvaW50c1Jlc29sdmVkQ29uZmlnIGV4dGVuZHMgUmVxdWlyZWQ8RW5kcG9pbnRzSW5wdXRDb25maWc+IHtcbiAgZW5kcG9pbnQ6IFByb3ZpZGVyPEVuZHBvaW50Pjtcbn1cblxuZXhwb3J0IGNvbnN0IHJlc29sdmVFbmRwb2ludHNDb25maWcgPSA8VD4oXG4gIGlucHV0OiBUICYgRW5kcG9pbnRzSW5wdXRDb25maWcgJiBQcmV2aW91c2x5UmVzb2x2ZWRcbik6IFQgJiBFbmRwb2ludHNSZXNvbHZlZENvbmZpZyA9PiAoe1xuICAuLi5pbnB1dCxcbiAgdGxzOiBpbnB1dC50bHMgPz8gdHJ1ZSxcbiAgZW5kcG9pbnQ6IGlucHV0LmVuZHBvaW50ID8gbm9ybWFsaXplRW5kcG9pbnQoaW5wdXQpIDogKCkgPT4gZ2V0RW5kUG9pbnRGcm9tUmVnaW9uKGlucHV0KSxcbn0pO1xuXG5jb25zdCBub3JtYWxpemVFbmRwb2ludCA9IChpbnB1dDogRW5kcG9pbnRzSW5wdXRDb25maWcgJiBQcmV2aW91c2x5UmVzb2x2ZWQpOiBQcm92aWRlcjxFbmRwb2ludD4gPT4ge1xuICBjb25zdCB7IGVuZHBvaW50LCB1cmxQYXJzZXIgfSA9IGlucHV0O1xuICBpZiAodHlwZW9mIGVuZHBvaW50ID09PSBcInN0cmluZ1wiKSB7XG4gICAgY29uc3QgcHJvbWlzaWZpZWQgPSBQcm9taXNlLnJlc29sdmUodXJsUGFyc2VyKGVuZHBvaW50KSk7XG4gICAgcmV0dXJuICgpID0+IHByb21pc2lmaWVkO1xuICB9IGVsc2UgaWYgKHR5cGVvZiBlbmRwb2ludCA9PT0gXCJvYmplY3RcIikge1xuICAgIGNvbnN0IHByb21pc2lmaWVkID0gUHJvbWlzZS5yZXNvbHZlKGVuZHBvaW50KTtcbiAgICByZXR1cm4gKCkgPT4gcHJvbWlzaWZpZWQ7XG4gIH1cbiAgcmV0dXJuIGVuZHBvaW50ITtcbn07XG5cbmNvbnN0IGdldEVuZFBvaW50RnJvbVJlZ2lvbiA9IGFzeW5jIChpbnB1dDogRW5kcG9pbnRzSW5wdXRDb25maWcgJiBQcmV2aW91c2x5UmVzb2x2ZWQpID0+IHtcbiAgY29uc3QgeyB0bHMgPSB0cnVlIH0gPSBpbnB1dDtcbiAgY29uc3QgcmVnaW9uID0gYXdhaXQgaW5wdXQucmVnaW9uKCk7XG5cbiAgY29uc3QgZG5zSG9zdFJlZ2V4ID0gbmV3IFJlZ0V4cCgvXihbYS16QS1aMC05XXxbYS16QS1aMC05XVthLXpBLVowLTktXXswLDYxfVthLXpBLVowLTldKSQvKTtcbiAgaWYgKCFkbnNIb3N0UmVnZXgudGVzdChyZWdpb24pKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKFwiSW52YWxpZCByZWdpb24gaW4gY2xpZW50IGNvbmZpZ1wiKTtcbiAgfVxuXG4gIGNvbnN0IHsgaG9zdG5hbWUgfSA9IChhd2FpdCBpbnB1dC5yZWdpb25JbmZvUHJvdmlkZXIocmVnaW9uKSkgPz8ge307XG4gIGlmICghaG9zdG5hbWUpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJDYW5ub3QgcmVzb2x2ZSBob3N0bmFtZSBmcm9tIGNsaWVudCBjb25maWdcIik7XG4gIH1cblxuICByZXR1cm4gaW5wdXQudXJsUGFyc2VyKGAke3RscyA/IFwiaHR0cHM6XCIgOiBcImh0dHA6XCJ9Ly8ke2hvc3RuYW1lfWApO1xufTtcbiJdfQ== /***/ }), /***/ "OTTw": /*!***********************************************************!*\ !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./../utils */ "xTJ+"); module.exports = ( utils.isStandardBrowserEnv() ? // Standard browser envs have full support of the APIs needed to test // whether the request URL is of the same origin as current location. (function standardBrowserEnv() { var msie = /(msie|trident)/i.test(navigator.userAgent); var urlParsingNode = document.createElement('a'); var originURL; /** * Parse a URL to discover it's components * * @param {String} url The URL to be parsed * @returns {Object} */ function resolveURL(url) { var href = url; if (msie) { // IE needs attribute set twice to normalize properties urlParsingNode.setAttribute('href', href); href = urlParsingNode.href; } urlParsingNode.setAttribute('href', href); // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils return { href: urlParsingNode.href, protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', host: urlParsingNode.host, search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', hostname: urlParsingNode.hostname, port: urlParsingNode.port, pathname: (urlParsingNode.pathname.charAt(0) === '/') ? urlParsingNode.pathname : '/' + urlParsingNode.pathname }; } originURL = resolveURL(window.location.href); /** * Determine if a URL shares the same origin as the current location * * @param {String} requestURL The URL to test * @returns {boolean} True if URL shares the same origin, otherwise false */ return function isURLSameOrigin(requestURL) { var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; return (parsed.protocol === originURL.protocol && parsed.host === originURL.host); }; })() : // Non standard browser envs (web workers, react-native) lack needed support. (function nonStandardBrowserEnv() { return function isURLSameOrigin() { return true; }; })() ); /***/ }), /***/ "OXoN": /*!***********************************************************************!*\ !*** ./node_modules/@aws-amplify/analytics/lib-esm/trackers/index.js ***! \***********************************************************************/ /*! exports provided: PageViewTracker, EventTracker, SessionTracker */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _PageViewTracker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PageViewTracker */ "Sa+4"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PageViewTracker", function() { return _PageViewTracker__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _EventTracker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EventTracker */ "GhSN"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventTracker", function() { return _EventTracker__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _SessionTracker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SessionTracker */ "IY/c"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SessionTracker", function() { return _SessionTracker__WEBPACK_IMPORTED_MODULE_2__["default"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "Of+w": /*!*****************************************!*\ !*** ./node_modules/lodash/_WeakMap.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__(/*! ./_getNative */ "Cwc5"), root = __webpack_require__(/*! ./_root */ "Kz5y"); /* Built-in method references that are verified to be native. */ var WeakMap = getNative(root, 'WeakMap'); module.exports = WeakMap; /***/ }), /***/ "Ojby": /*!******************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/ClientDevice/index.js ***! \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); var browser_1 = __webpack_require__(/*! ./browser */ "dINq"); var ClientDevice = /** @class */ (function () { function ClientDevice() { } ClientDevice.clientInfo = function () { return browser_1.clientInfo(); }; ClientDevice.dimension = function () { return browser_1.dimension(); }; return ClientDevice; }()); exports.ClientDevice = ClientDevice; /** * @deprecated use named import */ exports.default = ClientDevice; //# sourceMappingURL=index.js.map /***/ }), /***/ "OkSo": /*!******************************************************************************************************************!*\ !*** ./node_modules/@aws-amplify/analytics/node_modules/@aws-sdk/util-utf8-browser/dist/es/whatwgEncodingApi.js ***! \******************************************************************************************************************/ /*! exports provided: fromUtf8, toUtf8 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; }); function fromUtf8(input) { return new TextEncoder().encode(input); } function toUtf8(input) { return new TextDecoder("utf-8").decode(input); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2hhdHdnRW5jb2RpbmdBcGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvd2hhdHdnRW5jb2RpbmdBcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUNBLE1BQU0sVUFBVSxRQUFRLENBQUMsS0FBYTtJQUNwQyxPQUFPLElBQUksV0FBVyxFQUFFLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ3pDLENBQUM7QUFFRCxNQUFNLFVBQVUsTUFBTSxDQUFDLEtBQWlCO0lBQ3RDLE9BQU8sSUFBSSxXQUFXLENBQUMsT0FBTyxDQUFDLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ2hELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEEgZGVjbGFyYXRpb24gb2YgdGhlIGdsb2JhbCBUZXh0RW5jb2RlciBhbmQgVGV4dERlY29kZXIgY29uc3RydWN0b3JzLlxuICpcbiAqIEBzZWUgaHR0cHM6Ly9lbmNvZGluZy5zcGVjLndoYXR3Zy5vcmcvXG4gKi9cbi8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tbmFtZXNwYWNlXG5uYW1lc3BhY2UgRW5jb2Rpbmcge1xuICBpbnRlcmZhY2UgVGV4dERlY29kZXJPcHRpb25zIHtcbiAgICBmYXRhbD86IGJvb2xlYW47XG4gICAgaWdub3JlQk9NPzogYm9vbGVhbjtcbiAgfVxuXG4gIGludGVyZmFjZSBUZXh0RGVjb2RlT3B0aW9ucyB7XG4gICAgc3RyZWFtPzogYm9vbGVhbjtcbiAgfVxuXG4gIGludGVyZmFjZSBUZXh0RGVjb2RlciB7XG4gICAgcmVhZG9ubHkgZW5jb2Rpbmc6IHN0cmluZztcbiAgICByZWFkb25seSBmYXRhbDogYm9vbGVhbjtcbiAgICByZWFkb25seSBpZ25vcmVCT006IGJvb2xlYW47XG4gICAgZGVjb2RlKGlucHV0PzogQXJyYXlCdWZmZXIgfCBBcnJheUJ1ZmZlclZpZXcsIG9wdGlvbnM/OiBUZXh0RGVjb2RlT3B0aW9ucyk6IHN0cmluZztcbiAgfVxuXG4gIGV4cG9ydCBpbnRlcmZhY2UgVGV4dERlY29kZXJDb25zdHJ1Y3RvciB7XG4gICAgbmV3IChsYWJlbD86IHN0cmluZywgb3B0aW9ucz86IFRleHREZWNvZGVyT3B0aW9ucyk6IFRleHREZWNvZGVyO1xuICB9XG5cbiAgaW50ZXJmYWNlIFRleHRFbmNvZGVyIHtcbiAgICByZWFkb25seSBlbmNvZGluZzogXCJ1dGYtOFwiO1xuICAgIGVuY29kZShpbnB1dD86IHN0cmluZyk6IFVpbnQ4QXJyYXk7XG4gIH1cblxuICBleHBvcnQgaW50ZXJmYWNlIFRleHRFbmNvZGVyQ29uc3RydWN0b3Ige1xuICAgIG5ldyAoKTogVGV4dEVuY29kZXI7XG4gIH1cbn1cblxuZGVjbGFyZSBjb25zdCBUZXh0RGVjb2RlcjogRW5jb2RpbmcuVGV4dERlY29kZXJDb25zdHJ1Y3RvcjtcblxuZGVjbGFyZSBjb25zdCBUZXh0RW5jb2RlcjogRW5jb2RpbmcuVGV4dEVuY29kZXJDb25zdHJ1Y3RvcjtcblxuZXhwb3J0IGZ1bmN0aW9uIGZyb21VdGY4KGlucHV0OiBzdHJpbmcpOiBVaW50OEFycmF5IHtcbiAgcmV0dXJuIG5ldyBUZXh0RW5jb2RlcigpLmVuY29kZShpbnB1dCk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiB0b1V0ZjgoaW5wdXQ6IFVpbnQ4QXJyYXkpOiBzdHJpbmcge1xuICByZXR1cm4gbmV3IFRleHREZWNvZGVyKFwidXRmLThcIikuZGVjb2RlKGlucHV0KTtcbn1cbiJdfQ== /***/ }), /***/ "OmVv": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutBucketEncryptionCommand.js ***! \****************************************************************************************/ /*! exports provided: PutBucketEncryptionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutBucketEncryptionCommand", function() { return PutBucketEncryptionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutBucketEncryptionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutBucketEncryptionCommand, _super); // Start section: command_properties // End section: command_properties function PutBucketEncryptionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutBucketEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutBucketEncryptionRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutBucketEncryptionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutBucketEncryptionCommand"])(input, context); }; PutBucketEncryptionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutBucketEncryptionCommand"])(output, context); }; return PutBucketEncryptionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=PutBucketEncryptionCommand.js.map /***/ }), /***/ "Oozy": /*!*****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/DeleteBucketMetricsConfigurationCommand.js ***! \*****************************************************************************************************/ /*! exports provided: DeleteBucketMetricsConfigurationCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketMetricsConfigurationCommand", function() { return DeleteBucketMetricsConfigurationCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteBucketMetricsConfigurationCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteBucketMetricsConfigurationCommand, _super); // Start section: command_properties // End section: command_properties function DeleteBucketMetricsConfigurationCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteBucketMetricsConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteBucketMetricsConfigurationRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteBucketMetricsConfigurationCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlDeleteBucketMetricsConfigurationCommand"])(input, context); }; DeleteBucketMetricsConfigurationCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlDeleteBucketMetricsConfigurationCommand"])(output, context); }; return DeleteBucketMetricsConfigurationCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=DeleteBucketMetricsConfigurationCommand.js.map /***/ }), /***/ "OsX3": /*!*********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/bufferTime.js ***! \*********************************************************************/ /*! exports provided: bufferTime */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bufferTime", function() { return bufferTime; }); /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scheduler/async */ "D0XW"); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro"); function bufferTime(bufferTimeSpan) { let length = arguments.length; let scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"]; if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_2__["isScheduler"])(arguments[arguments.length - 1])) { scheduler = arguments[arguments.length - 1]; length--; } let bufferCreationInterval = null; if (length >= 2) { bufferCreationInterval = arguments[1]; } let maxBufferSize = Number.POSITIVE_INFINITY; if (length >= 3) { maxBufferSize = arguments[2]; } return function bufferTimeOperatorFunction(source) { return source.lift(new BufferTimeOperator(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler)); }; } class BufferTimeOperator { constructor(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) { this.bufferTimeSpan = bufferTimeSpan; this.bufferCreationInterval = bufferCreationInterval; this.maxBufferSize = maxBufferSize; this.scheduler = scheduler; } call(subscriber, source) { return source.subscribe(new BufferTimeSubscriber(subscriber, this.bufferTimeSpan, this.bufferCreationInterval, this.maxBufferSize, this.scheduler)); } } class Context { constructor() { this.buffer = []; } } class BufferTimeSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_1__["Subscriber"] { constructor(destination, bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) { super(destination); this.bufferTimeSpan = bufferTimeSpan; this.bufferCreationInterval = bufferCreationInterval; this.maxBufferSize = maxBufferSize; this.scheduler = scheduler; this.contexts = []; const context = this.openContext(); this.timespanOnly = bufferCreationInterval == null || bufferCreationInterval < 0; if (this.timespanOnly) { const timeSpanOnlyState = { subscriber: this, context, bufferTimeSpan }; this.add(context.closeAction = scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState)); } else { const closeState = { subscriber: this, context }; const creationState = { bufferTimeSpan, bufferCreationInterval, subscriber: this, scheduler }; this.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, closeState)); this.add(scheduler.schedule(dispatchBufferCreation, bufferCreationInterval, creationState)); } } _next(value) { const contexts = this.contexts; const len = contexts.length; let filledBufferContext; for (let i = 0; i < len; i++) { const context = contexts[i]; const buffer = context.buffer; buffer.push(value); if (buffer.length == this.maxBufferSize) { filledBufferContext = context; } } if (filledBufferContext) { this.onBufferFull(filledBufferContext); } } _error(err) { this.contexts.length = 0; super._error(err); } _complete() { const { contexts, destination } = this; while (contexts.length > 0) { const context = contexts.shift(); destination.next(context.buffer); } super._complete(); } _unsubscribe() { this.contexts = null; } onBufferFull(context) { this.closeContext(context); const closeAction = context.closeAction; closeAction.unsubscribe(); this.remove(closeAction); if (!this.closed && this.timespanOnly) { context = this.openContext(); const bufferTimeSpan = this.bufferTimeSpan; const timeSpanOnlyState = { subscriber: this, context, bufferTimeSpan }; this.add(context.closeAction = this.scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState)); } } openContext() { const context = new Context(); this.contexts.push(context); return context; } closeContext(context) { this.destination.next(context.buffer); const contexts = this.contexts; const spliceIndex = contexts ? contexts.indexOf(context) : -1; if (spliceIndex >= 0) { contexts.splice(contexts.indexOf(context), 1); } } } function dispatchBufferTimeSpanOnly(state) { const subscriber = state.subscriber; const prevContext = state.context; if (prevContext) { subscriber.closeContext(prevContext); } if (!subscriber.closed) { state.context = subscriber.openContext(); state.context.closeAction = this.schedule(state, state.bufferTimeSpan); } } function dispatchBufferCreation(state) { const { bufferCreationInterval, bufferTimeSpan, subscriber, scheduler } = state; const context = subscriber.openContext(); const action = this; if (!subscriber.closed) { subscriber.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, { subscriber, context })); action.schedule(state, bufferCreationInterval); } } function dispatchBufferClose(arg) { const { subscriber, context } = arg; subscriber.closeContext(context); } //# sourceMappingURL=bufferTime.js.map /***/ }), /***/ "OwP5": /*!*********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/DeleteBucketCommand.js ***! \*********************************************************************************/ /*! exports provided: DeleteBucketCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketCommand", function() { return DeleteBucketCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteBucketCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteBucketCommand, _super); // Start section: command_properties // End section: command_properties function DeleteBucketCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteBucketCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteBucketRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteBucketCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlDeleteBucketCommand"])(input, context); }; DeleteBucketCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlDeleteBucketCommand"])(output, context); }; return DeleteBucketCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteBucketCommand.js.map /***/ }), /***/ "P0+2": /*!*********************************************!*\ !*** ./node_modules/idb/build/esm/index.js ***! \*********************************************/ /*! exports provided: unwrap, wrap, deleteDB, openDB */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deleteDB", function() { return deleteDB; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "openDB", function() { return openDB; }); /* harmony import */ var _wrap_idb_value_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./wrap-idb-value.js */ "edJK"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "unwrap", function() { return _wrap_idb_value_js__WEBPACK_IMPORTED_MODULE_0__["u"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "wrap", function() { return _wrap_idb_value_js__WEBPACK_IMPORTED_MODULE_0__["w"]; }); /** * Open a database. * * @param name Name of the database. * @param version Schema version. * @param callbacks Additional callbacks. */ function openDB(name, version, { blocked, upgrade, blocking, terminated } = {}) { const request = indexedDB.open(name, version); const openPromise = Object(_wrap_idb_value_js__WEBPACK_IMPORTED_MODULE_0__["w"])(request); if (upgrade) { request.addEventListener('upgradeneeded', (event) => { upgrade(Object(_wrap_idb_value_js__WEBPACK_IMPORTED_MODULE_0__["w"])(request.result), event.oldVersion, event.newVersion, Object(_wrap_idb_value_js__WEBPACK_IMPORTED_MODULE_0__["w"])(request.transaction)); }); } if (blocked) request.addEventListener('blocked', () => blocked()); openPromise .then((db) => { if (terminated) db.addEventListener('close', () => terminated()); if (blocking) db.addEventListener('versionchange', () => blocking()); }) .catch(() => { }); return openPromise; } /** * Delete a database. * * @param name Name of the database. */ function deleteDB(name, { blocked } = {}) { const request = indexedDB.deleteDatabase(name); if (blocked) request.addEventListener('blocked', () => blocked()); return Object(_wrap_idb_value_js__WEBPACK_IMPORTED_MODULE_0__["w"])(request).then(() => undefined); } const readMethods = ['get', 'getKey', 'getAll', 'getAllKeys', 'count']; const writeMethods = ['put', 'add', 'delete', 'clear']; const cachedMethods = new Map(); function getMethod(target, prop) { if (!(target instanceof IDBDatabase && !(prop in target) && typeof prop === 'string')) { return; } if (cachedMethods.get(prop)) return cachedMethods.get(prop); const targetFuncName = prop.replace(/FromIndex$/, ''); const useIndex = prop !== targetFuncName; const isWrite = writeMethods.includes(targetFuncName); if ( // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge. !(targetFuncName in (useIndex ? IDBIndex : IDBObjectStore).prototype) || !(isWrite || readMethods.includes(targetFuncName))) { return; } const method = async function (storeName, ...args) { // isWrite ? 'readwrite' : undefined gzipps better, but fails in Edge :( const tx = this.transaction(storeName, isWrite ? 'readwrite' : 'readonly'); let target = tx.store; if (useIndex) target = target.index(args.shift()); const returnVal = target[targetFuncName](...args); if (isWrite) await tx.done; return returnVal; }; cachedMethods.set(prop, method); return method; } Object(_wrap_idb_value_js__WEBPACK_IMPORTED_MODULE_0__["r"])((oldTraps) => ({ ...oldTraps, get: (target, prop, receiver) => getMethod(target, prop) || oldTraps.get(target, prop, receiver), has: (target, prop) => !!getMethod(target, prop) || oldTraps.has(target, prop), })); /***/ }), /***/ "P2cR": /*!*********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/DeleteObjectCommand.js ***! \*********************************************************************************/ /*! exports provided: DeleteObjectCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteObjectCommand", function() { return DeleteObjectCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteObjectCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteObjectCommand, _super); // Start section: command_properties // End section: command_properties function DeleteObjectCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteObjectRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteObjectOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteObjectCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlDeleteObjectCommand"])(input, context); }; DeleteObjectCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlDeleteObjectCommand"])(output, context); }; return DeleteObjectCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=DeleteObjectCommand.js.map /***/ }), /***/ "P3ga": /*!******************************************************************************!*\ !*** ./node_modules/@aws-amplify/ui-components/dist/loader/index.es2017.mjs ***! \******************************************************************************/ /*! exports provided: applyPolyfills, defineCustomElements */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _esm_polyfills_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../esm/polyfills/index.js */ "f5h3"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "applyPolyfills", function() { return _esm_polyfills_index_js__WEBPACK_IMPORTED_MODULE_0__["applyPolyfills"]; }); /* harmony import */ var _esm_loader_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../esm/loader.mjs */ "cVRK"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defineCustomElements", function() { return _esm_loader_mjs__WEBPACK_IMPORTED_MODULE_1__["defineCustomElements"]; }); /***/ }), /***/ "P6/G": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppsCommand.js ***! \**********************************************************************************/ /*! exports provided: GetAppsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAppsCommand", function() { return GetAppsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetAppsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetAppsCommand, _super); // Start section: command_properties // End section: command_properties function GetAppsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetAppsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetAppsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetAppsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetAppsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetAppsCommand"])(input, context); }; GetAppsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetAppsCommand"])(output, context); }; return GetAppsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetAppsCommand.js.map /***/ }), /***/ "P9q3": /*!********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-firehose/dist/es/commands/StartDeliveryStreamEncryptionCommand.js ***! \********************************************************************************************************/ /*! exports provided: StartDeliveryStreamEncryptionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionCommand", function() { return StartDeliveryStreamEncryptionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "qPic"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "IZqD"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StartDeliveryStreamEncryptionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartDeliveryStreamEncryptionCommand, _super); // Start section: command_properties // End section: command_properties function StartDeliveryStreamEncryptionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StartDeliveryStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartDeliveryStreamEncryptionInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartDeliveryStreamEncryptionOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StartDeliveryStreamEncryptionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartDeliveryStreamEncryptionCommand"])(input, context); }; StartDeliveryStreamEncryptionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartDeliveryStreamEncryptionCommand"])(output, context); }; return StartDeliveryStreamEncryptionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StartDeliveryStreamEncryptionCommand.js.map /***/ }), /***/ "PDj5": /*!***************************************************************!*\ !*** ./node_modules/graphql/utilities/introspectionQuery.mjs ***! \***************************************************************/ /*! exports provided: getIntrospectionQuery, introspectionQuery */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getIntrospectionQuery", function() { return getIntrospectionQuery; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "introspectionQuery", function() { return introspectionQuery; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function getIntrospectionQuery(options) { var descriptions = !(options && options.descriptions === false); return "\n query IntrospectionQuery {\n __schema {\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ".concat(descriptions ? 'description' : '', "\n locations\n args {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(descriptions ? 'description' : '', "\n fields(includeDeprecated: true) {\n name\n ").concat(descriptions ? 'description' : '', "\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(descriptions ? 'description' : '', "\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(descriptions ? 'description' : '', "\n type { ...TypeRef }\n defaultValue\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n "); } /** * Deprecated, call getIntrospectionQuery directly. * * This function will be removed in v15 */ var introspectionQuery = getIntrospectionQuery(); /***/ }), /***/ "PEP3": /*!*******************************************************************!*\ !*** ./node_modules/amazon-cognito-identity-js/es/CognitoUser.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CognitoUser; }); /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! buffer */ "r0jy"); /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var crypto_js_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! crypto-js/core */ "Ib8C"); /* harmony import */ var crypto_js_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(crypto_js_core__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var crypto_js_lib_typedarrays__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! crypto-js/lib-typedarrays */ "F+F2"); /* harmony import */ var crypto_js_lib_typedarrays__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(crypto_js_lib_typedarrays__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var crypto_js_enc_base64__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! crypto-js/enc-base64 */ "ETIr"); /* harmony import */ var crypto_js_enc_base64__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(crypto_js_enc_base64__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var crypto_js_hmac_sha256__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! crypto-js/hmac-sha256 */ "7VPu"); /* harmony import */ var crypto_js_hmac_sha256__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(crypto_js_hmac_sha256__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _BigInteger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./BigInteger */ "6zvP"); /* harmony import */ var _AuthenticationHelper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./AuthenticationHelper */ "7DD1"); /* harmony import */ var _CognitoAccessToken__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./CognitoAccessToken */ "GaV3"); /* harmony import */ var _CognitoIdToken__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CognitoIdToken */ "Huoz"); /* harmony import */ var _CognitoRefreshToken__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./CognitoRefreshToken */ "bBqc"); /* harmony import */ var _CognitoUserSession__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CognitoUserSession */ "z7CB"); /* harmony import */ var _DateHelper__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DateHelper */ "2Tg4"); /* harmony import */ var _CognitoUserAttribute__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./CognitoUserAttribute */ "ozAt"); /* harmony import */ var _StorageHelper__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./StorageHelper */ "8/pm"); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ // necessary for crypto js /** * @callback nodeCallback * @template T result * @param {*} err The operation failure reason, or null. * @param {T} result The operation result. */ /** * @callback onFailure * @param {*} err Failure reason. */ /** * @callback onSuccess * @template T result * @param {T} result The operation result. */ /** * @callback mfaRequired * @param {*} details MFA challenge details. */ /** * @callback customChallenge * @param {*} details Custom challenge details. */ /** * @callback inputVerificationCode * @param {*} data Server response. */ /** * @callback authSuccess * @param {CognitoUserSession} session The new session. * @param {bool=} userConfirmationNecessary User must be confirmed. */ var isBrowser = typeof navigator !== 'undefined'; var userAgent = isBrowser ? navigator.userAgent : 'nodejs'; /** @class */ var CognitoUser = /*#__PURE__*/function () { /** * Constructs a new CognitoUser object * @param {object} data Creation options * @param {string} data.Username The user's username. * @param {CognitoUserPool} data.Pool Pool containing the user. * @param {object} data.Storage Optional storage object. */ function CognitoUser(data) { if (data == null || data.Username == null || data.Pool == null) { throw new Error('Username and pool information are required.'); } this.username = data.Username || ''; this.pool = data.Pool; this.Session = null; this.client = data.Pool.client; this.signInUserSession = null; this.authenticationFlowType = 'USER_SRP_AUTH'; this.storage = data.Storage || new _StorageHelper__WEBPACK_IMPORTED_MODULE_13__["default"]().getStorage(); this.keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId(); this.userDataKey = this.keyPrefix + "." + this.username + ".userData"; } /** * Sets the session for this user * @param {CognitoUserSession} signInUserSession the session * @returns {void} */ var _proto = CognitoUser.prototype; _proto.setSignInUserSession = function setSignInUserSession(signInUserSession) { this.clearCachedUserData(); this.signInUserSession = signInUserSession; this.cacheTokens(); } /** * @returns {CognitoUserSession} the current session for this user */ ; _proto.getSignInUserSession = function getSignInUserSession() { return this.signInUserSession; } /** * @returns {string} the user's username */ ; _proto.getUsername = function getUsername() { return this.username; } /** * @returns {String} the authentication flow type */ ; _proto.getAuthenticationFlowType = function getAuthenticationFlowType() { return this.authenticationFlowType; } /** * sets authentication flow type * @param {string} authenticationFlowType New value. * @returns {void} */ ; _proto.setAuthenticationFlowType = function setAuthenticationFlowType(authenticationFlowType) { this.authenticationFlowType = authenticationFlowType; } /** * This is used for authenticating the user through the custom authentication flow. * @param {AuthenticationDetails} authDetails Contains the authentication data * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {customChallenge} callback.customChallenge Custom challenge * response required to continue. * @param {authSuccess} callback.onSuccess Called on success with the new session. * @returns {void} */ ; _proto.initiateAuth = function initiateAuth(authDetails, callback) { var _this = this; var authParameters = authDetails.getAuthParameters(); authParameters.USERNAME = this.username; var clientMetaData = Object.keys(authDetails.getValidationData()).length !== 0 ? authDetails.getValidationData() : authDetails.getClientMetadata(); var jsonReq = { AuthFlow: 'CUSTOM_AUTH', ClientId: this.pool.getClientId(), AuthParameters: authParameters, ClientMetadata: clientMetaData }; if (this.getUserContextData()) { jsonReq.UserContextData = this.getUserContextData(); } this.client.request('InitiateAuth', jsonReq, function (err, data) { if (err) { return callback.onFailure(err); } var challengeName = data.ChallengeName; var challengeParameters = data.ChallengeParameters; if (challengeName === 'CUSTOM_CHALLENGE') { _this.Session = data.Session; return callback.customChallenge(challengeParameters); } _this.signInUserSession = _this.getCognitoUserSession(data.AuthenticationResult); _this.cacheTokens(); return callback.onSuccess(_this.signInUserSession); }); } /** * This is used for authenticating the user. * stuff * @param {AuthenticationDetails} authDetails Contains the authentication data * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {newPasswordRequired} callback.newPasswordRequired new * password and any required attributes are required to continue * @param {mfaRequired} callback.mfaRequired MFA code * required to continue. * @param {customChallenge} callback.customChallenge Custom challenge * response required to continue. * @param {authSuccess} callback.onSuccess Called on success with the new session. * @returns {void} */ ; _proto.authenticateUser = function authenticateUser(authDetails, callback) { if (this.authenticationFlowType === 'USER_PASSWORD_AUTH') { return this.authenticateUserPlainUsernamePassword(authDetails, callback); } else if (this.authenticationFlowType === 'USER_SRP_AUTH' || this.authenticationFlowType === 'CUSTOM_AUTH') { return this.authenticateUserDefaultAuth(authDetails, callback); } return callback.onFailure(new Error('Authentication flow type is invalid.')); } /** * PRIVATE ONLY: This is an internal only method and should not * be directly called by the consumers. * It calls the AuthenticationHelper for SRP related * stuff * @param {AuthenticationDetails} authDetails Contains the authentication data * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {newPasswordRequired} callback.newPasswordRequired new * password and any required attributes are required to continue * @param {mfaRequired} callback.mfaRequired MFA code * required to continue. * @param {customChallenge} callback.customChallenge Custom challenge * response required to continue. * @param {authSuccess} callback.onSuccess Called on success with the new session. * @returns {void} */ ; _proto.authenticateUserDefaultAuth = function authenticateUserDefaultAuth(authDetails, callback) { var _this2 = this; var authenticationHelper = new _AuthenticationHelper__WEBPACK_IMPORTED_MODULE_6__["default"](this.pool.getUserPoolId().split('_')[1]); var dateHelper = new _DateHelper__WEBPACK_IMPORTED_MODULE_11__["default"](); var serverBValue; var salt; var authParameters = {}; if (this.deviceKey != null) { authParameters.DEVICE_KEY = this.deviceKey; } authParameters.USERNAME = this.username; authenticationHelper.getLargeAValue(function (errOnAValue, aValue) { // getLargeAValue callback start if (errOnAValue) { callback.onFailure(errOnAValue); } authParameters.SRP_A = aValue.toString(16); if (_this2.authenticationFlowType === 'CUSTOM_AUTH') { authParameters.CHALLENGE_NAME = 'SRP_A'; } var clientMetaData = Object.keys(authDetails.getValidationData()).length !== 0 ? authDetails.getValidationData() : authDetails.getClientMetadata(); var jsonReq = { AuthFlow: _this2.authenticationFlowType, ClientId: _this2.pool.getClientId(), AuthParameters: authParameters, ClientMetadata: clientMetaData }; if (_this2.getUserContextData(_this2.username)) { jsonReq.UserContextData = _this2.getUserContextData(_this2.username); } _this2.client.request('InitiateAuth', jsonReq, function (err, data) { if (err) { return callback.onFailure(err); } var challengeParameters = data.ChallengeParameters; _this2.username = challengeParameters.USER_ID_FOR_SRP; serverBValue = new _BigInteger__WEBPACK_IMPORTED_MODULE_5__["default"](challengeParameters.SRP_B, 16); salt = new _BigInteger__WEBPACK_IMPORTED_MODULE_5__["default"](challengeParameters.SALT, 16); _this2.getCachedDeviceKeyAndPassword(); authenticationHelper.getPasswordAuthenticationKey(_this2.username, authDetails.getPassword(), serverBValue, salt, function (errOnHkdf, hkdf) { // getPasswordAuthenticationKey callback start if (errOnHkdf) { callback.onFailure(errOnHkdf); } var dateNow = dateHelper.getNowString(); var message = crypto_js_core__WEBPACK_IMPORTED_MODULE_1___default.a.lib.WordArray.create(buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].concat([buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(_this2.pool.getUserPoolId().split('_')[1], 'utf8'), buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(_this2.username, 'utf8'), buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(challengeParameters.SECRET_BLOCK, 'base64'), buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(dateNow, 'utf8')])); var key = crypto_js_core__WEBPACK_IMPORTED_MODULE_1___default.a.lib.WordArray.create(hkdf); var signatureString = crypto_js_enc_base64__WEBPACK_IMPORTED_MODULE_3___default.a.stringify(crypto_js_hmac_sha256__WEBPACK_IMPORTED_MODULE_4___default()(message, key)); var challengeResponses = {}; challengeResponses.USERNAME = _this2.username; challengeResponses.PASSWORD_CLAIM_SECRET_BLOCK = challengeParameters.SECRET_BLOCK; challengeResponses.TIMESTAMP = dateNow; challengeResponses.PASSWORD_CLAIM_SIGNATURE = signatureString; if (_this2.deviceKey != null) { challengeResponses.DEVICE_KEY = _this2.deviceKey; } var respondToAuthChallenge = function respondToAuthChallenge(challenge, challengeCallback) { return _this2.client.request('RespondToAuthChallenge', challenge, function (errChallenge, dataChallenge) { if (errChallenge && errChallenge.code === 'ResourceNotFoundException' && errChallenge.message.toLowerCase().indexOf('device') !== -1) { challengeResponses.DEVICE_KEY = null; _this2.deviceKey = null; _this2.randomPassword = null; _this2.deviceGroupKey = null; _this2.clearCachedDeviceKeyAndPassword(); return respondToAuthChallenge(challenge, challengeCallback); } return challengeCallback(errChallenge, dataChallenge); }); }; var jsonReqResp = { ChallengeName: 'PASSWORD_VERIFIER', ClientId: _this2.pool.getClientId(), ChallengeResponses: challengeResponses, Session: data.Session, ClientMetadata: clientMetaData }; if (_this2.getUserContextData()) { jsonReqResp.UserContextData = _this2.getUserContextData(); } respondToAuthChallenge(jsonReqResp, function (errAuthenticate, dataAuthenticate) { if (errAuthenticate) { return callback.onFailure(errAuthenticate); } return _this2.authenticateUserInternal(dataAuthenticate, authenticationHelper, callback); }); return undefined; // getPasswordAuthenticationKey callback end }); return undefined; }); // getLargeAValue callback end }); } /** * PRIVATE ONLY: This is an internal only method and should not * be directly called by the consumers. * @param {AuthenticationDetails} authDetails Contains the authentication data. * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {mfaRequired} callback.mfaRequired MFA code * required to continue. * @param {authSuccess} callback.onSuccess Called on success with the new session. * @returns {void} */ ; _proto.authenticateUserPlainUsernamePassword = function authenticateUserPlainUsernamePassword(authDetails, callback) { var _this3 = this; var authParameters = {}; authParameters.USERNAME = this.username; authParameters.PASSWORD = authDetails.getPassword(); if (!authParameters.PASSWORD) { callback.onFailure(new Error('PASSWORD parameter is required')); return; } var authenticationHelper = new _AuthenticationHelper__WEBPACK_IMPORTED_MODULE_6__["default"](this.pool.getUserPoolId().split('_')[1]); this.getCachedDeviceKeyAndPassword(); if (this.deviceKey != null) { authParameters.DEVICE_KEY = this.deviceKey; } var clientMetaData = Object.keys(authDetails.getValidationData()).length !== 0 ? authDetails.getValidationData() : authDetails.getClientMetadata(); var jsonReq = { AuthFlow: 'USER_PASSWORD_AUTH', ClientId: this.pool.getClientId(), AuthParameters: authParameters, ClientMetadata: clientMetaData }; if (this.getUserContextData(this.username)) { jsonReq.UserContextData = this.getUserContextData(this.username); } // USER_PASSWORD_AUTH happens in a single round-trip: client sends userName and password, // Cognito UserPools verifies password and returns tokens. this.client.request('InitiateAuth', jsonReq, function (err, authResult) { if (err) { return callback.onFailure(err); } return _this3.authenticateUserInternal(authResult, authenticationHelper, callback); }); } /** * PRIVATE ONLY: This is an internal only method and should not * be directly called by the consumers. * @param {object} dataAuthenticate authentication data * @param {object} authenticationHelper helper created * @param {callback} callback passed on from caller * @returns {void} */ ; _proto.authenticateUserInternal = function authenticateUserInternal(dataAuthenticate, authenticationHelper, callback) { var _this4 = this; var challengeName = dataAuthenticate.ChallengeName; var challengeParameters = dataAuthenticate.ChallengeParameters; if (challengeName === 'SMS_MFA') { this.Session = dataAuthenticate.Session; return callback.mfaRequired(challengeName, challengeParameters); } if (challengeName === 'SELECT_MFA_TYPE') { this.Session = dataAuthenticate.Session; return callback.selectMFAType(challengeName, challengeParameters); } if (challengeName === 'MFA_SETUP') { this.Session = dataAuthenticate.Session; return callback.mfaSetup(challengeName, challengeParameters); } if (challengeName === 'SOFTWARE_TOKEN_MFA') { this.Session = dataAuthenticate.Session; return callback.totpRequired(challengeName, challengeParameters); } if (challengeName === 'CUSTOM_CHALLENGE') { this.Session = dataAuthenticate.Session; return callback.customChallenge(challengeParameters); } if (challengeName === 'NEW_PASSWORD_REQUIRED') { this.Session = dataAuthenticate.Session; var userAttributes = null; var rawRequiredAttributes = null; var requiredAttributes = []; var userAttributesPrefix = authenticationHelper.getNewPasswordRequiredChallengeUserAttributePrefix(); if (challengeParameters) { userAttributes = JSON.parse(dataAuthenticate.ChallengeParameters.userAttributes); rawRequiredAttributes = JSON.parse(dataAuthenticate.ChallengeParameters.requiredAttributes); } if (rawRequiredAttributes) { for (var i = 0; i < rawRequiredAttributes.length; i++) { requiredAttributes[i] = rawRequiredAttributes[i].substr(userAttributesPrefix.length); } } return callback.newPasswordRequired(userAttributes, requiredAttributes); } if (challengeName === 'DEVICE_SRP_AUTH') { this.getDeviceResponse(callback); return undefined; } this.signInUserSession = this.getCognitoUserSession(dataAuthenticate.AuthenticationResult); this.challengeName = challengeName; this.cacheTokens(); var newDeviceMetadata = dataAuthenticate.AuthenticationResult.NewDeviceMetadata; if (newDeviceMetadata == null) { return callback.onSuccess(this.signInUserSession); } authenticationHelper.generateHashDevice(dataAuthenticate.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey, dataAuthenticate.AuthenticationResult.NewDeviceMetadata.DeviceKey, function (errGenHash) { if (errGenHash) { return callback.onFailure(errGenHash); } var deviceSecretVerifierConfig = { Salt: buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(authenticationHelper.getSaltDevices(), 'hex').toString('base64'), PasswordVerifier: buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(authenticationHelper.getVerifierDevices(), 'hex').toString('base64') }; _this4.verifierDevices = deviceSecretVerifierConfig.PasswordVerifier; _this4.deviceGroupKey = newDeviceMetadata.DeviceGroupKey; _this4.randomPassword = authenticationHelper.getRandomPassword(); _this4.client.request('ConfirmDevice', { DeviceKey: newDeviceMetadata.DeviceKey, AccessToken: _this4.signInUserSession.getAccessToken().getJwtToken(), DeviceSecretVerifierConfig: deviceSecretVerifierConfig, DeviceName: userAgent }, function (errConfirm, dataConfirm) { if (errConfirm) { return callback.onFailure(errConfirm); } _this4.deviceKey = dataAuthenticate.AuthenticationResult.NewDeviceMetadata.DeviceKey; _this4.cacheDeviceKeyAndPassword(); if (dataConfirm.UserConfirmationNecessary === true) { return callback.onSuccess(_this4.signInUserSession, dataConfirm.UserConfirmationNecessary); } return callback.onSuccess(_this4.signInUserSession); }); return undefined; }); return undefined; } /** * This method is user to complete the NEW_PASSWORD_REQUIRED challenge. * Pass the new password with any new user attributes to be updated. * User attribute keys must be of format userAttributes.. * @param {string} newPassword new password for this user * @param {object} requiredAttributeData map with values for all required attributes * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {mfaRequired} callback.mfaRequired MFA code required to continue. * @param {customChallenge} callback.customChallenge Custom challenge * response required to continue. * @param {authSuccess} callback.onSuccess Called on success with the new session. * @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger * @returns {void} */ ; _proto.completeNewPasswordChallenge = function completeNewPasswordChallenge(newPassword, requiredAttributeData, callback, clientMetadata) { var _this5 = this; if (!newPassword) { return callback.onFailure(new Error('New password is required.')); } var authenticationHelper = new _AuthenticationHelper__WEBPACK_IMPORTED_MODULE_6__["default"](this.pool.getUserPoolId().split('_')[1]); var userAttributesPrefix = authenticationHelper.getNewPasswordRequiredChallengeUserAttributePrefix(); var finalUserAttributes = {}; if (requiredAttributeData) { Object.keys(requiredAttributeData).forEach(function (key) { finalUserAttributes[userAttributesPrefix + key] = requiredAttributeData[key]; }); } finalUserAttributes.NEW_PASSWORD = newPassword; finalUserAttributes.USERNAME = this.username; var jsonReq = { ChallengeName: 'NEW_PASSWORD_REQUIRED', ClientId: this.pool.getClientId(), ChallengeResponses: finalUserAttributes, Session: this.Session, ClientMetadata: clientMetadata }; if (this.getUserContextData()) { jsonReq.UserContextData = this.getUserContextData(); } this.client.request('RespondToAuthChallenge', jsonReq, function (errAuthenticate, dataAuthenticate) { if (errAuthenticate) { return callback.onFailure(errAuthenticate); } return _this5.authenticateUserInternal(dataAuthenticate, authenticationHelper, callback); }); return undefined; } /** * This is used to get a session using device authentication. It is called at the end of user * authentication * * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {authSuccess} callback.onSuccess Called on success with the new session. * @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger * @returns {void} * @private */ ; _proto.getDeviceResponse = function getDeviceResponse(callback, clientMetadata) { var _this6 = this; var authenticationHelper = new _AuthenticationHelper__WEBPACK_IMPORTED_MODULE_6__["default"](this.deviceGroupKey); var dateHelper = new _DateHelper__WEBPACK_IMPORTED_MODULE_11__["default"](); var authParameters = {}; authParameters.USERNAME = this.username; authParameters.DEVICE_KEY = this.deviceKey; authenticationHelper.getLargeAValue(function (errAValue, aValue) { // getLargeAValue callback start if (errAValue) { callback.onFailure(errAValue); } authParameters.SRP_A = aValue.toString(16); var jsonReq = { ChallengeName: 'DEVICE_SRP_AUTH', ClientId: _this6.pool.getClientId(), ChallengeResponses: authParameters, ClientMetadata: clientMetadata }; if (_this6.getUserContextData()) { jsonReq.UserContextData = _this6.getUserContextData(); } _this6.client.request('RespondToAuthChallenge', jsonReq, function (err, data) { if (err) { return callback.onFailure(err); } var challengeParameters = data.ChallengeParameters; var serverBValue = new _BigInteger__WEBPACK_IMPORTED_MODULE_5__["default"](challengeParameters.SRP_B, 16); var salt = new _BigInteger__WEBPACK_IMPORTED_MODULE_5__["default"](challengeParameters.SALT, 16); authenticationHelper.getPasswordAuthenticationKey(_this6.deviceKey, _this6.randomPassword, serverBValue, salt, function (errHkdf, hkdf) { // getPasswordAuthenticationKey callback start if (errHkdf) { return callback.onFailure(errHkdf); } var dateNow = dateHelper.getNowString(); var message = crypto_js_core__WEBPACK_IMPORTED_MODULE_1___default.a.lib.WordArray.create(buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].concat([buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(_this6.deviceGroupKey, 'utf8'), buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(_this6.deviceKey, 'utf8'), buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(challengeParameters.SECRET_BLOCK, 'base64'), buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(dateNow, 'utf8')])); var key = crypto_js_core__WEBPACK_IMPORTED_MODULE_1___default.a.lib.WordArray.create(hkdf); var signatureString = crypto_js_enc_base64__WEBPACK_IMPORTED_MODULE_3___default.a.stringify(crypto_js_hmac_sha256__WEBPACK_IMPORTED_MODULE_4___default()(message, key)); var challengeResponses = {}; challengeResponses.USERNAME = _this6.username; challengeResponses.PASSWORD_CLAIM_SECRET_BLOCK = challengeParameters.SECRET_BLOCK; challengeResponses.TIMESTAMP = dateNow; challengeResponses.PASSWORD_CLAIM_SIGNATURE = signatureString; challengeResponses.DEVICE_KEY = _this6.deviceKey; var jsonReqResp = { ChallengeName: 'DEVICE_PASSWORD_VERIFIER', ClientId: _this6.pool.getClientId(), ChallengeResponses: challengeResponses, Session: data.Session }; if (_this6.getUserContextData()) { jsonReqResp.UserContextData = _this6.getUserContextData(); } _this6.client.request('RespondToAuthChallenge', jsonReqResp, function (errAuthenticate, dataAuthenticate) { if (errAuthenticate) { return callback.onFailure(errAuthenticate); } _this6.signInUserSession = _this6.getCognitoUserSession(dataAuthenticate.AuthenticationResult); _this6.cacheTokens(); return callback.onSuccess(_this6.signInUserSession); }); return undefined; // getPasswordAuthenticationKey callback end }); return undefined; }); // getLargeAValue callback end }); } /** * This is used for a certain user to confirm the registration by using a confirmation code * @param {string} confirmationCode Code entered by user. * @param {bool} forceAliasCreation Allow migrating from an existing email / phone number. * @param {nodeCallback} callback Called on success or error. * @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger * @returns {void} */ ; _proto.confirmRegistration = function confirmRegistration(confirmationCode, forceAliasCreation, callback, clientMetadata) { var jsonReq = { ClientId: this.pool.getClientId(), ConfirmationCode: confirmationCode, Username: this.username, ForceAliasCreation: forceAliasCreation, ClientMetadata: clientMetadata }; if (this.getUserContextData()) { jsonReq.UserContextData = this.getUserContextData(); } this.client.request('ConfirmSignUp', jsonReq, function (err) { if (err) { return callback(err, null); } return callback(null, 'SUCCESS'); }); } /** * This is used by the user once he has the responses to a custom challenge * @param {string} answerChallenge The custom challenge answer. * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {customChallenge} callback.customChallenge * Custom challenge response required to continue. * @param {authSuccess} callback.onSuccess Called on success with the new session. * @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger * @returns {void} */ ; _proto.sendCustomChallengeAnswer = function sendCustomChallengeAnswer(answerChallenge, callback, clientMetadata) { var _this7 = this; var challengeResponses = {}; challengeResponses.USERNAME = this.username; challengeResponses.ANSWER = answerChallenge; var authenticationHelper = new _AuthenticationHelper__WEBPACK_IMPORTED_MODULE_6__["default"](this.pool.getUserPoolId().split('_')[1]); this.getCachedDeviceKeyAndPassword(); if (this.deviceKey != null) { challengeResponses.DEVICE_KEY = this.deviceKey; } var jsonReq = { ChallengeName: 'CUSTOM_CHALLENGE', ChallengeResponses: challengeResponses, ClientId: this.pool.getClientId(), Session: this.Session, ClientMetadata: clientMetadata }; if (this.getUserContextData()) { jsonReq.UserContextData = this.getUserContextData(); } this.client.request('RespondToAuthChallenge', jsonReq, function (err, data) { if (err) { return callback.onFailure(err); } return _this7.authenticateUserInternal(data, authenticationHelper, callback); }); } /** * This is used by the user once he has an MFA code * @param {string} confirmationCode The MFA code entered by the user. * @param {object} callback Result callback map. * @param {string} mfaType The mfa we are replying to. * @param {onFailure} callback.onFailure Called on any error. * @param {authSuccess} callback.onSuccess Called on success with the new session. * @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger * @returns {void} */ ; _proto.sendMFACode = function sendMFACode(confirmationCode, callback, mfaType, clientMetadata) { var _this8 = this; var challengeResponses = {}; challengeResponses.USERNAME = this.username; challengeResponses.SMS_MFA_CODE = confirmationCode; var mfaTypeSelection = mfaType || 'SMS_MFA'; if (mfaTypeSelection === 'SOFTWARE_TOKEN_MFA') { challengeResponses.SOFTWARE_TOKEN_MFA_CODE = confirmationCode; } if (this.deviceKey != null) { challengeResponses.DEVICE_KEY = this.deviceKey; } var jsonReq = { ChallengeName: mfaTypeSelection, ChallengeResponses: challengeResponses, ClientId: this.pool.getClientId(), Session: this.Session, ClientMetadata: clientMetadata }; if (this.getUserContextData()) { jsonReq.UserContextData = this.getUserContextData(); } this.client.request('RespondToAuthChallenge', jsonReq, function (err, dataAuthenticate) { if (err) { return callback.onFailure(err); } var challengeName = dataAuthenticate.ChallengeName; if (challengeName === 'DEVICE_SRP_AUTH') { _this8.getDeviceResponse(callback); return undefined; } _this8.signInUserSession = _this8.getCognitoUserSession(dataAuthenticate.AuthenticationResult); _this8.cacheTokens(); if (dataAuthenticate.AuthenticationResult.NewDeviceMetadata == null) { return callback.onSuccess(_this8.signInUserSession); } var authenticationHelper = new _AuthenticationHelper__WEBPACK_IMPORTED_MODULE_6__["default"](_this8.pool.getUserPoolId().split('_')[1]); authenticationHelper.generateHashDevice(dataAuthenticate.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey, dataAuthenticate.AuthenticationResult.NewDeviceMetadata.DeviceKey, function (errGenHash) { if (errGenHash) { return callback.onFailure(errGenHash); } var deviceSecretVerifierConfig = { Salt: buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(authenticationHelper.getSaltDevices(), 'hex').toString('base64'), PasswordVerifier: buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(authenticationHelper.getVerifierDevices(), 'hex').toString('base64') }; _this8.verifierDevices = deviceSecretVerifierConfig.PasswordVerifier; _this8.deviceGroupKey = dataAuthenticate.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey; _this8.randomPassword = authenticationHelper.getRandomPassword(); _this8.client.request('ConfirmDevice', { DeviceKey: dataAuthenticate.AuthenticationResult.NewDeviceMetadata.DeviceKey, AccessToken: _this8.signInUserSession.getAccessToken().getJwtToken(), DeviceSecretVerifierConfig: deviceSecretVerifierConfig, DeviceName: userAgent }, function (errConfirm, dataConfirm) { if (errConfirm) { return callback.onFailure(errConfirm); } _this8.deviceKey = dataAuthenticate.AuthenticationResult.NewDeviceMetadata.DeviceKey; _this8.cacheDeviceKeyAndPassword(); if (dataConfirm.UserConfirmationNecessary === true) { return callback.onSuccess(_this8.signInUserSession, dataConfirm.UserConfirmationNecessary); } return callback.onSuccess(_this8.signInUserSession); }); return undefined; }); return undefined; }); } /** * This is used by an authenticated user to change the current password * @param {string} oldUserPassword The current password. * @param {string} newUserPassword The requested new password. * @param {nodeCallback} callback Called on success or error. * @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger * @returns {void} */ ; _proto.changePassword = function changePassword(oldUserPassword, newUserPassword, callback, clientMetadata) { if (!(this.signInUserSession != null && this.signInUserSession.isValid())) { return callback(new Error('User is not authenticated'), null); } this.client.request('ChangePassword', { PreviousPassword: oldUserPassword, ProposedPassword: newUserPassword, AccessToken: this.signInUserSession.getAccessToken().getJwtToken(), ClientMetadata: clientMetadata }, function (err) { if (err) { return callback(err, null); } return callback(null, 'SUCCESS'); }); return undefined; } /** * This is used by an authenticated user to enable MFA for itself * @deprecated * @param {nodeCallback} callback Called on success or error. * @returns {void} */ ; _proto.enableMFA = function enableMFA(callback) { if (this.signInUserSession == null || !this.signInUserSession.isValid()) { return callback(new Error('User is not authenticated'), null); } var mfaOptions = []; var mfaEnabled = { DeliveryMedium: 'SMS', AttributeName: 'phone_number' }; mfaOptions.push(mfaEnabled); this.client.request('SetUserSettings', { MFAOptions: mfaOptions, AccessToken: this.signInUserSession.getAccessToken().getJwtToken() }, function (err) { if (err) { return callback(err, null); } return callback(null, 'SUCCESS'); }); return undefined; } /** * This is used by an authenticated user to enable MFA for itself * @param {IMfaSettings} smsMfaSettings the sms mfa settings * @param {IMFASettings} softwareTokenMfaSettings the software token mfa settings * @param {nodeCallback} callback Called on success or error. * @returns {void} */ ; _proto.setUserMfaPreference = function setUserMfaPreference(smsMfaSettings, softwareTokenMfaSettings, callback) { if (this.signInUserSession == null || !this.signInUserSession.isValid()) { return callback(new Error('User is not authenticated'), null); } this.client.request('SetUserMFAPreference', { SMSMfaSettings: smsMfaSettings, SoftwareTokenMfaSettings: softwareTokenMfaSettings, AccessToken: this.signInUserSession.getAccessToken().getJwtToken() }, function (err) { if (err) { return callback(err, null); } return callback(null, 'SUCCESS'); }); return undefined; } /** * This is used by an authenticated user to disable MFA for itself * @deprecated * @param {nodeCallback} callback Called on success or error. * @returns {void} */ ; _proto.disableMFA = function disableMFA(callback) { if (this.signInUserSession == null || !this.signInUserSession.isValid()) { return callback(new Error('User is not authenticated'), null); } var mfaOptions = []; this.client.request('SetUserSettings', { MFAOptions: mfaOptions, AccessToken: this.signInUserSession.getAccessToken().getJwtToken() }, function (err) { if (err) { return callback(err, null); } return callback(null, 'SUCCESS'); }); return undefined; } /** * This is used by an authenticated user to delete itself * @param {nodeCallback} callback Called on success or error. * @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger * @returns {void} */ ; _proto.deleteUser = function deleteUser(callback, clientMetadata) { var _this9 = this; if (this.signInUserSession == null || !this.signInUserSession.isValid()) { return callback(new Error('User is not authenticated'), null); } this.client.request('DeleteUser', { AccessToken: this.signInUserSession.getAccessToken().getJwtToken(), ClientMetadata: clientMetadata }, function (err) { if (err) { return callback(err, null); } _this9.clearCachedUser(); return callback(null, 'SUCCESS'); }); return undefined; } /** * @typedef {CognitoUserAttribute | { Name:string, Value:string }} AttributeArg */ /** * This is used by an authenticated user to change a list of attributes * @param {AttributeArg[]} attributes A list of the new user attributes. * @param {nodeCallback} callback Called on success or error. * @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger * @returns {void} */ ; _proto.updateAttributes = function updateAttributes(attributes, callback, clientMetadata) { var _this10 = this; if (this.signInUserSession == null || !this.signInUserSession.isValid()) { return callback(new Error('User is not authenticated'), null); } this.client.request('UpdateUserAttributes', { AccessToken: this.signInUserSession.getAccessToken().getJwtToken(), UserAttributes: attributes, ClientMetadata: clientMetadata }, function (err) { if (err) { return callback(err, null); } // update cached user return _this10.getUserData(function () { return callback(null, 'SUCCESS'); }, { bypassCache: true }); }); return undefined; } /** * This is used by an authenticated user to get a list of attributes * @param {nodeCallback} callback Called on success or error. * @returns {void} */ ; _proto.getUserAttributes = function getUserAttributes(callback) { if (!(this.signInUserSession != null && this.signInUserSession.isValid())) { return callback(new Error('User is not authenticated'), null); } this.client.request('GetUser', { AccessToken: this.signInUserSession.getAccessToken().getJwtToken() }, function (err, userData) { if (err) { return callback(err, null); } var attributeList = []; for (var i = 0; i < userData.UserAttributes.length; i++) { var attribute = { Name: userData.UserAttributes[i].Name, Value: userData.UserAttributes[i].Value }; var userAttribute = new _CognitoUserAttribute__WEBPACK_IMPORTED_MODULE_12__["default"](attribute); attributeList.push(userAttribute); } return callback(null, attributeList); }); return undefined; } /** * This is used by an authenticated user to get the MFAOptions * @param {nodeCallback} callback Called on success or error. * @returns {void} */ ; _proto.getMFAOptions = function getMFAOptions(callback) { if (!(this.signInUserSession != null && this.signInUserSession.isValid())) { return callback(new Error('User is not authenticated'), null); } this.client.request('GetUser', { AccessToken: this.signInUserSession.getAccessToken().getJwtToken() }, function (err, userData) { if (err) { return callback(err, null); } return callback(null, userData.MFAOptions); }); return undefined; } /** * PRIVATE ONLY: This is an internal only method and should not * be directly called by the consumers. */ ; _proto.createGetUserRequest = function createGetUserRequest() { return this.client.promisifyRequest('GetUser', { AccessToken: this.signInUserSession.getAccessToken().getJwtToken() }); } /** * PRIVATE ONLY: This is an internal only method and should not * be directly called by the consumers. */ ; _proto.refreshSessionIfPossible = function refreshSessionIfPossible() { var _this11 = this; // best effort, if not possible return new Promise(function (resolve) { var refresh = _this11.signInUserSession.getRefreshToken(); if (refresh && refresh.getToken()) { _this11.refreshSession(refresh, resolve); } else { resolve(); } }); } /** * This is used by an authenticated users to get the userData * @param {nodeCallback} callback Called on success or error. * @param {GetUserDataOptions} params * @returns {void} */ ; _proto.getUserData = function getUserData(callback, params) { var _this12 = this; if (!(this.signInUserSession != null && this.signInUserSession.isValid())) { this.clearCachedUserData(); return callback(new Error('User is not authenticated'), null); } var userData = this.getUserDataFromCache(); if (!userData) { this.fetchUserData().then(function (data) { callback(null, data); })["catch"](callback); return; } if (this.isFetchUserDataAndTokenRequired(params)) { this.fetchUserData().then(function (data) { return _this12.refreshSessionIfPossible().then(function () { return data; }); }).then(function (data) { return callback(null, data); })["catch"](callback); return; } try { callback(null, JSON.parse(userData)); return; } catch (err) { this.clearCachedUserData(); callback(err, null); return; } } /** * * PRIVATE ONLY: This is an internal only method and should not * be directly called by the consumers. */ ; _proto.getUserDataFromCache = function getUserDataFromCache() { var userData = this.storage.getItem(this.userDataKey); return userData; } /** * * PRIVATE ONLY: This is an internal only method and should not * be directly called by the consumers. */ ; _proto.isFetchUserDataAndTokenRequired = function isFetchUserDataAndTokenRequired(params) { var _ref = params || {}, _ref$bypassCache = _ref.bypassCache, bypassCache = _ref$bypassCache === void 0 ? false : _ref$bypassCache; return bypassCache; } /** * * PRIVATE ONLY: This is an internal only method and should not * be directly called by the consumers. */ ; _proto.fetchUserData = function fetchUserData() { var _this13 = this; return this.createGetUserRequest().then(function (data) { _this13.cacheUserData(data); return data; }); } /** * This is used by an authenticated user to delete a list of attributes * @param {string[]} attributeList Names of the attributes to delete. * @param {nodeCallback} callback Called on success or error. * @returns {void} */ ; _proto.deleteAttributes = function deleteAttributes(attributeList, callback) { if (!(this.signInUserSession != null && this.signInUserSession.isValid())) { return callback(new Error('User is not authenticated'), null); } this.client.request('DeleteUserAttributes', { UserAttributeNames: attributeList, AccessToken: this.signInUserSession.getAccessToken().getJwtToken() }, function (err) { if (err) { return callback(err, null); } return callback(null, 'SUCCESS'); }); return undefined; } /** * This is used by a user to resend a confirmation code * @param {nodeCallback} callback Called on success or error. * @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger * @returns {void} */ ; _proto.resendConfirmationCode = function resendConfirmationCode(callback, clientMetadata) { var jsonReq = { ClientId: this.pool.getClientId(), Username: this.username, ClientMetadata: clientMetadata }; this.client.request('ResendConfirmationCode', jsonReq, function (err, result) { if (err) { return callback(err, null); } return callback(null, result); }); } /** * This is used to get a session, either from the session object * or from the local storage, or by using a refresh token * * @param {nodeCallback} callback Called on success or error. * @returns {void} */ ; _proto.getSession = function getSession(callback) { if (this.username == null) { return callback(new Error('Username is null. Cannot retrieve a new session'), null); } if (this.signInUserSession != null && this.signInUserSession.isValid()) { return callback(null, this.signInUserSession); } var keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username; var idTokenKey = keyPrefix + ".idToken"; var accessTokenKey = keyPrefix + ".accessToken"; var refreshTokenKey = keyPrefix + ".refreshToken"; var clockDriftKey = keyPrefix + ".clockDrift"; if (this.storage.getItem(idTokenKey)) { var idToken = new _CognitoIdToken__WEBPACK_IMPORTED_MODULE_8__["default"]({ IdToken: this.storage.getItem(idTokenKey) }); var accessToken = new _CognitoAccessToken__WEBPACK_IMPORTED_MODULE_7__["default"]({ AccessToken: this.storage.getItem(accessTokenKey) }); var refreshToken = new _CognitoRefreshToken__WEBPACK_IMPORTED_MODULE_9__["default"]({ RefreshToken: this.storage.getItem(refreshTokenKey) }); var clockDrift = parseInt(this.storage.getItem(clockDriftKey), 0) || 0; var sessionData = { IdToken: idToken, AccessToken: accessToken, RefreshToken: refreshToken, ClockDrift: clockDrift }; var cachedSession = new _CognitoUserSession__WEBPACK_IMPORTED_MODULE_10__["default"](sessionData); if (cachedSession.isValid()) { this.signInUserSession = cachedSession; return callback(null, this.signInUserSession); } if (!refreshToken.getToken()) { return callback(new Error('Cannot retrieve a new session. Please authenticate.'), null); } this.refreshSession(refreshToken, callback); } else { callback(new Error('Local storage is missing an ID Token, Please authenticate'), null); } return undefined; } /** * This uses the refreshToken to retrieve a new session * @param {CognitoRefreshToken} refreshToken A previous session's refresh token. * @param {nodeCallback} callback Called on success or error. * @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger * @returns {void} */ ; _proto.refreshSession = function refreshSession(refreshToken, callback, clientMetadata) { var _this14 = this; var authParameters = {}; authParameters.REFRESH_TOKEN = refreshToken.getToken(); var keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId(); var lastUserKey = keyPrefix + ".LastAuthUser"; if (this.storage.getItem(lastUserKey)) { this.username = this.storage.getItem(lastUserKey); var deviceKeyKey = keyPrefix + "." + this.username + ".deviceKey"; this.deviceKey = this.storage.getItem(deviceKeyKey); authParameters.DEVICE_KEY = this.deviceKey; } var jsonReq = { ClientId: this.pool.getClientId(), AuthFlow: 'REFRESH_TOKEN_AUTH', AuthParameters: authParameters, ClientMetadata: clientMetadata }; if (this.getUserContextData()) { jsonReq.UserContextData = this.getUserContextData(); } this.client.request('InitiateAuth', jsonReq, function (err, authResult) { if (err) { if (err.code === 'NotAuthorizedException') { _this14.clearCachedUser(); } return callback(err, null); } if (authResult) { var authenticationResult = authResult.AuthenticationResult; if (!Object.prototype.hasOwnProperty.call(authenticationResult, 'RefreshToken')) { authenticationResult.RefreshToken = refreshToken.getToken(); } _this14.signInUserSession = _this14.getCognitoUserSession(authenticationResult); _this14.cacheTokens(); return callback(null, _this14.signInUserSession); } return undefined; }); } /** * This is used to save the session tokens to local storage * @returns {void} */ ; _proto.cacheTokens = function cacheTokens() { var keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId(); var idTokenKey = keyPrefix + "." + this.username + ".idToken"; var accessTokenKey = keyPrefix + "." + this.username + ".accessToken"; var refreshTokenKey = keyPrefix + "." + this.username + ".refreshToken"; var clockDriftKey = keyPrefix + "." + this.username + ".clockDrift"; var lastUserKey = keyPrefix + ".LastAuthUser"; this.storage.setItem(idTokenKey, this.signInUserSession.getIdToken().getJwtToken()); this.storage.setItem(accessTokenKey, this.signInUserSession.getAccessToken().getJwtToken()); this.storage.setItem(refreshTokenKey, this.signInUserSession.getRefreshToken().getToken()); this.storage.setItem(clockDriftKey, "" + this.signInUserSession.getClockDrift()); this.storage.setItem(lastUserKey, this.username); } /** * This is to cache user data */ ; _proto.cacheUserData = function cacheUserData(userData) { this.storage.setItem(this.userDataKey, JSON.stringify(userData)); } /** * This is to remove cached user data */ ; _proto.clearCachedUserData = function clearCachedUserData() { this.storage.removeItem(this.userDataKey); }; _proto.clearCachedUser = function clearCachedUser() { this.clearCachedTokens(); this.clearCachedUserData(); } /** * This is used to cache the device key and device group and device password * @returns {void} */ ; _proto.cacheDeviceKeyAndPassword = function cacheDeviceKeyAndPassword() { var keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username; var deviceKeyKey = keyPrefix + ".deviceKey"; var randomPasswordKey = keyPrefix + ".randomPasswordKey"; var deviceGroupKeyKey = keyPrefix + ".deviceGroupKey"; this.storage.setItem(deviceKeyKey, this.deviceKey); this.storage.setItem(randomPasswordKey, this.randomPassword); this.storage.setItem(deviceGroupKeyKey, this.deviceGroupKey); } /** * This is used to get current device key and device group and device password * @returns {void} */ ; _proto.getCachedDeviceKeyAndPassword = function getCachedDeviceKeyAndPassword() { var keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username; var deviceKeyKey = keyPrefix + ".deviceKey"; var randomPasswordKey = keyPrefix + ".randomPasswordKey"; var deviceGroupKeyKey = keyPrefix + ".deviceGroupKey"; if (this.storage.getItem(deviceKeyKey)) { this.deviceKey = this.storage.getItem(deviceKeyKey); this.randomPassword = this.storage.getItem(randomPasswordKey); this.deviceGroupKey = this.storage.getItem(deviceGroupKeyKey); } } /** * This is used to clear the device key info from local storage * @returns {void} */ ; _proto.clearCachedDeviceKeyAndPassword = function clearCachedDeviceKeyAndPassword() { var keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username; var deviceKeyKey = keyPrefix + ".deviceKey"; var randomPasswordKey = keyPrefix + ".randomPasswordKey"; var deviceGroupKeyKey = keyPrefix + ".deviceGroupKey"; this.storage.removeItem(deviceKeyKey); this.storage.removeItem(randomPasswordKey); this.storage.removeItem(deviceGroupKeyKey); } /** * This is used to clear the session tokens from local storage * @returns {void} */ ; _proto.clearCachedTokens = function clearCachedTokens() { var keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId(); var idTokenKey = keyPrefix + "." + this.username + ".idToken"; var accessTokenKey = keyPrefix + "." + this.username + ".accessToken"; var refreshTokenKey = keyPrefix + "." + this.username + ".refreshToken"; var lastUserKey = keyPrefix + ".LastAuthUser"; var clockDriftKey = keyPrefix + "." + this.username + ".clockDrift"; this.storage.removeItem(idTokenKey); this.storage.removeItem(accessTokenKey); this.storage.removeItem(refreshTokenKey); this.storage.removeItem(lastUserKey); this.storage.removeItem(clockDriftKey); } /** * This is used to build a user session from tokens retrieved in the authentication result * @param {object} authResult Successful auth response from server. * @returns {CognitoUserSession} The new user session. * @private */ ; _proto.getCognitoUserSession = function getCognitoUserSession(authResult) { var idToken = new _CognitoIdToken__WEBPACK_IMPORTED_MODULE_8__["default"](authResult); var accessToken = new _CognitoAccessToken__WEBPACK_IMPORTED_MODULE_7__["default"](authResult); var refreshToken = new _CognitoRefreshToken__WEBPACK_IMPORTED_MODULE_9__["default"](authResult); var sessionData = { IdToken: idToken, AccessToken: accessToken, RefreshToken: refreshToken }; return new _CognitoUserSession__WEBPACK_IMPORTED_MODULE_10__["default"](sessionData); } /** * This is used to initiate a forgot password request * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {inputVerificationCode?} callback.inputVerificationCode * Optional callback raised instead of onSuccess with response data. * @param {onSuccess} callback.onSuccess Called on success. * @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger * @returns {void} */ ; _proto.forgotPassword = function forgotPassword(callback, clientMetadata) { var jsonReq = { ClientId: this.pool.getClientId(), Username: this.username, ClientMetadata: clientMetadata }; if (this.getUserContextData()) { jsonReq.UserContextData = this.getUserContextData(); } this.client.request('ForgotPassword', jsonReq, function (err, data) { if (err) { return callback.onFailure(err); } if (typeof callback.inputVerificationCode === 'function') { return callback.inputVerificationCode(data); } return callback.onSuccess(data); }); } /** * This is used to confirm a new password using a confirmationCode * @param {string} confirmationCode Code entered by user. * @param {string} newPassword Confirm new password. * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {onSuccess} callback.onSuccess Called on success. * @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger * @returns {void} */ ; _proto.confirmPassword = function confirmPassword(confirmationCode, newPassword, callback, clientMetadata) { var jsonReq = { ClientId: this.pool.getClientId(), Username: this.username, ConfirmationCode: confirmationCode, Password: newPassword, ClientMetadata: clientMetadata }; if (this.getUserContextData()) { jsonReq.UserContextData = this.getUserContextData(); } this.client.request('ConfirmForgotPassword', jsonReq, function (err) { if (err) { return callback.onFailure(err); } return callback.onSuccess(); }); } /** * This is used to initiate an attribute confirmation request * @param {string} attributeName User attribute that needs confirmation. * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {inputVerificationCode} callback.inputVerificationCode Called on success. * @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger * @returns {void} */ ; _proto.getAttributeVerificationCode = function getAttributeVerificationCode(attributeName, callback, clientMetadata) { if (this.signInUserSession == null || !this.signInUserSession.isValid()) { return callback.onFailure(new Error('User is not authenticated')); } this.client.request('GetUserAttributeVerificationCode', { AttributeName: attributeName, AccessToken: this.signInUserSession.getAccessToken().getJwtToken(), ClientMetadata: clientMetadata }, function (err, data) { if (err) { return callback.onFailure(err); } if (typeof callback.inputVerificationCode === 'function') { return callback.inputVerificationCode(data); } return callback.onSuccess(); }); return undefined; } /** * This is used to confirm an attribute using a confirmation code * @param {string} attributeName Attribute being confirmed. * @param {string} confirmationCode Code entered by user. * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {onSuccess} callback.onSuccess Called on success. * @returns {void} */ ; _proto.verifyAttribute = function verifyAttribute(attributeName, confirmationCode, callback) { if (this.signInUserSession == null || !this.signInUserSession.isValid()) { return callback.onFailure(new Error('User is not authenticated')); } this.client.request('VerifyUserAttribute', { AttributeName: attributeName, Code: confirmationCode, AccessToken: this.signInUserSession.getAccessToken().getJwtToken() }, function (err) { if (err) { return callback.onFailure(err); } return callback.onSuccess('SUCCESS'); }); return undefined; } /** * This is used to get the device information using the current device key * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {onSuccess<*>} callback.onSuccess Called on success with device data. * @returns {void} */ ; _proto.getDevice = function getDevice(callback) { if (this.signInUserSession == null || !this.signInUserSession.isValid()) { return callback.onFailure(new Error('User is not authenticated')); } this.client.request('GetDevice', { AccessToken: this.signInUserSession.getAccessToken().getJwtToken(), DeviceKey: this.deviceKey }, function (err, data) { if (err) { return callback.onFailure(err); } return callback.onSuccess(data); }); return undefined; } /** * This is used to forget a specific device * @param {string} deviceKey Device key. * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {onSuccess} callback.onSuccess Called on success. * @returns {void} */ ; _proto.forgetSpecificDevice = function forgetSpecificDevice(deviceKey, callback) { if (this.signInUserSession == null || !this.signInUserSession.isValid()) { return callback.onFailure(new Error('User is not authenticated')); } this.client.request('ForgetDevice', { AccessToken: this.signInUserSession.getAccessToken().getJwtToken(), DeviceKey: deviceKey }, function (err) { if (err) { return callback.onFailure(err); } return callback.onSuccess('SUCCESS'); }); return undefined; } /** * This is used to forget the current device * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {onSuccess} callback.onSuccess Called on success. * @returns {void} */ ; _proto.forgetDevice = function forgetDevice(callback) { var _this15 = this; this.forgetSpecificDevice(this.deviceKey, { onFailure: callback.onFailure, onSuccess: function onSuccess(result) { _this15.deviceKey = null; _this15.deviceGroupKey = null; _this15.randomPassword = null; _this15.clearCachedDeviceKeyAndPassword(); return callback.onSuccess(result); } }); } /** * This is used to set the device status as remembered * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {onSuccess} callback.onSuccess Called on success. * @returns {void} */ ; _proto.setDeviceStatusRemembered = function setDeviceStatusRemembered(callback) { if (this.signInUserSession == null || !this.signInUserSession.isValid()) { return callback.onFailure(new Error('User is not authenticated')); } this.client.request('UpdateDeviceStatus', { AccessToken: this.signInUserSession.getAccessToken().getJwtToken(), DeviceKey: this.deviceKey, DeviceRememberedStatus: 'remembered' }, function (err) { if (err) { return callback.onFailure(err); } return callback.onSuccess('SUCCESS'); }); return undefined; } /** * This is used to set the device status as not remembered * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {onSuccess} callback.onSuccess Called on success. * @returns {void} */ ; _proto.setDeviceStatusNotRemembered = function setDeviceStatusNotRemembered(callback) { if (this.signInUserSession == null || !this.signInUserSession.isValid()) { return callback.onFailure(new Error('User is not authenticated')); } this.client.request('UpdateDeviceStatus', { AccessToken: this.signInUserSession.getAccessToken().getJwtToken(), DeviceKey: this.deviceKey, DeviceRememberedStatus: 'not_remembered' }, function (err) { if (err) { return callback.onFailure(err); } return callback.onSuccess('SUCCESS'); }); return undefined; } /** * This is used to list all devices for a user * * @param {int} limit the number of devices returned in a call * @param {string | null} paginationToken the pagination token in case any was returned before * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {onSuccess<*>} callback.onSuccess Called on success with device list. * @returns {void} */ ; _proto.listDevices = function listDevices(limit, paginationToken, callback) { if (this.signInUserSession == null || !this.signInUserSession.isValid()) { return callback.onFailure(new Error('User is not authenticated')); } var requestParams = { AccessToken: this.signInUserSession.getAccessToken().getJwtToken(), Limit: limit }; if (paginationToken) { requestParams.PaginationToken = paginationToken; } this.client.request('ListDevices', requestParams, function (err, data) { if (err) { return callback.onFailure(err); } return callback.onSuccess(data); }); return undefined; } /** * This is used to globally revoke all tokens issued to a user * @param {object} callback Result callback map. * @param {onFailure} callback.onFailure Called on any error. * @param {onSuccess} callback.onSuccess Called on success. * @returns {void} */ ; _proto.globalSignOut = function globalSignOut(callback) { var _this16 = this; if (this.signInUserSession == null || !this.signInUserSession.isValid()) { return callback.onFailure(new Error('User is not authenticated')); } this.client.request('GlobalSignOut', { AccessToken: this.signInUserSession.getAccessToken().getJwtToken() }, function (err) { if (err) { return callback.onFailure(err); } _this16.clearCachedUser(); return callback.onSuccess('SUCCESS'); }); return undefined; } /** * This is used for the user to signOut of the application and clear the cached tokens. * @returns {void} */ ; _proto.signOut = function signOut() { this.signInUserSession = null; this.clearCachedUser(); } /** * This is used by a user trying to select a given MFA * @param {string} answerChallenge the mfa the user wants * @param {nodeCallback} callback Called on success or error. * @returns {void} */ ; _proto.sendMFASelectionAnswer = function sendMFASelectionAnswer(answerChallenge, callback) { var _this17 = this; var challengeResponses = {}; challengeResponses.USERNAME = this.username; challengeResponses.ANSWER = answerChallenge; var jsonReq = { ChallengeName: 'SELECT_MFA_TYPE', ChallengeResponses: challengeResponses, ClientId: this.pool.getClientId(), Session: this.Session }; if (this.getUserContextData()) { jsonReq.UserContextData = this.getUserContextData(); } this.client.request('RespondToAuthChallenge', jsonReq, function (err, data) { if (err) { return callback.onFailure(err); } _this17.Session = data.Session; if (answerChallenge === 'SMS_MFA') { return callback.mfaRequired(data.ChallengeName, data.ChallengeParameters); } if (answerChallenge === 'SOFTWARE_TOKEN_MFA') { return callback.totpRequired(data.ChallengeName, data.ChallengeParameters); } return undefined; }); } /** * This returns the user context data for advanced security feature. * @returns {void} */ ; _proto.getUserContextData = function getUserContextData() { var pool = this.pool; return pool.getUserContextData(this.username); } /** * This is used by an authenticated or a user trying to authenticate to associate a TOTP MFA * @param {nodeCallback} callback Called on success or error. * @returns {void} */ ; _proto.associateSoftwareToken = function associateSoftwareToken(callback) { var _this18 = this; if (!(this.signInUserSession != null && this.signInUserSession.isValid())) { this.client.request('AssociateSoftwareToken', { Session: this.Session }, function (err, data) { if (err) { return callback.onFailure(err); } _this18.Session = data.Session; return callback.associateSecretCode(data.SecretCode); }); } else { this.client.request('AssociateSoftwareToken', { AccessToken: this.signInUserSession.getAccessToken().getJwtToken() }, function (err, data) { if (err) { return callback.onFailure(err); } return callback.associateSecretCode(data.SecretCode); }); } } /** * This is used by an authenticated or a user trying to authenticate to verify a TOTP MFA * @param {string} totpCode The MFA code entered by the user. * @param {string} friendlyDeviceName The device name we are assigning to the device. * @param {nodeCallback} callback Called on success or error. * @returns {void} */ ; _proto.verifySoftwareToken = function verifySoftwareToken(totpCode, friendlyDeviceName, callback) { var _this19 = this; if (!(this.signInUserSession != null && this.signInUserSession.isValid())) { this.client.request('VerifySoftwareToken', { Session: this.Session, UserCode: totpCode, FriendlyDeviceName: friendlyDeviceName }, function (err, data) { if (err) { return callback.onFailure(err); } _this19.Session = data.Session; var challengeResponses = {}; challengeResponses.USERNAME = _this19.username; var jsonReq = { ChallengeName: 'MFA_SETUP', ClientId: _this19.pool.getClientId(), ChallengeResponses: challengeResponses, Session: _this19.Session }; if (_this19.getUserContextData()) { jsonReq.UserContextData = _this19.getUserContextData(); } _this19.client.request('RespondToAuthChallenge', jsonReq, function (errRespond, dataRespond) { if (errRespond) { return callback.onFailure(errRespond); } _this19.signInUserSession = _this19.getCognitoUserSession(dataRespond.AuthenticationResult); _this19.cacheTokens(); return callback.onSuccess(_this19.signInUserSession); }); return undefined; }); } else { this.client.request('VerifySoftwareToken', { AccessToken: this.signInUserSession.getAccessToken().getJwtToken(), UserCode: totpCode, FriendlyDeviceName: friendlyDeviceName }, function (err, data) { if (err) { return callback.onFailure(err); } return callback.onSuccess(data); }); } }; return CognitoUser; }(); /***/ }), /***/ "PK/e": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/credential-provider-cognito-identity/dist/es/resolveLogins.js ***! \*********************************************************************************************/ /*! exports provided: resolveLogins */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveLogins", function() { return resolveLogins; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /** * @internal */ function resolveLogins(logins) { return Promise.all(Object.keys(logins).reduce(function (arr, name) { var tokenOrProvider = logins[name]; if (typeof tokenOrProvider === "string") { arr.push([name, tokenOrProvider]); } else { arr.push(tokenOrProvider().then(function (token) { return [name, token]; })); } return arr; }, [])).then(function (resolvedPairs) { return resolvedPairs.reduce(function (logins, _a) { var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _b[0], value = _b[1]; logins[key] = value; return logins; }, {}); }); } //# sourceMappingURL=resolveLogins.js.map /***/ }), /***/ "PQrK": /*!*******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-lex-runtime-service/dist/es/runtimeConfig.browser.js ***! \*******************************************************************************************/ /*! exports provided: ClientDefaultValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientDefaultValues", function() { return ClientDefaultValues; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./package.json */ "CIHk"); var _package_json__WEBPACK_IMPORTED_MODULE_1___namespace = /*#__PURE__*/__webpack_require__.t(/*! ./package.json */ "CIHk", 1); /* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-crypto/sha256-browser */ "viNG"); /* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/fetch-http-handler */ "LUnR"); /* harmony import */ var _aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/invalid-dependency */ "J2eM"); /* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "UMev"); /* harmony import */ var _aws_sdk_url_parser_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/url-parser-browser */ "c14h"); /* harmony import */ var _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/util-base64-browser */ "S3Uu"); /* harmony import */ var _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/util-body-length-browser */ "N9sX"); /* harmony import */ var _aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/util-user-agent-browser */ "wU8f"); /* harmony import */ var _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "kg8h"); /* harmony import */ var _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./runtimeConfig.shared */ "5uxN"); var ClientDefaultValues = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__["ClientSharedValues"]), { runtime: "browser", base64Decoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__["fromBase64"], base64Encoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__["toBase64"], bodyLengthChecker: _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_8__["calculateBodyLength"], credentialDefaultProvider: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__["invalidFunction"])("Credential is missing"), defaultUserAgent: Object(_aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_9__["defaultUserAgent"])(_package_json__WEBPACK_IMPORTED_MODULE_1__["name"], _package_json__WEBPACK_IMPORTED_MODULE_1__["version"]), maxAttempts: _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__["DEFAULT_MAX_ATTEMPTS"], region: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__["invalidFunction"])("Region is missing"), requestHandler: new _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["FetchHttpHandler"](), sha256: _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__["Sha256"], streamCollector: _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["streamCollector"], urlParser: _aws_sdk_url_parser_browser__WEBPACK_IMPORTED_MODULE_6__["parseUrl"], utf8Decoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__["fromUtf8"], utf8Encoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__["toUtf8"] }); //# sourceMappingURL=runtimeConfig.browser.js.map /***/ }), /***/ "PVXq": /*!*********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/credential-provider-cognito-identity/dist/es/CognitoProviderParameters.js ***! \*********************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=CognitoProviderParameters.js.map /***/ }), /***/ "PZkE": /*!**********************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/distinctUntilKeyChanged.js ***! \**********************************************************************************/ /*! exports provided: distinctUntilKeyChanged */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "distinctUntilKeyChanged", function() { return distinctUntilKeyChanged; }); /* harmony import */ var _distinctUntilChanged__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./distinctUntilChanged */ "/uUt"); function distinctUntilKeyChanged(key, compare) { return Object(_distinctUntilChanged__WEBPACK_IMPORTED_MODULE_0__["distinctUntilChanged"])((x, y) => compare ? compare(x[key], y[key]) : x[key] === y[key]); } //# sourceMappingURL=distinctUntilKeyChanged.js.map /***/ }), /***/ "Pa4d": /*!****************************************************************************!*\ !*** ./node_modules/@aws-amplify/ui-components/dist/esm/theme-b2a03c68.js ***! \****************************************************************************/ /*! exports provided: a, p */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return patchEsm; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return patchBrowser; }); /* harmony import */ var _index_39969785_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index-39969785.js */ "bRKV"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* Stencil Client Patch v1.15.0 | MIT Licensed | https://stenciljs.com */ const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`; const patchEsm = () => { // NOTE!! This fn cannot use async/await! // @ts-ignore if ( !(_index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["C"] && _index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["C"].supports && _index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["C"].supports('color', 'var(--c)'))) { // @ts-ignore return __webpack_require__.e(/*! import() | polyfills-css-shim */ "polyfills-css-shim").then(__webpack_require__.t.bind(null, /*! ./css-shim-3b0ed064.js */ "SE25", 7)).then(() => { if ((_index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["p"].$cssShim$ = _index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["w"].__cssshim)) { return _index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["p"].$cssShim$.i(); } else { // for better minification return 0; } }); } return Object(_index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["a"])(); }; const patchBrowser = () => { { // shim css vars _index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["p"].$cssShim$ = _index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["w"].__cssshim; } // @ts-ignore const scriptElm = Array.from(_index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["d"].querySelectorAll('script')).find(s => new RegExp(`\/${_index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["N"]}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || s.getAttribute('data-stencil-namespace') === _index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["N"]) ; const opts = scriptElm['data-opts'] || {} ; if ( 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) { // Safari < v11 support: This IF is true if it's Safari below v11. // This fn cannot use async/await since Safari didn't support it until v11, // however, Safari 10 did support modules. Safari 10 also didn't support "nomodule", // so both the ESM file and nomodule file would get downloaded. Only Safari // has 'onbeforeload' in the script, and "history.scrollRestoration" was added // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue. // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds. return { then() { /* promise noop */ }, }; } { opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, _index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["w"].location.href)).href; { patchDynamicImport(opts.resourcesUrl, scriptElm); } if ( !_index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["w"].customElements) { // module support, but no custom elements support (Old Edge) // @ts-ignore return __webpack_require__.e(/*! import() | polyfills-dom */ "polyfills-dom").then(__webpack_require__.t.bind(null, /*! ./dom-3fa9e65e.js */ "+99b", 7)).then(() => opts); } } return Object(_index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["a"])(opts); }; const patchDynamicImport = (base, orgScriptElm) => { const importFunctionName = getDynamicImportFunction(_index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["N"]); try { // test if this browser supports dynamic imports // There is a caching issue in V8, that breaks using import() in Function // By generating a random string, we can workaround it // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info _index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["w"][importFunctionName] = new Function('w', `return import(w);//${Math.random()}`); } catch (e) { // this shim is specifically for browsers that do support "esm" imports // however, they do NOT support "dynamic" imports // basically this code is for old Edge, v18 and below const moduleMap = new Map(); _index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["w"][importFunctionName] = (src) => { const url = new URL(src, base).href; let mod = moduleMap.get(url); if (!mod) { const script = _index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["d"].createElement('script'); script.type = 'module'; script.crossOrigin = orgScriptElm.crossOrigin; script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], { type: 'application/javascript' })); mod = new Promise(resolve => { script.onload = () => { resolve(_index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["w"][importFunctionName].m); script.remove(); }; }); moduleMap.set(url, mod); _index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["d"].head.appendChild(script); } return mod; }; } }; /* eslint-disable */ if (Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["browserOrNode"])().isBrowser) { let customStyles = document.createElement('style'); customStyles.appendChild(document.createTextNode(` :root { /* Typography */ --amplify-font-family: 'Amazon Ember', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif; --amplify-text-xxs: 0.75rem; --amplify-text-xs: 0.81rem; --amplify-text-sm: 0.875rem; --amplify-text-md: 1rem; --amplify-text-md-sub: 1.15rem; --amplify-text-lg: 1.5rem; --amplify-text-xl: 2rem; --amplify-text-xxl: 2.5rem; /* Colors */ --amplify-primary-color: #ff9900; --amplify-primary-contrast: var(--amplify-white); --amplify-primary-tint: #ffac31; --amplify-primary-shade: #e88b01; --amplify-secondary-color: #152939; --amplify-secondary-contrast: var(--amplify-white); --amplify-secondary-tint: #31465f; --amplify-secondary-shade: #1F2A37; --amplify-tertiary-color: #5d8aff; --amplify-tertiary-contrast: var(--amplify-white); --amplify-tertiary-tint: #7da1ff; --amplify-tertiary-shade: #537BE5; --amplify-background-color: var(--amplify-white); /* Neutral */ --amplify-grey: #828282; --amplify-light-grey: #c4c4c4; --amplify-white: #ffffff; --amplify-smoke-white: #f5f5f5; --amplify-red: #dd3f5b; --amplify-blue: #099ac8; } `)); let parentElement = document.getElementsByTagName('head')[0]; const firstChild = parentElement.firstChild; parentElement.insertBefore(customStyles, firstChild); } /***/ }), /***/ "PfrF": /*!*********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/bufferWhen.js ***! \*********************************************************************/ /*! exports provided: bufferWhen */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bufferWhen", function() { return bufferWhen; }); /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscription */ "quSY"); /* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../innerSubscribe */ "zx2A"); function bufferWhen(closingSelector) { return function (source) { return source.lift(new BufferWhenOperator(closingSelector)); }; } class BufferWhenOperator { constructor(closingSelector) { this.closingSelector = closingSelector; } call(subscriber, source) { return source.subscribe(new BufferWhenSubscriber(subscriber, this.closingSelector)); } } class BufferWhenSubscriber extends _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleOuterSubscriber"] { constructor(destination, closingSelector) { super(destination); this.closingSelector = closingSelector; this.subscribing = false; this.openBuffer(); } _next(value) { this.buffer.push(value); } _complete() { const buffer = this.buffer; if (buffer) { this.destination.next(buffer); } super._complete(); } _unsubscribe() { this.buffer = undefined; this.subscribing = false; } notifyNext() { this.openBuffer(); } notifyComplete() { if (this.subscribing) { this.complete(); } else { this.openBuffer(); } } openBuffer() { let { closingSubscription } = this; if (closingSubscription) { this.remove(closingSubscription); closingSubscription.unsubscribe(); } const buffer = this.buffer; if (this.buffer) { this.destination.next(buffer); } this.buffer = []; let closingNotifier; try { const { closingSelector } = this; closingNotifier = closingSelector(); } catch (err) { return this.error(err); } closingSubscription = new _Subscription__WEBPACK_IMPORTED_MODULE_0__["Subscription"](); this.closingSubscription = closingSubscription; this.add(closingSubscription); this.subscribing = true; closingSubscription.add(Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["innerSubscribe"])(closingNotifier, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleInnerSubscriber"](this))); this.subscribing = false; } } //# sourceMappingURL=bufferWhen.js.map /***/ }), /***/ "PmNC": /*!************************************************************************!*\ !*** ./node_modules/graphql/validation/rules/NoUndefinedVariables.mjs ***! \************************************************************************/ /*! exports provided: undefinedVarMessage, NoUndefinedVariables */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "undefinedVarMessage", function() { return undefinedVarMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NoUndefinedVariables", function() { return NoUndefinedVariables; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function undefinedVarMessage(varName, opName) { return opName ? "Variable \"$".concat(varName, "\" is not defined by operation \"").concat(opName, "\".") : "Variable \"$".concat(varName, "\" is not defined."); } /** * No undefined variables * * A GraphQL operation is only valid if all variables encountered, both directly * and via fragment spreads, are defined by that operation. */ function NoUndefinedVariables(context) { var variableNameDefined = Object.create(null); return { OperationDefinition: { enter: function enter() { variableNameDefined = Object.create(null); }, leave: function leave(operation) { var usages = context.getRecursiveVariableUsages(operation); var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = usages[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var _ref2 = _step.value; var node = _ref2.node; var varName = node.name.value; if (variableNameDefined[varName] !== true) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](undefinedVarMessage(varName, operation.name && operation.name.value), [node, operation])); } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } } }, VariableDefinition: function VariableDefinition(node) { variableNameDefined[node.variable.name.value] = true; } }; } /***/ }), /***/ "Pokg": /*!*******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailTemplateCommand.js ***! \*******************************************************************************************/ /*! exports provided: GetEmailTemplateCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateCommand", function() { return GetEmailTemplateCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetEmailTemplateCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetEmailTemplateCommand, _super); // Start section: command_properties // End section: command_properties function GetEmailTemplateCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetEmailTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetEmailTemplateRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetEmailTemplateResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetEmailTemplateCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetEmailTemplateCommand"])(input, context); }; GetEmailTemplateCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetEmailTemplateCommand"])(output, context); }; return GetEmailTemplateCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetEmailTemplateCommand.js.map /***/ }), /***/ "PqYM": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/timer.js ***! \*****************************************************************/ /*! exports provided: timer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timer", function() { return timer; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scheduler/async */ "D0XW"); /* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isNumeric */ "Y7HM"); /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro"); function timer(dueTime = 0, periodOrScheduler, scheduler) { let period = -1; if (Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_2__["isNumeric"])(periodOrScheduler)) { period = Number(periodOrScheduler) < 1 && 1 || Number(periodOrScheduler); } else if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_3__["isScheduler"])(periodOrScheduler)) { scheduler = periodOrScheduler; } if (!Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_3__["isScheduler"])(scheduler)) { scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"]; } return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => { const due = Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_2__["isNumeric"])(dueTime) ? dueTime : (+dueTime - scheduler.now()); return scheduler.schedule(dispatch, due, { index: 0, period, subscriber }); }); } function dispatch(state) { const { index, period, subscriber } = state; subscriber.next(index); if (subscriber.closed) { return; } else if (period === -1) { return subscriber.complete(); } state.index = index + 1; this.schedule(state, period); } //# sourceMappingURL=timer.js.map /***/ }), /***/ "PwNr": /*!********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsChannelCommand.js ***! \********************************************************************************************/ /*! exports provided: UpdateApnsChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelCommand", function() { return UpdateApnsChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UpdateApnsChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateApnsChannelCommand, _super); // Start section: command_properties // End section: command_properties function UpdateApnsChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UpdateApnsChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UpdateApnsChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateApnsChannelCommand"])(input, context); }; UpdateApnsChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateApnsChannelCommand"])(output, context); }; return UpdateApnsChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=UpdateApnsChannelCommand.js.map /***/ }), /***/ "PyPM": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-polly/dist/es/commands/SynthesizeSpeechCommand.js ***! \****************************************************************************************/ /*! exports provided: SynthesizeSpeechCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SynthesizeSpeechCommand", function() { return SynthesizeSpeechCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "uUVK"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "h3LU"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var SynthesizeSpeechCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SynthesizeSpeechCommand, _super); // Start section: command_properties // End section: command_properties function SynthesizeSpeechCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } SynthesizeSpeechCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["SynthesizeSpeechInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["SynthesizeSpeechOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; SynthesizeSpeechCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1SynthesizeSpeechCommand"])(input, context); }; SynthesizeSpeechCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1SynthesizeSpeechCommand"])(output, context); }; return SynthesizeSpeechCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=SynthesizeSpeechCommand.js.map /***/ }), /***/ "Pz8W": /*!*********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/scheduler/AsapAction.js ***! \*********************************************************************/ /*! exports provided: AsapAction */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsapAction", function() { return AsapAction; }); /* harmony import */ var _util_Immediate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/Immediate */ "c7jc"); /* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AsyncAction */ "3N8a"); class AsapAction extends _AsyncAction__WEBPACK_IMPORTED_MODULE_1__["AsyncAction"] { constructor(scheduler, work) { super(scheduler, work); this.scheduler = scheduler; this.work = work; } requestAsyncId(scheduler, id, delay = 0) { if (delay !== null && delay > 0) { return super.requestAsyncId(scheduler, id, delay); } scheduler.actions.push(this); return scheduler.scheduled || (scheduler.scheduled = _util_Immediate__WEBPACK_IMPORTED_MODULE_0__["Immediate"].setImmediate(scheduler.flush.bind(scheduler, null))); } recycleAsyncId(scheduler, id, delay = 0) { if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) { return super.recycleAsyncId(scheduler, id, delay); } if (scheduler.actions.length === 0) { _util_Immediate__WEBPACK_IMPORTED_MODULE_0__["Immediate"].clearImmediate(id); scheduler.scheduled = undefined; } return undefined; } } //# sourceMappingURL=AsapAction.js.map /***/ }), /***/ "Q6gB": /*!*******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsChannelCommand.js ***! \*******************************************************************************************/ /*! exports provided: DeleteSmsChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelCommand", function() { return DeleteSmsChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteSmsChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteSmsChannelCommand, _super); // Start section: command_properties // End section: command_properties function DeleteSmsChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteSmsChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteSmsChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteSmsChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteSmsChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteSmsChannelCommand"])(input, context); }; DeleteSmsChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteSmsChannelCommand"])(output, context); }; return DeleteSmsChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteSmsChannelCommand.js.map /***/ }), /***/ "Q9wF": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateEmailTemplateCommand.js ***! \**********************************************************************************************/ /*! exports provided: CreateEmailTemplateCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateCommand", function() { return CreateEmailTemplateCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CreateEmailTemplateCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateEmailTemplateCommand, _super); // Start section: command_properties // End section: command_properties function CreateEmailTemplateCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CreateEmailTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateEmailTemplateRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateEmailTemplateResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CreateEmailTemplateCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateEmailTemplateCommand"])(input, context); }; CreateEmailTemplateCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateEmailTemplateCommand"])(output, context); }; return CreateEmailTemplateCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=CreateEmailTemplateCommand.js.map /***/ }), /***/ "QDLp": /*!***************************************************************************************!*\ !*** ./node_modules/@aws-sdk/eventstream-marshaller/dist/es/EventStreamMarshaller.js ***! \***************************************************************************************/ /*! exports provided: EventStreamMarshaller */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return EventStreamMarshaller; }); /* harmony import */ var _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-crypto/crc32 */ "mX1g"); /* harmony import */ var _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _HeaderMarshaller__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./HeaderMarshaller */ "dmdZ"); /* harmony import */ var _splitMessage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./splitMessage */ "F6Ln"); /** * A marshaller that can convert binary-packed event stream messages into * JavaScript objects and back again into their binary format. */ var EventStreamMarshaller = /** @class */ (function () { function EventStreamMarshaller(toUtf8, fromUtf8) { this.headerMarshaller = new _HeaderMarshaller__WEBPACK_IMPORTED_MODULE_1__["HeaderMarshaller"](toUtf8, fromUtf8); } /** * Convert a structured JavaScript object with tagged headers into a binary * event stream message. */ EventStreamMarshaller.prototype.marshall = function (_a) { var rawHeaders = _a.headers, body = _a.body; var headers = this.headerMarshaller.format(rawHeaders); var length = headers.byteLength + body.byteLength + 16; var out = new Uint8Array(length); var view = new DataView(out.buffer, out.byteOffset, out.byteLength); var checksum = new _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__["Crc32"](); // Format message view.setUint32(0, length, false); view.setUint32(4, headers.byteLength, false); view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false); out.set(headers, 12); out.set(body, headers.byteLength + 12); // Write trailing message checksum view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false); return out; }; /** * Convert a binary event stream message into a JavaScript object with an * opaque, binary body and tagged, parsed headers. */ EventStreamMarshaller.prototype.unmarshall = function (message) { var _a = Object(_splitMessage__WEBPACK_IMPORTED_MODULE_2__["splitMessage"])(message), headers = _a.headers, body = _a.body; return { headers: this.headerMarshaller.parse(headers), body: body }; }; /** * Convert a structured JavaScript object with tagged headers into a binary * event stream message header. */ EventStreamMarshaller.prototype.formatHeaders = function (rawHeaders) { return this.headerMarshaller.format(rawHeaders); }; return EventStreamMarshaller; }()); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRTdHJlYW1NYXJzaGFsbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL0V2ZW50U3RyZWFtTWFyc2hhbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFJMUMsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDdEQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTlDOzs7R0FHRztBQUNIO0lBR0UsK0JBQVksTUFBZSxFQUFFLFFBQWlCO1FBQzVDLElBQUksQ0FBQyxnQkFBZ0IsR0FBRyxJQUFJLGdCQUFnQixDQUFDLE1BQU0sRUFBRSxRQUFRLENBQUMsQ0FBQztJQUNqRSxDQUFDO0lBRUQ7OztPQUdHO0lBQ0gsd0NBQVEsR0FBUixVQUFTLEVBQXNDO1lBQTNCLFVBQVUsYUFBQSxFQUFFLElBQUksVUFBQTtRQUNsQyxJQUFNLE9BQU8sR0FBRyxJQUFJLENBQUMsZ0JBQWdCLENBQUMsTUFBTSxDQUFDLFVBQVUsQ0FBQyxDQUFDO1FBQ3pELElBQU0sTUFBTSxHQUFHLE9BQU8sQ0FBQyxVQUFVLEdBQUcsSUFBSSxDQUFDLFVBQVUsR0FBRyxFQUFFLENBQUM7UUFFekQsSUFBTSxHQUFHLEdBQUcsSUFBSSxVQUFVLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDbkMsSUFBTSxJQUFJLEdBQUcsSUFBSSxRQUFRLENBQUMsR0FBRyxDQUFDLE1BQU0sRUFBRSxHQUFHLENBQUMsVUFBVSxFQUFFLEdBQUcsQ0FBQyxVQUFVLENBQUMsQ0FBQztRQUN0RSxJQUFNLFFBQVEsR0FBRyxJQUFJLEtBQUssRUFBRSxDQUFDO1FBRTdCLGlCQUFpQjtRQUNqQixJQUFJLENBQUMsU0FBUyxDQUFDLENBQUMsRUFBRSxNQUFNLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFDakMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxDQUFDLEVBQUUsT0FBTyxDQUFDLFVBQVUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUM3QyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUMsRUFBRSxRQUFRLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxRQUFRLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsTUFBTSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFDdkUsR0FBRyxDQUFDLEdBQUcsQ0FBQyxPQUFPLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFDckIsR0FBRyxDQUFDLEdBQUcsQ0FBQyxJQUFJLEVBQUUsT0FBTyxDQUFDLFVBQVUsR0FBRyxFQUFFLENBQUMsQ0FBQztRQUV2QyxrQ0FBa0M7UUFDbEMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFLFFBQVEsQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLFFBQVEsQ0FBQyxDQUFDLEVBQUUsTUFBTSxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsTUFBTSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFekYsT0FBTyxHQUFHLENBQUM7SUFDYixDQUFDO0lBRUQ7OztPQUdHO0lBQ0gsMENBQVUsR0FBVixVQUFXLE9BQXdCO1FBQzNCLElBQUEsS0FBb0IsWUFBWSxDQUFDLE9BQU8sQ0FBQyxFQUF2QyxPQUFPLGFBQUEsRUFBRSxJQUFJLFVBQTBCLENBQUM7UUFFaEQsT0FBTyxFQUFFLE9BQU8sRUFBRSxJQUFJLENBQUMsZ0JBQWdCLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxFQUFFLElBQUksTUFBQSxFQUFFLENBQUM7SUFDakUsQ0FBQztJQUVEOzs7T0FHRztJQUNILDZDQUFhLEdBQWIsVUFBYyxVQUEwQjtRQUN0QyxPQUFPLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxNQUFNLENBQUMsVUFBVSxDQUFDLENBQUM7SUFDbEQsQ0FBQztJQUNILDRCQUFDO0FBQUQsQ0FBQyxBQWpERCxJQWlEQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENyYzMyIH0gZnJvbSBcIkBhd3MtY3J5cHRvL2NyYzMyXCI7XG5pbXBvcnQgeyBNZXNzYWdlLCBNZXNzYWdlSGVhZGVycyB9IGZyb20gXCJAYXdzLXNkay90eXBlc1wiO1xuaW1wb3J0IHsgRGVjb2RlciwgRW5jb2RlciB9IGZyb20gXCJAYXdzLXNkay90eXBlc1wiO1xuXG5pbXBvcnQgeyBIZWFkZXJNYXJzaGFsbGVyIH0gZnJvbSBcIi4vSGVhZGVyTWFyc2hhbGxlclwiO1xuaW1wb3J0IHsgc3BsaXRNZXNzYWdlIH0gZnJvbSBcIi4vc3BsaXRNZXNzYWdlXCI7XG5cbi8qKlxuICogQSBtYXJzaGFsbGVyIHRoYXQgY2FuIGNvbnZlcnQgYmluYXJ5LXBhY2tlZCBldmVudCBzdHJlYW0gbWVzc2FnZXMgaW50b1xuICogSmF2YVNjcmlwdCBvYmplY3RzIGFuZCBiYWNrIGFnYWluIGludG8gdGhlaXIgYmluYXJ5IGZvcm1hdC5cbiAqL1xuZXhwb3J0IGNsYXNzIEV2ZW50U3RyZWFtTWFyc2hhbGxlciB7XG4gIHByaXZhdGUgcmVhZG9ubHkgaGVhZGVyTWFyc2hhbGxlcjogSGVhZGVyTWFyc2hhbGxlcjtcblxuICBjb25zdHJ1Y3Rvcih0b1V0Zjg6IEVuY29kZXIsIGZyb21VdGY4OiBEZWNvZGVyKSB7XG4gICAgdGhpcy5oZWFkZXJNYXJzaGFsbGVyID0gbmV3IEhlYWRlck1hcnNoYWxsZXIodG9VdGY4LCBmcm9tVXRmOCk7XG4gIH1cblxuICAvKipcbiAgICogQ29udmVydCBhIHN0cnVjdHVyZWQgSmF2YVNjcmlwdCBvYmplY3Qgd2l0aCB0YWdnZWQgaGVhZGVycyBpbnRvIGEgYmluYXJ5XG4gICAqIGV2ZW50IHN0cmVhbSBtZXNzYWdlLlxuICAgKi9cbiAgbWFyc2hhbGwoeyBoZWFkZXJzOiByYXdIZWFkZXJzLCBib2R5IH06IE1lc3NhZ2UpOiBVaW50OEFycmF5IHtcbiAgICBjb25zdCBoZWFkZXJzID0gdGhpcy5oZWFkZXJNYXJzaGFsbGVyLmZvcm1hdChyYXdIZWFkZXJzKTtcbiAgICBjb25zdCBsZW5ndGggPSBoZWFkZXJzLmJ5dGVMZW5ndGggKyBib2R5LmJ5dGVMZW5ndGggKyAxNjtcblxuICAgIGNvbnN0IG91dCA9IG5ldyBVaW50OEFycmF5KGxlbmd0aCk7XG4gICAgY29uc3QgdmlldyA9IG5ldyBEYXRhVmlldyhvdXQuYnVmZmVyLCBvdXQuYnl0ZU9mZnNldCwgb3V0LmJ5dGVMZW5ndGgpO1xuICAgIGNvbnN0IGNoZWNrc3VtID0gbmV3IENyYzMyKCk7XG5cbiAgICAvLyBGb3JtYXQgbWVzc2FnZVxuICAgIHZpZXcuc2V0VWludDMyKDAsIGxlbmd0aCwgZmFsc2UpO1xuICAgIHZpZXcuc2V0VWludDMyKDQsIGhlYWRlcnMuYnl0ZUxlbmd0aCwgZmFsc2UpO1xuICAgIHZpZXcuc2V0VWludDMyKDgsIGNoZWNrc3VtLnVwZGF0ZShvdXQuc3ViYXJyYXkoMCwgOCkpLmRpZ2VzdCgpLCBmYWxzZSk7XG4gICAgb3V0LnNldChoZWFkZXJzLCAxMik7XG4gICAgb3V0LnNldChib2R5LCBoZWFkZXJzLmJ5dGVMZW5ndGggKyAxMik7XG5cbiAgICAvLyBXcml0ZSB0cmFpbGluZyBtZXNzYWdlIGNoZWNrc3VtXG4gICAgdmlldy5zZXRVaW50MzIobGVuZ3RoIC0gNCwgY2hlY2tzdW0udXBkYXRlKG91dC5zdWJhcnJheSg4LCBsZW5ndGggLSA0KSkuZGlnZXN0KCksIGZhbHNlKTtcblxuICAgIHJldHVybiBvdXQ7XG4gIH1cblxuICAvKipcbiAgICogQ29udmVydCBhIGJpbmFyeSBldmVudCBzdHJlYW0gbWVzc2FnZSBpbnRvIGEgSmF2YVNjcmlwdCBvYmplY3Qgd2l0aCBhblxuICAgKiBvcGFxdWUsIGJpbmFyeSBib2R5IGFuZCB0YWdnZWQsIHBhcnNlZCBoZWFkZXJzLlxuICAgKi9cbiAgdW5tYXJzaGFsbChtZXNzYWdlOiBBcnJheUJ1ZmZlclZpZXcpOiBNZXNzYWdlIHtcbiAgICBjb25zdCB7IGhlYWRlcnMsIGJvZHkgfSA9IHNwbGl0TWVzc2FnZShtZXNzYWdlKTtcblxuICAgIHJldHVybiB7IGhlYWRlcnM6IHRoaXMuaGVhZGVyTWFyc2hhbGxlci5wYXJzZShoZWFkZXJzKSwgYm9keSB9O1xuICB9XG5cbiAgLyoqXG4gICAqIENvbnZlcnQgYSBzdHJ1Y3R1cmVkIEphdmFTY3JpcHQgb2JqZWN0IHdpdGggdGFnZ2VkIGhlYWRlcnMgaW50byBhIGJpbmFyeVxuICAgKiBldmVudCBzdHJlYW0gbWVzc2FnZSBoZWFkZXIuXG4gICAqL1xuICBmb3JtYXRIZWFkZXJzKHJhd0hlYWRlcnM6IE1lc3NhZ2VIZWFkZXJzKTogVWludDhBcnJheSB7XG4gICAgcmV0dXJuIHRoaXMuaGVhZGVyTWFyc2hhbGxlci5mb3JtYXQocmF3SGVhZGVycyk7XG4gIH1cbn1cbiJdfQ== /***/ }), /***/ "QG57": /*!******************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/Errors.js ***! \******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); function missingConfig(name) { return new Error('Missing config value of ' + name); } exports.missingConfig = missingConfig; function invalidParameter(name) { return new Error('Invalid parameter value of ' + name); } exports.invalidParameter = invalidParameter; //# sourceMappingURL=Errors.js.map /***/ }), /***/ "QIAL": /*!*************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/isInteropObservable.js ***! \*************************************************************************/ /*! exports provided: isInteropObservable */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isInteropObservable", function() { return isInteropObservable; }); /* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../symbol/observable */ "kJWO"); function isInteropObservable(input) { return input && typeof input[_symbol_observable__WEBPACK_IMPORTED_MODULE_0__["observable"]] === 'function'; } //# sourceMappingURL=isInteropObservable.js.map /***/ }), /***/ "QUVu": /*!*****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetBucketReplicationCommand.js ***! \*****************************************************************************************/ /*! exports provided: GetBucketReplicationCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBucketReplicationCommand", function() { return GetBucketReplicationCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetBucketReplicationCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetBucketReplicationCommand, _super); // Start section: command_properties // End section: command_properties function GetBucketReplicationCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetBucketReplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketReplicationRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketReplicationOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetBucketReplicationCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetBucketReplicationCommand"])(input, context); }; GetBucketReplicationCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetBucketReplicationCommand"])(output, context); }; return GetBucketReplicationCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetBucketReplicationCommand.js.map /***/ }), /***/ "QVn7": /*!****************************************************************************!*\ !*** ./node_modules/@aws-amplify/predictions/lib-esm/types/Predictions.js ***! \****************************************************************************/ /*! exports provided: InterpretTextCategories, isIdentifyFromCollection, isIdentifyCelebrities, isTranslateTextInput, isTextToSpeechInput, isSpeechToTextInput, isStorageSource, isFileSource, isBytesSource, isIdentifyTextInput, isIdentifyLabelsInput, isIdentifyEntitiesInput, isInterpretTextInput */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InterpretTextCategories", function() { return InterpretTextCategories; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIdentifyFromCollection", function() { return isIdentifyFromCollection; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIdentifyCelebrities", function() { return isIdentifyCelebrities; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTranslateTextInput", function() { return isTranslateTextInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTextToSpeechInput", function() { return isTextToSpeechInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSpeechToTextInput", function() { return isSpeechToTextInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isStorageSource", function() { return isStorageSource; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFileSource", function() { return isFileSource; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isBytesSource", function() { return isBytesSource; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIdentifyTextInput", function() { return isIdentifyTextInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIdentifyLabelsInput", function() { return isIdentifyLabelsInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIdentifyEntitiesInput", function() { return isIdentifyEntitiesInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isInterpretTextInput", function() { return isInterpretTextInput; }); /** * Convert types */ var InterpretTextCategories; (function (InterpretTextCategories) { InterpretTextCategories["ALL"] = "ALL"; InterpretTextCategories["LANGUAGE"] = "LANGUAGE"; InterpretTextCategories["ENTITIES"] = "ENTITIES"; InterpretTextCategories["SENTIMENT"] = "SENTIMENT"; InterpretTextCategories["SYNTAX"] = "SYNTAX"; InterpretTextCategories["KEY_PHRASES"] = "KEY_PHRASES"; })(InterpretTextCategories || (InterpretTextCategories = {})); function isIdentifyFromCollection(obj) { var key = 'collection'; var keyId = 'collectionId'; return obj && (obj.hasOwnProperty(key) || obj.hasOwnProperty(keyId)); } function isIdentifyCelebrities(obj) { var key = 'celebrityDetection'; return obj && obj.hasOwnProperty(key); } function isTranslateTextInput(obj) { var key = 'translateText'; return obj && obj.hasOwnProperty(key); } function isTextToSpeechInput(obj) { var key = 'textToSpeech'; return obj && obj.hasOwnProperty(key); } function isSpeechToTextInput(obj) { var key = 'transcription'; return obj && obj.hasOwnProperty(key); } function isStorageSource(obj) { var key = 'key'; return obj && obj.hasOwnProperty(key); } function isFileSource(obj) { var key = 'file'; return obj && obj.hasOwnProperty(key); } function isBytesSource(obj) { var key = 'bytes'; return obj && obj.hasOwnProperty(key); } function isIdentifyTextInput(obj) { var key = 'text'; return obj && obj.hasOwnProperty(key); } function isIdentifyLabelsInput(obj) { var key = 'labels'; return obj && obj.hasOwnProperty(key); } function isIdentifyEntitiesInput(obj) { var key = 'entities'; return obj && obj.hasOwnProperty(key); } function isInterpretTextInput(obj) { var key = 'text'; return obj && obj.hasOwnProperty(key); } //# sourceMappingURL=Predictions.js.map /***/ }), /***/ "Qjhe": /*!*********************************************************************!*\ !*** ./node_modules/@aws-amplify/cache/lib-esm/Utils/CacheUtils.js ***! \*********************************************************************/ /*! exports provided: defaultConfig, getByteLength, getCurrTime, isInteger, CacheObject */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultConfig", function() { return defaultConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getByteLength", function() { return getByteLength; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCurrTime", function() { return getCurrTime; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isInteger", function() { return isInteger; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CacheObject", function() { return CacheObject; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ /** * Default cache config */ var defaultConfig = { keyPrefix: 'aws-amplify-cache', capacityInBytes: 1048576, itemMaxSize: 210000, defaultTTL: 259200000, defaultPriority: 5, warningThreshold: 0.8, // the storage helper will check if localStorage exists, // if not, will use a in-memory object instead storage: new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["StorageHelper"]().getStorage(), }; /** * return the byte size of the string * @param str */ function getByteLength(str) { var ret = 0; ret = str.length; for (var i = str.length; i >= 0; i -= 1) { var charCode = str.charCodeAt(i); if (charCode > 0x7f && charCode <= 0x7ff) { ret += 1; } else if (charCode > 0x7ff && charCode <= 0xffff) { ret += 2; } // trail surrogate if (charCode >= 0xdc00 && charCode <= 0xdfff) { i -= 1; } } return ret; } /** * get current time */ function getCurrTime() { var currTime = new Date(); return currTime.getTime(); } /** * check if passed value is an integer */ function isInteger(value) { if (Number.isInteger) { return Number.isInteger(value); } return _isInteger(value); } function _isInteger(value) { return (typeof value === 'number' && isFinite(value) && Math.floor(value) === value); } /** * provide an object as the in-memory cache */ var store = {}; var CacheObject = /** @class */ (function () { function CacheObject() { } CacheObject.clear = function () { store = {}; }; CacheObject.getItem = function (key) { return store[key] || null; }; CacheObject.setItem = function (key, value) { store[key] = value; }; CacheObject.removeItem = function (key) { delete store[key]; }; return CacheObject; }()); //# sourceMappingURL=CacheUtils.js.map /***/ }), /***/ "QkVE": /*!********************************************!*\ !*** ./node_modules/lodash/_getMapData.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var isKeyable = __webpack_require__(/*! ./_isKeyable */ "EpBk"); /** * Gets the data for `map`. * * @private * @param {Object} map The map to query. * @param {string} key The reference key. * @returns {*} Returns the map data. */ function getMapData(map, key) { var data = map.__data__; return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map; } module.exports = getMapData; /***/ }), /***/ "QlCb": /*!***********************************************************************!*\ !*** ./node_modules/@aws-sdk/config-resolver/dist/es/RegionConfig.js ***! \***********************************************************************/ /*! exports provided: REGION_ENV_NAME, REGION_INI_NAME, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REGION_ENV_NAME", function() { return REGION_ENV_NAME; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REGION_INI_NAME", function() { return REGION_INI_NAME; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NODE_REGION_CONFIG_OPTIONS", function() { return NODE_REGION_CONFIG_OPTIONS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NODE_REGION_CONFIG_FILE_OPTIONS", function() { return NODE_REGION_CONFIG_FILE_OPTIONS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveRegionConfig", function() { return resolveRegionConfig; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); var REGION_ENV_NAME = "AWS_REGION"; var REGION_INI_NAME = "region"; var NODE_REGION_CONFIG_OPTIONS = { environmentVariableSelector: function (env) { return env[REGION_ENV_NAME]; }, configFileSelector: function (profile) { return profile[REGION_INI_NAME]; }, default: function () { throw new Error("Region is missing"); }, }; var NODE_REGION_CONFIG_FILE_OPTIONS = { preferredFile: "credentials", }; var resolveRegionConfig = function (input) { if (!input.region) { throw new Error("Region is missing"); } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, input), { region: normalizeRegion(input.region) }); }; var normalizeRegion = function (region) { if (typeof region === "string") { var promisified_1 = Promise.resolve(region); return function () { return promisified_1; }; } return region; }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVnaW9uQ29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL1JlZ2lvbkNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBR0EsTUFBTSxDQUFDLElBQU0sZUFBZSxHQUFHLFlBQVksQ0FBQztBQUM1QyxNQUFNLENBQUMsSUFBTSxlQUFlLEdBQUcsUUFBUSxDQUFDO0FBRXhDLE1BQU0sQ0FBQyxJQUFNLDBCQUEwQixHQUFrQztJQUN2RSwyQkFBMkIsRUFBRSxVQUFDLEdBQUcsSUFBSyxPQUFBLEdBQUcsQ0FBQyxlQUFlLENBQUMsRUFBcEIsQ0FBb0I7SUFDMUQsa0JBQWtCLEVBQUUsVUFBQyxPQUFPLElBQUssT0FBQSxPQUFPLENBQUMsZUFBZSxDQUFDLEVBQXhCLENBQXdCO0lBQ3pELE9BQU8sRUFBRTtRQUNQLE1BQU0sSUFBSSxLQUFLLENBQUMsbUJBQW1CLENBQUMsQ0FBQztJQUN2QyxDQUFDO0NBQ0YsQ0FBQztBQUVGLE1BQU0sQ0FBQyxJQUFNLCtCQUErQixHQUF1QjtJQUNqRSxhQUFhLEVBQUUsYUFBYTtDQUM3QixDQUFDO0FBZUYsTUFBTSxDQUFDLElBQU0sbUJBQW1CLEdBQUcsVUFBSSxLQUFpRDtJQUN0RixJQUFJLENBQUMsS0FBSyxDQUFDLE1BQU0sRUFBRTtRQUNqQixNQUFNLElBQUksS0FBSyxDQUFDLG1CQUFtQixDQUFDLENBQUM7S0FDdEM7SUFDRCw2QkFDSyxLQUFLLEtBQ1IsTUFBTSxFQUFFLGVBQWUsQ0FBQyxLQUFLLENBQUMsTUFBTyxDQUFDLElBQ3RDO0FBQ0osQ0FBQyxDQUFDO0FBRUYsSUFBTSxlQUFlLEdBQUcsVUFBQyxNQUFpQztJQUN4RCxJQUFJLE9BQU8sTUFBTSxLQUFLLFFBQVEsRUFBRTtRQUM5QixJQUFNLGFBQVcsR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQzVDLE9BQU8sY0FBTSxPQUFBLGFBQVcsRUFBWCxDQUFXLENBQUM7S0FDMUI7SUFDRCxPQUFPLE1BQTBCLENBQUM7QUFDcEMsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTG9hZGVkQ29uZmlnU2VsZWN0b3JzLCBMb2NhbENvbmZpZ09wdGlvbnMgfSBmcm9tIFwiQGF3cy1zZGsvbm9kZS1jb25maWctcHJvdmlkZXJcIjtcbmltcG9ydCB7IFByb3ZpZGVyIH0gZnJvbSBcIkBhd3Mtc2RrL3R5cGVzXCI7XG5cbmV4cG9ydCBjb25zdCBSRUdJT05fRU5WX05BTUUgPSBcIkFXU19SRUdJT05cIjtcbmV4cG9ydCBjb25zdCBSRUdJT05fSU5JX05BTUUgPSBcInJlZ2lvblwiO1xuXG5leHBvcnQgY29uc3QgTk9ERV9SRUdJT05fQ09ORklHX09QVElPTlM6IExvYWRlZENvbmZpZ1NlbGVjdG9yczxzdHJpbmc+ID0ge1xuICBlbnZpcm9ubWVudFZhcmlhYmxlU2VsZWN0b3I6IChlbnYpID0+IGVudltSRUdJT05fRU5WX05BTUVdLFxuICBjb25maWdGaWxlU2VsZWN0b3I6IChwcm9maWxlKSA9PiBwcm9maWxlW1JFR0lPTl9JTklfTkFNRV0sXG4gIGRlZmF1bHQ6ICgpID0+IHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJSZWdpb24gaXMgbWlzc2luZ1wiKTtcbiAgfSxcbn07XG5cbmV4cG9ydCBjb25zdCBOT0RFX1JFR0lPTl9DT05GSUdfRklMRV9PUFRJT05TOiBMb2NhbENvbmZpZ09wdGlvbnMgPSB7XG4gIHByZWZlcnJlZEZpbGU6IFwiY3JlZGVudGlhbHNcIixcbn07XG5cbmV4cG9ydCBpbnRlcmZhY2UgUmVnaW9uSW5wdXRDb25maWcge1xuICAvKipcbiAgICogVGhlIEFXUyByZWdpb24gdG8gd2hpY2ggdGhpcyBjbGllbnQgd2lsbCBzZW5kIHJlcXVlc3RzXG4gICAqL1xuICByZWdpb24/OiBzdHJpbmcgfCBQcm92aWRlcjxzdHJpbmc+O1xufVxuXG5pbnRlcmZhY2UgUHJldmlvdXNseVJlc29sdmVkIHt9XG5cbmV4cG9ydCBpbnRlcmZhY2UgUmVnaW9uUmVzb2x2ZWRDb25maWcge1xuICByZWdpb246IFByb3ZpZGVyPHN0cmluZz47XG59XG5cbmV4cG9ydCBjb25zdCByZXNvbHZlUmVnaW9uQ29uZmlnID0gPFQ+KGlucHV0OiBUICYgUmVnaW9uSW5wdXRDb25maWcgJiBQcmV2aW91c2x5UmVzb2x2ZWQpOiBUICYgUmVnaW9uUmVzb2x2ZWRDb25maWcgPT4ge1xuICBpZiAoIWlucHV0LnJlZ2lvbikge1xuICAgIHRocm93IG5ldyBFcnJvcihcIlJlZ2lvbiBpcyBtaXNzaW5nXCIpO1xuICB9XG4gIHJldHVybiB7XG4gICAgLi4uaW5wdXQsXG4gICAgcmVnaW9uOiBub3JtYWxpemVSZWdpb24oaW5wdXQucmVnaW9uISksXG4gIH07XG59O1xuXG5jb25zdCBub3JtYWxpemVSZWdpb24gPSAocmVnaW9uOiBzdHJpbmcgfCBQcm92aWRlcjxzdHJpbmc+KTogUHJvdmlkZXI8c3RyaW5nPiA9PiB7XG4gIGlmICh0eXBlb2YgcmVnaW9uID09PSBcInN0cmluZ1wiKSB7XG4gICAgY29uc3QgcHJvbWlzaWZpZWQgPSBQcm9taXNlLnJlc29sdmUocmVnaW9uKTtcbiAgICByZXR1cm4gKCkgPT4gcHJvbWlzaWZpZWQ7XG4gIH1cbiAgcmV0dXJuIHJlZ2lvbiBhcyBQcm92aWRlcjxzdHJpbmc+O1xufTtcbiJdfQ== /***/ }), /***/ "Qll+": /*!**************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/TagResourceCommand.js ***! \**************************************************************************************/ /*! exports provided: TagResourceCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagResourceCommand", function() { return TagResourceCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var TagResourceCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TagResourceCommand, _super); // Start section: command_properties // End section: command_properties function TagResourceCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["TagResourceRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; TagResourceCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1TagResourceCommand"])(input, context); }; TagResourceCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1TagResourceCommand"])(output, context); }; return TagResourceCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=TagResourceCommand.js.map /***/ }), /***/ "Qlnm": /*!*********************************************!*\ !*** ./node_modules/paho-mqtt/paho-mqtt.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /******************************************************************************* * Copyright (c) 2013 IBM Corp. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v1.0 which accompany this distribution. * * The Eclipse Public License is available at * http://www.eclipse.org/legal/epl-v10.html * and the Eclipse Distribution License is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * Contributors: * Andrew Banks - initial API and implementation and initial documentation *******************************************************************************/ // Only expose a single object name in the global namespace. // Everything must go through this module. Global Paho module // only has a single public function, client, which returns // a Paho client object given connection details. /** * Send and receive messages using web browsers. *

* This programming interface lets a JavaScript client application use the MQTT V3.1 or * V3.1.1 protocol to connect to an MQTT-supporting messaging server. * * The function supported includes: *

    *
  1. Connecting to and disconnecting from a server. The server is identified by its host name and port number. *
  2. Specifying options that relate to the communications link with the server, * for example the frequency of keep-alive heartbeats, and whether SSL/TLS is required. *
  3. Subscribing to and receiving messages from MQTT Topics. *
  4. Publishing messages to MQTT Topics. *
*

* The API consists of two main objects: *

*
{@link Paho.Client}
*
This contains methods that provide the functionality of the API, * including provision of callbacks that notify the application when a message * arrives from or is delivered to the messaging server, * or when the status of its connection to the messaging server changes.
*
{@link Paho.Message}
*
This encapsulates the payload of the message along with various attributes * associated with its delivery, in particular the destination to which it has * been (or is about to be) sent.
*
*

* The programming interface validates parameters passed to it, and will throw * an Error containing an error message intended for developer use, if it detects * an error with any parameter. *

* Example: * *

var client = new Paho.MQTT.Client(location.hostname, Number(location.port), "clientId");
client.onConnectionLost = onConnectionLost;
client.onMessageArrived = onMessageArrived;
client.connect({onSuccess:onConnect});

function onConnect() {
  // Once a connection has been made, make a subscription and send a message.
  console.log("onConnect");
  client.subscribe("/World");
  var message = new Paho.MQTT.Message("Hello");
  message.destinationName = "/World";
  client.send(message);
};
function onConnectionLost(responseObject) {
  if (responseObject.errorCode !== 0)
	console.log("onConnectionLost:"+responseObject.errorMessage);
};
function onMessageArrived(message) {
  console.log("onMessageArrived:"+message.payloadString);
  client.disconnect();
};
 * 
* @namespace Paho */ /* jshint shadow:true */ (function ExportLibrary(root, factory) { if(true){ module.exports = factory(); } else {} })(this, function LibraryFactory(){ var PahoMQTT = (function (global) { // Private variables below, these are only visible inside the function closure // which is used to define the module. var version = "@VERSION@-@BUILDLEVEL@"; /** * @private */ var localStorage = global.localStorage || (function () { var data = {}; return { setItem: function (key, item) { data[key] = item; }, getItem: function (key) { return data[key]; }, removeItem: function (key) { delete data[key]; }, }; })(); /** * Unique message type identifiers, with associated * associated integer values. * @private */ var MESSAGE_TYPE = { CONNECT: 1, CONNACK: 2, PUBLISH: 3, PUBACK: 4, PUBREC: 5, PUBREL: 6, PUBCOMP: 7, SUBSCRIBE: 8, SUBACK: 9, UNSUBSCRIBE: 10, UNSUBACK: 11, PINGREQ: 12, PINGRESP: 13, DISCONNECT: 14 }; // Collection of utility methods used to simplify module code // and promote the DRY pattern. /** * Validate an object's parameter names to ensure they * match a list of expected variables name for this option * type. Used to ensure option object passed into the API don't * contain erroneous parameters. * @param {Object} obj - User options object * @param {Object} keys - valid keys and types that may exist in obj. * @throws {Error} Invalid option parameter found. * @private */ var validate = function(obj, keys) { for (var key in obj) { if (obj.hasOwnProperty(key)) { if (keys.hasOwnProperty(key)) { if (typeof obj[key] !== keys[key]) throw new Error(format(ERROR.INVALID_TYPE, [typeof obj[key], key])); } else { var errorStr = "Unknown property, " + key + ". Valid properties are:"; for (var validKey in keys) if (keys.hasOwnProperty(validKey)) errorStr = errorStr+" "+validKey; throw new Error(errorStr); } } } }; /** * Return a new function which runs the user function bound * to a fixed scope. * @param {function} User function * @param {object} Function scope * @return {function} User function bound to another scope * @private */ var scope = function (f, scope) { return function () { return f.apply(scope, arguments); }; }; /** * Unique message type identifiers, with associated * associated integer values. * @private */ var ERROR = { OK: {code:0, text:"AMQJSC0000I OK."}, CONNECT_TIMEOUT: {code:1, text:"AMQJSC0001E Connect timed out."}, SUBSCRIBE_TIMEOUT: {code:2, text:"AMQJS0002E Subscribe timed out."}, UNSUBSCRIBE_TIMEOUT: {code:3, text:"AMQJS0003E Unsubscribe timed out."}, PING_TIMEOUT: {code:4, text:"AMQJS0004E Ping timed out."}, INTERNAL_ERROR: {code:5, text:"AMQJS0005E Internal error. Error Message: {0}, Stack trace: {1}"}, CONNACK_RETURNCODE: {code:6, text:"AMQJS0006E Bad Connack return code:{0} {1}."}, SOCKET_ERROR: {code:7, text:"AMQJS0007E Socket error:{0}."}, SOCKET_CLOSE: {code:8, text:"AMQJS0008I Socket closed."}, MALFORMED_UTF: {code:9, text:"AMQJS0009E Malformed UTF data:{0} {1} {2}."}, UNSUPPORTED: {code:10, text:"AMQJS0010E {0} is not supported by this browser."}, INVALID_STATE: {code:11, text:"AMQJS0011E Invalid state {0}."}, INVALID_TYPE: {code:12, text:"AMQJS0012E Invalid type {0} for {1}."}, INVALID_ARGUMENT: {code:13, text:"AMQJS0013E Invalid argument {0} for {1}."}, UNSUPPORTED_OPERATION: {code:14, text:"AMQJS0014E Unsupported operation."}, INVALID_STORED_DATA: {code:15, text:"AMQJS0015E Invalid data in local storage key={0} value={1}."}, INVALID_MQTT_MESSAGE_TYPE: {code:16, text:"AMQJS0016E Invalid MQTT message type {0}."}, MALFORMED_UNICODE: {code:17, text:"AMQJS0017E Malformed Unicode string:{0} {1}."}, BUFFER_FULL: {code:18, text:"AMQJS0018E Message buffer is full, maximum buffer size: {0}."}, }; /** CONNACK RC Meaning. */ var CONNACK_RC = { 0:"Connection Accepted", 1:"Connection Refused: unacceptable protocol version", 2:"Connection Refused: identifier rejected", 3:"Connection Refused: server unavailable", 4:"Connection Refused: bad user name or password", 5:"Connection Refused: not authorized" }; /** * Format an error message text. * @private * @param {error} ERROR value above. * @param {substitutions} [array] substituted into the text. * @return the text with the substitutions made. */ var format = function(error, substitutions) { var text = error.text; if (substitutions) { var field,start; for (var i=0; i 0) { var part1 = text.substring(0,start); var part2 = text.substring(start+field.length); text = part1+substitutions[i]+part2; } } } return text; }; //MQTT protocol and version 6 M Q I s d p 3 var MqttProtoIdentifierv3 = [0x00,0x06,0x4d,0x51,0x49,0x73,0x64,0x70,0x03]; //MQTT proto/version for 311 4 M Q T T 4 var MqttProtoIdentifierv4 = [0x00,0x04,0x4d,0x51,0x54,0x54,0x04]; /** * Construct an MQTT wire protocol message. * @param type MQTT packet type. * @param options optional wire message attributes. * * Optional properties * * messageIdentifier: message ID in the range [0..65535] * payloadMessage: Application Message - PUBLISH only * connectStrings: array of 0 or more Strings to be put into the CONNECT payload * topics: array of strings (SUBSCRIBE, UNSUBSCRIBE) * requestQoS: array of QoS values [0..2] * * "Flag" properties * cleanSession: true if present / false if absent (CONNECT) * willMessage: true if present / false if absent (CONNECT) * isRetained: true if present / false if absent (CONNECT) * userName: true if present / false if absent (CONNECT) * password: true if present / false if absent (CONNECT) * keepAliveInterval: integer [0..65535] (CONNECT) * * @private * @ignore */ var WireMessage = function (type, options) { this.type = type; for (var name in options) { if (options.hasOwnProperty(name)) { this[name] = options[name]; } } }; WireMessage.prototype.encode = function() { // Compute the first byte of the fixed header var first = ((this.type & 0x0f) << 4); /* * Now calculate the length of the variable header + payload by adding up the lengths * of all the component parts */ var remLength = 0; var topicStrLength = []; var destinationNameLength = 0; var willMessagePayloadBytes; // if the message contains a messageIdentifier then we need two bytes for that if (this.messageIdentifier !== undefined) remLength += 2; switch(this.type) { // If this a Connect then we need to include 12 bytes for its header case MESSAGE_TYPE.CONNECT: switch(this.mqttVersion) { case 3: remLength += MqttProtoIdentifierv3.length + 3; break; case 4: remLength += MqttProtoIdentifierv4.length + 3; break; } remLength += UTF8Length(this.clientId) + 2; if (this.willMessage !== undefined) { remLength += UTF8Length(this.willMessage.destinationName) + 2; // Will message is always a string, sent as UTF-8 characters with a preceding length. willMessagePayloadBytes = this.willMessage.payloadBytes; if (!(willMessagePayloadBytes instanceof Uint8Array)) willMessagePayloadBytes = new Uint8Array(payloadBytes); remLength += willMessagePayloadBytes.byteLength +2; } if (this.userName !== undefined) remLength += UTF8Length(this.userName) + 2; if (this.password !== undefined) remLength += UTF8Length(this.password) + 2; break; // Subscribe, Unsubscribe can both contain topic strings case MESSAGE_TYPE.SUBSCRIBE: first |= 0x02; // Qos = 1; for ( var i = 0; i < this.topics.length; i++) { topicStrLength[i] = UTF8Length(this.topics[i]); remLength += topicStrLength[i] + 2; } remLength += this.requestedQos.length; // 1 byte for each topic's Qos // QoS on Subscribe only break; case MESSAGE_TYPE.UNSUBSCRIBE: first |= 0x02; // Qos = 1; for ( var i = 0; i < this.topics.length; i++) { topicStrLength[i] = UTF8Length(this.topics[i]); remLength += topicStrLength[i] + 2; } break; case MESSAGE_TYPE.PUBREL: first |= 0x02; // Qos = 1; break; case MESSAGE_TYPE.PUBLISH: if (this.payloadMessage.duplicate) first |= 0x08; first = first |= (this.payloadMessage.qos << 1); if (this.payloadMessage.retained) first |= 0x01; destinationNameLength = UTF8Length(this.payloadMessage.destinationName); remLength += destinationNameLength + 2; var payloadBytes = this.payloadMessage.payloadBytes; remLength += payloadBytes.byteLength; if (payloadBytes instanceof ArrayBuffer) payloadBytes = new Uint8Array(payloadBytes); else if (!(payloadBytes instanceof Uint8Array)) payloadBytes = new Uint8Array(payloadBytes.buffer); break; case MESSAGE_TYPE.DISCONNECT: break; default: break; } // Now we can allocate a buffer for the message var mbi = encodeMBI(remLength); // Convert the length to MQTT MBI format var pos = mbi.length + 1; // Offset of start of variable header var buffer = new ArrayBuffer(remLength + pos); var byteStream = new Uint8Array(buffer); // view it as a sequence of bytes //Write the fixed header into the buffer byteStream[0] = first; byteStream.set(mbi,1); // If this is a PUBLISH then the variable header starts with a topic if (this.type == MESSAGE_TYPE.PUBLISH) pos = writeString(this.payloadMessage.destinationName, destinationNameLength, byteStream, pos); // If this is a CONNECT then the variable header contains the protocol name/version, flags and keepalive time else if (this.type == MESSAGE_TYPE.CONNECT) { switch (this.mqttVersion) { case 3: byteStream.set(MqttProtoIdentifierv3, pos); pos += MqttProtoIdentifierv3.length; break; case 4: byteStream.set(MqttProtoIdentifierv4, pos); pos += MqttProtoIdentifierv4.length; break; } var connectFlags = 0; if (this.cleanSession) connectFlags = 0x02; if (this.willMessage !== undefined ) { connectFlags |= 0x04; connectFlags |= (this.willMessage.qos<<3); if (this.willMessage.retained) { connectFlags |= 0x20; } } if (this.userName !== undefined) connectFlags |= 0x80; if (this.password !== undefined) connectFlags |= 0x40; byteStream[pos++] = connectFlags; pos = writeUint16 (this.keepAliveInterval, byteStream, pos); } // Output the messageIdentifier - if there is one if (this.messageIdentifier !== undefined) pos = writeUint16 (this.messageIdentifier, byteStream, pos); switch(this.type) { case MESSAGE_TYPE.CONNECT: pos = writeString(this.clientId, UTF8Length(this.clientId), byteStream, pos); if (this.willMessage !== undefined) { pos = writeString(this.willMessage.destinationName, UTF8Length(this.willMessage.destinationName), byteStream, pos); pos = writeUint16(willMessagePayloadBytes.byteLength, byteStream, pos); byteStream.set(willMessagePayloadBytes, pos); pos += willMessagePayloadBytes.byteLength; } if (this.userName !== undefined) pos = writeString(this.userName, UTF8Length(this.userName), byteStream, pos); if (this.password !== undefined) pos = writeString(this.password, UTF8Length(this.password), byteStream, pos); break; case MESSAGE_TYPE.PUBLISH: // PUBLISH has a text or binary payload, if text do not add a 2 byte length field, just the UTF characters. byteStream.set(payloadBytes, pos); break; // case MESSAGE_TYPE.PUBREC: // case MESSAGE_TYPE.PUBREL: // case MESSAGE_TYPE.PUBCOMP: // break; case MESSAGE_TYPE.SUBSCRIBE: // SUBSCRIBE has a list of topic strings and request QoS for (var i=0; i> 4; var messageInfo = first &= 0x0f; pos += 1; // Decode the remaining length (MBI format) var digit; var remLength = 0; var multiplier = 1; do { if (pos == input.length) { return [null,startingPos]; } digit = input[pos++]; remLength += ((digit & 0x7F) * multiplier); multiplier *= 128; } while ((digit & 0x80) !== 0); var endPos = pos+remLength; if (endPos > input.length) { return [null,startingPos]; } var wireMessage = new WireMessage(type); switch(type) { case MESSAGE_TYPE.CONNACK: var connectAcknowledgeFlags = input[pos++]; if (connectAcknowledgeFlags & 0x01) wireMessage.sessionPresent = true; wireMessage.returnCode = input[pos++]; break; case MESSAGE_TYPE.PUBLISH: var qos = (messageInfo >> 1) & 0x03; var len = readUint16(input, pos); pos += 2; var topicName = parseUTF8(input, pos, len); pos += len; // If QoS 1 or 2 there will be a messageIdentifier if (qos > 0) { wireMessage.messageIdentifier = readUint16(input, pos); pos += 2; } var message = new Message(input.subarray(pos, endPos)); if ((messageInfo & 0x01) == 0x01) message.retained = true; if ((messageInfo & 0x08) == 0x08) message.duplicate = true; message.qos = qos; message.destinationName = topicName; wireMessage.payloadMessage = message; break; case MESSAGE_TYPE.PUBACK: case MESSAGE_TYPE.PUBREC: case MESSAGE_TYPE.PUBREL: case MESSAGE_TYPE.PUBCOMP: case MESSAGE_TYPE.UNSUBACK: wireMessage.messageIdentifier = readUint16(input, pos); break; case MESSAGE_TYPE.SUBACK: wireMessage.messageIdentifier = readUint16(input, pos); pos += 2; wireMessage.returnCode = input.subarray(pos, endPos); break; default: break; } return [wireMessage,endPos]; } function writeUint16(input, buffer, offset) { buffer[offset++] = input >> 8; //MSB buffer[offset++] = input % 256; //LSB return offset; } function writeString(input, utf8Length, buffer, offset) { offset = writeUint16(utf8Length, buffer, offset); stringToUTF8(input, buffer, offset); return offset + utf8Length; } function readUint16(buffer, offset) { return 256*buffer[offset] + buffer[offset+1]; } /** * Encodes an MQTT Multi-Byte Integer * @private */ function encodeMBI(number) { var output = new Array(1); var numBytes = 0; do { var digit = number % 128; number = number >> 7; if (number > 0) { digit |= 0x80; } output[numBytes++] = digit; } while ( (number > 0) && (numBytes<4) ); return output; } /** * Takes a String and calculates its length in bytes when encoded in UTF8. * @private */ function UTF8Length(input) { var output = 0; for (var i = 0; i 0x7FF) { // Surrogate pair means its a 4 byte character if (0xD800 <= charCode && charCode <= 0xDBFF) { i++; output++; } output +=3; } else if (charCode > 0x7F) output +=2; else output++; } return output; } /** * Takes a String and writes it into an array as UTF8 encoded bytes. * @private */ function stringToUTF8(input, output, start) { var pos = start; for (var i = 0; i>6 & 0x1F | 0xC0; output[pos++] = charCode & 0x3F | 0x80; } else if (charCode <= 0xFFFF) { output[pos++] = charCode>>12 & 0x0F | 0xE0; output[pos++] = charCode>>6 & 0x3F | 0x80; output[pos++] = charCode & 0x3F | 0x80; } else { output[pos++] = charCode>>18 & 0x07 | 0xF0; output[pos++] = charCode>>12 & 0x3F | 0x80; output[pos++] = charCode>>6 & 0x3F | 0x80; output[pos++] = charCode & 0x3F | 0x80; } } return output; } function parseUTF8(input, offset, length) { var output = ""; var utf16; var pos = offset; while (pos < offset+length) { var byte1 = input[pos++]; if (byte1 < 128) utf16 = byte1; else { var byte2 = input[pos++]-128; if (byte2 < 0) throw new Error(format(ERROR.MALFORMED_UTF, [byte1.toString(16), byte2.toString(16),""])); if (byte1 < 0xE0) // 2 byte character utf16 = 64*(byte1-0xC0) + byte2; else { var byte3 = input[pos++]-128; if (byte3 < 0) throw new Error(format(ERROR.MALFORMED_UTF, [byte1.toString(16), byte2.toString(16), byte3.toString(16)])); if (byte1 < 0xF0) // 3 byte character utf16 = 4096*(byte1-0xE0) + 64*byte2 + byte3; else { var byte4 = input[pos++]-128; if (byte4 < 0) throw new Error(format(ERROR.MALFORMED_UTF, [byte1.toString(16), byte2.toString(16), byte3.toString(16), byte4.toString(16)])); if (byte1 < 0xF8) // 4 byte character utf16 = 262144*(byte1-0xF0) + 4096*byte2 + 64*byte3 + byte4; else // longer encodings are not supported throw new Error(format(ERROR.MALFORMED_UTF, [byte1.toString(16), byte2.toString(16), byte3.toString(16), byte4.toString(16)])); } } } if (utf16 > 0xFFFF) // 4 byte character - express as a surrogate pair { utf16 -= 0x10000; output += String.fromCharCode(0xD800 + (utf16 >> 10)); // lead character utf16 = 0xDC00 + (utf16 & 0x3FF); // trail character } output += String.fromCharCode(utf16); } return output; } /** * Repeat keepalive requests, monitor responses. * @ignore */ var Pinger = function(client, keepAliveInterval) { this._client = client; this._keepAliveInterval = keepAliveInterval*1000; this.isReset = false; var pingReq = new WireMessage(MESSAGE_TYPE.PINGREQ).encode(); var doTimeout = function (pinger) { return function () { return doPing.apply(pinger); }; }; /** @ignore */ var doPing = function() { if (!this.isReset) { this._client._trace("Pinger.doPing", "Timed out"); this._client._disconnected( ERROR.PING_TIMEOUT.code , format(ERROR.PING_TIMEOUT)); } else { this.isReset = false; this._client._trace("Pinger.doPing", "send PINGREQ"); this._client.socket.send(pingReq); this.timeout = setTimeout(doTimeout(this), this._keepAliveInterval); } }; this.reset = function() { this.isReset = true; clearTimeout(this.timeout); if (this._keepAliveInterval > 0) this.timeout = setTimeout(doTimeout(this), this._keepAliveInterval); }; this.cancel = function() { clearTimeout(this.timeout); }; }; /** * Monitor request completion. * @ignore */ var Timeout = function(client, timeoutSeconds, action, args) { if (!timeoutSeconds) timeoutSeconds = 30; var doTimeout = function (action, client, args) { return function () { return action.apply(client, args); }; }; this.timeout = setTimeout(doTimeout(action, client, args), timeoutSeconds * 1000); this.cancel = function() { clearTimeout(this.timeout); }; }; /** * Internal implementation of the Websockets MQTT V3.1 client. * * @name Paho.ClientImpl @constructor * @param {String} host the DNS nameof the webSocket host. * @param {Number} port the port number for that host. * @param {String} clientId the MQ client identifier. */ var ClientImpl = function (uri, host, port, path, clientId) { // Check dependencies are satisfied in this browser. if (!("WebSocket" in global && global.WebSocket !== null)) { throw new Error(format(ERROR.UNSUPPORTED, ["WebSocket"])); } if (!("ArrayBuffer" in global && global.ArrayBuffer !== null)) { throw new Error(format(ERROR.UNSUPPORTED, ["ArrayBuffer"])); } this._trace("Paho.Client", uri, host, port, path, clientId); this.host = host; this.port = port; this.path = path; this.uri = uri; this.clientId = clientId; this._wsuri = null; // Local storagekeys are qualified with the following string. // The conditional inclusion of path in the key is for backward // compatibility to when the path was not configurable and assumed to // be /mqtt this._localKey=host+":"+port+(path!="/mqtt"?":"+path:"")+":"+clientId+":"; // Create private instance-only message queue // Internal queue of messages to be sent, in sending order. this._msg_queue = []; this._buffered_msg_queue = []; // Messages we have sent and are expecting a response for, indexed by their respective message ids. this._sentMessages = {}; // Messages we have received and acknowleged and are expecting a confirm message for // indexed by their respective message ids. this._receivedMessages = {}; // Internal list of callbacks to be executed when messages // have been successfully sent over web socket, e.g. disconnect // when it doesn't have to wait for ACK, just message is dispatched. this._notify_msg_sent = {}; // Unique identifier for SEND messages, incrementing // counter as messages are sent. this._message_identifier = 1; // Used to determine the transmission sequence of stored sent messages. this._sequence = 0; // Load the local state, if any, from the saved version, only restore state relevant to this client. for (var key in localStorage) if ( key.indexOf("Sent:"+this._localKey) === 0 || key.indexOf("Received:"+this._localKey) === 0) this.restore(key); }; // Messaging Client public instance members. ClientImpl.prototype.host = null; ClientImpl.prototype.port = null; ClientImpl.prototype.path = null; ClientImpl.prototype.uri = null; ClientImpl.prototype.clientId = null; // Messaging Client private instance members. ClientImpl.prototype.socket = null; /* true once we have received an acknowledgement to a CONNECT packet. */ ClientImpl.prototype.connected = false; /* The largest message identifier allowed, may not be larger than 2**16 but * if set smaller reduces the maximum number of outbound messages allowed. */ ClientImpl.prototype.maxMessageIdentifier = 65536; ClientImpl.prototype.connectOptions = null; ClientImpl.prototype.hostIndex = null; ClientImpl.prototype.onConnected = null; ClientImpl.prototype.onConnectionLost = null; ClientImpl.prototype.onMessageDelivered = null; ClientImpl.prototype.onMessageArrived = null; ClientImpl.prototype.traceFunction = null; ClientImpl.prototype._msg_queue = null; ClientImpl.prototype._buffered_msg_queue = null; ClientImpl.prototype._connectTimeout = null; /* The sendPinger monitors how long we allow before we send data to prove to the server that we are alive. */ ClientImpl.prototype.sendPinger = null; /* The receivePinger monitors how long we allow before we require evidence that the server is alive. */ ClientImpl.prototype.receivePinger = null; ClientImpl.prototype._reconnectInterval = 1; // Reconnect Delay, starts at 1 second ClientImpl.prototype._reconnecting = false; ClientImpl.prototype._reconnectTimeout = null; ClientImpl.prototype.disconnectedPublishing = false; ClientImpl.prototype.disconnectedBufferSize = 5000; ClientImpl.prototype.receiveBuffer = null; ClientImpl.prototype._traceBuffer = null; ClientImpl.prototype._MAX_TRACE_ENTRIES = 100; ClientImpl.prototype.connect = function (connectOptions) { var connectOptionsMasked = this._traceMask(connectOptions, "password"); this._trace("Client.connect", connectOptionsMasked, this.socket, this.connected); if (this.connected) throw new Error(format(ERROR.INVALID_STATE, ["already connected"])); if (this.socket) throw new Error(format(ERROR.INVALID_STATE, ["already connected"])); if (this._reconnecting) { // connect() function is called while reconnect is in progress. // Terminate the auto reconnect process to use new connect options. this._reconnectTimeout.cancel(); this._reconnectTimeout = null; this._reconnecting = false; } this.connectOptions = connectOptions; this._reconnectInterval = 1; this._reconnecting = false; if (connectOptions.uris) { this.hostIndex = 0; this._doConnect(connectOptions.uris[0]); } else { this._doConnect(this.uri); } }; ClientImpl.prototype.subscribe = function (filter, subscribeOptions) { this._trace("Client.subscribe", filter, subscribeOptions); if (!this.connected) throw new Error(format(ERROR.INVALID_STATE, ["not connected"])); var wireMessage = new WireMessage(MESSAGE_TYPE.SUBSCRIBE); wireMessage.topics = filter.constructor === Array ? filter : [filter]; if (subscribeOptions.qos === undefined) subscribeOptions.qos = 0; wireMessage.requestedQos = []; for (var i = 0; i < wireMessage.topics.length; i++) wireMessage.requestedQos[i] = subscribeOptions.qos; if (subscribeOptions.onSuccess) { wireMessage.onSuccess = function(grantedQos) {subscribeOptions.onSuccess({invocationContext:subscribeOptions.invocationContext,grantedQos:grantedQos});}; } if (subscribeOptions.onFailure) { wireMessage.onFailure = function(errorCode) {subscribeOptions.onFailure({invocationContext:subscribeOptions.invocationContext,errorCode:errorCode, errorMessage:format(errorCode)});}; } if (subscribeOptions.timeout) { wireMessage.timeOut = new Timeout(this, subscribeOptions.timeout, subscribeOptions.onFailure, [{invocationContext:subscribeOptions.invocationContext, errorCode:ERROR.SUBSCRIBE_TIMEOUT.code, errorMessage:format(ERROR.SUBSCRIBE_TIMEOUT)}]); } // All subscriptions return a SUBACK. this._requires_ack(wireMessage); this._schedule_message(wireMessage); }; /** @ignore */ ClientImpl.prototype.unsubscribe = function(filter, unsubscribeOptions) { this._trace("Client.unsubscribe", filter, unsubscribeOptions); if (!this.connected) throw new Error(format(ERROR.INVALID_STATE, ["not connected"])); var wireMessage = new WireMessage(MESSAGE_TYPE.UNSUBSCRIBE); wireMessage.topics = filter.constructor === Array ? filter : [filter]; if (unsubscribeOptions.onSuccess) { wireMessage.callback = function() {unsubscribeOptions.onSuccess({invocationContext:unsubscribeOptions.invocationContext});}; } if (unsubscribeOptions.timeout) { wireMessage.timeOut = new Timeout(this, unsubscribeOptions.timeout, unsubscribeOptions.onFailure, [{invocationContext:unsubscribeOptions.invocationContext, errorCode:ERROR.UNSUBSCRIBE_TIMEOUT.code, errorMessage:format(ERROR.UNSUBSCRIBE_TIMEOUT)}]); } // All unsubscribes return a SUBACK. this._requires_ack(wireMessage); this._schedule_message(wireMessage); }; ClientImpl.prototype.send = function (message) { this._trace("Client.send", message); var wireMessage = new WireMessage(MESSAGE_TYPE.PUBLISH); wireMessage.payloadMessage = message; if (this.connected) { // Mark qos 1 & 2 message as "ACK required" // For qos 0 message, invoke onMessageDelivered callback if there is one. // Then schedule the message. if (message.qos > 0) { this._requires_ack(wireMessage); } else if (this.onMessageDelivered) { this._notify_msg_sent[wireMessage] = this.onMessageDelivered(wireMessage.payloadMessage); } this._schedule_message(wireMessage); } else { // Currently disconnected, will not schedule this message // Check if reconnecting is in progress and disconnected publish is enabled. if (this._reconnecting && this.disconnectedPublishing) { // Check the limit which include the "required ACK" messages var messageCount = Object.keys(this._sentMessages).length + this._buffered_msg_queue.length; if (messageCount > this.disconnectedBufferSize) { throw new Error(format(ERROR.BUFFER_FULL, [this.disconnectedBufferSize])); } else { if (message.qos > 0) { // Mark this message as "ACK required" this._requires_ack(wireMessage); } else { wireMessage.sequence = ++this._sequence; // Add messages in fifo order to array, by adding to start this._buffered_msg_queue.unshift(wireMessage); } } } else { throw new Error(format(ERROR.INVALID_STATE, ["not connected"])); } } }; ClientImpl.prototype.disconnect = function () { this._trace("Client.disconnect"); if (this._reconnecting) { // disconnect() function is called while reconnect is in progress. // Terminate the auto reconnect process. this._reconnectTimeout.cancel(); this._reconnectTimeout = null; this._reconnecting = false; } if (!this.socket) throw new Error(format(ERROR.INVALID_STATE, ["not connecting or connected"])); var wireMessage = new WireMessage(MESSAGE_TYPE.DISCONNECT); // Run the disconnected call back as soon as the message has been sent, // in case of a failure later on in the disconnect processing. // as a consequence, the _disconected call back may be run several times. this._notify_msg_sent[wireMessage] = scope(this._disconnected, this); this._schedule_message(wireMessage); }; ClientImpl.prototype.getTraceLog = function () { if ( this._traceBuffer !== null ) { this._trace("Client.getTraceLog", new Date()); this._trace("Client.getTraceLog in flight messages", this._sentMessages.length); for (var key in this._sentMessages) this._trace("_sentMessages ",key, this._sentMessages[key]); for (var key in this._receivedMessages) this._trace("_receivedMessages ",key, this._receivedMessages[key]); return this._traceBuffer; } }; ClientImpl.prototype.startTrace = function () { if ( this._traceBuffer === null ) { this._traceBuffer = []; } this._trace("Client.startTrace", new Date(), version); }; ClientImpl.prototype.stopTrace = function () { delete this._traceBuffer; }; ClientImpl.prototype._doConnect = function (wsurl) { // When the socket is open, this client will send the CONNECT WireMessage using the saved parameters. if (this.connectOptions.useSSL) { var uriParts = wsurl.split(":"); uriParts[0] = "wss"; wsurl = uriParts.join(":"); } this._wsuri = wsurl; this.connected = false; if (this.connectOptions.mqttVersion < 4) { this.socket = new WebSocket(wsurl, ["mqttv3.1"]); } else { this.socket = new WebSocket(wsurl, ["mqtt"]); } this.socket.binaryType = "arraybuffer"; this.socket.onopen = scope(this._on_socket_open, this); this.socket.onmessage = scope(this._on_socket_message, this); this.socket.onerror = scope(this._on_socket_error, this); this.socket.onclose = scope(this._on_socket_close, this); this.sendPinger = new Pinger(this, this.connectOptions.keepAliveInterval); this.receivePinger = new Pinger(this, this.connectOptions.keepAliveInterval); if (this._connectTimeout) { this._connectTimeout.cancel(); this._connectTimeout = null; } this._connectTimeout = new Timeout(this, this.connectOptions.timeout, this._disconnected, [ERROR.CONNECT_TIMEOUT.code, format(ERROR.CONNECT_TIMEOUT)]); }; // Schedule a new message to be sent over the WebSockets // connection. CONNECT messages cause WebSocket connection // to be started. All other messages are queued internally // until this has happened. When WS connection starts, process // all outstanding messages. ClientImpl.prototype._schedule_message = function (message) { // Add messages in fifo order to array, by adding to start this._msg_queue.unshift(message); // Process outstanding messages in the queue if we have an open socket, and have received CONNACK. if (this.connected) { this._process_queue(); } }; ClientImpl.prototype.store = function(prefix, wireMessage) { var storedMessage = {type:wireMessage.type, messageIdentifier:wireMessage.messageIdentifier, version:1}; switch(wireMessage.type) { case MESSAGE_TYPE.PUBLISH: if(wireMessage.pubRecReceived) storedMessage.pubRecReceived = true; // Convert the payload to a hex string. storedMessage.payloadMessage = {}; var hex = ""; var messageBytes = wireMessage.payloadMessage.payloadBytes; for (var i=0; i= 2) { var x = parseInt(hex.substring(0, 2), 16); hex = hex.substring(2, hex.length); byteStream[i++] = x; } var payloadMessage = new Message(byteStream); payloadMessage.qos = storedMessage.payloadMessage.qos; payloadMessage.destinationName = storedMessage.payloadMessage.destinationName; if (storedMessage.payloadMessage.duplicate) payloadMessage.duplicate = true; if (storedMessage.payloadMessage.retained) payloadMessage.retained = true; wireMessage.payloadMessage = payloadMessage; break; default: throw Error(format(ERROR.INVALID_STORED_DATA, [key, value])); } if (key.indexOf("Sent:"+this._localKey) === 0) { wireMessage.payloadMessage.duplicate = true; this._sentMessages[wireMessage.messageIdentifier] = wireMessage; } else if (key.indexOf("Received:"+this._localKey) === 0) { this._receivedMessages[wireMessage.messageIdentifier] = wireMessage; } }; ClientImpl.prototype._process_queue = function () { var message = null; // Send all queued messages down socket connection while ((message = this._msg_queue.pop())) { this._socket_send(message); // Notify listeners that message was successfully sent if (this._notify_msg_sent[message]) { this._notify_msg_sent[message](); delete this._notify_msg_sent[message]; } } }; /** * Expect an ACK response for this message. Add message to the set of in progress * messages and set an unused identifier in this message. * @ignore */ ClientImpl.prototype._requires_ack = function (wireMessage) { var messageCount = Object.keys(this._sentMessages).length; if (messageCount > this.maxMessageIdentifier) throw Error ("Too many messages:"+messageCount); while(this._sentMessages[this._message_identifier] !== undefined) { this._message_identifier++; } wireMessage.messageIdentifier = this._message_identifier; this._sentMessages[wireMessage.messageIdentifier] = wireMessage; if (wireMessage.type === MESSAGE_TYPE.PUBLISH) { this.store("Sent:", wireMessage); } if (this._message_identifier === this.maxMessageIdentifier) { this._message_identifier = 1; } }; /** * Called when the underlying websocket has been opened. * @ignore */ ClientImpl.prototype._on_socket_open = function () { // Create the CONNECT message object. var wireMessage = new WireMessage(MESSAGE_TYPE.CONNECT, this.connectOptions); wireMessage.clientId = this.clientId; this._socket_send(wireMessage); }; /** * Called when the underlying websocket has received a complete packet. * @ignore */ ClientImpl.prototype._on_socket_message = function (event) { this._trace("Client._on_socket_message", event.data); var messages = this._deframeMessages(event.data); for (var i = 0; i < messages.length; i+=1) { this._handleMessage(messages[i]); } }; ClientImpl.prototype._deframeMessages = function(data) { var byteArray = new Uint8Array(data); var messages = []; if (this.receiveBuffer) { var newData = new Uint8Array(this.receiveBuffer.length+byteArray.length); newData.set(this.receiveBuffer); newData.set(byteArray,this.receiveBuffer.length); byteArray = newData; delete this.receiveBuffer; } try { var offset = 0; while(offset < byteArray.length) { var result = decodeMessage(byteArray,offset); var wireMessage = result[0]; offset = result[1]; if (wireMessage !== null) { messages.push(wireMessage); } else { break; } } if (offset < byteArray.length) { this.receiveBuffer = byteArray.subarray(offset); } } catch (error) { var errorStack = ((error.hasOwnProperty("stack") == "undefined") ? error.stack.toString() : "No Error Stack Available"); this._disconnected(ERROR.INTERNAL_ERROR.code , format(ERROR.INTERNAL_ERROR, [error.message,errorStack])); return; } return messages; }; ClientImpl.prototype._handleMessage = function(wireMessage) { this._trace("Client._handleMessage", wireMessage); try { switch(wireMessage.type) { case MESSAGE_TYPE.CONNACK: this._connectTimeout.cancel(); if (this._reconnectTimeout) this._reconnectTimeout.cancel(); // If we have started using clean session then clear up the local state. if (this.connectOptions.cleanSession) { for (var key in this._sentMessages) { var sentMessage = this._sentMessages[key]; localStorage.removeItem("Sent:"+this._localKey+sentMessage.messageIdentifier); } this._sentMessages = {}; for (var key in this._receivedMessages) { var receivedMessage = this._receivedMessages[key]; localStorage.removeItem("Received:"+this._localKey+receivedMessage.messageIdentifier); } this._receivedMessages = {}; } // Client connected and ready for business. if (wireMessage.returnCode === 0) { this.connected = true; // Jump to the end of the list of uris and stop looking for a good host. if (this.connectOptions.uris) this.hostIndex = this.connectOptions.uris.length; } else { this._disconnected(ERROR.CONNACK_RETURNCODE.code , format(ERROR.CONNACK_RETURNCODE, [wireMessage.returnCode, CONNACK_RC[wireMessage.returnCode]])); break; } // Resend messages. var sequencedMessages = []; for (var msgId in this._sentMessages) { if (this._sentMessages.hasOwnProperty(msgId)) sequencedMessages.push(this._sentMessages[msgId]); } // Also schedule qos 0 buffered messages if any if (this._buffered_msg_queue.length > 0) { var msg = null; while ((msg = this._buffered_msg_queue.pop())) { sequencedMessages.push(msg); if (this.onMessageDelivered) this._notify_msg_sent[msg] = this.onMessageDelivered(msg.payloadMessage); } } // Sort sentMessages into the original sent order. var sequencedMessages = sequencedMessages.sort(function(a,b) {return a.sequence - b.sequence;} ); for (var i=0, len=sequencedMessages.length; i * Most applications will create just one Client object and then call its connect() method, * however applications can create more than one Client object if they wish. * In this case the combination of host, port and clientId attributes must be different for each Client object. *

* The send, subscribe and unsubscribe methods are implemented as asynchronous JavaScript methods * (even though the underlying protocol exchange might be synchronous in nature). * This means they signal their completion by calling back to the application, * via Success or Failure callback functions provided by the application on the method in question. * Such callbacks are called at most once per method invocation and do not persist beyond the lifetime * of the script that made the invocation. *

* In contrast there are some callback functions, most notably onMessageArrived, * that are defined on the {@link Paho.Client} object. * These may get called multiple times, and aren't directly related to specific method invocations made by the client. * * @name Paho.Client * * @constructor * * @param {string} host - the address of the messaging server, as a fully qualified WebSocket URI, as a DNS name or dotted decimal IP address. * @param {number} port - the port number to connect to - only required if host is not a URI * @param {string} path - the path on the host to connect to - only used if host is not a URI. Default: '/mqtt'. * @param {string} clientId - the Messaging client identifier, between 1 and 23 characters in length. * * @property {string} host - read only the server's DNS hostname or dotted decimal IP address. * @property {number} port - read only the server's port. * @property {string} path - read only the server's path. * @property {string} clientId - read only used when connecting to the server. * @property {function} onConnectionLost - called when a connection has been lost. * after a connect() method has succeeded. * Establish the call back used when a connection has been lost. The connection may be * lost because the client initiates a disconnect or because the server or network * cause the client to be disconnected. The disconnect call back may be called without * the connectionComplete call back being invoked if, for example the client fails to * connect. * A single response object parameter is passed to the onConnectionLost callback containing the following fields: *

    *
  1. errorCode *
  2. errorMessage *
* @property {function} onMessageDelivered - called when a message has been delivered. * All processing that this Client will ever do has been completed. So, for example, * in the case of a Qos=2 message sent by this client, the PubComp flow has been received from the server * and the message has been removed from persistent storage before this callback is invoked. * Parameters passed to the onMessageDelivered callback are: *
    *
  1. {@link Paho.Message} that was delivered. *
* @property {function} onMessageArrived - called when a message has arrived in this Paho.client. * Parameters passed to the onMessageArrived callback are: *
    *
  1. {@link Paho.Message} that has arrived. *
* @property {function} onConnected - called when a connection is successfully made to the server. * after a connect() method. * Parameters passed to the onConnected callback are: *
    *
  1. reconnect (boolean) - If true, the connection was the result of a reconnect.
  2. *
  3. URI (string) - The URI used to connect to the server.
  4. *
* @property {boolean} disconnectedPublishing - if set, will enable disconnected publishing in * in the event that the connection to the server is lost. * @property {number} disconnectedBufferSize - Used to set the maximum number of messages that the disconnected * buffer will hold before rejecting new messages. Default size: 5000 messages * @property {function} trace - called whenever trace is called. TODO */ var Client = function (host, port, path, clientId) { var uri; if (typeof host !== "string") throw new Error(format(ERROR.INVALID_TYPE, [typeof host, "host"])); if (arguments.length == 2) { // host: must be full ws:// uri // port: clientId clientId = port; uri = host; var match = uri.match(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/); if (match) { host = match[4]||match[2]; port = parseInt(match[7]); path = match[8]; } else { throw new Error(format(ERROR.INVALID_ARGUMENT,[host,"host"])); } } else { if (arguments.length == 3) { clientId = path; path = "/mqtt"; } if (typeof port !== "number" || port < 0) throw new Error(format(ERROR.INVALID_TYPE, [typeof port, "port"])); if (typeof path !== "string") throw new Error(format(ERROR.INVALID_TYPE, [typeof path, "path"])); var ipv6AddSBracket = (host.indexOf(":") !== -1 && host.slice(0,1) !== "[" && host.slice(-1) !== "]"); uri = "ws://"+(ipv6AddSBracket?"["+host+"]":host)+":"+port+path; } var clientIdLength = 0; for (var i = 0; i 65535) throw new Error(format(ERROR.INVALID_ARGUMENT, [clientId, "clientId"])); var client = new ClientImpl(uri, host, port, path, clientId); //Public Properties Object.defineProperties(this,{ "host":{ get: function() { return host; }, set: function() { throw new Error(format(ERROR.UNSUPPORTED_OPERATION)); } }, "port":{ get: function() { return port; }, set: function() { throw new Error(format(ERROR.UNSUPPORTED_OPERATION)); } }, "path":{ get: function() { return path; }, set: function() { throw new Error(format(ERROR.UNSUPPORTED_OPERATION)); } }, "uri":{ get: function() { return uri; }, set: function() { throw new Error(format(ERROR.UNSUPPORTED_OPERATION)); } }, "clientId":{ get: function() { return client.clientId; }, set: function() { throw new Error(format(ERROR.UNSUPPORTED_OPERATION)); } }, "onConnected":{ get: function() { return client.onConnected; }, set: function(newOnConnected) { if (typeof newOnConnected === "function") client.onConnected = newOnConnected; else throw new Error(format(ERROR.INVALID_TYPE, [typeof newOnConnected, "onConnected"])); } }, "disconnectedPublishing":{ get: function() { return client.disconnectedPublishing; }, set: function(newDisconnectedPublishing) { client.disconnectedPublishing = newDisconnectedPublishing; } }, "disconnectedBufferSize":{ get: function() { return client.disconnectedBufferSize; }, set: function(newDisconnectedBufferSize) { client.disconnectedBufferSize = newDisconnectedBufferSize; } }, "onConnectionLost":{ get: function() { return client.onConnectionLost; }, set: function(newOnConnectionLost) { if (typeof newOnConnectionLost === "function") client.onConnectionLost = newOnConnectionLost; else throw new Error(format(ERROR.INVALID_TYPE, [typeof newOnConnectionLost, "onConnectionLost"])); } }, "onMessageDelivered":{ get: function() { return client.onMessageDelivered; }, set: function(newOnMessageDelivered) { if (typeof newOnMessageDelivered === "function") client.onMessageDelivered = newOnMessageDelivered; else throw new Error(format(ERROR.INVALID_TYPE, [typeof newOnMessageDelivered, "onMessageDelivered"])); } }, "onMessageArrived":{ get: function() { return client.onMessageArrived; }, set: function(newOnMessageArrived) { if (typeof newOnMessageArrived === "function") client.onMessageArrived = newOnMessageArrived; else throw new Error(format(ERROR.INVALID_TYPE, [typeof newOnMessageArrived, "onMessageArrived"])); } }, "trace":{ get: function() { return client.traceFunction; }, set: function(trace) { if(typeof trace === "function"){ client.traceFunction = trace; }else{ throw new Error(format(ERROR.INVALID_TYPE, [typeof trace, "onTrace"])); } } }, }); /** * Connect this Messaging client to its server. * * @name Paho.Client#connect * @function * @param {object} connectOptions - Attributes used with the connection. * @param {number} connectOptions.timeout - If the connect has not succeeded within this * number of seconds, it is deemed to have failed. * The default is 30 seconds. * @param {string} connectOptions.userName - Authentication username for this connection. * @param {string} connectOptions.password - Authentication password for this connection. * @param {Paho.Message} connectOptions.willMessage - sent by the server when the client * disconnects abnormally. * @param {number} connectOptions.keepAliveInterval - the server disconnects this client if * there is no activity for this number of seconds. * The default value of 60 seconds is assumed if not set. * @param {boolean} connectOptions.cleanSession - if true(default) the client and server * persistent state is deleted on successful connect. * @param {boolean} connectOptions.useSSL - if present and true, use an SSL Websocket connection. * @param {object} connectOptions.invocationContext - passed to the onSuccess callback or onFailure callback. * @param {function} connectOptions.onSuccess - called when the connect acknowledgement * has been received from the server. * A single response object parameter is passed to the onSuccess callback containing the following fields: *
    *
  1. invocationContext as passed in to the onSuccess method in the connectOptions. *
* @param {function} connectOptions.onFailure - called when the connect request has failed or timed out. * A single response object parameter is passed to the onFailure callback containing the following fields: *
    *
  1. invocationContext as passed in to the onFailure method in the connectOptions. *
  2. errorCode a number indicating the nature of the error. *
  3. errorMessage text describing the error. *
* @param {array} connectOptions.hosts - If present this contains either a set of hostnames or fully qualified * WebSocket URIs (ws://iot.eclipse.org:80/ws), that are tried in order in place * of the host and port paramater on the construtor. The hosts are tried one at at time in order until * one of then succeeds. * @param {array} connectOptions.ports - If present the set of ports matching the hosts. If hosts contains URIs, this property * is not used. * @param {boolean} connectOptions.reconnect - Sets whether the client will automatically attempt to reconnect * to the server if the connection is lost. *
    *
  • If set to false, the client will not attempt to automatically reconnect to the server in the event that the * connection is lost.
  • *
  • If set to true, in the event that the connection is lost, the client will attempt to reconnect to the server. * It will initially wait 1 second before it attempts to reconnect, for every failed reconnect attempt, the delay * will double until it is at 2 minutes at which point the delay will stay at 2 minutes.
  • *
* @param {number} connectOptions.mqttVersion - The version of MQTT to use to connect to the MQTT Broker. *
    *
  • 3 - MQTT V3.1
  • *
  • 4 - MQTT V3.1.1
  • *
* @param {boolean} connectOptions.mqttVersionExplicit - If set to true, will force the connection to use the * selected MQTT Version or will fail to connect. * @param {array} connectOptions.uris - If present, should contain a list of fully qualified WebSocket uris * (e.g. ws://iot.eclipse.org:80/ws), that are tried in order in place of the host and port parameter of the construtor. * The uris are tried one at a time in order until one of them succeeds. Do not use this in conjunction with hosts as * the hosts array will be converted to uris and will overwrite this property. * @throws {InvalidState} If the client is not in disconnected state. The client must have received connectionLost * or disconnected before calling connect for a second or subsequent time. */ this.connect = function (connectOptions) { connectOptions = connectOptions || {} ; validate(connectOptions, {timeout:"number", userName:"string", password:"string", willMessage:"object", keepAliveInterval:"number", cleanSession:"boolean", useSSL:"boolean", invocationContext:"object", onSuccess:"function", onFailure:"function", hosts:"object", ports:"object", reconnect:"boolean", mqttVersion:"number", mqttVersionExplicit:"boolean", uris: "object"}); // If no keep alive interval is set, assume 60 seconds. if (connectOptions.keepAliveInterval === undefined) connectOptions.keepAliveInterval = 60; if (connectOptions.mqttVersion > 4 || connectOptions.mqttVersion < 3) { throw new Error(format(ERROR.INVALID_ARGUMENT, [connectOptions.mqttVersion, "connectOptions.mqttVersion"])); } if (connectOptions.mqttVersion === undefined) { connectOptions.mqttVersionExplicit = false; connectOptions.mqttVersion = 4; } else { connectOptions.mqttVersionExplicit = true; } //Check that if password is set, so is username if (connectOptions.password !== undefined && connectOptions.userName === undefined) throw new Error(format(ERROR.INVALID_ARGUMENT, [connectOptions.password, "connectOptions.password"])); if (connectOptions.willMessage) { if (!(connectOptions.willMessage instanceof Message)) throw new Error(format(ERROR.INVALID_TYPE, [connectOptions.willMessage, "connectOptions.willMessage"])); // The will message must have a payload that can be represented as a string. // Cause the willMessage to throw an exception if this is not the case. connectOptions.willMessage.stringPayload = null; if (typeof connectOptions.willMessage.destinationName === "undefined") throw new Error(format(ERROR.INVALID_TYPE, [typeof connectOptions.willMessage.destinationName, "connectOptions.willMessage.destinationName"])); } if (typeof connectOptions.cleanSession === "undefined") connectOptions.cleanSession = true; if (connectOptions.hosts) { if (!(connectOptions.hosts instanceof Array) ) throw new Error(format(ERROR.INVALID_ARGUMENT, [connectOptions.hosts, "connectOptions.hosts"])); if (connectOptions.hosts.length <1 ) throw new Error(format(ERROR.INVALID_ARGUMENT, [connectOptions.hosts, "connectOptions.hosts"])); var usingURIs = false; for (var i = 0; i * @param {object} subscribeOptions - used to control the subscription * * @param {number} subscribeOptions.qos - the maximum qos of any publications sent * as a result of making this subscription. * @param {object} subscribeOptions.invocationContext - passed to the onSuccess callback * or onFailure callback. * @param {function} subscribeOptions.onSuccess - called when the subscribe acknowledgement * has been received from the server. * A single response object parameter is passed to the onSuccess callback containing the following fields: *
    *
  1. invocationContext if set in the subscribeOptions. *
* @param {function} subscribeOptions.onFailure - called when the subscribe request has failed or timed out. * A single response object parameter is passed to the onFailure callback containing the following fields: *
    *
  1. invocationContext - if set in the subscribeOptions. *
  2. errorCode - a number indicating the nature of the error. *
  3. errorMessage - text describing the error. *
* @param {number} subscribeOptions.timeout - which, if present, determines the number of * seconds after which the onFailure calback is called. * The presence of a timeout does not prevent the onSuccess * callback from being called when the subscribe completes. * @throws {InvalidState} if the client is not in connected state. */ this.subscribe = function (filter, subscribeOptions) { if (typeof filter !== "string" && filter.constructor !== Array) throw new Error("Invalid argument:"+filter); subscribeOptions = subscribeOptions || {} ; validate(subscribeOptions, {qos:"number", invocationContext:"object", onSuccess:"function", onFailure:"function", timeout:"number" }); if (subscribeOptions.timeout && !subscribeOptions.onFailure) throw new Error("subscribeOptions.timeout specified with no onFailure callback."); if (typeof subscribeOptions.qos !== "undefined" && !(subscribeOptions.qos === 0 || subscribeOptions.qos === 1 || subscribeOptions.qos === 2 )) throw new Error(format(ERROR.INVALID_ARGUMENT, [subscribeOptions.qos, "subscribeOptions.qos"])); client.subscribe(filter, subscribeOptions); }; /** * Unsubscribe for messages, stop receiving messages sent to destinations described by the filter. * * @name Paho.Client#unsubscribe * @function * @param {string} filter - describing the destinations to receive messages from. * @param {object} unsubscribeOptions - used to control the subscription * @param {object} unsubscribeOptions.invocationContext - passed to the onSuccess callback or onFailure callback. * @param {function} unsubscribeOptions.onSuccess - called when the unsubscribe acknowledgement has been received from the server. * A single response object parameter is passed to the * onSuccess callback containing the following fields: *
    *
  1. invocationContext - if set in the unsubscribeOptions. *
* @param {function} unsubscribeOptions.onFailure called when the unsubscribe request has failed or timed out. * A single response object parameter is passed to the onFailure callback containing the following fields: *
    *
  1. invocationContext - if set in the unsubscribeOptions. *
  2. errorCode - a number indicating the nature of the error. *
  3. errorMessage - text describing the error. *
* @param {number} unsubscribeOptions.timeout - which, if present, determines the number of seconds * after which the onFailure callback is called. The presence of * a timeout does not prevent the onSuccess callback from being * called when the unsubscribe completes * @throws {InvalidState} if the client is not in connected state. */ this.unsubscribe = function (filter, unsubscribeOptions) { if (typeof filter !== "string" && filter.constructor !== Array) throw new Error("Invalid argument:"+filter); unsubscribeOptions = unsubscribeOptions || {} ; validate(unsubscribeOptions, {invocationContext:"object", onSuccess:"function", onFailure:"function", timeout:"number" }); if (unsubscribeOptions.timeout && !unsubscribeOptions.onFailure) throw new Error("unsubscribeOptions.timeout specified with no onFailure callback."); client.unsubscribe(filter, unsubscribeOptions); }; /** * Send a message to the consumers of the destination in the Message. * * @name Paho.Client#send * @function * @param {string|Paho.Message} topic - mandatory The name of the destination to which the message is to be sent. * - If it is the only parameter, used as Paho.Message object. * @param {String|ArrayBuffer} payload - The message data to be sent. * @param {number} qos The Quality of Service used to deliver the message. *
*
0 Best effort (default). *
1 At least once. *
2 Exactly once. *
* @param {Boolean} retained If true, the message is to be retained by the server and delivered * to both current and future subscriptions. * If false the server only delivers the message to current subscribers, this is the default for new Messages. * A received message has the retained boolean set to true if the message was published * with the retained boolean set to true * and the subscrption was made after the message has been published. * @throws {InvalidState} if the client is not connected. */ this.send = function (topic,payload,qos,retained) { var message ; if(arguments.length === 0){ throw new Error("Invalid argument."+"length"); }else if(arguments.length == 1) { if (!(topic instanceof Message) && (typeof topic !== "string")) throw new Error("Invalid argument:"+ typeof topic); message = topic; if (typeof message.destinationName === "undefined") throw new Error(format(ERROR.INVALID_ARGUMENT,[message.destinationName,"Message.destinationName"])); client.send(message); }else { //parameter checking in Message object message = new Message(payload); message.destinationName = topic; if(arguments.length >= 3) message.qos = qos; if(arguments.length >= 4) message.retained = retained; client.send(message); } }; /** * Publish a message to the consumers of the destination in the Message. * Synonym for Paho.Mqtt.Client#send * * @name Paho.Client#publish * @function * @param {string|Paho.Message} topic - mandatory The name of the topic to which the message is to be published. * - If it is the only parameter, used as Paho.Message object. * @param {String|ArrayBuffer} payload - The message data to be published. * @param {number} qos The Quality of Service used to deliver the message. *
*
0 Best effort (default). *
1 At least once. *
2 Exactly once. *
* @param {Boolean} retained If true, the message is to be retained by the server and delivered * to both current and future subscriptions. * If false the server only delivers the message to current subscribers, this is the default for new Messages. * A received message has the retained boolean set to true if the message was published * with the retained boolean set to true * and the subscrption was made after the message has been published. * @throws {InvalidState} if the client is not connected. */ this.publish = function(topic,payload,qos,retained) { var message ; if(arguments.length === 0){ throw new Error("Invalid argument."+"length"); }else if(arguments.length == 1) { if (!(topic instanceof Message) && (typeof topic !== "string")) throw new Error("Invalid argument:"+ typeof topic); message = topic; if (typeof message.destinationName === "undefined") throw new Error(format(ERROR.INVALID_ARGUMENT,[message.destinationName,"Message.destinationName"])); client.send(message); }else { //parameter checking in Message object message = new Message(payload); message.destinationName = topic; if(arguments.length >= 3) message.qos = qos; if(arguments.length >= 4) message.retained = retained; client.send(message); } }; /** * Normal disconnect of this Messaging client from its server. * * @name Paho.Client#disconnect * @function * @throws {InvalidState} if the client is already disconnected. */ this.disconnect = function () { client.disconnect(); }; /** * Get the contents of the trace log. * * @name Paho.Client#getTraceLog * @function * @return {Object[]} tracebuffer containing the time ordered trace records. */ this.getTraceLog = function () { return client.getTraceLog(); }; /** * Start tracing. * * @name Paho.Client#startTrace * @function */ this.startTrace = function () { client.startTrace(); }; /** * Stop tracing. * * @name Paho.Client#stopTrace * @function */ this.stopTrace = function () { client.stopTrace(); }; this.isConnected = function() { return client.connected; }; }; /** * An application message, sent or received. *

* All attributes may be null, which implies the default values. * * @name Paho.Message * @constructor * @param {String|ArrayBuffer} payload The message data to be sent. *

* @property {string} payloadString read only The payload as a string if the payload consists of valid UTF-8 characters. * @property {ArrayBuffer} payloadBytes read only The payload as an ArrayBuffer. *

* @property {string} destinationName mandatory The name of the destination to which the message is to be sent * (for messages about to be sent) or the name of the destination from which the message has been received. * (for messages received by the onMessage function). *

* @property {number} qos The Quality of Service used to deliver the message. *

*
0 Best effort (default). *
1 At least once. *
2 Exactly once. *
*

* @property {Boolean} retained If true, the message is to be retained by the server and delivered * to both current and future subscriptions. * If false the server only delivers the message to current subscribers, this is the default for new Messages. * A received message has the retained boolean set to true if the message was published * with the retained boolean set to true * and the subscrption was made after the message has been published. *

* @property {Boolean} duplicate read only If true, this message might be a duplicate of one which has already been received. * This is only set on messages received from the server. * */ var Message = function (newPayload) { var payload; if ( typeof newPayload === "string" || newPayload instanceof ArrayBuffer || (ArrayBuffer.isView(newPayload) && !(newPayload instanceof DataView)) ) { payload = newPayload; } else { throw (format(ERROR.INVALID_ARGUMENT, [newPayload, "newPayload"])); } var destinationName; var qos = 0; var retained = false; var duplicate = false; Object.defineProperties(this,{ "payloadString":{ enumerable : true, get : function () { if (typeof payload === "string") return payload; else return parseUTF8(payload, 0, payload.length); } }, "payloadBytes":{ enumerable: true, get: function() { if (typeof payload === "string") { var buffer = new ArrayBuffer(UTF8Length(payload)); var byteStream = new Uint8Array(buffer); stringToUTF8(payload, byteStream, 0); return byteStream; } else { return payload; } } }, "destinationName":{ enumerable: true, get: function() { return destinationName; }, set: function(newDestinationName) { if (typeof newDestinationName === "string") destinationName = newDestinationName; else throw new Error(format(ERROR.INVALID_ARGUMENT, [newDestinationName, "newDestinationName"])); } }, "qos":{ enumerable: true, get: function() { return qos; }, set: function(newQos) { if (newQos === 0 || newQos === 1 || newQos === 2 ) qos = newQos; else throw new Error("Invalid argument:"+newQos); } }, "retained":{ enumerable: true, get: function() { return retained; }, set: function(newRetained) { if (typeof newRetained === "boolean") retained = newRetained; else throw new Error(format(ERROR.INVALID_ARGUMENT, [newRetained, "newRetained"])); } }, "topic":{ enumerable: true, get: function() { return destinationName; }, set: function(newTopic) {destinationName=newTopic;} }, "duplicate":{ enumerable: true, get: function() { return duplicate; }, set: function(newDuplicate) {duplicate=newDuplicate;} } }); }; // Module contents. return { Client: Client, Message: Message }; // eslint-disable-next-line no-nested-ternary })(typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}); return PahoMQTT; }); /***/ }), /***/ "Qn8I": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/using.js ***! \*****************************************************************/ /*! exports provided: using */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "using", function() { return using; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./from */ "Cfvw"); /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./empty */ "EY2u"); function using(resourceFactory, observableFactory) { return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => { let resource; try { resource = resourceFactory(); } catch (err) { subscriber.error(err); return undefined; } let result; try { result = observableFactory(resource); } catch (err) { subscriber.error(err); return undefined; } const source = result ? Object(_from__WEBPACK_IMPORTED_MODULE_1__["from"])(result) : _empty__WEBPACK_IMPORTED_MODULE_2__["EMPTY"]; const subscription = source.subscribe(subscriber); return () => { subscription.unsubscribe(); if (resource) { resource.unsubscribe(); } }; }); } //# sourceMappingURL=using.js.map /***/ }), /***/ "QoRX": /*!*******************************************!*\ !*** ./node_modules/lodash/_arraySome.js ***! \*******************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * A specialized version of `_.some` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {boolean} Returns `true` if any element passes the predicate check, * else `false`. */ function arraySome(array, predicate) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (predicate(array[index], index, array)) { return true; } } return false; } module.exports = arraySome; /***/ }), /***/ "QqCr": /*!************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/bindCallback.js ***! \************************************************************************/ /*! exports provided: bindCallback */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bindCallback", function() { return bindCallback; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../AsyncSubject */ "NHP+"); /* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operators/map */ "lJxs"); /* harmony import */ var _util_canReportError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/canReportError */ "8Qeq"); /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/isArray */ "DH7j"); /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro"); function bindCallback(callbackFunc, resultSelector, scheduler) { if (resultSelector) { if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_5__["isScheduler"])(resultSelector)) { scheduler = resultSelector; } else { return (...args) => bindCallback(callbackFunc, scheduler)(...args).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_2__["map"])((args) => Object(_util_isArray__WEBPACK_IMPORTED_MODULE_4__["isArray"])(args) ? resultSelector(...args) : resultSelector(args))); } } return function (...args) { const context = this; let subject; const params = { context, subject, callbackFunc, scheduler, }; return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => { if (!scheduler) { if (!subject) { subject = new _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__["AsyncSubject"](); const handler = (...innerArgs) => { subject.next(innerArgs.length <= 1 ? innerArgs[0] : innerArgs); subject.complete(); }; try { callbackFunc.apply(context, [...args, handler]); } catch (err) { if (Object(_util_canReportError__WEBPACK_IMPORTED_MODULE_3__["canReportError"])(subject)) { subject.error(err); } else { console.warn(err); } } } return subject.subscribe(subscriber); } else { const state = { args, subscriber, params, }; return scheduler.schedule(dispatch, 0, state); } }); }; } function dispatch(state) { const self = this; const { args, subscriber, params } = state; const { callbackFunc, context, scheduler } = params; let { subject } = params; if (!subject) { subject = params.subject = new _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__["AsyncSubject"](); const handler = (...innerArgs) => { const value = innerArgs.length <= 1 ? innerArgs[0] : innerArgs; this.add(scheduler.schedule(dispatchNext, 0, { value, subject })); }; try { callbackFunc.apply(context, [...args, handler]); } catch (err) { subject.error(err); } } this.add(subject.subscribe(subscriber)); } function dispatchNext(state) { const { value, subject } = state; subject.next(value); subject.complete(); } function dispatchError(state) { const { err, subject } = state; subject.error(err); } //# sourceMappingURL=bindCallback.js.map /***/ }), /***/ "QqLw": /*!****************************************!*\ !*** ./node_modules/lodash/_getTag.js ***! \****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var DataView = __webpack_require__(/*! ./_DataView */ "tadb"), Map = __webpack_require__(/*! ./_Map */ "ebwN"), Promise = __webpack_require__(/*! ./_Promise */ "HOxn"), Set = __webpack_require__(/*! ./_Set */ "yGk4"), WeakMap = __webpack_require__(/*! ./_WeakMap */ "Of+w"), baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "NykK"), toSource = __webpack_require__(/*! ./_toSource */ "3Fdi"); /** `Object#toString` result references. */ var mapTag = '[object Map]', objectTag = '[object Object]', promiseTag = '[object Promise]', setTag = '[object Set]', weakMapTag = '[object WeakMap]'; var dataViewTag = '[object DataView]'; /** Used to detect maps, sets, and weakmaps. */ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap); /** * Gets the `toStringTag` of `value`. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ var getTag = baseGetTag; // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || (Map && getTag(new Map) != mapTag) || (Promise && getTag(Promise.resolve()) != promiseTag) || (Set && getTag(new Set) != setTag) || (WeakMap && getTag(new WeakMap) != weakMapTag)) { getTag = function(value) { var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : undefined, ctorString = Ctor ? toSource(Ctor) : ''; if (ctorString) { switch (ctorString) { case dataViewCtorString: return dataViewTag; case mapCtorString: return mapTag; case promiseCtorString: return promiseTag; case setCtorString: return setTag; case weakMapCtorString: return weakMapTag; } } return result; }; } module.exports = getTag; /***/ }), /***/ "QuJe": /*!**********************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/Parser.js ***! \**********************************************************/ /*! exports provided: parseMobileHubConfig, Parser, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseMobileHubConfig", function() { return parseMobileHubConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Parser", function() { return Parser; }); /* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Logger */ "RCJS"); var logger = new _Logger__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('Parser'); var parseMobileHubConfig = function (config) { var amplifyConfig = {}; // Analytics if (config['aws_mobile_analytics_app_id']) { var Analytics = { AWSPinpoint: { appId: config['aws_mobile_analytics_app_id'], region: config['aws_mobile_analytics_app_region'], }, }; amplifyConfig.Analytics = Analytics; } // Auth if (config['aws_cognito_identity_pool_id'] || config['aws_user_pools_id']) { amplifyConfig.Auth = { userPoolId: config['aws_user_pools_id'], userPoolWebClientId: config['aws_user_pools_web_client_id'], region: config['aws_cognito_region'], identityPoolId: config['aws_cognito_identity_pool_id'], identityPoolRegion: config['aws_cognito_region'], mandatorySignIn: config['aws_mandatory_sign_in'] === 'enable', }; } // Storage var storageConfig; if (config['aws_user_files_s3_bucket']) { storageConfig = { AWSS3: { bucket: config['aws_user_files_s3_bucket'], region: config['aws_user_files_s3_bucket_region'], dangerouslyConnectToHttpEndpointForTesting: config['aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing'], }, }; } else { storageConfig = config ? config.Storage || config : {}; } amplifyConfig.Analytics = Object.assign({}, amplifyConfig.Analytics, config.Analytics); amplifyConfig.Auth = Object.assign({}, amplifyConfig.Auth, config.Auth); amplifyConfig.Storage = Object.assign({}, storageConfig); logger.debug('parse config', config, 'to amplifyconfig', amplifyConfig); return amplifyConfig; }; /** * @deprecated use per-function export */ var Parser = /** @class */ (function () { function Parser() { } Parser.parseMobilehubConfig = parseMobileHubConfig; return Parser; }()); /** * @deprecated use per-function export */ /* harmony default export */ __webpack_exports__["default"] = (Parser); //# sourceMappingURL=Parser.js.map /***/ }), /***/ "Qycn": /*!*******************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/Hub.js ***! \*******************************************************/ /*! exports provided: HubClass, Hub, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HubClass", function() { return HubClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hub", function() { return Hub; }); /* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Logger */ "RCJS"); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (undefined && undefined.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var logger = new _Logger__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('Hub'); var AMPLIFY_SYMBOL = (typeof Symbol !== 'undefined' && typeof Symbol.for === 'function' ? Symbol.for('amplify_default') : '@@amplify_default'); function isLegacyCallback(callback) { return callback.onHubCapsule !== undefined; } var HubClass = /** @class */ (function () { function HubClass(name) { this.listeners = []; this.patterns = []; this.protectedChannels = [ 'core', 'auth', 'api', 'analytics', 'interactions', 'pubsub', 'storage', 'xr', ]; this.name = name; } // Note - Need to pass channel as a reference for removal to work and not anonymous function HubClass.prototype.remove = function (channel, listener) { if (channel instanceof RegExp) { var pattern_1 = this.patterns.find(function (_a) { var pattern = _a.pattern; return pattern.source === channel.source; }); if (!pattern_1) { logger.warn("No listeners for " + channel); return; } this.patterns = __spread(this.patterns.filter(function (x) { return x !== pattern_1; })); } else { var holder = this.listeners[channel]; if (!holder) { logger.warn("No listeners for " + channel); return; } this.listeners[channel] = __spread(holder.filter(function (_a) { var callback = _a.callback; return callback !== listener; })); } }; HubClass.prototype.dispatch = function (channel, payload, source, ampSymbol) { if (source === void 0) { source = ''; } if (this.protectedChannels.indexOf(channel) > -1) { var hasAccess = ampSymbol === AMPLIFY_SYMBOL; if (!hasAccess) { logger.warn("WARNING: " + channel + " is protected and dispatching on it can have unintended consequences"); } } var capsule = { channel: channel, payload: __assign({}, payload), source: source, patternInfo: [], }; try { this._toListeners(capsule); } catch (e) { logger.error(e); } }; HubClass.prototype.listen = function (channel, callback, listenerName) { var _this = this; if (listenerName === void 0) { listenerName = 'noname'; } var cb; // Check for legacy onHubCapsule callback for backwards compatability if (isLegacyCallback(callback)) { logger.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."); cb = callback.onHubCapsule.bind(callback); } else if (typeof callback !== 'function') { throw new Error('No callback supplied to Hub'); } else { cb = callback; } if (channel instanceof RegExp) { this.patterns.push({ pattern: channel, callback: cb, }); } else { var holder = this.listeners[channel]; if (!holder) { holder = []; this.listeners[channel] = holder; } holder.push({ name: listenerName, callback: cb, }); } return function () { _this.remove(channel, cb); }; }; HubClass.prototype._toListeners = function (capsule) { var channel = capsule.channel, payload = capsule.payload; var holder = this.listeners[channel]; if (holder) { holder.forEach(function (listener) { logger.debug("Dispatching to " + channel + " with ", payload); try { listener.callback(capsule); } catch (e) { logger.error(e); } }); } if (this.patterns.length > 0) { if (!payload.message) { logger.warn("Cannot perform pattern matching without a message key"); return; } var payloadStr_1 = payload.message; this.patterns.forEach(function (pattern) { var match = payloadStr_1.match(pattern.pattern); if (match) { var _a = __read(match), groups = _a.slice(1); var dispatchingCapsule = __assign(__assign({}, capsule), { patternInfo: groups }); try { pattern.callback(dispatchingCapsule); } catch (e) { logger.error(e); } } }); } }; return HubClass; }()); /*We export a __default__ instance of HubClass to use it as a psuedo Singleton for the main messaging bus, however you can still create your own instance of HubClass() for a separate "private bus" of events.*/ var Hub = new HubClass('__default__'); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (Hub); //# sourceMappingURL=Hub.js.map /***/ }), /***/ "R0Ic": /*!******************************************************************************!*\ !*** ./node_modules/@angular/animations/__ivy_ngcc__/fesm2015/animations.js ***! \******************************************************************************/ /*! exports provided: AUTO_STYLE, AnimationBuilder, AnimationFactory, NoopAnimationPlayer, animate, animateChild, animation, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation, ɵAnimationGroupPlayer, ɵPRE_STYLE */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AUTO_STYLE", function() { return AUTO_STYLE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationBuilder", function() { return AnimationBuilder; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationFactory", function() { return AnimationFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NoopAnimationPlayer", function() { return NoopAnimationPlayer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "animate", function() { return animate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "animateChild", function() { return animateChild; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "animation", function() { return animation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "group", function() { return group; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keyframes", function() { return keyframes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "query", function() { return query; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sequence", function() { return sequence; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stagger", function() { return stagger; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "state", function() { return state; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "style", function() { return style; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transition", function() { return transition; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "trigger", function() { return trigger; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useAnimation", function() { return useAnimation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵAnimationGroupPlayer", function() { return AnimationGroupPlayer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵPRE_STYLE", function() { return ɵPRE_STYLE; }); /** * @license Angular v10.1.5 * (c) 2010-2020 Google LLC. https://angular.io/ * License: MIT */ /** * An injectable service that produces an animation sequence programmatically within an * Angular component or directive. * Provided by the `BrowserAnimationsModule` or `NoopAnimationsModule`. * * @usageNotes * * To use this service, add it to your component or directive as a dependency. * The service is instantiated along with your component. * * Apps do not typically need to create their own animation players, but if you * do need to, follow these steps: * * 1. Use the `build()` method to create a programmatic animation using the * `animate()` function. The method returns an `AnimationFactory` instance. * * 2. Use the factory object to create an `AnimationPlayer` and attach it to a DOM element. * * 3. Use the player object to control the animation programmatically. * * For example: * * ```ts * // import the service from BrowserAnimationsModule * import {AnimationBuilder} from '@angular/animations'; * // require the service as a dependency * class MyCmp { * constructor(private _builder: AnimationBuilder) {} * * makeAnimation(element: any) { * // first define a reusable animation * const myAnimation = this._builder.build([ * style({ width: 0 }), * animate(1000, style({ width: '100px' })) * ]); * * // use the returned factory object to create a player * const player = myAnimation.create(element); * * player.play(); * } * } * ``` * * @publicApi */ class AnimationBuilder { } /** * A factory object returned from the `AnimationBuilder`.`build()` method. * * @publicApi */ class AnimationFactory { } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Specifies automatic styling. * * @publicApi */ const AUTO_STYLE = '*'; /** * Creates a named animation trigger, containing a list of `state()` * and `transition()` entries to be evaluated when the expression * bound to the trigger changes. * * @param name An identifying string. * @param definitions An animation definition object, containing an array of `state()` * and `transition()` declarations. * * @return An object that encapsulates the trigger data. * * @usageNotes * Define an animation trigger in the `animations` section of `@Component` metadata. * In the template, reference the trigger by name and bind it to a trigger expression that * evaluates to a defined animation state, using the following format: * * `[@triggerName]="expression"` * * Animation trigger bindings convert all values to strings, and then match the * previous and current values against any linked transitions. * Booleans can be specified as `1` or `true` and `0` or `false`. * * ### Usage Example * * The following example creates an animation trigger reference based on the provided * name value. * The provided animation value is expected to be an array consisting of state and * transition declarations. * * ```typescript * @Component({ * selector: "my-component", * templateUrl: "my-component-tpl.html", * animations: [ * trigger("myAnimationTrigger", [ * state(...), * state(...), * transition(...), * transition(...) * ]) * ] * }) * class MyComponent { * myStatusExp = "something"; * } * ``` * * The template associated with this component makes use of the defined trigger * by binding to an element within its template code. * * ```html * *

...
* ``` * * ### Using an inline function * The `transition` animation method also supports reading an inline function which can decide * if its associated animation should be run. * * ```typescript * // this method is run each time the `myAnimationTrigger` trigger value changes. * function myInlineMatcherFn(fromState: string, toState: string, element: any, params: {[key: string]: any}): boolean { * // notice that `element` and `params` are also available here * return toState == 'yes-please-animate'; * } * * @Component({ * selector: 'my-component', * templateUrl: 'my-component-tpl.html', * animations: [ * trigger('myAnimationTrigger', [ * transition(myInlineMatcherFn, [ * // the animation sequence code * ]), * ]) * ] * }) * class MyComponent { * myStatusExp = "yes-please-animate"; * } * ``` * * ### Disabling Animations * When true, the special animation control binding `@.disabled` binding prevents * all animations from rendering. * Place the `@.disabled` binding on an element to disable * animations on the element itself, as well as any inner animation triggers * within the element. * * The following example shows how to use this feature: * * ```typescript * @Component({ * selector: 'my-component', * template: ` *
*
*
* `, * animations: [ * trigger("childAnimation", [ * // ... * ]) * ] * }) * class MyComponent { * isDisabled = true; * exp = '...'; * } * ``` * * When `@.disabled` is true, it prevents the `@childAnimation` trigger from animating, * along with any inner animations. * * ### Disable animations application-wide * When an area of the template is set to have animations disabled, * **all** inner components have their animations disabled as well. * This means that you can disable all animations for an app * by placing a host binding set on `@.disabled` on the topmost Angular component. * * ```typescript * import {Component, HostBinding} from '@angular/core'; * * @Component({ * selector: 'app-component', * templateUrl: 'app.component.html', * }) * class AppComponent { * @HostBinding('@.disabled') * public animationsDisabled = true; * } * ``` * * ### Overriding disablement of inner animations * Despite inner animations being disabled, a parent animation can `query()` * for inner elements located in disabled areas of the template and still animate * them if needed. This is also the case for when a sub animation is * queried by a parent and then later animated using `animateChild()`. * * ### Detecting when an animation is disabled * If a region of the DOM (or the entire application) has its animations disabled, the animation * trigger callbacks still fire, but for zero seconds. When the callback fires, it provides * an instance of an `AnimationEvent`. If animations are disabled, * the `.disabled` flag on the event is true. * * @publicApi */ function trigger(name, definitions) { return { type: 7 /* Trigger */, name, definitions, options: {} }; } /** * Defines an animation step that combines styling information with timing information. * * @param timings Sets `AnimateTimings` for the parent animation. * A string in the format "duration [delay] [easing]". * - Duration and delay are expressed as a number and optional time unit, * such as "1s" or "10ms" for one second and 10 milliseconds, respectively. * The default unit is milliseconds. * - The easing value controls how the animation accelerates and decelerates * during its runtime. Value is one of `ease`, `ease-in`, `ease-out`, * `ease-in-out`, or a `cubic-bezier()` function call. * If not supplied, no easing is applied. * * For example, the string "1s 100ms ease-out" specifies a duration of * 1000 milliseconds, and delay of 100 ms, and the "ease-out" easing style, * which decelerates near the end of the duration. * @param styles Sets AnimationStyles for the parent animation. * A function call to either `style()` or `keyframes()` * that returns a collection of CSS style entries to be applied to the parent animation. * When null, uses the styles from the destination state. * This is useful when describing an animation step that will complete an animation; * see "Animating to the final state" in `transitions()`. * @returns An object that encapsulates the animation step. * * @usageNotes * Call within an animation `sequence()`, `{@link animations/group group()}`, or * `transition()` call to specify an animation step * that applies given style data to the parent animation for a given amount of time. * * ### Syntax Examples * **Timing examples** * * The following examples show various `timings` specifications. * - `animate(500)` : Duration is 500 milliseconds. * - `animate("1s")` : Duration is 1000 milliseconds. * - `animate("100ms 0.5s")` : Duration is 100 milliseconds, delay is 500 milliseconds. * - `animate("5s ease-in")` : Duration is 5000 milliseconds, easing in. * - `animate("5s 10ms cubic-bezier(.17,.67,.88,.1)")` : Duration is 5000 milliseconds, delay is 10 * milliseconds, easing according to a bezier curve. * * **Style examples** * * The following example calls `style()` to set a single CSS style. * ```typescript * animate(500, style({ background: "red" })) * ``` * The following example calls `keyframes()` to set a CSS style * to different values for successive keyframes. * ```typescript * animate(500, keyframes( * [ * style({ background: "blue" })), * style({ background: "red" })) * ]) * ``` * * @publicApi */ function animate(timings, styles = null) { return { type: 4 /* Animate */, styles, timings }; } /** * @description Defines a list of animation steps to be run in parallel. * * @param steps An array of animation step objects. * - When steps are defined by `style()` or `animate()` * function calls, each call within the group is executed instantly. * - To specify offset styles to be applied at a later time, define steps with * `keyframes()`, or use `animate()` calls with a delay value. * For example: * * ```typescript * group([ * animate("1s", style({ background: "black" })), * animate("2s", style({ color: "white" })) * ]) * ``` * * @param options An options object containing a delay and * developer-defined parameters that provide styling defaults and * can be overridden on invocation. * * @return An object that encapsulates the group data. * * @usageNotes * Grouped animations are useful when a series of styles must be * animated at different starting times and closed off at different ending times. * * When called within a `sequence()` or a * `transition()` call, does not continue to the next * instruction until all of the inner animation steps have completed. * * @publicApi */ function group(steps, options = null) { return { type: 3 /* Group */, steps, options }; } /** * Defines a list of animation steps to be run sequentially, one by one. * * @param steps An array of animation step objects. * - Steps defined by `style()` calls apply the styling data immediately. * - Steps defined by `animate()` calls apply the styling data over time * as specified by the timing data. * * ```typescript * sequence([ * style({ opacity: 0 }), * animate("1s", style({ opacity: 1 })) * ]) * ``` * * @param options An options object containing a delay and * developer-defined parameters that provide styling defaults and * can be overridden on invocation. * * @return An object that encapsulates the sequence data. * * @usageNotes * When you pass an array of steps to a * `transition()` call, the steps run sequentially by default. * Compare this to the `{@link animations/group group()}` call, which runs animation steps in *parallel. * * When a sequence is used within a `{@link animations/group group()}` or a `transition()` call, * execution continues to the next instruction only after each of the inner animation * steps have completed. * * @publicApi **/ function sequence(steps, options = null) { return { type: 2 /* Sequence */, steps, options }; } /** * Declares a key/value object containing CSS properties/styles that * can then be used for an animation `state`, within an animation `sequence`, * or as styling data for calls to `animate()` and `keyframes()`. * * @param tokens A set of CSS styles or HTML styles associated with an animation state. * The value can be any of the following: * - A key-value style pair associating a CSS property with a value. * - An array of key-value style pairs. * - An asterisk (*), to use auto-styling, where styles are derived from the element * being animated and applied to the animation when it starts. * * Auto-styling can be used to define a state that depends on layout or other * environmental factors. * * @return An object that encapsulates the style data. * * @usageNotes * The following examples create animation styles that collect a set of * CSS property values: * * ```typescript * // string values for CSS properties * style({ background: "red", color: "blue" }) * * // numerical pixel values * style({ width: 100, height: 0 }) * ``` * * The following example uses auto-styling to allow a component to animate from * a height of 0 up to the height of the parent element: * * ``` * style({ height: 0 }), * animate("1s", style({ height: "*" })) * ``` * * @publicApi **/ function style(tokens) { return { type: 6 /* Style */, styles: tokens, offset: null }; } /** * Declares an animation state within a trigger attached to an element. * * @param name One or more names for the defined state in a comma-separated string. * The following reserved state names can be supplied to define a style for specific use * cases: * * - `void` You can associate styles with this name to be used when * the element is detached from the application. For example, when an `ngIf` evaluates * to false, the state of the associated element is void. * - `*` (asterisk) Indicates the default state. You can associate styles with this name * to be used as the fallback when the state that is being animated is not declared * within the trigger. * * @param styles A set of CSS styles associated with this state, created using the * `style()` function. * This set of styles persists on the element once the state has been reached. * @param options Parameters that can be passed to the state when it is invoked. * 0 or more key-value pairs. * @return An object that encapsulates the new state data. * * @usageNotes * Use the `trigger()` function to register states to an animation trigger. * Use the `transition()` function to animate between states. * When a state is active within a component, its associated styles persist on the element, * even when the animation ends. * * @publicApi **/ function state(name, styles, options) { return { type: 0 /* State */, name, styles, options }; } /** * Defines a set of animation styles, associating each style with an optional `offset` value. * * @param steps A set of animation styles with optional offset data. * The optional `offset` value for a style specifies a percentage of the total animation * time at which that style is applied. * @returns An object that encapsulates the keyframes data. * * @usageNotes * Use with the `animate()` call. Instead of applying animations * from the current state * to the destination state, keyframes describe how each style entry is applied and at what point * within the animation arc. * Compare [CSS Keyframe Animations](https://www.w3schools.com/css/css3_animations.asp). * * ### Usage * * In the following example, the offset values describe * when each `backgroundColor` value is applied. The color is red at the start, and changes to * blue when 20% of the total time has elapsed. * * ```typescript * // the provided offset values * animate("5s", keyframes([ * style({ backgroundColor: "red", offset: 0 }), * style({ backgroundColor: "blue", offset: 0.2 }), * style({ backgroundColor: "orange", offset: 0.3 }), * style({ backgroundColor: "black", offset: 1 }) * ])) * ``` * * If there are no `offset` values specified in the style entries, the offsets * are calculated automatically. * * ```typescript * animate("5s", keyframes([ * style({ backgroundColor: "red" }) // offset = 0 * style({ backgroundColor: "blue" }) // offset = 0.33 * style({ backgroundColor: "orange" }) // offset = 0.66 * style({ backgroundColor: "black" }) // offset = 1 * ])) *``` * @publicApi */ function keyframes(steps) { return { type: 5 /* Keyframes */, steps }; } /** * Declares an animation transition as a sequence of animation steps to run when a given * condition is satisfied. The condition is a Boolean expression or function that compares * the previous and current animation states, and returns true if this transition should occur. * When the state criteria of a defined transition are met, the associated animation is * triggered. * * @param stateChangeExpr A Boolean expression or function that compares the previous and current * animation states, and returns true if this transition should occur. Note that "true" and "false" * match 1 and 0, respectively. An expression is evaluated each time a state change occurs in the * animation trigger element. * The animation steps run when the expression evaluates to true. * * - A state-change string takes the form "state1 => state2", where each side is a defined animation * state, or an asterix (*) to refer to a dynamic start or end state. * - The expression string can contain multiple comma-separated statements; * for example "state1 => state2, state3 => state4". * - Special values `:enter` and `:leave` initiate a transition on the entry and exit states, * equivalent to "void => *" and "* => void". * - Special values `:increment` and `:decrement` initiate a transition when a numeric value has * increased or decreased in value. * - A function is executed each time a state change occurs in the animation trigger element. * The animation steps run when the function returns true. * * @param steps One or more animation objects, as returned by the `animate()` or * `sequence()` function, that form a transformation from one state to another. * A sequence is used by default when you pass an array. * @param options An options object that can contain a delay value for the start of the animation, * and additional developer-defined parameters. Provided values for additional parameters are used * as defaults, and override values can be passed to the caller on invocation. * @returns An object that encapsulates the transition data. * * @usageNotes * The template associated with a component binds an animation trigger to an element. * * ```HTML * *
...
* ``` * * All transitions are defined within an animation trigger, * along with named states that the transitions change to and from. * * ```typescript * trigger("myAnimationTrigger", [ * // define states * state("on", style({ background: "green" })), * state("off", style({ background: "grey" })), * ...] * ``` * * Note that when you call the `sequence()` function within a `{@link animations/group group()}` * or a `transition()` call, execution does not continue to the next instruction * until each of the inner animation steps have completed. * * ### Syntax examples * * The following examples define transitions between the two defined states (and default states), * using various options: * * ```typescript * // Transition occurs when the state value * // bound to "myAnimationTrigger" changes from "on" to "off" * transition("on => off", animate(500)) * // Run the same animation for both directions * transition("on <=> off", animate(500)) * // Define multiple state-change pairs separated by commas * transition("on => off, off => void", animate(500)) * ``` * * ### Special values for state-change expressions * * - Catch-all state change for when an element is inserted into the page and the * destination state is unknown: * * ```typescript * transition("void => *", [ * style({ opacity: 0 }), * animate(500) * ]) * ``` * * - Capture a state change between any states: * * `transition("* => *", animate("1s 0s"))` * * - Entry and exit transitions: * * ```typescript * transition(":enter", [ * style({ opacity: 0 }), * animate(500, style({ opacity: 1 })) * ]), * transition(":leave", [ * animate(500, style({ opacity: 0 })) * ]) * ``` * * - Use `:increment` and `:decrement` to initiate transitions: * * ```typescript * transition(":increment", group([ * query(':enter', [ * style({ left: '100%' }), * animate('0.5s ease-out', style('*')) * ]), * query(':leave', [ * animate('0.5s ease-out', style({ left: '-100%' })) * ]) * ])) * * transition(":decrement", group([ * query(':enter', [ * style({ left: '100%' }), * animate('0.5s ease-out', style('*')) * ]), * query(':leave', [ * animate('0.5s ease-out', style({ left: '-100%' })) * ]) * ])) * ``` * * ### State-change functions * * Here is an example of a `fromState` specified as a state-change function that invokes an * animation when true: * * ```typescript * transition((fromState, toState) => * { * return fromState == "off" && toState == "on"; * }, * animate("1s 0s")) * ``` * * ### Animating to the final state * * If the final step in a transition is a call to `animate()` that uses a timing value * with no style data, that step is automatically considered the final animation arc, * for the element to reach the final state. Angular automatically adds or removes * CSS styles to ensure that the element is in the correct final state. * * The following example defines a transition that starts by hiding the element, * then makes sure that it animates properly to whatever state is currently active for trigger: * * ```typescript * transition("void => *", [ * style({ opacity: 0 }), * animate(500) * ]) * ``` * ### Boolean value matching * If a trigger binding value is a Boolean, it can be matched using a transition expression * that compares true and false or 1 and 0. For example: * * ``` * // in the template *
...
* // in the component metadata * trigger('openClose', [ * state('true', style({ height: '*' })), * state('false', style({ height: '0px' })), * transition('false <=> true', animate(500)) * ]) * ``` * * @publicApi **/ function transition(stateChangeExpr, steps, options = null) { return { type: 1 /* Transition */, expr: stateChangeExpr, animation: steps, options }; } /** * Produces a reusable animation that can be invoked in another animation or sequence, * by calling the `useAnimation()` function. * * @param steps One or more animation objects, as returned by the `animate()` * or `sequence()` function, that form a transformation from one state to another. * A sequence is used by default when you pass an array. * @param options An options object that can contain a delay value for the start of the * animation, and additional developer-defined parameters. * Provided values for additional parameters are used as defaults, * and override values can be passed to the caller on invocation. * @returns An object that encapsulates the animation data. * * @usageNotes * The following example defines a reusable animation, providing some default parameter * values. * * ```typescript * var fadeAnimation = animation([ * style({ opacity: '{{ start }}' }), * animate('{{ time }}', * style({ opacity: '{{ end }}'})) * ], * { params: { time: '1000ms', start: 0, end: 1 }}); * ``` * * The following invokes the defined animation with a call to `useAnimation()`, * passing in override parameter values. * * ```js * useAnimation(fadeAnimation, { * params: { * time: '2s', * start: 1, * end: 0 * } * }) * ``` * * If any of the passed-in parameter values are missing from this call, * the default values are used. If one or more parameter values are missing before a step is * animated, `useAnimation()` throws an error. * * @publicApi */ function animation(steps, options = null) { return { type: 8 /* Reference */, animation: steps, options }; } /** * Executes a queried inner animation element within an animation sequence. * * @param options An options object that can contain a delay value for the start of the * animation, and additional override values for developer-defined parameters. * @return An object that encapsulates the child animation data. * * @usageNotes * Each time an animation is triggered in Angular, the parent animation * has priority and any child animations are blocked. In order * for a child animation to run, the parent animation must query each of the elements * containing child animations, and run them using this function. * * Note that this feature is designed to be used with `query()` and it will only work * with animations that are assigned using the Angular animation library. CSS keyframes * and transitions are not handled by this API. * * @publicApi */ function animateChild(options = null) { return { type: 9 /* AnimateChild */, options }; } /** * Starts a reusable animation that is created using the `animation()` function. * * @param animation The reusable animation to start. * @param options An options object that can contain a delay value for the start of * the animation, and additional override values for developer-defined parameters. * @return An object that contains the animation parameters. * * @publicApi */ function useAnimation(animation, options = null) { return { type: 10 /* AnimateRef */, animation, options }; } /** * Finds one or more inner elements within the current element that is * being animated within a sequence. Use with `animate()`. * * @param selector The element to query, or a set of elements that contain Angular-specific * characteristics, specified with one or more of the following tokens. * - `query(":enter")` or `query(":leave")` : Query for newly inserted/removed elements. * - `query(":animating")` : Query all currently animating elements. * - `query("@triggerName")` : Query elements that contain an animation trigger. * - `query("@*")` : Query all elements that contain an animation triggers. * - `query(":self")` : Include the current element into the animation sequence. * * @param animation One or more animation steps to apply to the queried element or elements. * An array is treated as an animation sequence. * @param options An options object. Use the 'limit' field to limit the total number of * items to collect. * @return An object that encapsulates the query data. * * @usageNotes * Tokens can be merged into a combined query selector string. For example: * * ```typescript * query(':self, .record:enter, .record:leave, @subTrigger', [...]) * ``` * * The `query()` function collects multiple elements and works internally by using * `element.querySelectorAll`. Use the `limit` field of an options object to limit * the total number of items to be collected. For example: * * ```js * query('div', [ * animate(...), * animate(...) * ], { limit: 1 }) * ``` * * By default, throws an error when zero items are found. Set the * `optional` flag to ignore this error. For example: * * ```js * query('.some-element-that-may-not-be-there', [ * animate(...), * animate(...) * ], { optional: true }) * ``` * * ### Usage Example * * The following example queries for inner elements and animates them * individually using `animate()`. * * ```typescript * @Component({ * selector: 'inner', * template: ` *
*

Title

*
* Blah blah blah *
*
* `, * animations: [ * trigger('queryAnimation', [ * transition('* => goAnimate', [ * // hide the inner elements * query('h1', style({ opacity: 0 })), * query('.content', style({ opacity: 0 })), * * // animate the inner elements in, one by one * query('h1', animate(1000, style({ opacity: 1 }))), * query('.content', animate(1000, style({ opacity: 1 }))), * ]) * ]) * ] * }) * class Cmp { * exp = ''; * * goAnimate() { * this.exp = 'goAnimate'; * } * } * ``` * * @publicApi */ function query(selector, animation, options = null) { return { type: 11 /* Query */, selector, animation, options }; } /** * Use within an animation `query()` call to issue a timing gap after * each queried item is animated. * * @param timings A delay value. * @param animation One ore more animation steps. * @returns An object that encapsulates the stagger data. * * @usageNotes * In the following example, a container element wraps a list of items stamped out * by an `ngFor`. The container element contains an animation trigger that will later be set * to query for each of the inner items. * * Each time items are added, the opacity fade-in animation runs, * and each removed item is faded out. * When either of these animations occur, the stagger effect is * applied after each item's animation is started. * * ```html * * *
*
*
* {{ item }} *
*
* ``` * * Here is the component code: * * ```typescript * import {trigger, transition, style, animate, query, stagger} from '@angular/animations'; * @Component({ * templateUrl: 'list.component.html', * animations: [ * trigger('listAnimation', [ * ... * ]) * ] * }) * class ListComponent { * items = []; * * showItems() { * this.items = [0,1,2,3,4]; * } * * hideItems() { * this.items = []; * } * * toggle() { * this.items.length ? this.hideItems() : this.showItems(); * } * } * ``` * * Here is the animation trigger code: * * ```typescript * trigger('listAnimation', [ * transition('* => *', [ // each time the binding value changes * query(':leave', [ * stagger(100, [ * animate('0.5s', style({ opacity: 0 })) * ]) * ]), * query(':enter', [ * style({ opacity: 0 }), * stagger(100, [ * animate('0.5s', style({ opacity: 1 })) * ]) * ]) * ]) * ]) * ``` * * @publicApi */ function stagger(timings, animation) { return { type: 12 /* Stagger */, timings, animation }; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function scheduleMicroTask(cb) { Promise.resolve(null).then(cb); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * An empty programmatic controller for reusable animations. * Used internally when animations are disabled, to avoid * checking for the null case when an animation player is expected. * * @see `animate()` * @see `AnimationPlayer` * @see `GroupPlayer` * * @publicApi */ class NoopAnimationPlayer { constructor(duration = 0, delay = 0) { this._onDoneFns = []; this._onStartFns = []; this._onDestroyFns = []; this._started = false; this._destroyed = false; this._finished = false; this.parentPlayer = null; this.totalTime = duration + delay; } _onFinish() { if (!this._finished) { this._finished = true; this._onDoneFns.forEach(fn => fn()); this._onDoneFns = []; } } onStart(fn) { this._onStartFns.push(fn); } onDone(fn) { this._onDoneFns.push(fn); } onDestroy(fn) { this._onDestroyFns.push(fn); } hasStarted() { return this._started; } init() { } play() { if (!this.hasStarted()) { this._onStart(); this.triggerMicrotask(); } this._started = true; } /** @internal */ triggerMicrotask() { scheduleMicroTask(() => this._onFinish()); } _onStart() { this._onStartFns.forEach(fn => fn()); this._onStartFns = []; } pause() { } restart() { } finish() { this._onFinish(); } destroy() { if (!this._destroyed) { this._destroyed = true; if (!this.hasStarted()) { this._onStart(); } this.finish(); this._onDestroyFns.forEach(fn => fn()); this._onDestroyFns = []; } } reset() { } setPosition(position) { } getPosition() { return 0; } /** @internal */ triggerCallback(phaseName) { const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns; methods.forEach(fn => fn()); methods.length = 0; } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * A programmatic controller for a group of reusable animations. * Used internally to control animations. * * @see `AnimationPlayer` * @see `{@link animations/group group()}` * */ class AnimationGroupPlayer { constructor(_players) { this._onDoneFns = []; this._onStartFns = []; this._finished = false; this._started = false; this._destroyed = false; this._onDestroyFns = []; this.parentPlayer = null; this.totalTime = 0; this.players = _players; let doneCount = 0; let destroyCount = 0; let startCount = 0; const total = this.players.length; if (total == 0) { scheduleMicroTask(() => this._onFinish()); } else { this.players.forEach(player => { player.onDone(() => { if (++doneCount == total) { this._onFinish(); } }); player.onDestroy(() => { if (++destroyCount == total) { this._onDestroy(); } }); player.onStart(() => { if (++startCount == total) { this._onStart(); } }); }); } this.totalTime = this.players.reduce((time, player) => Math.max(time, player.totalTime), 0); } _onFinish() { if (!this._finished) { this._finished = true; this._onDoneFns.forEach(fn => fn()); this._onDoneFns = []; } } init() { this.players.forEach(player => player.init()); } onStart(fn) { this._onStartFns.push(fn); } _onStart() { if (!this.hasStarted()) { this._started = true; this._onStartFns.forEach(fn => fn()); this._onStartFns = []; } } onDone(fn) { this._onDoneFns.push(fn); } onDestroy(fn) { this._onDestroyFns.push(fn); } hasStarted() { return this._started; } play() { if (!this.parentPlayer) { this.init(); } this._onStart(); this.players.forEach(player => player.play()); } pause() { this.players.forEach(player => player.pause()); } restart() { this.players.forEach(player => player.restart()); } finish() { this._onFinish(); this.players.forEach(player => player.finish()); } destroy() { this._onDestroy(); } _onDestroy() { if (!this._destroyed) { this._destroyed = true; this._onFinish(); this.players.forEach(player => player.destroy()); this._onDestroyFns.forEach(fn => fn()); this._onDestroyFns = []; } } reset() { this.players.forEach(player => player.reset()); this._destroyed = false; this._finished = false; this._started = false; } setPosition(p) { const timeAtPosition = p * this.totalTime; this.players.forEach(player => { const position = player.totalTime ? Math.min(1, timeAtPosition / player.totalTime) : 1; player.setPosition(position); }); } getPosition() { let min = 0; this.players.forEach(player => { const p = player.getPosition(); min = Math.min(p, min); }); return min; } beforeDestroy() { this.players.forEach(player => { if (player.beforeDestroy) { player.beforeDestroy(); } }); } /** @internal */ triggerCallback(phaseName) { const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns; methods.forEach(fn => fn()); methods.length = 0; } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const ɵPRE_STYLE = '!'; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Generated bundle index. Do not edit. */ //# sourceMappingURL=animations.js.map /***/ }), /***/ "R10A": /*!***************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/Credentials.js ***! \***************************************************************/ /*! exports provided: CredentialsClass, Credentials, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CredentialsClass", function() { return CredentialsClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Credentials", function() { return Credentials; }); /* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Logger */ "RCJS"); /* harmony import */ var _StorageHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./StorageHelper */ "2Lx6"); /* harmony import */ var _JS__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./JS */ "HzrR"); /* harmony import */ var _OAuthHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./OAuthHelper */ "WKOl"); /* harmony import */ var _Util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Util */ "qAxE"); /* harmony import */ var _Platform__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Platform */ "+rSW"); /* harmony import */ var _Amplify__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Amplify */ "fQM2"); /* harmony import */ var _aws_sdk_credential_provider_cognito_identity__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/credential-provider-cognito-identity */ "LnMm"); /* harmony import */ var _aws_sdk_client_cognito_identity__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/client-cognito-identity */ "f1ex"); var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var logger = new _Logger__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('Credentials'); var CREDENTIALS_TTL = 50 * 60 * 1000; // 50 min, can be modified on config if required in the future var CredentialsClass = /** @class */ (function () { function CredentialsClass(config) { this._gettingCredPromise = null; this._refreshHandlers = {}; // Allow `Auth` to be injected for SSR, but Auth isn't a required dependency for Credentials this.Auth = undefined; this.configure(config); this._refreshHandlers['google'] = _OAuthHelper__WEBPACK_IMPORTED_MODULE_3__["GoogleOAuth"].refreshGoogleToken; this._refreshHandlers['facebook'] = _OAuthHelper__WEBPACK_IMPORTED_MODULE_3__["FacebookOAuth"].refreshFacebookToken; } CredentialsClass.prototype.getModuleName = function () { return 'Credentials'; }; CredentialsClass.prototype.getCredSource = function () { return this._credentials_source; }; CredentialsClass.prototype.configure = function (config) { if (!config) return this._config || {}; this._config = Object.assign({}, this._config, config); var refreshHandlers = this._config.refreshHandlers; // If the developer has provided an object of refresh handlers, // then we can merge the provided handlers with the current handlers. if (refreshHandlers) { this._refreshHandlers = __assign(__assign({}, this._refreshHandlers), refreshHandlers); } this._storage = this._config.storage; if (!this._storage) { this._storage = new _StorageHelper__WEBPACK_IMPORTED_MODULE_1__["StorageHelper"]().getStorage(); } this._storageSync = Promise.resolve(); if (typeof this._storage['sync'] === 'function') { this._storageSync = this._storage['sync'](); } return this._config; }; CredentialsClass.prototype.get = function () { logger.debug('getting credentials'); return this._pickupCredentials(); }; CredentialsClass.prototype._pickupCredentials = function () { logger.debug('picking up credentials'); if (!this._gettingCredPromise || !this._gettingCredPromise.isPending()) { logger.debug('getting new cred promise'); this._gettingCredPromise = Object(_JS__WEBPACK_IMPORTED_MODULE_2__["makeQuerablePromise"])(this._keepAlive()); } else { logger.debug('getting old cred promise'); } return this._gettingCredPromise; }; CredentialsClass.prototype._keepAlive = function () { logger.debug('checking if credentials exists and not expired'); var cred = this._credentials; if (cred && !this._isExpired(cred)) { logger.debug('credentials not changed and not expired, directly return'); return Promise.resolve(cred); } logger.debug('need to get a new credential or refresh the existing one'); // Some use-cases don't require Auth for signing in, but use Credentials for guest users (e.g. Analytics) // Prefer locally scoped `Auth`, but fallback to registered `Amplify.Auth` global otherwise. var _a = this.Auth, Auth = _a === void 0 ? _Amplify__WEBPACK_IMPORTED_MODULE_6__["Amplify"].Auth : _a; if (Auth && typeof Auth.currentUserCredentials === 'function') { return Auth.currentUserCredentials(); } else { return Promise.reject('No Auth module registered in Amplify'); } }; CredentialsClass.prototype.refreshFederatedToken = function (federatedInfo) { logger.debug('Getting federated credentials'); var provider = federatedInfo.provider, user = federatedInfo.user, token = federatedInfo.token, identity_id = federatedInfo.identity_id; var expires_at = federatedInfo.expires_at; // Make sure expires_at is in millis expires_at = new Date(expires_at).getFullYear() === 1970 ? expires_at * 1000 : expires_at; var that = this; logger.debug('checking if federated jwt token expired'); if (expires_at > new Date().getTime()) { // if not expired logger.debug('token not expired'); return this._setCredentialsFromFederation({ provider: provider, token: token, user: user, identity_id: identity_id, expires_at: expires_at, }); } else { // if refresh handler exists if (that._refreshHandlers[provider] && typeof that._refreshHandlers[provider] === 'function') { logger.debug('getting refreshed jwt token from federation provider'); return this._providerRefreshWithRetry({ refreshHandler: that._refreshHandlers[provider], provider: provider, user: user, }); } else { logger.debug('no refresh handler for provider:', provider); this.clear(); return Promise.reject('no refresh handler for provider'); } } }; CredentialsClass.prototype._providerRefreshWithRetry = function (_a) { var _this = this; var refreshHandler = _a.refreshHandler, provider = _a.provider, user = _a.user; var MAX_DELAY_MS = 10 * 1000; // refreshHandler will retry network errors, otherwise it will // return NonRetryableError to break out of jitteredExponentialRetry return Object(_Util__WEBPACK_IMPORTED_MODULE_4__["jitteredExponentialRetry"])(refreshHandler, [], MAX_DELAY_MS) .then(function (data) { logger.debug('refresh federated token sucessfully', data); return _this._setCredentialsFromFederation({ provider: provider, token: data.token, user: user, identity_id: data.identity_id, expires_at: data.expires_at, }); }) .catch(function (e) { var isNetworkError = typeof e === 'string' && e.toLowerCase().lastIndexOf('network error', e.length) === 0; if (!isNetworkError) { _this.clear(); } logger.debug('refresh federated token failed', e); return Promise.reject('refreshing federation token failed: ' + e); }); }; CredentialsClass.prototype._isExpired = function (credentials) { if (!credentials) { logger.debug('no credentials for expiration check'); return true; } logger.debug('are these credentials expired?', credentials); var ts = Date.now(); var delta = 10 * 60 * 1000; // 10 minutes in milli seconds /* returns date object. https://github.com/aws/aws-sdk-js-v3/blob/v1.0.0-beta.1/packages/types/src/credentials.ts#L26 */ var expiration = credentials.expiration; if (expiration.getTime() > ts + delta && ts < this._nextCredentialsRefresh) { return false; } return true; }; CredentialsClass.prototype._setCredentialsForGuest = function () { return __awaiter(this, void 0, void 0, function () { var _a, identityPoolId, region, mandatorySignIn, identityId, e_1, cognitoClient, credentials, cognitoIdentityParams, credentialsProvider; var _this = this; return __generator(this, function (_b) { switch (_b.label) { case 0: logger.debug('setting credentials for guest'); _a = this._config, identityPoolId = _a.identityPoolId, region = _a.region, mandatorySignIn = _a.mandatorySignIn; if (mandatorySignIn) { return [2 /*return*/, Promise.reject('cannot get guest credentials when mandatory signin enabled')]; } if (!identityPoolId) { logger.debug('No Cognito Identity pool provided for unauthenticated access'); return [2 /*return*/, Promise.reject('No Cognito Identity pool provided for unauthenticated access')]; } if (!region) { logger.debug('region is not configured for getting the credentials'); return [2 /*return*/, Promise.reject('region is not configured for getting the credentials')]; } identityId = undefined; _b.label = 1; case 1: _b.trys.push([1, 3, , 4]); return [4 /*yield*/, this._storageSync]; case 2: _b.sent(); identityId = this._storage.getItem('CognitoIdentityId-' + identityPoolId); this._identityId = identityId; return [3 /*break*/, 4]; case 3: e_1 = _b.sent(); logger.debug('Failed to get the cached identityId', e_1); return [3 /*break*/, 4]; case 4: cognitoClient = new _aws_sdk_client_cognito_identity__WEBPACK_IMPORTED_MODULE_8__["CognitoIdentityClient"]({ region: region, customUserAgent: Object(_Platform__WEBPACK_IMPORTED_MODULE_5__["getAmplifyUserAgent"])(), }); credentials = undefined; if (identityId) { cognitoIdentityParams = { identityId: identityId, client: cognitoClient, }; credentials = Object(_aws_sdk_credential_provider_cognito_identity__WEBPACK_IMPORTED_MODULE_7__["fromCognitoIdentity"])(cognitoIdentityParams)(); } else { credentialsProvider = function () { return __awaiter(_this, void 0, void 0, function () { var IdentityId, cognitoIdentityParams, credentialsFromCognitoIdentity; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, cognitoClient.send(new _aws_sdk_client_cognito_identity__WEBPACK_IMPORTED_MODULE_8__["GetIdCommand"]({ IdentityPoolId: identityPoolId, }))]; case 1: IdentityId = (_a.sent()).IdentityId; this._identityId = IdentityId; cognitoIdentityParams = { client: cognitoClient, identityId: IdentityId, }; credentialsFromCognitoIdentity = Object(_aws_sdk_credential_provider_cognito_identity__WEBPACK_IMPORTED_MODULE_7__["fromCognitoIdentity"])(cognitoIdentityParams); return [2 /*return*/, credentialsFromCognitoIdentity()]; } }); }); }; credentials = credentialsProvider().catch(function (err) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { throw err; }); }); }); } return [2 /*return*/, this._loadCredentials(credentials, 'guest', false, null) .then(function (res) { return res; }) .catch(function (e) { return __awaiter(_this, void 0, void 0, function () { var credentialsProvider; var _this = this; return __generator(this, function (_a) { // If identity id is deleted in the console, we make one attempt to recreate it // and remove existing id from cache. if (e.name === 'ResourceNotFoundException' && e.message === "Identity '" + identityId + "' not found.") { logger.debug('Failed to load guest credentials'); this._storage.removeItem('CognitoIdentityId-' + identityPoolId); credentialsProvider = function () { return __awaiter(_this, void 0, void 0, function () { var IdentityId, cognitoIdentityParams, credentialsFromCognitoIdentity; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, cognitoClient.send(new _aws_sdk_client_cognito_identity__WEBPACK_IMPORTED_MODULE_8__["GetIdCommand"]({ IdentityPoolId: identityPoolId, }))]; case 1: IdentityId = (_a.sent()).IdentityId; this._identityId = IdentityId; cognitoIdentityParams = { client: cognitoClient, identityId: IdentityId, }; credentialsFromCognitoIdentity = Object(_aws_sdk_credential_provider_cognito_identity__WEBPACK_IMPORTED_MODULE_7__["fromCognitoIdentity"])(cognitoIdentityParams); return [2 /*return*/, credentialsFromCognitoIdentity()]; } }); }); }; credentials = credentialsProvider().catch(function (err) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { throw err; }); }); }); return [2 /*return*/, this._loadCredentials(credentials, 'guest', false, null)]; } else { return [2 /*return*/, e]; } return [2 /*return*/]; }); }); })]; } }); }); }; CredentialsClass.prototype._setCredentialsFromFederation = function (params) { var provider = params.provider, token = params.token, identity_id = params.identity_id; var domains = { google: 'accounts.google.com', facebook: 'graph.facebook.com', amazon: 'www.amazon.com', developer: 'cognito-identity.amazonaws.com', }; // Use custom provider url instead of the predefined ones var domain = domains[provider] || provider; if (!domain) { return Promise.reject('You must specify a federated provider'); } var logins = {}; logins[domain] = token; var _a = this._config, identityPoolId = _a.identityPoolId, region = _a.region; if (!identityPoolId) { logger.debug('No Cognito Federated Identity pool provided'); return Promise.reject('No Cognito Federated Identity pool provided'); } if (!region) { logger.debug('region is not configured for getting the credentials'); return Promise.reject('region is not configured for getting the credentials'); } var cognitoClient = new _aws_sdk_client_cognito_identity__WEBPACK_IMPORTED_MODULE_8__["CognitoIdentityClient"]({ region: region, customUserAgent: Object(_Platform__WEBPACK_IMPORTED_MODULE_5__["getAmplifyUserAgent"])(), }); var credentials = undefined; if (identity_id) { var cognitoIdentityParams = { identityId: identity_id, logins: logins, client: cognitoClient, }; credentials = Object(_aws_sdk_credential_provider_cognito_identity__WEBPACK_IMPORTED_MODULE_7__["fromCognitoIdentity"])(cognitoIdentityParams)(); } else { var cognitoIdentityParams = { logins: logins, identityPoolId: identityPoolId, client: cognitoClient, }; credentials = Object(_aws_sdk_credential_provider_cognito_identity__WEBPACK_IMPORTED_MODULE_7__["fromCognitoIdentityPool"])(cognitoIdentityParams)(); } return this._loadCredentials(credentials, 'federated', true, params); }; CredentialsClass.prototype._setCredentialsFromSession = function (session) { var _this = this; logger.debug('set credentials from session'); var idToken = session.getIdToken().getJwtToken(); var _a = this._config, region = _a.region, userPoolId = _a.userPoolId, identityPoolId = _a.identityPoolId; if (!identityPoolId) { logger.debug('No Cognito Federated Identity pool provided'); return Promise.reject('No Cognito Federated Identity pool provided'); } if (!region) { logger.debug('region is not configured for getting the credentials'); return Promise.reject('region is not configured for getting the credentials'); } var key = 'cognito-idp.' + region + '.amazonaws.com/' + userPoolId; var logins = {}; logins[key] = idToken; var cognitoClient = new _aws_sdk_client_cognito_identity__WEBPACK_IMPORTED_MODULE_8__["CognitoIdentityClient"]({ region: region, customUserAgent: Object(_Platform__WEBPACK_IMPORTED_MODULE_5__["getAmplifyUserAgent"])(), }); /* Retreiving identityId with GetIdCommand to mimic the behavior in the following code in aws-sdk-v3: https://git.io/JeDxU Note: Retreive identityId from CredentialsProvider once aws-sdk-js v3 supports this. */ var credentialsProvider = function () { return __awaiter(_this, void 0, void 0, function () { var IdentityId, cognitoIdentityParams, credentialsFromCognitoIdentity; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, cognitoClient.send(new _aws_sdk_client_cognito_identity__WEBPACK_IMPORTED_MODULE_8__["GetIdCommand"]({ IdentityPoolId: identityPoolId, Logins: logins, }))]; case 1: IdentityId = (_a.sent()).IdentityId; this._identityId = IdentityId; cognitoIdentityParams = { client: cognitoClient, logins: logins, identityId: IdentityId, }; credentialsFromCognitoIdentity = Object(_aws_sdk_credential_provider_cognito_identity__WEBPACK_IMPORTED_MODULE_7__["fromCognitoIdentity"])(cognitoIdentityParams); return [2 /*return*/, credentialsFromCognitoIdentity()]; } }); }); }; var credentials = credentialsProvider().catch(function (err) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { throw err; }); }); }); return this._loadCredentials(credentials, 'userPool', true, null); }; CredentialsClass.prototype._loadCredentials = function (credentials, source, authenticated, info) { var _this = this; var that = this; var identityPoolId = this._config.identityPoolId; return new Promise(function (res, rej) { credentials .then(function (credentials) { return __awaiter(_this, void 0, void 0, function () { var user, provider, token, expires_at, identity_id, e_2; return __generator(this, function (_a) { switch (_a.label) { case 0: logger.debug('Load credentials successfully', credentials); if (this._identityId && !credentials.identityId) { credentials['identityId'] = this._identityId; } that._credentials = credentials; that._credentials.authenticated = authenticated; that._credentials_source = source; that._nextCredentialsRefresh = new Date().getTime() + CREDENTIALS_TTL; if (source === 'federated') { user = Object.assign({ id: this._credentials.identityId }, info.user); provider = info.provider, token = info.token, expires_at = info.expires_at, identity_id = info.identity_id; try { this._storage.setItem('aws-amplify-federatedInfo', JSON.stringify({ provider: provider, token: token, user: user, expires_at: expires_at, identity_id: identity_id, })); } catch (e) { logger.debug('Failed to put federated info into auth storage', e); } } if (!(source === 'guest')) return [3 /*break*/, 4]; _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); return [4 /*yield*/, this._storageSync]; case 2: _a.sent(); this._storage.setItem('CognitoIdentityId-' + identityPoolId, credentials.identityId // TODO: IdentityId is currently not returned by fromCognitoIdentityPool() ); return [3 /*break*/, 4]; case 3: e_2 = _a.sent(); logger.debug('Failed to cache identityId', e_2); return [3 /*break*/, 4]; case 4: res(that._credentials); return [2 /*return*/]; } }); }); }) .catch(function (err) { if (err) { logger.debug('Failed to load credentials', credentials); logger.debug('Error loading credentials', err); rej(err); return; } }); }); }; CredentialsClass.prototype.set = function (params, source) { if (source === 'session') { return this._setCredentialsFromSession(params); } else if (source === 'federation') { return this._setCredentialsFromFederation(params); } else if (source === 'guest') { return this._setCredentialsForGuest(); } else { logger.debug('no source specified for setting credentials'); return Promise.reject('invalid source'); } }; CredentialsClass.prototype.clear = function () { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { this._credentials = null; this._credentials_source = null; logger.debug('removing aws-amplify-federatedInfo from storage'); this._storage.removeItem('aws-amplify-federatedInfo'); return [2 /*return*/]; }); }); }; /** * Compact version of credentials * @param {Object} credentials * @return {Object} - Credentials */ CredentialsClass.prototype.shear = function (credentials) { return { accessKeyId: credentials.accessKeyId, sessionToken: credentials.sessionToken, secretAccessKey: credentials.secretAccessKey, identityId: credentials.identityId, authenticated: credentials.authenticated, }; }; return CredentialsClass; }()); var Credentials = new CredentialsClass(null); _Amplify__WEBPACK_IMPORTED_MODULE_6__["Amplify"].register(Credentials); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (Credentials); //# sourceMappingURL=Credentials.js.map /***/ }), /***/ "R1ws": /*!************************************************************************************!*\ !*** ./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/animations.js ***! \************************************************************************************/ /*! exports provided: ANIMATION_MODULE_TYPE, BrowserAnimationsModule, NoopAnimationsModule, ɵAnimationRenderer, ɵAnimationRendererFactory, ɵBrowserAnimationBuilder, ɵBrowserAnimationFactory, ɵInjectableAnimationEngine, ɵangular_packages_platform_browser_animations_animations_a, ɵangular_packages_platform_browser_animations_animations_b, ɵangular_packages_platform_browser_animations_animations_c, ɵangular_packages_platform_browser_animations_animations_d, ɵangular_packages_platform_browser_animations_animations_e, ɵangular_packages_platform_browser_animations_animations_f */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ANIMATION_MODULE_TYPE", function() { return ANIMATION_MODULE_TYPE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserAnimationsModule", function() { return BrowserAnimationsModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NoopAnimationsModule", function() { return NoopAnimationsModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵAnimationRenderer", function() { return AnimationRenderer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵAnimationRendererFactory", function() { return AnimationRendererFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵBrowserAnimationBuilder", function() { return BrowserAnimationBuilder; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵBrowserAnimationFactory", function() { return BrowserAnimationFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵInjectableAnimationEngine", function() { return InjectableAnimationEngine; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_a", function() { return instantiateSupportedAnimationDriver; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_b", function() { return instantiateDefaultStyleNormalizer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_c", function() { return instantiateRendererFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_d", function() { return BROWSER_ANIMATIONS_PROVIDERS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_e", function() { return BROWSER_NOOP_ANIMATIONS_PROVIDERS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_f", function() { return BaseAnimationRenderer; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL"); /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser */ "jhN1"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/animations */ "R0Ic"); /* harmony import */ var _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/animations/browser */ "t9l1"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ "ofXK"); /** * @license Angular v10.1.5 * (c) 2010-2020 Google LLC. https://angular.io/ * License: MIT */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class BrowserAnimationBuilder extends _angular_animations__WEBPACK_IMPORTED_MODULE_2__["AnimationBuilder"] { constructor(rootRenderer, doc) { super(); this._nextAnimationId = 0; const typeData = { id: '0', encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, styles: [], data: { animation: [] } }; this._renderer = rootRenderer.createRenderer(doc.body, typeData); } build(animation) { const id = this._nextAnimationId.toString(); this._nextAnimationId++; const entry = Array.isArray(animation) ? Object(_angular_animations__WEBPACK_IMPORTED_MODULE_2__["sequence"])(animation) : animation; issueAnimationCommand(this._renderer, null, id, 'register', [entry]); return new BrowserAnimationFactory(id, this._renderer); } } BrowserAnimationBuilder.ɵfac = function BrowserAnimationBuilder_Factory(t) { return new (t || BrowserAnimationBuilder)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"])); }; BrowserAnimationBuilder.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: BrowserAnimationBuilder, factory: BrowserAnimationBuilder.ɵfac }); BrowserAnimationBuilder.ctorParameters = () => [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"],] }] } ]; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BrowserAnimationBuilder, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]] }] }]; }, null); })(); class BrowserAnimationFactory extends _angular_animations__WEBPACK_IMPORTED_MODULE_2__["AnimationFactory"] { constructor(_id, _renderer) { super(); this._id = _id; this._renderer = _renderer; } create(element, options) { return new RendererAnimationPlayer(this._id, element, options || {}, this._renderer); } } class RendererAnimationPlayer { constructor(id, element, options, _renderer) { this.id = id; this.element = element; this._renderer = _renderer; this.parentPlayer = null; this._started = false; this.totalTime = 0; this._command('create', options); } _listen(eventName, callback) { return this._renderer.listen(this.element, `@@${this.id}:${eventName}`, callback); } _command(command, ...args) { return issueAnimationCommand(this._renderer, this.element, this.id, command, args); } onDone(fn) { this._listen('done', fn); } onStart(fn) { this._listen('start', fn); } onDestroy(fn) { this._listen('destroy', fn); } init() { this._command('init'); } hasStarted() { return this._started; } play() { this._command('play'); this._started = true; } pause() { this._command('pause'); } restart() { this._command('restart'); } finish() { this._command('finish'); } destroy() { this._command('destroy'); } reset() { this._command('reset'); } setPosition(p) { this._command('setPosition', p); } getPosition() { return 0; } } function issueAnimationCommand(renderer, element, id, command, args) { return renderer.setProperty(element, `@@${id}:${command}`, args); } const ANIMATION_PREFIX = '@'; const DISABLE_ANIMATIONS_FLAG = '@.disabled'; class AnimationRendererFactory { constructor(delegate, engine, _zone) { this.delegate = delegate; this.engine = engine; this._zone = _zone; this._currentId = 0; this._microtaskId = 1; this._animationCallbacksBuffer = []; this._rendererCache = new Map(); this._cdRecurDepth = 0; this.promise = Promise.resolve(0); engine.onRemovalComplete = (element, delegate) => { // Note: if an component element has a leave animation, and the component // a host leave animation, the view engine will call `removeChild` for the parent // component renderer as well as for the child component renderer. // Therefore, we need to check if we already removed the element. if (delegate && delegate.parentNode(element)) { delegate.removeChild(element.parentNode, element); } }; } createRenderer(hostElement, type) { const EMPTY_NAMESPACE_ID = ''; // cache the delegates to find out which cached delegate can // be used by which cached renderer const delegate = this.delegate.createRenderer(hostElement, type); if (!hostElement || !type || !type.data || !type.data['animation']) { let renderer = this._rendererCache.get(delegate); if (!renderer) { renderer = new BaseAnimationRenderer(EMPTY_NAMESPACE_ID, delegate, this.engine); // only cache this result when the base renderer is used this._rendererCache.set(delegate, renderer); } return renderer; } const componentId = type.id; const namespaceId = type.id + '-' + this._currentId; this._currentId++; this.engine.register(namespaceId, hostElement); const registerTrigger = (trigger) => { if (Array.isArray(trigger)) { trigger.forEach(registerTrigger); } else { this.engine.registerTrigger(componentId, namespaceId, hostElement, trigger.name, trigger); } }; const animationTriggers = type.data['animation']; animationTriggers.forEach(registerTrigger); return new AnimationRenderer(this, namespaceId, delegate, this.engine); } begin() { this._cdRecurDepth++; if (this.delegate.begin) { this.delegate.begin(); } } _scheduleCountTask() { // always use promise to schedule microtask instead of use Zone this.promise.then(() => { this._microtaskId++; }); } /** @internal */ scheduleListenerCallback(count, fn, data) { if (count >= 0 && count < this._microtaskId) { this._zone.run(() => fn(data)); return; } if (this._animationCallbacksBuffer.length == 0) { Promise.resolve(null).then(() => { this._zone.run(() => { this._animationCallbacksBuffer.forEach(tuple => { const [fn, data] = tuple; fn(data); }); this._animationCallbacksBuffer = []; }); }); } this._animationCallbacksBuffer.push([fn, data]); } end() { this._cdRecurDepth--; // this is to prevent animations from running twice when an inner // component does CD when a parent component instead has inserted it if (this._cdRecurDepth == 0) { this._zone.runOutsideAngular(() => { this._scheduleCountTask(); this.engine.flush(this._microtaskId); }); } if (this.delegate.end) { this.delegate.end(); } } whenRenderingDone() { return this.engine.whenRenderingDone(); } } AnimationRendererFactory.ɵfac = function AnimationRendererFactory_Factory(t) { return new (t || AnimationRendererFactory)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"])); }; AnimationRendererFactory.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: AnimationRendererFactory, factory: AnimationRendererFactory.ɵfac }); AnimationRendererFactory.ctorParameters = () => [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"] }, { type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] } ]; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AnimationRendererFactory, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"] }, { type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }]; }, null); })(); class BaseAnimationRenderer { constructor(namespaceId, delegate, engine) { this.namespaceId = namespaceId; this.delegate = delegate; this.engine = engine; this.destroyNode = this.delegate.destroyNode ? (n) => delegate.destroyNode(n) : null; } get data() { return this.delegate.data; } destroy() { this.engine.destroy(this.namespaceId, this.delegate); this.delegate.destroy(); } createElement(name, namespace) { return this.delegate.createElement(name, namespace); } createComment(value) { return this.delegate.createComment(value); } createText(value) { return this.delegate.createText(value); } appendChild(parent, newChild) { this.delegate.appendChild(parent, newChild); this.engine.onInsert(this.namespaceId, newChild, parent, false); } insertBefore(parent, newChild, refChild) { this.delegate.insertBefore(parent, newChild, refChild); this.engine.onInsert(this.namespaceId, newChild, parent, true); } removeChild(parent, oldChild, isHostElement) { this.engine.onRemove(this.namespaceId, oldChild, this.delegate, isHostElement); } selectRootElement(selectorOrNode, preserveContent) { return this.delegate.selectRootElement(selectorOrNode, preserveContent); } parentNode(node) { return this.delegate.parentNode(node); } nextSibling(node) { return this.delegate.nextSibling(node); } setAttribute(el, name, value, namespace) { this.delegate.setAttribute(el, name, value, namespace); } removeAttribute(el, name, namespace) { this.delegate.removeAttribute(el, name, namespace); } addClass(el, name) { this.delegate.addClass(el, name); } removeClass(el, name) { this.delegate.removeClass(el, name); } setStyle(el, style, value, flags) { this.delegate.setStyle(el, style, value, flags); } removeStyle(el, style, flags) { this.delegate.removeStyle(el, style, flags); } setProperty(el, name, value) { if (name.charAt(0) == ANIMATION_PREFIX && name == DISABLE_ANIMATIONS_FLAG) { this.disableAnimations(el, !!value); } else { this.delegate.setProperty(el, name, value); } } setValue(node, value) { this.delegate.setValue(node, value); } listen(target, eventName, callback) { return this.delegate.listen(target, eventName, callback); } disableAnimations(element, value) { this.engine.disableAnimations(element, value); } } class AnimationRenderer extends BaseAnimationRenderer { constructor(factory, namespaceId, delegate, engine) { super(namespaceId, delegate, engine); this.factory = factory; this.namespaceId = namespaceId; } setProperty(el, name, value) { if (name.charAt(0) == ANIMATION_PREFIX) { if (name.charAt(1) == '.' && name == DISABLE_ANIMATIONS_FLAG) { value = value === undefined ? true : !!value; this.disableAnimations(el, value); } else { this.engine.process(this.namespaceId, el, name.substr(1), value); } } else { this.delegate.setProperty(el, name, value); } } listen(target, eventName, callback) { if (eventName.charAt(0) == ANIMATION_PREFIX) { const element = resolveElementFromTarget(target); let name = eventName.substr(1); let phase = ''; // @listener.phase is for trigger animation callbacks // @@listener is for animation builder callbacks if (name.charAt(0) != ANIMATION_PREFIX) { [name, phase] = parseTriggerCallbackName(name); } return this.engine.listen(this.namespaceId, element, name, phase, event => { const countId = event['_data'] || -1; this.factory.scheduleListenerCallback(countId, callback, event); }); } return this.delegate.listen(target, eventName, callback); } } function resolveElementFromTarget(target) { switch (target) { case 'body': return document.body; case 'document': return document; case 'window': return window; default: return target; } } function parseTriggerCallbackName(triggerName) { const dotIndex = triggerName.indexOf('.'); const trigger = triggerName.substring(0, dotIndex); const phase = triggerName.substr(dotIndex + 1); return [trigger, phase]; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class InjectableAnimationEngine extends _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"] { constructor(doc, driver, normalizer) { super(doc.body, driver, normalizer); } } InjectableAnimationEngine.ɵfac = function InjectableAnimationEngine_Factory(t) { return new (t || InjectableAnimationEngine)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["AnimationDriver"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationStyleNormalizer"])); }; InjectableAnimationEngine.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: InjectableAnimationEngine, factory: InjectableAnimationEngine.ɵfac }); InjectableAnimationEngine.ctorParameters = () => [ { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"],] }] }, { type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["AnimationDriver"] }, { type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationStyleNormalizer"] } ]; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](InjectableAnimationEngine, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"] }], function () { return [{ type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]] }] }, { type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["AnimationDriver"] }, { type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationStyleNormalizer"] }]; }, null); })(); function instantiateSupportedAnimationDriver() { return Object(_angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵsupportsWebAnimations"])() ? new _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵWebAnimationsDriver"]() : new _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵCssKeyframesDriver"](); } function instantiateDefaultStyleNormalizer() { return new _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵWebAnimationsStyleNormalizer"](); } function instantiateRendererFactory(renderer, engine, zone) { return new AnimationRendererFactory(renderer, engine, zone); } /** * @publicApi */ const ANIMATION_MODULE_TYPE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('AnimationModuleType'); const SHARED_ANIMATION_PROVIDERS = [ { provide: _angular_animations__WEBPACK_IMPORTED_MODULE_2__["AnimationBuilder"], useClass: BrowserAnimationBuilder }, { provide: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationStyleNormalizer"], useFactory: instantiateDefaultStyleNormalizer }, { provide: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"], useClass: InjectableAnimationEngine }, { provide: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"], useFactory: instantiateRendererFactory, deps: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["ɵDomRendererFactory2"], _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]] } ]; /** * Separate providers from the actual module so that we can do a local modification in Google3 to * include them in the BrowserModule. */ const BROWSER_ANIMATIONS_PROVIDERS = [ { provide: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["AnimationDriver"], useFactory: instantiateSupportedAnimationDriver }, { provide: ANIMATION_MODULE_TYPE, useValue: 'BrowserAnimations' }, ...SHARED_ANIMATION_PROVIDERS ]; /** * Separate providers from the actual module so that we can do a local modification in Google3 to * include them in the BrowserTestingModule. */ const BROWSER_NOOP_ANIMATIONS_PROVIDERS = [ { provide: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["AnimationDriver"], useClass: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵNoopAnimationDriver"] }, { provide: ANIMATION_MODULE_TYPE, useValue: 'NoopAnimations' }, ...SHARED_ANIMATION_PROVIDERS ]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Exports `BrowserModule` with additional [dependency-injection providers](guide/glossary#provider) * for use with animations. See [Animations](guide/animations). * @publicApi */ class BrowserAnimationsModule { } BrowserAnimationsModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: BrowserAnimationsModule }); BrowserAnimationsModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function BrowserAnimationsModule_Factory(t) { return new (t || BrowserAnimationsModule)(); }, providers: BROWSER_ANIMATIONS_PROVIDERS, imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](BrowserAnimationsModule, { exports: function () { return [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]]; } }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BrowserAnimationsModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"], args: [{ exports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]], providers: BROWSER_ANIMATIONS_PROVIDERS }] }], null, null); })(); /** * A null player that must be imported to allow disabling of animations. * @publicApi */ class NoopAnimationsModule { } NoopAnimationsModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NoopAnimationsModule }); NoopAnimationsModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NoopAnimationsModule_Factory(t) { return new (t || NoopAnimationsModule)(); }, providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS, imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NoopAnimationsModule, { exports: function () { return [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]]; } }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NoopAnimationsModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"], args: [{ exports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]], providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS }] }], null, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Generated bundle index. Do not edit. */ //# sourceMappingURL=animations.js.map /***/ }), /***/ "R8JX": /*!*************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-translate/dist/es/pagination/ListTerminologiesPaginator.js ***! \*************************************************************************************************/ /*! exports provided: listTerminologiesPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "listTerminologiesPaginate", function() { return listTerminologiesPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Translate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Translate */ "b7AO"); /* harmony import */ var _TranslateClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../TranslateClient */ "xRRc"); /* harmony import */ var _commands_ListTerminologiesCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/ListTerminologiesCommand */ "Na0I"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_ListTerminologiesCommand__WEBPACK_IMPORTED_MODULE_3__["ListTerminologiesCommand"].bind.apply(_commands_ListTerminologiesCommand__WEBPACK_IMPORTED_MODULE_3__["ListTerminologiesCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.listTerminologies.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function listTerminologiesPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function listTerminologiesPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Translate__WEBPACK_IMPORTED_MODULE_1__["Translate"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _TranslateClient__WEBPACK_IMPORTED_MODULE_2__["TranslateClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Translate | TranslateClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=ListTerminologiesPaginator.js.map /***/ }), /***/ "RCJS": /*!****************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/Logger/index.js ***! \****************************************************************/ /*! exports provided: ConsoleLogger */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ConsoleLogger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ConsoleLogger */ "Nt7R"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConsoleLogger", function() { return _ConsoleLogger__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]; }); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ //# sourceMappingURL=index.js.map /***/ }), /***/ "RF0m": /*!***********************************************************!*\ !*** ./node_modules/@aws-amplify/auth/lib/types/index.js ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); __export(__webpack_require__(/*! ./Auth */ "30Lp")); //# sourceMappingURL=index.js.map /***/ }), /***/ "ROOK": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/GetIdCommand.js ***! \****************************************************************************************/ /*! exports provided: GetIdCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetIdCommand", function() { return GetIdCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetIdCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetIdCommand, _super); // Start section: command_properties // End section: command_properties function GetIdCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetIdCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetIdInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetIdResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetIdCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetIdCommand"])(input, context); }; GetIdCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetIdCommand"])(output, context); }; return GetIdCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetIdCommand.js.map /***/ }), /***/ "RUbi": /*!************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/scheduler/AsapScheduler.js ***! \************************************************************************/ /*! exports provided: AsapScheduler */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsapScheduler", function() { return AsapScheduler; }); /* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncScheduler */ "IjjT"); class AsapScheduler extends _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__["AsyncScheduler"] { flush(action) { this.active = true; this.scheduled = undefined; const { actions } = this; let error; let index = -1; let count = actions.length; action = action || actions.shift(); do { if (error = action.execute(action.state, action.delay)) { break; } } while (++index < count && (action = actions.shift())); this.active = false; if (error) { while (++index < count && (action = actions.shift())) { action.unsubscribe(); } throw error; } } } //# sourceMappingURL=AsapScheduler.js.map /***/ }), /***/ "RVjW": /*!***************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/DeleteStreamProcessorCommand.js ***! \***************************************************************************************************/ /*! exports provided: DeleteStreamProcessorCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamProcessorCommand", function() { return DeleteStreamProcessorCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteStreamProcessorCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteStreamProcessorCommand, _super); // Start section: command_properties // End section: command_properties function DeleteStreamProcessorCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteStreamProcessorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteStreamProcessorRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteStreamProcessorResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteStreamProcessorCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DeleteStreamProcessorCommand"])(input, context); }; DeleteStreamProcessorCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DeleteStreamProcessorCommand"])(output, context); }; return DeleteStreamProcessorCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteStreamProcessorCommand.js.map /***/ }), /***/ "RVka": /*!****************************************************!*\ !*** ./node_modules/graphql/error/formatError.mjs ***! \****************************************************/ /*! exports provided: formatError */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatError", function() { return formatError; }); /* harmony import */ var _jsutils_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/invariant */ "2C6G"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Given a GraphQLError, format it according to the rules described by the * Response Format, Errors section of the GraphQL Specification. */ function formatError(error) { !error ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_0__["default"])(0, 'Received null or undefined error.') : void 0; var message = error.message || 'An unknown error occurred.'; var locations = error.locations; var path = error.path; var extensions = error.extensions; return extensions ? { message: message, locations: locations, path: path, extensions: extensions } : { message: message, locations: locations, path: path }; } /***/ }), /***/ "RXia": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-polly/dist/es/commands/ListSpeechSynthesisTasksCommand.js ***! \************************************************************************************************/ /*! exports provided: ListSpeechSynthesisTasksCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListSpeechSynthesisTasksCommand", function() { return ListSpeechSynthesisTasksCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "uUVK"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "h3LU"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListSpeechSynthesisTasksCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListSpeechSynthesisTasksCommand, _super); // Start section: command_properties // End section: command_properties function ListSpeechSynthesisTasksCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListSpeechSynthesisTasksCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListSpeechSynthesisTasksInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListSpeechSynthesisTasksOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListSpeechSynthesisTasksCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1ListSpeechSynthesisTasksCommand"])(input, context); }; ListSpeechSynthesisTasksCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1ListSpeechSynthesisTasksCommand"])(output, context); }; return ListSpeechSynthesisTasksCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListSpeechSynthesisTasksCommand.js.map /***/ }), /***/ "RdWp": /*!******************************************************************************!*\ !*** ./node_modules/@aws-amplify/storage/lib-esm/providers/AWSS3Provider.js ***! \******************************************************************************/ /*! exports provided: AWSS3Provider, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AWSS3Provider", function() { return AWSS3Provider; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _aws_sdk_client_s3__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/client-s3 */ "CF2H"); /* harmony import */ var _aws_sdk_util_format_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/util-format-url */ "wcx3"); /* harmony import */ var _aws_sdk_util_create_request__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/util-create-request */ "EHoG"); /* harmony import */ var _aws_sdk_s3_request_presigner__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/s3-request-presigner */ "AcfH"); /* harmony import */ var _axios_http_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./axios-http-handler */ "mbVn"); /* harmony import */ var _AWSS3ProviderManagedUpload__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./AWSS3ProviderManagedUpload */ "ibFf"); /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! events */ "+qE3"); /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_7__); var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; /* * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AWSS3Provider'); var AMPLIFY_SYMBOL = (typeof Symbol !== 'undefined' && typeof Symbol.for === 'function' ? Symbol.for('amplify_default') : '@@amplify_default'); var dispatchStorageEvent = function (track, event, attrs, metrics, message) { if (track) { var data = { attrs: attrs }; if (metrics) { data['metrics'] = metrics; } _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].dispatch('storage', { event: event, data: data, message: message, }, 'Storage', AMPLIFY_SYMBOL); } }; var localTestingStorageEndpoint = 'http://localhost:20005'; /** * Provide storage methods to use AWS S3 */ var AWSS3Provider = /** @class */ (function () { /** * Initialize Storage with AWS configurations * @param {Object} config - Configuration object for storage */ function AWSS3Provider(config) { this._config = config ? config : {}; logger.debug('Storage Options', this._config); } /** * get the category of the plugin */ AWSS3Provider.prototype.getCategory = function () { return AWSS3Provider.CATEGORY; }; /** * get provider name of the plugin */ AWSS3Provider.prototype.getProviderName = function () { return AWSS3Provider.PROVIDER_NAME; }; /** * Configure Storage part with aws configuration * @param {Object} config - Configuration of the Storage * @return {Object} - Current configuration */ AWSS3Provider.prototype.configure = function (config) { logger.debug('configure Storage', config); if (!config) return this._config; var amplifyConfig = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Parser"].parseMobilehubConfig(config); this._config = Object.assign({}, this._config, amplifyConfig.Storage); if (!this._config.bucket) { logger.debug('Do not have bucket yet'); } return this._config; }; /** * Get a presigned URL of the file or the object data when download:true * * @param {string} key - key of the object * @param {Object} [config] - { level : private|protected|public, download: true|false } * @return - A promise resolves to Amazon S3 presigned URL on success */ AWSS3Provider.prototype.get = function (key, config) { return __awaiter(this, void 0, void 0, function () { var credentialsOK, opt, bucket, download, cacheControl, contentDisposition, contentEncoding, contentLanguage, contentType, expires, track, prefix, final_key, s3, params, getObjectCommand, response, error_1, signer, request, url, _a, error_2; return __generator(this, function (_b) { switch (_b.label) { case 0: return [4 /*yield*/, this._ensureCredentials()]; case 1: credentialsOK = _b.sent(); if (!credentialsOK) { return [2 /*return*/, Promise.reject('No credentials')]; } opt = Object.assign({}, this._config, config); bucket = opt.bucket, download = opt.download, cacheControl = opt.cacheControl, contentDisposition = opt.contentDisposition, contentEncoding = opt.contentEncoding, contentLanguage = opt.contentLanguage, contentType = opt.contentType, expires = opt.expires, track = opt.track; prefix = this._prefix(opt); final_key = prefix + key; s3 = this._createNewS3Client(opt); logger.debug('get ' + key + ' from ' + final_key); params = { Bucket: bucket, Key: final_key, }; // See: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#getObject-property if (cacheControl) params.ResponseCacheControl = cacheControl; if (contentDisposition) params.ResponseContentDisposition = contentDisposition; if (contentEncoding) params.ResponseContentEncoding = contentEncoding; if (contentLanguage) params.ResponseContentLanguage = contentLanguage; if (contentType) params.ResponseContentType = contentType; if (!(download === true)) return [3 /*break*/, 5]; getObjectCommand = new _aws_sdk_client_s3__WEBPACK_IMPORTED_MODULE_1__["GetObjectCommand"](params); _b.label = 2; case 2: _b.trys.push([2, 4, , 5]); return [4 /*yield*/, s3.send(getObjectCommand)]; case 3: response = _b.sent(); dispatchStorageEvent(track, 'download', { method: 'get', result: 'success' }, { fileSize: Number(response.Body['size'] || response.Body['length']), }, "Download success for " + key); return [2 /*return*/, response]; case 4: error_1 = _b.sent(); dispatchStorageEvent(track, 'download', { method: 'get', result: 'failed', }, null, "Download failed with " + error_1.message); throw error_1; case 5: params.Expires = expires || 900; // Default is 15 mins as defined in V2 AWS SDK _b.label = 6; case 6: _b.trys.push([6, 9, , 10]); signer = new _aws_sdk_s3_request_presigner__WEBPACK_IMPORTED_MODULE_4__["S3RequestPresigner"](__assign({}, s3.config)); return [4 /*yield*/, Object(_aws_sdk_util_create_request__WEBPACK_IMPORTED_MODULE_3__["createRequest"])(s3, new _aws_sdk_client_s3__WEBPACK_IMPORTED_MODULE_1__["GetObjectCommand"](params))]; case 7: request = _b.sent(); _a = _aws_sdk_util_format_url__WEBPACK_IMPORTED_MODULE_2__["formatUrl"]; return [4 /*yield*/, signer.presign(request, { expiresIn: params.Expires })]; case 8: url = _a.apply(void 0, [(_b.sent())]); dispatchStorageEvent(track, 'getSignedUrl', { method: 'get', result: 'success' }, null, "Signed URL: " + url); return [2 /*return*/, url]; case 9: error_2 = _b.sent(); logger.warn('get signed url error', error_2); dispatchStorageEvent(track, 'getSignedUrl', { method: 'get', result: 'failed' }, null, "Could not get a signed URL for " + key); throw error_2; case 10: return [2 /*return*/]; } }); }); }; /** * Put a file in S3 bucket specified to configure method * @param {string} key - key of the object * @param {Object} object - File to be put in Amazon S3 bucket * @param {Object} [config] - { level : private|protected|public, contentType: MIME Types, * progressCallback: function } * @return - promise resolves to object on success */ AWSS3Provider.prototype.put = function (key, object, config) { return __awaiter(this, void 0, void 0, function () { var credentialsOK, opt, bucket, track, progressCallback, contentType, contentDisposition, cacheControl, expires, metadata, tagging, acl, serverSideEncryption, SSECustomerAlgorithm, SSECustomerKey, SSECustomerKeyMD5, SSEKMSKeyId, type, prefix, final_key, params, emitter, uploader, response, error_3; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this._ensureCredentials()]; case 1: credentialsOK = _a.sent(); if (!credentialsOK) { return [2 /*return*/, Promise.reject('No credentials')]; } opt = Object.assign({}, this._config, config); bucket = opt.bucket, track = opt.track, progressCallback = opt.progressCallback; contentType = opt.contentType, contentDisposition = opt.contentDisposition, cacheControl = opt.cacheControl, expires = opt.expires, metadata = opt.metadata, tagging = opt.tagging, acl = opt.acl; serverSideEncryption = opt.serverSideEncryption, SSECustomerAlgorithm = opt.SSECustomerAlgorithm, SSECustomerKey = opt.SSECustomerKey, SSECustomerKeyMD5 = opt.SSECustomerKeyMD5, SSEKMSKeyId = opt.SSEKMSKeyId; type = contentType ? contentType : 'binary/octet-stream'; prefix = this._prefix(opt); final_key = prefix + key; logger.debug('put ' + key + ' to ' + final_key); params = { Bucket: bucket, Key: final_key, Body: object, ContentType: type, }; if (cacheControl) { params.CacheControl = cacheControl; } if (contentDisposition) { params.ContentDisposition = contentDisposition; } if (expires) { params.Expires = expires; } if (metadata) { params.Metadata = metadata; } if (tagging) { params.Tagging = tagging; } if (serverSideEncryption) { params.ServerSideEncryption = serverSideEncryption; if (SSECustomerAlgorithm) { params.SSECustomerAlgorithm = SSECustomerAlgorithm; } if (SSECustomerKey) { params.SSECustomerKey = SSECustomerKey; } if (SSECustomerKeyMD5) { params.SSECustomerKeyMD5 = SSECustomerKeyMD5; } if (SSEKMSKeyId) { params.SSEKMSKeyId = SSEKMSKeyId; } } emitter = new events__WEBPACK_IMPORTED_MODULE_7__["EventEmitter"](); uploader = new _AWSS3ProviderManagedUpload__WEBPACK_IMPORTED_MODULE_6__["AWSS3ProviderManagedUpload"](params, opt, emitter); if (acl) { params.ACL = acl; } _a.label = 2; case 2: _a.trys.push([2, 4, , 5]); emitter.on('sendProgress', function (progress) { if (progressCallback) { if (typeof progressCallback === 'function') { progressCallback(progress); } else { logger.warn('progressCallback should be a function, not a ' + typeof progressCallback); } } }); return [4 /*yield*/, uploader.upload()]; case 3: response = _a.sent(); logger.debug('upload result', response); dispatchStorageEvent(track, 'upload', { method: 'put', result: 'success' }, null, "Upload success for " + key); return [2 /*return*/, { key: key, }]; case 4: error_3 = _a.sent(); logger.warn('error uploading', error_3); dispatchStorageEvent(track, 'upload', { method: 'put', result: 'failed' }, null, "Error uploading " + key); throw error_3; case 5: return [2 /*return*/]; } }); }); }; /** * Remove the object for specified key * @param {string} key - key of the object * @param {Object} [config] - { level : private|protected|public } * @return - Promise resolves upon successful removal of the object */ AWSS3Provider.prototype.remove = function (key, config) { return __awaiter(this, void 0, void 0, function () { var credentialsOK, opt, bucket, track, prefix, final_key, s3, params, deleteObjectCommand, response, error_4; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this._ensureCredentials()]; case 1: credentialsOK = _a.sent(); if (!credentialsOK) { return [2 /*return*/, Promise.reject('No credentials')]; } opt = Object.assign({}, this._config, config); bucket = opt.bucket, track = opt.track; prefix = this._prefix(opt); final_key = prefix + key; s3 = this._createNewS3Client(opt); logger.debug('remove ' + key + ' from ' + final_key); params = { Bucket: bucket, Key: final_key, }; deleteObjectCommand = new _aws_sdk_client_s3__WEBPACK_IMPORTED_MODULE_1__["DeleteObjectCommand"](params); _a.label = 2; case 2: _a.trys.push([2, 4, , 5]); return [4 /*yield*/, s3.send(deleteObjectCommand)]; case 3: response = _a.sent(); dispatchStorageEvent(track, 'delete', { method: 'remove', result: 'success' }, null, "Deleted " + key + " successfully"); return [2 /*return*/, response]; case 4: error_4 = _a.sent(); dispatchStorageEvent(track, 'delete', { method: 'remove', result: 'failed' }, null, "Deletion of " + key + " failed with " + error_4); throw error_4; case 5: return [2 /*return*/]; } }); }); }; /** * List bucket objects relative to the level and prefix specified * @param {string} path - the path that contains objects * @param {Object} [config] - { level : private|protected|public } * @return - Promise resolves to list of keys for all objects in path */ AWSS3Provider.prototype.list = function (path, config) { return __awaiter(this, void 0, void 0, function () { var credentialsOK, opt, bucket, track, maxKeys, prefix, final_path, s3, params, listObjectsCommand, response, list, error_5; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this._ensureCredentials()]; case 1: credentialsOK = _a.sent(); if (!credentialsOK) { return [2 /*return*/, Promise.reject('No credentials')]; } opt = Object.assign({}, this._config, config); bucket = opt.bucket, track = opt.track, maxKeys = opt.maxKeys; prefix = this._prefix(opt); final_path = prefix + path; s3 = this._createNewS3Client(opt); logger.debug('list ' + path + ' from ' + final_path); params = { Bucket: bucket, Prefix: final_path, MaxKeys: maxKeys, }; listObjectsCommand = new _aws_sdk_client_s3__WEBPACK_IMPORTED_MODULE_1__["ListObjectsCommand"](params); _a.label = 2; case 2: _a.trys.push([2, 4, , 5]); return [4 /*yield*/, s3.send(listObjectsCommand)]; case 3: response = _a.sent(); list = []; if (response && response.Contents) { list = response.Contents.map(function (item) { return { key: item.Key.substr(prefix.length), eTag: item.ETag, lastModified: item.LastModified, size: item.Size, }; }); } dispatchStorageEvent(track, 'list', { method: 'list', result: 'success' }, null, list.length + " items returned from list operation"); logger.debug('list', list); return [2 /*return*/, list]; case 4: error_5 = _a.sent(); logger.warn('list error', error_5); dispatchStorageEvent(track, 'list', { method: 'list', result: 'failed' }, null, "Listing items failed: " + error_5.message); throw error_5; case 5: return [2 /*return*/]; } }); }); }; /** * @private */ AWSS3Provider.prototype._ensureCredentials = function () { var _this = this; return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].get() .then(function (credentials) { if (!credentials) return false; var cred = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].shear(credentials); logger.debug('set credentials for storage', cred); _this._config.credentials = cred; return true; }) .catch(function (error) { logger.warn('ensure credentials error', error); return false; }); }; /** * @private */ AWSS3Provider.prototype._prefix = function (config) { var credentials = config.credentials, level = config.level; var customPrefix = config.customPrefix || {}; var identityId = config.identityId || credentials.identityId; var privatePath = (customPrefix.private !== undefined ? customPrefix.private : 'private/') + identityId + '/'; var protectedPath = (customPrefix.protected !== undefined ? customPrefix.protected : 'protected/') + identityId + '/'; var publicPath = customPrefix.public !== undefined ? customPrefix.public : 'public/'; switch (level) { case 'private': return privatePath; case 'protected': return protectedPath; default: return publicPath; } }; /** * @private creates an S3 client with new V3 aws sdk */ AWSS3Provider.prototype._createNewS3Client = function (config, emitter) { var region = config.region, credentials = config.credentials, dangerouslyConnectToHttpEndpointForTesting = config.dangerouslyConnectToHttpEndpointForTesting; var localTestingConfig = {}; if (dangerouslyConnectToHttpEndpointForTesting) { localTestingConfig = { endpoint: localTestingStorageEndpoint, tls: false, bucketEndpoint: false, forcePathStyle: true, }; } var s3client = new _aws_sdk_client_s3__WEBPACK_IMPORTED_MODULE_1__["S3Client"](__assign(__assign({ region: region, credentials: credentials, customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["getAmplifyUserAgent"])() }, localTestingConfig), { requestHandler: new _axios_http_handler__WEBPACK_IMPORTED_MODULE_5__["AxiosHttpHandler"]({}, emitter) })); return s3client; }; AWSS3Provider.CATEGORY = 'Storage'; AWSS3Provider.PROVIDER_NAME = 'AWSS3'; return AWSS3Provider; }()); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (AWSS3Provider); //# sourceMappingURL=AWSS3Provider.js.map /***/ }), /***/ "Rfsf": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-translate/dist/es/commands/ImportTerminologyCommand.js ***! \*********************************************************************************************/ /*! exports provided: ImportTerminologyCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportTerminologyCommand", function() { return ImportTerminologyCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "B4mn"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "eh4a"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ImportTerminologyCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ImportTerminologyCommand, _super); // Start section: command_properties // End section: command_properties function ImportTerminologyCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ImportTerminologyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ImportTerminologyRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ImportTerminologyResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ImportTerminologyCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ImportTerminologyCommand"])(input, context); }; ImportTerminologyCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ImportTerminologyCommand"])(output, context); }; return ImportTerminologyCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ImportTerminologyCommand.js.map /***/ }), /***/ "RmbW": /*!************************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-retry/dist/es/delayDecider.js ***! \************************************************************************/ /*! exports provided: defaultDelayDecider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultDelayDecider", function() { return defaultDelayDecider; }); /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ "u/uE"); /** * Calculate a capped, fully-jittered exponential backoff time. */ var defaultDelayDecider = function (delayBase, attempts) { return Math.floor(Math.min(_constants__WEBPACK_IMPORTED_MODULE_0__["MAXIMUM_RETRY_DELAY"], Math.random() * Math.pow(2, attempts) * delayBase)); }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsYXlEZWNpZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2RlbGF5RGVjaWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFFbEQ7O0dBRUc7QUFDSCxNQUFNLENBQUMsSUFBTSxtQkFBbUIsR0FBRyxVQUFDLFNBQWlCLEVBQUUsUUFBZ0I7SUFDckUsT0FBQSxJQUFJLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsbUJBQW1CLEVBQUUsSUFBSSxDQUFDLE1BQU0sRUFBRSxHQUFHLFNBQUEsQ0FBQyxFQUFJLFFBQVEsQ0FBQSxHQUFHLFNBQVMsQ0FBQyxDQUFDO0FBQXBGLENBQW9GLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBNQVhJTVVNX1JFVFJZX0RFTEFZIH0gZnJvbSBcIi4vY29uc3RhbnRzXCI7XG5cbi8qKlxuICogQ2FsY3VsYXRlIGEgY2FwcGVkLCBmdWxseS1qaXR0ZXJlZCBleHBvbmVudGlhbCBiYWNrb2ZmIHRpbWUuXG4gKi9cbmV4cG9ydCBjb25zdCBkZWZhdWx0RGVsYXlEZWNpZGVyID0gKGRlbGF5QmFzZTogbnVtYmVyLCBhdHRlbXB0czogbnVtYmVyKSA9PlxuICBNYXRoLmZsb29yKE1hdGgubWluKE1BWElNVU1fUkVUUllfREVMQVksIE1hdGgucmFuZG9tKCkgKiAyICoqIGF0dGVtcHRzICogZGVsYXlCYXNlKSk7XG4iXX0= /***/ }), /***/ "Rn+g": /*!***********************************************!*\ !*** ./node_modules/axios/lib/core/settle.js ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var createError = __webpack_require__(/*! ./createError */ "LYNF"); /** * Resolve or reject a Promise based on response status. * * @param {Function} resolve A function that resolves the promise. * @param {Function} reject A function that rejects the promise. * @param {object} response The response. */ module.exports = function settle(resolve, reject, response) { var validateStatus = response.config.validateStatus; if (!validateStatus || validateStatus(response.status)) { resolve(response); } else { reject(createError( 'Request failed with status code ' + response.status, response.config, null, response.request, response )); } }; /***/ }), /***/ "Rnto": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteUserEndpointsCommand.js ***! \**********************************************************************************************/ /*! exports provided: DeleteUserEndpointsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsCommand", function() { return DeleteUserEndpointsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteUserEndpointsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteUserEndpointsCommand, _super); // Start section: command_properties // End section: command_properties function DeleteUserEndpointsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteUserEndpointsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteUserEndpointsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteUserEndpointsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteUserEndpointsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteUserEndpointsCommand"])(input, context); }; DeleteUserEndpointsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteUserEndpointsCommand"])(output, context); }; return DeleteUserEndpointsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteUserEndpointsCommand.js.map /***/ }), /***/ "Rs19": /*!******************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-personalize-events/dist/es/package.json ***! \******************************************************************************/ /*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, author, license, default */ /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"@aws-sdk/client-personalize-events\",\"description\":\"@aws-sdk/client-personalize-events client\",\"version\":\"1.0.0-gamma.8\",\"scripts\":{\"clean\":\"npm run remove-definitions && npm run remove-dist\",\"build-documentation\":\"npm run clean && typedoc ./\",\"prepublishOnly\":\"yarn build\",\"pretest\":\"yarn build:cjs\",\"remove-definitions\":\"rimraf ./types\",\"remove-dist\":\"rimraf ./dist\",\"remove-documentation\":\"rimraf ./docs\",\"test\":\"exit 0\",\"build:cjs\":\"tsc -p tsconfig.json\",\"build:es\":\"tsc -p tsconfig.es.json\",\"build\":\"yarn build:cjs && yarn build:es\"},\"main\":\"./dist/cjs/index.js\",\"types\":\"./types/index.d.ts\",\"module\":\"./dist/es/index.js\",\"browser\":{\"./runtimeConfig\":\"./runtimeConfig.browser\"},\"react-native\":{\"./runtimeConfig\":\"./runtimeConfig.native\"},\"sideEffects\":false,\"dependencies\":{\"@aws-crypto/sha256-browser\":\"^1.0.0-alpha.0\",\"@aws-crypto/sha256-js\":\"^1.0.0-alpha.0\",\"@aws-sdk/config-resolver\":\"1.0.0-gamma.7\",\"@aws-sdk/credential-provider-node\":\"1.0.0-gamma.7\",\"@aws-sdk/fetch-http-handler\":\"1.0.0-gamma.8\",\"@aws-sdk/hash-node\":\"1.0.0-gamma.7\",\"@aws-sdk/invalid-dependency\":\"1.0.0-gamma.5\",\"@aws-sdk/middleware-content-length\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-host-header\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-logger\":\"1.0.0-gamma.1\",\"@aws-sdk/middleware-retry\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-serde\":\"1.0.0-gamma.6\",\"@aws-sdk/middleware-signing\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-stack\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-user-agent\":\"1.0.0-gamma.7\",\"@aws-sdk/node-config-provider\":\"1.0.0-gamma.2\",\"@aws-sdk/node-http-handler\":\"1.0.0-gamma.7\",\"@aws-sdk/protocol-http\":\"1.0.0-gamma.7\",\"@aws-sdk/smithy-client\":\"1.0.0-gamma.7\",\"@aws-sdk/types\":\"1.0.0-gamma.6\",\"@aws-sdk/url-parser-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/url-parser-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-base64-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-base64-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-user-agent-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/util-user-agent-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-utf8-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-utf8-node\":\"1.0.0-gamma.6\",\"tslib\":\"^2.0.0\"},\"devDependencies\":{\"@aws-sdk/client-documentation-generator\":\"1.0.0-gamma.5\",\"@types/node\":\"^12.7.5\",\"jest\":\"^26.1.0\",\"rimraf\":\"^3.0.0\",\"typedoc\":\"^0.17.8\",\"typescript\":\"~4.0.2\"},\"engines\":{\"node\":\">=8.0.0\"},\"author\":{\"name\":\"AWS SDK for JavaScript Team\",\"url\":\"https://aws.amazon.com/javascript/\"},\"license\":\"Apache-2.0\"}"); /***/ }), /***/ "Rsbi": /*!*******************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/Pinpoint.js ***! \*******************************************************************/ /*! exports provided: Pinpoint */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pinpoint", function() { return Pinpoint; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _PinpointClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PinpointClient */ "uy0C"); /* harmony import */ var _commands_CreateAppCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/CreateAppCommand */ "e0nL"); /* harmony import */ var _commands_CreateCampaignCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/CreateCampaignCommand */ "LjFZ"); /* harmony import */ var _commands_CreateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/CreateEmailTemplateCommand */ "Q9wF"); /* harmony import */ var _commands_CreateExportJobCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/CreateExportJobCommand */ "xmZz"); /* harmony import */ var _commands_CreateImportJobCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/CreateImportJobCommand */ "x+YT"); /* harmony import */ var _commands_CreateJourneyCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/CreateJourneyCommand */ "c7rq"); /* harmony import */ var _commands_CreatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/CreatePushTemplateCommand */ "3spr"); /* harmony import */ var _commands_CreateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/CreateRecommenderConfigurationCommand */ "y9DR"); /* harmony import */ var _commands_CreateSegmentCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/CreateSegmentCommand */ "8LHb"); /* harmony import */ var _commands_CreateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/CreateSmsTemplateCommand */ "vSw9"); /* harmony import */ var _commands_CreateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/CreateVoiceTemplateCommand */ "Eds4"); /* harmony import */ var _commands_DeleteAdmChannelCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/DeleteAdmChannelCommand */ "Ukkh"); /* harmony import */ var _commands_DeleteApnsChannelCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/DeleteApnsChannelCommand */ "yIMh"); /* harmony import */ var _commands_DeleteApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/DeleteApnsSandboxChannelCommand */ "izAz"); /* harmony import */ var _commands_DeleteApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/DeleteApnsVoipChannelCommand */ "Gju0"); /* harmony import */ var _commands_DeleteApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/DeleteApnsVoipSandboxChannelCommand */ "b+5N"); /* harmony import */ var _commands_DeleteAppCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/DeleteAppCommand */ "LB7D"); /* harmony import */ var _commands_DeleteBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/DeleteBaiduChannelCommand */ "iq4p"); /* harmony import */ var _commands_DeleteCampaignCommand__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./commands/DeleteCampaignCommand */ "6B53"); /* harmony import */ var _commands_DeleteEmailChannelCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/DeleteEmailChannelCommand */ "2ACi"); /* harmony import */ var _commands_DeleteEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/DeleteEmailTemplateCommand */ "fuE7"); /* harmony import */ var _commands_DeleteEndpointCommand__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./commands/DeleteEndpointCommand */ "3hse"); /* harmony import */ var _commands_DeleteEventStreamCommand__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./commands/DeleteEventStreamCommand */ "Wb+S"); /* harmony import */ var _commands_DeleteGcmChannelCommand__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./commands/DeleteGcmChannelCommand */ "oimN"); /* harmony import */ var _commands_DeleteJourneyCommand__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./commands/DeleteJourneyCommand */ "MkjW"); /* harmony import */ var _commands_DeletePushTemplateCommand__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./commands/DeletePushTemplateCommand */ "88cP"); /* harmony import */ var _commands_DeleteRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./commands/DeleteRecommenderConfigurationCommand */ "mE6a"); /* harmony import */ var _commands_DeleteSegmentCommand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./commands/DeleteSegmentCommand */ "W7TT"); /* harmony import */ var _commands_DeleteSmsChannelCommand__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./commands/DeleteSmsChannelCommand */ "Q6gB"); /* harmony import */ var _commands_DeleteSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./commands/DeleteSmsTemplateCommand */ "F0qz"); /* harmony import */ var _commands_DeleteUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./commands/DeleteUserEndpointsCommand */ "Rnto"); /* harmony import */ var _commands_DeleteVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./commands/DeleteVoiceChannelCommand */ "YwP6"); /* harmony import */ var _commands_DeleteVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./commands/DeleteVoiceTemplateCommand */ "Az6a"); /* harmony import */ var _commands_GetAdmChannelCommand__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./commands/GetAdmChannelCommand */ "3Mas"); /* harmony import */ var _commands_GetApnsChannelCommand__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./commands/GetApnsChannelCommand */ "jZem"); /* harmony import */ var _commands_GetApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./commands/GetApnsSandboxChannelCommand */ "Aj/d"); /* harmony import */ var _commands_GetApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./commands/GetApnsVoipChannelCommand */ "Vxrz"); /* harmony import */ var _commands_GetApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./commands/GetApnsVoipSandboxChannelCommand */ "O/zc"); /* harmony import */ var _commands_GetAppCommand__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./commands/GetAppCommand */ "2lIZ"); /* harmony import */ var _commands_GetApplicationDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./commands/GetApplicationDateRangeKpiCommand */ "jq1Y"); /* harmony import */ var _commands_GetApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./commands/GetApplicationSettingsCommand */ "/sDv"); /* harmony import */ var _commands_GetAppsCommand__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./commands/GetAppsCommand */ "P6/G"); /* harmony import */ var _commands_GetBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./commands/GetBaiduChannelCommand */ "pFec"); /* harmony import */ var _commands_GetCampaignActivitiesCommand__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./commands/GetCampaignActivitiesCommand */ "EkgW"); /* harmony import */ var _commands_GetCampaignCommand__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./commands/GetCampaignCommand */ "BLt0"); /* harmony import */ var _commands_GetCampaignDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./commands/GetCampaignDateRangeKpiCommand */ "G8u8"); /* harmony import */ var _commands_GetCampaignVersionCommand__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./commands/GetCampaignVersionCommand */ "cJkL"); /* harmony import */ var _commands_GetCampaignVersionsCommand__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./commands/GetCampaignVersionsCommand */ "L4K2"); /* harmony import */ var _commands_GetCampaignsCommand__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./commands/GetCampaignsCommand */ "e8O2"); /* harmony import */ var _commands_GetChannelsCommand__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./commands/GetChannelsCommand */ "tFPS"); /* harmony import */ var _commands_GetEmailChannelCommand__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./commands/GetEmailChannelCommand */ "il/R"); /* harmony import */ var _commands_GetEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./commands/GetEmailTemplateCommand */ "Pokg"); /* harmony import */ var _commands_GetEndpointCommand__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./commands/GetEndpointCommand */ "DMc/"); /* harmony import */ var _commands_GetEventStreamCommand__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./commands/GetEventStreamCommand */ "fry/"); /* harmony import */ var _commands_GetExportJobCommand__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./commands/GetExportJobCommand */ "hMvX"); /* harmony import */ var _commands_GetExportJobsCommand__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./commands/GetExportJobsCommand */ "lAb6"); /* harmony import */ var _commands_GetGcmChannelCommand__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./commands/GetGcmChannelCommand */ "A1a1"); /* harmony import */ var _commands_GetImportJobCommand__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./commands/GetImportJobCommand */ "f3Bl"); /* harmony import */ var _commands_GetImportJobsCommand__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./commands/GetImportJobsCommand */ "DoJc"); /* harmony import */ var _commands_GetJourneyCommand__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./commands/GetJourneyCommand */ "UOWG"); /* harmony import */ var _commands_GetJourneyDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./commands/GetJourneyDateRangeKpiCommand */ "tlLW"); /* harmony import */ var _commands_GetJourneyExecutionActivityMetricsCommand__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./commands/GetJourneyExecutionActivityMetricsCommand */ "vaJ9"); /* harmony import */ var _commands_GetJourneyExecutionMetricsCommand__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./commands/GetJourneyExecutionMetricsCommand */ "wofK"); /* harmony import */ var _commands_GetPushTemplateCommand__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./commands/GetPushTemplateCommand */ "aSwM"); /* harmony import */ var _commands_GetRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./commands/GetRecommenderConfigurationCommand */ "qpcA"); /* harmony import */ var _commands_GetRecommenderConfigurationsCommand__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./commands/GetRecommenderConfigurationsCommand */ "59Yy"); /* harmony import */ var _commands_GetSegmentCommand__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./commands/GetSegmentCommand */ "9ETN"); /* harmony import */ var _commands_GetSegmentExportJobsCommand__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./commands/GetSegmentExportJobsCommand */ "OEcO"); /* harmony import */ var _commands_GetSegmentImportJobsCommand__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./commands/GetSegmentImportJobsCommand */ "hhRY"); /* harmony import */ var _commands_GetSegmentVersionCommand__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./commands/GetSegmentVersionCommand */ "4wMv"); /* harmony import */ var _commands_GetSegmentVersionsCommand__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./commands/GetSegmentVersionsCommand */ "hjI9"); /* harmony import */ var _commands_GetSegmentsCommand__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ./commands/GetSegmentsCommand */ "uazp"); /* harmony import */ var _commands_GetSmsChannelCommand__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ./commands/GetSmsChannelCommand */ "2Ctp"); /* harmony import */ var _commands_GetSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ./commands/GetSmsTemplateCommand */ "FiXj"); /* harmony import */ var _commands_GetUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ./commands/GetUserEndpointsCommand */ "dJlu"); /* harmony import */ var _commands_GetVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ./commands/GetVoiceChannelCommand */ "yxa1"); /* harmony import */ var _commands_GetVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ./commands/GetVoiceTemplateCommand */ "ocBX"); /* harmony import */ var _commands_ListJourneysCommand__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ./commands/ListJourneysCommand */ "81uo"); /* harmony import */ var _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ./commands/ListTagsForResourceCommand */ "Fp+q"); /* harmony import */ var _commands_ListTemplateVersionsCommand__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ./commands/ListTemplateVersionsCommand */ "kM94"); /* harmony import */ var _commands_ListTemplatesCommand__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ./commands/ListTemplatesCommand */ "L9KU"); /* harmony import */ var _commands_PhoneNumberValidateCommand__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ./commands/PhoneNumberValidateCommand */ "ogT0"); /* harmony import */ var _commands_PutEventStreamCommand__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ./commands/PutEventStreamCommand */ "r393"); /* harmony import */ var _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ./commands/PutEventsCommand */ "Gd6z"); /* harmony import */ var _commands_RemoveAttributesCommand__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ./commands/RemoveAttributesCommand */ "dTNM"); /* harmony import */ var _commands_SendMessagesCommand__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ./commands/SendMessagesCommand */ "yfh8"); /* harmony import */ var _commands_SendUsersMessagesCommand__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ./commands/SendUsersMessagesCommand */ "y9dF"); /* harmony import */ var _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! ./commands/TagResourceCommand */ "Qll+"); /* harmony import */ var _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(/*! ./commands/UntagResourceCommand */ "vj/8"); /* harmony import */ var _commands_UpdateAdmChannelCommand__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(/*! ./commands/UpdateAdmChannelCommand */ "YwjR"); /* harmony import */ var _commands_UpdateApnsChannelCommand__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(/*! ./commands/UpdateApnsChannelCommand */ "PwNr"); /* harmony import */ var _commands_UpdateApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(/*! ./commands/UpdateApnsSandboxChannelCommand */ "5XLS"); /* harmony import */ var _commands_UpdateApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(/*! ./commands/UpdateApnsVoipChannelCommand */ "DP5i"); /* harmony import */ var _commands_UpdateApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(/*! ./commands/UpdateApnsVoipSandboxChannelCommand */ "tO/H"); /* harmony import */ var _commands_UpdateApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(/*! ./commands/UpdateApplicationSettingsCommand */ "LP1H"); /* harmony import */ var _commands_UpdateBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(/*! ./commands/UpdateBaiduChannelCommand */ "bWGS"); /* harmony import */ var _commands_UpdateCampaignCommand__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(/*! ./commands/UpdateCampaignCommand */ "wKfR"); /* harmony import */ var _commands_UpdateEmailChannelCommand__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(/*! ./commands/UpdateEmailChannelCommand */ "FL9v"); /* harmony import */ var _commands_UpdateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(/*! ./commands/UpdateEmailTemplateCommand */ "mpod"); /* harmony import */ var _commands_UpdateEndpointCommand__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(/*! ./commands/UpdateEndpointCommand */ "ZM/B"); /* harmony import */ var _commands_UpdateEndpointsBatchCommand__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(/*! ./commands/UpdateEndpointsBatchCommand */ "rCU/"); /* harmony import */ var _commands_UpdateGcmChannelCommand__WEBPACK_IMPORTED_MODULE_103__ = __webpack_require__(/*! ./commands/UpdateGcmChannelCommand */ "caCD"); /* harmony import */ var _commands_UpdateJourneyCommand__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(/*! ./commands/UpdateJourneyCommand */ "EmLY"); /* harmony import */ var _commands_UpdateJourneyStateCommand__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(/*! ./commands/UpdateJourneyStateCommand */ "UHnt"); /* harmony import */ var _commands_UpdatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(/*! ./commands/UpdatePushTemplateCommand */ "p78j"); /* harmony import */ var _commands_UpdateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(/*! ./commands/UpdateRecommenderConfigurationCommand */ "ufDZ"); /* harmony import */ var _commands_UpdateSegmentCommand__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(/*! ./commands/UpdateSegmentCommand */ "F5/f"); /* harmony import */ var _commands_UpdateSmsChannelCommand__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(/*! ./commands/UpdateSmsChannelCommand */ "v+fT"); /* harmony import */ var _commands_UpdateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(/*! ./commands/UpdateSmsTemplateCommand */ "7slb"); /* harmony import */ var _commands_UpdateTemplateActiveVersionCommand__WEBPACK_IMPORTED_MODULE_111__ = __webpack_require__(/*! ./commands/UpdateTemplateActiveVersionCommand */ "vK35"); /* harmony import */ var _commands_UpdateVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_112__ = __webpack_require__(/*! ./commands/UpdateVoiceChannelCommand */ "xW1F"); /* harmony import */ var _commands_UpdateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(/*! ./commands/UpdateVoiceTemplateCommand */ "x+c/"); /** *

Doc Engage API - Amazon Pinpoint API

*/ var Pinpoint = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Pinpoint, _super); function Pinpoint() { return _super !== null && _super.apply(this, arguments) || this; } Pinpoint.prototype.createApp = function (args, optionsOrCb, cb) { var command = new _commands_CreateAppCommand__WEBPACK_IMPORTED_MODULE_2__["CreateAppCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.createCampaign = function (args, optionsOrCb, cb) { var command = new _commands_CreateCampaignCommand__WEBPACK_IMPORTED_MODULE_3__["CreateCampaignCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.createEmailTemplate = function (args, optionsOrCb, cb) { var command = new _commands_CreateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_4__["CreateEmailTemplateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.createExportJob = function (args, optionsOrCb, cb) { var command = new _commands_CreateExportJobCommand__WEBPACK_IMPORTED_MODULE_5__["CreateExportJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.createImportJob = function (args, optionsOrCb, cb) { var command = new _commands_CreateImportJobCommand__WEBPACK_IMPORTED_MODULE_6__["CreateImportJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.createJourney = function (args, optionsOrCb, cb) { var command = new _commands_CreateJourneyCommand__WEBPACK_IMPORTED_MODULE_7__["CreateJourneyCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.createPushTemplate = function (args, optionsOrCb, cb) { var command = new _commands_CreatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_8__["CreatePushTemplateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.createRecommenderConfiguration = function (args, optionsOrCb, cb) { var command = new _commands_CreateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_9__["CreateRecommenderConfigurationCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.createSegment = function (args, optionsOrCb, cb) { var command = new _commands_CreateSegmentCommand__WEBPACK_IMPORTED_MODULE_10__["CreateSegmentCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.createSmsTemplate = function (args, optionsOrCb, cb) { var command = new _commands_CreateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_11__["CreateSmsTemplateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.createVoiceTemplate = function (args, optionsOrCb, cb) { var command = new _commands_CreateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_12__["CreateVoiceTemplateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteAdmChannel = function (args, optionsOrCb, cb) { var command = new _commands_DeleteAdmChannelCommand__WEBPACK_IMPORTED_MODULE_13__["DeleteAdmChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteApnsChannel = function (args, optionsOrCb, cb) { var command = new _commands_DeleteApnsChannelCommand__WEBPACK_IMPORTED_MODULE_14__["DeleteApnsChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteApnsSandboxChannel = function (args, optionsOrCb, cb) { var command = new _commands_DeleteApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_15__["DeleteApnsSandboxChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteApnsVoipChannel = function (args, optionsOrCb, cb) { var command = new _commands_DeleteApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_16__["DeleteApnsVoipChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteApnsVoipSandboxChannel = function (args, optionsOrCb, cb) { var command = new _commands_DeleteApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_17__["DeleteApnsVoipSandboxChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteApp = function (args, optionsOrCb, cb) { var command = new _commands_DeleteAppCommand__WEBPACK_IMPORTED_MODULE_18__["DeleteAppCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteBaiduChannel = function (args, optionsOrCb, cb) { var command = new _commands_DeleteBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_19__["DeleteBaiduChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteCampaign = function (args, optionsOrCb, cb) { var command = new _commands_DeleteCampaignCommand__WEBPACK_IMPORTED_MODULE_20__["DeleteCampaignCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteEmailChannel = function (args, optionsOrCb, cb) { var command = new _commands_DeleteEmailChannelCommand__WEBPACK_IMPORTED_MODULE_21__["DeleteEmailChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteEmailTemplate = function (args, optionsOrCb, cb) { var command = new _commands_DeleteEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_22__["DeleteEmailTemplateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteEndpoint = function (args, optionsOrCb, cb) { var command = new _commands_DeleteEndpointCommand__WEBPACK_IMPORTED_MODULE_23__["DeleteEndpointCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteEventStream = function (args, optionsOrCb, cb) { var command = new _commands_DeleteEventStreamCommand__WEBPACK_IMPORTED_MODULE_24__["DeleteEventStreamCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteGcmChannel = function (args, optionsOrCb, cb) { var command = new _commands_DeleteGcmChannelCommand__WEBPACK_IMPORTED_MODULE_25__["DeleteGcmChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteJourney = function (args, optionsOrCb, cb) { var command = new _commands_DeleteJourneyCommand__WEBPACK_IMPORTED_MODULE_26__["DeleteJourneyCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deletePushTemplate = function (args, optionsOrCb, cb) { var command = new _commands_DeletePushTemplateCommand__WEBPACK_IMPORTED_MODULE_27__["DeletePushTemplateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteRecommenderConfiguration = function (args, optionsOrCb, cb) { var command = new _commands_DeleteRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_28__["DeleteRecommenderConfigurationCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteSegment = function (args, optionsOrCb, cb) { var command = new _commands_DeleteSegmentCommand__WEBPACK_IMPORTED_MODULE_29__["DeleteSegmentCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteSmsChannel = function (args, optionsOrCb, cb) { var command = new _commands_DeleteSmsChannelCommand__WEBPACK_IMPORTED_MODULE_30__["DeleteSmsChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteSmsTemplate = function (args, optionsOrCb, cb) { var command = new _commands_DeleteSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_31__["DeleteSmsTemplateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteUserEndpoints = function (args, optionsOrCb, cb) { var command = new _commands_DeleteUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_32__["DeleteUserEndpointsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteVoiceChannel = function (args, optionsOrCb, cb) { var command = new _commands_DeleteVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_33__["DeleteVoiceChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.deleteVoiceTemplate = function (args, optionsOrCb, cb) { var command = new _commands_DeleteVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_34__["DeleteVoiceTemplateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getAdmChannel = function (args, optionsOrCb, cb) { var command = new _commands_GetAdmChannelCommand__WEBPACK_IMPORTED_MODULE_35__["GetAdmChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getApnsChannel = function (args, optionsOrCb, cb) { var command = new _commands_GetApnsChannelCommand__WEBPACK_IMPORTED_MODULE_36__["GetApnsChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getApnsSandboxChannel = function (args, optionsOrCb, cb) { var command = new _commands_GetApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_37__["GetApnsSandboxChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getApnsVoipChannel = function (args, optionsOrCb, cb) { var command = new _commands_GetApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_38__["GetApnsVoipChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getApnsVoipSandboxChannel = function (args, optionsOrCb, cb) { var command = new _commands_GetApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_39__["GetApnsVoipSandboxChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getApp = function (args, optionsOrCb, cb) { var command = new _commands_GetAppCommand__WEBPACK_IMPORTED_MODULE_40__["GetAppCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getApplicationDateRangeKpi = function (args, optionsOrCb, cb) { var command = new _commands_GetApplicationDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_41__["GetApplicationDateRangeKpiCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getApplicationSettings = function (args, optionsOrCb, cb) { var command = new _commands_GetApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_42__["GetApplicationSettingsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getApps = function (args, optionsOrCb, cb) { var command = new _commands_GetAppsCommand__WEBPACK_IMPORTED_MODULE_43__["GetAppsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getBaiduChannel = function (args, optionsOrCb, cb) { var command = new _commands_GetBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_44__["GetBaiduChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getCampaign = function (args, optionsOrCb, cb) { var command = new _commands_GetCampaignCommand__WEBPACK_IMPORTED_MODULE_46__["GetCampaignCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getCampaignActivities = function (args, optionsOrCb, cb) { var command = new _commands_GetCampaignActivitiesCommand__WEBPACK_IMPORTED_MODULE_45__["GetCampaignActivitiesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getCampaignDateRangeKpi = function (args, optionsOrCb, cb) { var command = new _commands_GetCampaignDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_47__["GetCampaignDateRangeKpiCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getCampaigns = function (args, optionsOrCb, cb) { var command = new _commands_GetCampaignsCommand__WEBPACK_IMPORTED_MODULE_50__["GetCampaignsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getCampaignVersion = function (args, optionsOrCb, cb) { var command = new _commands_GetCampaignVersionCommand__WEBPACK_IMPORTED_MODULE_48__["GetCampaignVersionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getCampaignVersions = function (args, optionsOrCb, cb) { var command = new _commands_GetCampaignVersionsCommand__WEBPACK_IMPORTED_MODULE_49__["GetCampaignVersionsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getChannels = function (args, optionsOrCb, cb) { var command = new _commands_GetChannelsCommand__WEBPACK_IMPORTED_MODULE_51__["GetChannelsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getEmailChannel = function (args, optionsOrCb, cb) { var command = new _commands_GetEmailChannelCommand__WEBPACK_IMPORTED_MODULE_52__["GetEmailChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getEmailTemplate = function (args, optionsOrCb, cb) { var command = new _commands_GetEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_53__["GetEmailTemplateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getEndpoint = function (args, optionsOrCb, cb) { var command = new _commands_GetEndpointCommand__WEBPACK_IMPORTED_MODULE_54__["GetEndpointCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getEventStream = function (args, optionsOrCb, cb) { var command = new _commands_GetEventStreamCommand__WEBPACK_IMPORTED_MODULE_55__["GetEventStreamCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getExportJob = function (args, optionsOrCb, cb) { var command = new _commands_GetExportJobCommand__WEBPACK_IMPORTED_MODULE_56__["GetExportJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getExportJobs = function (args, optionsOrCb, cb) { var command = new _commands_GetExportJobsCommand__WEBPACK_IMPORTED_MODULE_57__["GetExportJobsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getGcmChannel = function (args, optionsOrCb, cb) { var command = new _commands_GetGcmChannelCommand__WEBPACK_IMPORTED_MODULE_58__["GetGcmChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getImportJob = function (args, optionsOrCb, cb) { var command = new _commands_GetImportJobCommand__WEBPACK_IMPORTED_MODULE_59__["GetImportJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getImportJobs = function (args, optionsOrCb, cb) { var command = new _commands_GetImportJobsCommand__WEBPACK_IMPORTED_MODULE_60__["GetImportJobsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getJourney = function (args, optionsOrCb, cb) { var command = new _commands_GetJourneyCommand__WEBPACK_IMPORTED_MODULE_61__["GetJourneyCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getJourneyDateRangeKpi = function (args, optionsOrCb, cb) { var command = new _commands_GetJourneyDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_62__["GetJourneyDateRangeKpiCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getJourneyExecutionActivityMetrics = function (args, optionsOrCb, cb) { var command = new _commands_GetJourneyExecutionActivityMetricsCommand__WEBPACK_IMPORTED_MODULE_63__["GetJourneyExecutionActivityMetricsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getJourneyExecutionMetrics = function (args, optionsOrCb, cb) { var command = new _commands_GetJourneyExecutionMetricsCommand__WEBPACK_IMPORTED_MODULE_64__["GetJourneyExecutionMetricsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getPushTemplate = function (args, optionsOrCb, cb) { var command = new _commands_GetPushTemplateCommand__WEBPACK_IMPORTED_MODULE_65__["GetPushTemplateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getRecommenderConfiguration = function (args, optionsOrCb, cb) { var command = new _commands_GetRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_66__["GetRecommenderConfigurationCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getRecommenderConfigurations = function (args, optionsOrCb, cb) { var command = new _commands_GetRecommenderConfigurationsCommand__WEBPACK_IMPORTED_MODULE_67__["GetRecommenderConfigurationsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getSegment = function (args, optionsOrCb, cb) { var command = new _commands_GetSegmentCommand__WEBPACK_IMPORTED_MODULE_68__["GetSegmentCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getSegmentExportJobs = function (args, optionsOrCb, cb) { var command = new _commands_GetSegmentExportJobsCommand__WEBPACK_IMPORTED_MODULE_69__["GetSegmentExportJobsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getSegmentImportJobs = function (args, optionsOrCb, cb) { var command = new _commands_GetSegmentImportJobsCommand__WEBPACK_IMPORTED_MODULE_70__["GetSegmentImportJobsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getSegments = function (args, optionsOrCb, cb) { var command = new _commands_GetSegmentsCommand__WEBPACK_IMPORTED_MODULE_73__["GetSegmentsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getSegmentVersion = function (args, optionsOrCb, cb) { var command = new _commands_GetSegmentVersionCommand__WEBPACK_IMPORTED_MODULE_71__["GetSegmentVersionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getSegmentVersions = function (args, optionsOrCb, cb) { var command = new _commands_GetSegmentVersionsCommand__WEBPACK_IMPORTED_MODULE_72__["GetSegmentVersionsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getSmsChannel = function (args, optionsOrCb, cb) { var command = new _commands_GetSmsChannelCommand__WEBPACK_IMPORTED_MODULE_74__["GetSmsChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getSmsTemplate = function (args, optionsOrCb, cb) { var command = new _commands_GetSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_75__["GetSmsTemplateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getUserEndpoints = function (args, optionsOrCb, cb) { var command = new _commands_GetUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_76__["GetUserEndpointsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getVoiceChannel = function (args, optionsOrCb, cb) { var command = new _commands_GetVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_77__["GetVoiceChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.getVoiceTemplate = function (args, optionsOrCb, cb) { var command = new _commands_GetVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_78__["GetVoiceTemplateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.listJourneys = function (args, optionsOrCb, cb) { var command = new _commands_ListJourneysCommand__WEBPACK_IMPORTED_MODULE_79__["ListJourneysCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.listTagsForResource = function (args, optionsOrCb, cb) { var command = new _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_80__["ListTagsForResourceCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.listTemplates = function (args, optionsOrCb, cb) { var command = new _commands_ListTemplatesCommand__WEBPACK_IMPORTED_MODULE_82__["ListTemplatesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.listTemplateVersions = function (args, optionsOrCb, cb) { var command = new _commands_ListTemplateVersionsCommand__WEBPACK_IMPORTED_MODULE_81__["ListTemplateVersionsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.phoneNumberValidate = function (args, optionsOrCb, cb) { var command = new _commands_PhoneNumberValidateCommand__WEBPACK_IMPORTED_MODULE_83__["PhoneNumberValidateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.putEvents = function (args, optionsOrCb, cb) { var command = new _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_85__["PutEventsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.putEventStream = function (args, optionsOrCb, cb) { var command = new _commands_PutEventStreamCommand__WEBPACK_IMPORTED_MODULE_84__["PutEventStreamCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.removeAttributes = function (args, optionsOrCb, cb) { var command = new _commands_RemoveAttributesCommand__WEBPACK_IMPORTED_MODULE_86__["RemoveAttributesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.sendMessages = function (args, optionsOrCb, cb) { var command = new _commands_SendMessagesCommand__WEBPACK_IMPORTED_MODULE_87__["SendMessagesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.sendUsersMessages = function (args, optionsOrCb, cb) { var command = new _commands_SendUsersMessagesCommand__WEBPACK_IMPORTED_MODULE_88__["SendUsersMessagesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.tagResource = function (args, optionsOrCb, cb) { var command = new _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_89__["TagResourceCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.untagResource = function (args, optionsOrCb, cb) { var command = new _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_90__["UntagResourceCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateAdmChannel = function (args, optionsOrCb, cb) { var command = new _commands_UpdateAdmChannelCommand__WEBPACK_IMPORTED_MODULE_91__["UpdateAdmChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateApnsChannel = function (args, optionsOrCb, cb) { var command = new _commands_UpdateApnsChannelCommand__WEBPACK_IMPORTED_MODULE_92__["UpdateApnsChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateApnsSandboxChannel = function (args, optionsOrCb, cb) { var command = new _commands_UpdateApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_93__["UpdateApnsSandboxChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateApnsVoipChannel = function (args, optionsOrCb, cb) { var command = new _commands_UpdateApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_94__["UpdateApnsVoipChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateApnsVoipSandboxChannel = function (args, optionsOrCb, cb) { var command = new _commands_UpdateApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_95__["UpdateApnsVoipSandboxChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateApplicationSettings = function (args, optionsOrCb, cb) { var command = new _commands_UpdateApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_96__["UpdateApplicationSettingsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateBaiduChannel = function (args, optionsOrCb, cb) { var command = new _commands_UpdateBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_97__["UpdateBaiduChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateCampaign = function (args, optionsOrCb, cb) { var command = new _commands_UpdateCampaignCommand__WEBPACK_IMPORTED_MODULE_98__["UpdateCampaignCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateEmailChannel = function (args, optionsOrCb, cb) { var command = new _commands_UpdateEmailChannelCommand__WEBPACK_IMPORTED_MODULE_99__["UpdateEmailChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateEmailTemplate = function (args, optionsOrCb, cb) { var command = new _commands_UpdateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_100__["UpdateEmailTemplateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateEndpoint = function (args, optionsOrCb, cb) { var command = new _commands_UpdateEndpointCommand__WEBPACK_IMPORTED_MODULE_101__["UpdateEndpointCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateEndpointsBatch = function (args, optionsOrCb, cb) { var command = new _commands_UpdateEndpointsBatchCommand__WEBPACK_IMPORTED_MODULE_102__["UpdateEndpointsBatchCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateGcmChannel = function (args, optionsOrCb, cb) { var command = new _commands_UpdateGcmChannelCommand__WEBPACK_IMPORTED_MODULE_103__["UpdateGcmChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateJourney = function (args, optionsOrCb, cb) { var command = new _commands_UpdateJourneyCommand__WEBPACK_IMPORTED_MODULE_104__["UpdateJourneyCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateJourneyState = function (args, optionsOrCb, cb) { var command = new _commands_UpdateJourneyStateCommand__WEBPACK_IMPORTED_MODULE_105__["UpdateJourneyStateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updatePushTemplate = function (args, optionsOrCb, cb) { var command = new _commands_UpdatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_106__["UpdatePushTemplateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateRecommenderConfiguration = function (args, optionsOrCb, cb) { var command = new _commands_UpdateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_107__["UpdateRecommenderConfigurationCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateSegment = function (args, optionsOrCb, cb) { var command = new _commands_UpdateSegmentCommand__WEBPACK_IMPORTED_MODULE_108__["UpdateSegmentCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateSmsChannel = function (args, optionsOrCb, cb) { var command = new _commands_UpdateSmsChannelCommand__WEBPACK_IMPORTED_MODULE_109__["UpdateSmsChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateSmsTemplate = function (args, optionsOrCb, cb) { var command = new _commands_UpdateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_110__["UpdateSmsTemplateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateTemplateActiveVersion = function (args, optionsOrCb, cb) { var command = new _commands_UpdateTemplateActiveVersionCommand__WEBPACK_IMPORTED_MODULE_111__["UpdateTemplateActiveVersionCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateVoiceChannel = function (args, optionsOrCb, cb) { var command = new _commands_UpdateVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_112__["UpdateVoiceChannelCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Pinpoint.prototype.updateVoiceTemplate = function (args, optionsOrCb, cb) { var command = new _commands_UpdateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_113__["UpdateVoiceTemplateCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; return Pinpoint; }(_PinpointClient__WEBPACK_IMPORTED_MODULE_1__["PinpointClient"])); //# sourceMappingURL=Pinpoint.js.map /***/ }), /***/ "Rw49": /*!**********************************************************************!*\ !*** ./node_modules/@aws-amplify/predictions/lib-esm/types/index.js ***! \**********************************************************************/ /*! exports provided: InterpretTextCategories, isIdentifyFromCollection, isIdentifyCelebrities, isTranslateTextInput, isTextToSpeechInput, isSpeechToTextInput, isStorageSource, isFileSource, isBytesSource, isIdentifyTextInput, isIdentifyLabelsInput, isIdentifyEntitiesInput, isInterpretTextInput */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Predictions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Predictions */ "QVn7"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InterpretTextCategories", function() { return _Predictions__WEBPACK_IMPORTED_MODULE_0__["InterpretTextCategories"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isIdentifyFromCollection", function() { return _Predictions__WEBPACK_IMPORTED_MODULE_0__["isIdentifyFromCollection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isIdentifyCelebrities", function() { return _Predictions__WEBPACK_IMPORTED_MODULE_0__["isIdentifyCelebrities"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isTranslateTextInput", function() { return _Predictions__WEBPACK_IMPORTED_MODULE_0__["isTranslateTextInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isTextToSpeechInput", function() { return _Predictions__WEBPACK_IMPORTED_MODULE_0__["isTextToSpeechInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isSpeechToTextInput", function() { return _Predictions__WEBPACK_IMPORTED_MODULE_0__["isSpeechToTextInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isStorageSource", function() { return _Predictions__WEBPACK_IMPORTED_MODULE_0__["isStorageSource"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isFileSource", function() { return _Predictions__WEBPACK_IMPORTED_MODULE_0__["isFileSource"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isBytesSource", function() { return _Predictions__WEBPACK_IMPORTED_MODULE_0__["isBytesSource"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isIdentifyTextInput", function() { return _Predictions__WEBPACK_IMPORTED_MODULE_0__["isIdentifyTextInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isIdentifyLabelsInput", function() { return _Predictions__WEBPACK_IMPORTED_MODULE_0__["isIdentifyLabelsInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isIdentifyEntitiesInput", function() { return _Predictions__WEBPACK_IMPORTED_MODULE_0__["isIdentifyEntitiesInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isInterpretTextInput", function() { return _Predictions__WEBPACK_IMPORTED_MODULE_0__["isInterpretTextInput"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "RwOw": /*!**********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/DescribeSentimentDetectionJobCommand.js ***! \**********************************************************************************************************/ /*! exports provided: DescribeSentimentDetectionJobCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeSentimentDetectionJobCommand", function() { return DescribeSentimentDetectionJobCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DescribeSentimentDetectionJobCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeSentimentDetectionJobCommand, _super); // Start section: command_properties // End section: command_properties function DescribeSentimentDetectionJobCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DescribeSentimentDetectionJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeSentimentDetectionJobRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeSentimentDetectionJobResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DescribeSentimentDetectionJobCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeSentimentDetectionJobCommand"])(input, context); }; DescribeSentimentDetectionJobCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeSentimentDetectionJobCommand"])(output, context); }; return DescribeSentimentDetectionJobCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DescribeSentimentDetectionJobCommand.js.map /***/ }), /***/ "Rzw5": /*!***********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordCommand.js ***! \***********************************************************************************/ /*! exports provided: PutRecordCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordCommand", function() { return PutRecordCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutRecordCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutRecordCommand, _super); // Start section: command_properties // End section: command_properties function PutRecordCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutRecordCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutRecordInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutRecordOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutRecordCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1PutRecordCommand"])(input, context); }; PutRecordCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1PutRecordCommand"])(output, context); }; return PutRecordCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=PutRecordCommand.js.map /***/ }), /***/ "S3Ut": /*!*****************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-polly/dist/es/runtimeConfig.browser.js ***! \*****************************************************************************/ /*! exports provided: ClientDefaultValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientDefaultValues", function() { return ClientDefaultValues; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./package.json */ "015y"); var _package_json__WEBPACK_IMPORTED_MODULE_1___namespace = /*#__PURE__*/__webpack_require__.t(/*! ./package.json */ "015y", 1); /* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-crypto/sha256-browser */ "viNG"); /* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/fetch-http-handler */ "LUnR"); /* harmony import */ var _aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/invalid-dependency */ "J2eM"); /* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "UMev"); /* harmony import */ var _aws_sdk_url_parser_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/url-parser-browser */ "c14h"); /* harmony import */ var _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/util-base64-browser */ "S3Uu"); /* harmony import */ var _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/util-body-length-browser */ "N9sX"); /* harmony import */ var _aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/util-user-agent-browser */ "wU8f"); /* harmony import */ var _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "kg8h"); /* harmony import */ var _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./runtimeConfig.shared */ "mIb9"); var ClientDefaultValues = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__["ClientSharedValues"]), { runtime: "browser", base64Decoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__["fromBase64"], base64Encoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__["toBase64"], bodyLengthChecker: _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_8__["calculateBodyLength"], credentialDefaultProvider: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__["invalidFunction"])("Credential is missing"), defaultUserAgent: Object(_aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_9__["defaultUserAgent"])(_package_json__WEBPACK_IMPORTED_MODULE_1__["name"], _package_json__WEBPACK_IMPORTED_MODULE_1__["version"]), maxAttempts: _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__["DEFAULT_MAX_ATTEMPTS"], region: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__["invalidFunction"])("Region is missing"), requestHandler: new _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["FetchHttpHandler"](), sha256: _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__["Sha256"], streamCollector: _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["streamCollector"], urlParser: _aws_sdk_url_parser_browser__WEBPACK_IMPORTED_MODULE_6__["parseUrl"], utf8Decoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__["fromUtf8"], utf8Encoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__["toUtf8"] }); //# sourceMappingURL=runtimeConfig.browser.js.map /***/ }), /***/ "S3Uu": /*!********************************************************************!*\ !*** ./node_modules/@aws-sdk/util-base64-browser/dist/es/index.js ***! \********************************************************************/ /*! exports provided: fromBase64, toBase64 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromBase64", function() { return fromBase64; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toBase64", function() { return toBase64; }); var alphabetByEncoding = {}; var alphabetByValue = new Array(64); for (var i = 0, start = "A".charCodeAt(0), limit = "Z".charCodeAt(0); i + start <= limit; i++) { var char = String.fromCharCode(i + start); alphabetByEncoding[char] = i; alphabetByValue[i] = char; } for (var i = 0, start = "a".charCodeAt(0), limit = "z".charCodeAt(0); i + start <= limit; i++) { var char = String.fromCharCode(i + start); var index = i + 26; alphabetByEncoding[char] = index; alphabetByValue[index] = char; } for (var i = 0; i < 10; i++) { alphabetByEncoding[i.toString(10)] = i + 52; var char = i.toString(10); var index = i + 52; alphabetByEncoding[char] = index; alphabetByValue[index] = char; } alphabetByEncoding["+"] = 62; alphabetByValue[62] = "+"; alphabetByEncoding["/"] = 63; alphabetByValue[63] = "/"; var bitsPerLetter = 6; var bitsPerByte = 8; var maxLetterValue = 63; /** * Converts a base-64 encoded string to a Uint8Array of bytes. * * @param input The base-64 encoded string * * @see https://tools.ietf.org/html/rfc4648#section-4 */ function fromBase64(input) { var totalByteLength = (input.length / 4) * 3; if (input.substr(-2) === "==") { totalByteLength -= 2; } else if (input.substr(-1) === "=") { totalByteLength--; } var out = new ArrayBuffer(totalByteLength); var dataView = new DataView(out); for (var i = 0; i < input.length; i += 4) { var bits = 0; var bitLength = 0; for (var j = i, limit = i + 3; j <= limit; j++) { if (input[j] !== "=") { bits |= alphabetByEncoding[input[j]] << ((limit - j) * bitsPerLetter); bitLength += bitsPerLetter; } else { bits >>= bitsPerLetter; } } var chunkOffset = (i / 4) * 3; bits >>= bitLength % bitsPerByte; var byteLength = Math.floor(bitLength / bitsPerByte); for (var k = 0; k < byteLength; k++) { var offset = (byteLength - k - 1) * bitsPerByte; dataView.setUint8(chunkOffset + k, (bits & (255 << offset)) >> offset); } } return new Uint8Array(out); } /** * Converts a Uint8Array of binary data to a base-64 encoded string. * * @param input The binary data to encode * * @see https://tools.ietf.org/html/rfc4648#section-4 */ function toBase64(input) { var str = ""; for (var i = 0; i < input.length; i += 3) { var bits = 0; var bitLength = 0; for (var j = i, limit = Math.min(i + 3, input.length); j < limit; j++) { bits |= input[j] << ((limit - j - 1) * bitsPerByte); bitLength += bitsPerByte; } var bitClusterCount = Math.ceil(bitLength / bitsPerLetter); bits <<= bitClusterCount * bitsPerLetter - bitLength; for (var k = 1; k <= bitClusterCount; k++) { var offset = (bitClusterCount - k) * bitsPerLetter; str += alphabetByValue[(bits & (maxLetterValue << offset)) >> offset]; } str += "==".slice(0, 4 - bitClusterCount); } return str; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsSUFBTSxrQkFBa0IsR0FBOEIsRUFBRSxDQUFDO0FBQ3pELElBQU0sZUFBZSxHQUFrQixJQUFJLEtBQUssQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUVyRCxLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxLQUFLLEdBQUcsR0FBRyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsRUFBRSxLQUFLLEdBQUcsR0FBRyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLEdBQUcsS0FBSyxJQUFJLEtBQUssRUFBRSxDQUFDLEVBQUUsRUFBRTtJQUM3RixJQUFNLElBQUksR0FBRyxNQUFNLENBQUMsWUFBWSxDQUFDLENBQUMsR0FBRyxLQUFLLENBQUMsQ0FBQztJQUM1QyxrQkFBa0IsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUM7SUFDN0IsZUFBZSxDQUFDLENBQUMsQ0FBQyxHQUFHLElBQUksQ0FBQztDQUMzQjtBQUVELEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLEtBQUssR0FBRyxHQUFHLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxFQUFFLEtBQUssR0FBRyxHQUFHLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsR0FBRyxLQUFLLElBQUksS0FBSyxFQUFFLENBQUMsRUFBRSxFQUFFO0lBQzdGLElBQU0sSUFBSSxHQUFHLE1BQU0sQ0FBQyxZQUFZLENBQUMsQ0FBQyxHQUFHLEtBQUssQ0FBQyxDQUFDO0lBQzVDLElBQU0sS0FBSyxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7SUFDckIsa0JBQWtCLENBQUMsSUFBSSxDQUFDLEdBQUcsS0FBSyxDQUFDO0lBQ2pDLGVBQWUsQ0FBQyxLQUFLLENBQUMsR0FBRyxJQUFJLENBQUM7Q0FDL0I7QUFFRCxLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsRUFBRSxFQUFFLENBQUMsRUFBRSxFQUFFO0lBQzNCLGtCQUFrQixDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDLENBQUMsR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQzVDLElBQU0sSUFBSSxHQUFHLENBQUMsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDNUIsSUFBTSxLQUFLLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztJQUNyQixrQkFBa0IsQ0FBQyxJQUFJLENBQUMsR0FBRyxLQUFLLENBQUM7SUFDakMsZUFBZSxDQUFDLEtBQUssQ0FBQyxHQUFHLElBQUksQ0FBQztDQUMvQjtBQUVELGtCQUFrQixDQUFDLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUM3QixlQUFlLENBQUMsRUFBRSxDQUFDLEdBQUcsR0FBRyxDQUFDO0FBQzFCLGtCQUFrQixDQUFDLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUM3QixlQUFlLENBQUMsRUFBRSxDQUFDLEdBQUcsR0FBRyxDQUFDO0FBRTFCLElBQU0sYUFBYSxHQUFHLENBQUMsQ0FBQztBQUN4QixJQUFNLFdBQVcsR0FBRyxDQUFDLENBQUM7QUFDdEIsSUFBTSxjQUFjLEdBQUcsRUFBUSxDQUFDO0FBRWhDOzs7Ozs7R0FNRztBQUNILE1BQU0sVUFBVSxVQUFVLENBQUMsS0FBYTtJQUN0QyxJQUFJLGVBQWUsR0FBRyxDQUFDLEtBQUssQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQzdDLElBQUksS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQyxLQUFLLElBQUksRUFBRTtRQUM3QixlQUFlLElBQUksQ0FBQyxDQUFDO0tBQ3RCO1NBQU0sSUFBSSxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDLEtBQUssR0FBRyxFQUFFO1FBQ25DLGVBQWUsRUFBRSxDQUFDO0tBQ25CO0lBQ0QsSUFBTSxHQUFHLEdBQUcsSUFBSSxXQUFXLENBQUMsZUFBZSxDQUFDLENBQUM7SUFDN0MsSUFBTSxRQUFRLEdBQUcsSUFBSSxRQUFRLENBQUMsR0FBRyxDQUFDLENBQUM7SUFDbkMsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLEtBQUssQ0FBQyxNQUFNLEVBQUUsQ0FBQyxJQUFJLENBQUMsRUFBRTtRQUN4QyxJQUFJLElBQUksR0FBRyxDQUFDLENBQUM7UUFDYixJQUFJLFNBQVMsR0FBRyxDQUFDLENBQUM7UUFDbEIsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsS0FBSyxHQUFHLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxJQUFJLEtBQUssRUFBRSxDQUFDLEVBQUUsRUFBRTtZQUM5QyxJQUFJLEtBQUssQ0FBQyxDQUFDLENBQUMsS0FBSyxHQUFHLEVBQUU7Z0JBQ3BCLElBQUksSUFBSSxrQkFBa0IsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsS0FBSyxHQUFHLENBQUMsQ0FBQyxHQUFHLGFBQWEsQ0FBQyxDQUFDO2dCQUN0RSxTQUFTLElBQUksYUFBYSxDQUFDO2FBQzVCO2lCQUFNO2dCQUNMLElBQUksS0FBSyxhQUFhLENBQUM7YUFDeEI7U0FDRjtRQUVELElBQU0sV0FBVyxHQUFHLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUNoQyxJQUFJLEtBQUssU0FBUyxHQUFHLFdBQVcsQ0FBQztRQUNqQyxJQUFNLFVBQVUsR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLFNBQVMsR0FBRyxXQUFXLENBQUMsQ0FBQztRQUN2RCxLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsVUFBVSxFQUFFLENBQUMsRUFBRSxFQUFFO1lBQ25DLElBQU0sTUFBTSxHQUFHLENBQUMsVUFBVSxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxXQUFXLENBQUM7WUFDbEQsUUFBUSxDQUFDLFFBQVEsQ0FBQyxXQUFXLEdBQUcsQ0FBQyxFQUFFLENBQUMsSUFBSSxHQUFHLENBQUMsR0FBRyxJQUFJLE1BQU0sQ0FBQyxDQUFDLElBQUksTUFBTSxDQUFDLENBQUM7U0FDeEU7S0FDRjtJQUVELE9BQU8sSUFBSSxVQUFVLENBQUMsR0FBRyxDQUFDLENBQUM7QUFDN0IsQ0FBQztBQUVEOzs7Ozs7R0FNRztBQUNILE1BQU0sVUFBVSxRQUFRLENBQUMsS0FBaUI7SUFDeEMsSUFBSSxHQUFHLEdBQUcsRUFBRSxDQUFDO0lBQ2IsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLEtBQUssQ0FBQyxNQUFNLEVBQUUsQ0FBQyxJQUFJLENBQUMsRUFBRTtRQUN4QyxJQUFJLElBQUksR0FBRyxDQUFDLENBQUM7UUFDYixJQUFJLFNBQVMsR0FBRyxDQUFDLENBQUM7UUFDbEIsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsS0FBSyxHQUFHLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQyxHQUFHLENBQUMsRUFBRSxLQUFLLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQyxHQUFHLEtBQUssRUFBRSxDQUFDLEVBQUUsRUFBRTtZQUNyRSxJQUFJLElBQUksS0FBSyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxLQUFLLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQyxHQUFHLFdBQVcsQ0FBQyxDQUFDO1lBQ3BELFNBQVMsSUFBSSxXQUFXLENBQUM7U0FDMUI7UUFFRCxJQUFNLGVBQWUsR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLFNBQVMsR0FBRyxhQUFhLENBQUMsQ0FBQztRQUM3RCxJQUFJLEtBQUssZUFBZSxHQUFHLGFBQWEsR0FBRyxTQUFTLENBQUM7UUFDckQsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxJQUFJLGVBQWUsRUFBRSxDQUFDLEVBQUUsRUFBRTtZQUN6QyxJQUFNLE1BQU0sR0FBRyxDQUFDLGVBQWUsR0FBRyxDQUFDLENBQUMsR0FBRyxhQUFhLENBQUM7WUFDckQsR0FBRyxJQUFJLGVBQWUsQ0FBQyxDQUFDLElBQUksR0FBRyxDQUFDLGNBQWMsSUFBSSxNQUFNLENBQUMsQ0FBQyxJQUFJLE1BQU0sQ0FBQyxDQUFDO1NBQ3ZFO1FBRUQsR0FBRyxJQUFJLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxFQUFFLENBQUMsR0FBRyxlQUFlLENBQUMsQ0FBQztLQUMzQztJQUVELE9BQU8sR0FBRyxDQUFDO0FBQ2IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImNvbnN0IGFscGhhYmV0QnlFbmNvZGluZzogeyBba2V5OiBzdHJpbmddOiBudW1iZXIgfSA9IHt9O1xuY29uc3QgYWxwaGFiZXRCeVZhbHVlOiBBcnJheTxzdHJpbmc+ID0gbmV3IEFycmF5KDY0KTtcblxuZm9yIChsZXQgaSA9IDAsIHN0YXJ0ID0gXCJBXCIuY2hhckNvZGVBdCgwKSwgbGltaXQgPSBcIlpcIi5jaGFyQ29kZUF0KDApOyBpICsgc3RhcnQgPD0gbGltaXQ7IGkrKykge1xuICBjb25zdCBjaGFyID0gU3RyaW5nLmZyb21DaGFyQ29kZShpICsgc3RhcnQpO1xuICBhbHBoYWJldEJ5RW5jb2RpbmdbY2hhcl0gPSBpO1xuICBhbHBoYWJldEJ5VmFsdWVbaV0gPSBjaGFyO1xufVxuXG5mb3IgKGxldCBpID0gMCwgc3RhcnQgPSBcImFcIi5jaGFyQ29kZUF0KDApLCBsaW1pdCA9IFwielwiLmNoYXJDb2RlQXQoMCk7IGkgKyBzdGFydCA8PSBsaW1pdDsgaSsrKSB7XG4gIGNvbnN0IGNoYXIgPSBTdHJpbmcuZnJvbUNoYXJDb2RlKGkgKyBzdGFydCk7XG4gIGNvbnN0IGluZGV4ID0gaSArIDI2O1xuICBhbHBoYWJldEJ5RW5jb2RpbmdbY2hhcl0gPSBpbmRleDtcbiAgYWxwaGFiZXRCeVZhbHVlW2luZGV4XSA9IGNoYXI7XG59XG5cbmZvciAobGV0IGkgPSAwOyBpIDwgMTA7IGkrKykge1xuICBhbHBoYWJldEJ5RW5jb2RpbmdbaS50b1N0cmluZygxMCldID0gaSArIDUyO1xuICBjb25zdCBjaGFyID0gaS50b1N0cmluZygxMCk7XG4gIGNvbnN0IGluZGV4ID0gaSArIDUyO1xuICBhbHBoYWJldEJ5RW5jb2RpbmdbY2hhcl0gPSBpbmRleDtcbiAgYWxwaGFiZXRCeVZhbHVlW2luZGV4XSA9IGNoYXI7XG59XG5cbmFscGhhYmV0QnlFbmNvZGluZ1tcIitcIl0gPSA2MjtcbmFscGhhYmV0QnlWYWx1ZVs2Ml0gPSBcIitcIjtcbmFscGhhYmV0QnlFbmNvZGluZ1tcIi9cIl0gPSA2MztcbmFscGhhYmV0QnlWYWx1ZVs2M10gPSBcIi9cIjtcblxuY29uc3QgYml0c1BlckxldHRlciA9IDY7XG5jb25zdCBiaXRzUGVyQnl0ZSA9IDg7XG5jb25zdCBtYXhMZXR0ZXJWYWx1ZSA9IDBiMTExMTExO1xuXG4vKipcbiAqIENvbnZlcnRzIGEgYmFzZS02NCBlbmNvZGVkIHN0cmluZyB0byBhIFVpbnQ4QXJyYXkgb2YgYnl0ZXMuXG4gKlxuICogQHBhcmFtIGlucHV0IFRoZSBiYXNlLTY0IGVuY29kZWQgc3RyaW5nXG4gKlxuICogQHNlZSBodHRwczovL3Rvb2xzLmlldGYub3JnL2h0bWwvcmZjNDY0OCNzZWN0aW9uLTRcbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGZyb21CYXNlNjQoaW5wdXQ6IHN0cmluZyk6IFVpbnQ4QXJyYXkge1xuICBsZXQgdG90YWxCeXRlTGVuZ3RoID0gKGlucHV0Lmxlbmd0aCAvIDQpICogMztcbiAgaWYgKGlucHV0LnN1YnN0cigtMikgPT09IFwiPT1cIikge1xuICAgIHRvdGFsQnl0ZUxlbmd0aCAtPSAyO1xuICB9IGVsc2UgaWYgKGlucHV0LnN1YnN0cigtMSkgPT09IFwiPVwiKSB7XG4gICAgdG90YWxCeXRlTGVuZ3RoLS07XG4gIH1cbiAgY29uc3Qgb3V0ID0gbmV3IEFycmF5QnVmZmVyKHRvdGFsQnl0ZUxlbmd0aCk7XG4gIGNvbnN0IGRhdGFWaWV3ID0gbmV3IERhdGFWaWV3KG91dCk7XG4gIGZvciAobGV0IGkgPSAwOyBpIDwgaW5wdXQubGVuZ3RoOyBpICs9IDQpIHtcbiAgICBsZXQgYml0cyA9IDA7XG4gICAgbGV0IGJpdExlbmd0aCA9IDA7XG4gICAgZm9yIChsZXQgaiA9IGksIGxpbWl0ID0gaSArIDM7IGogPD0gbGltaXQ7IGorKykge1xuICAgICAgaWYgKGlucHV0W2pdICE9PSBcIj1cIikge1xuICAgICAgICBiaXRzIHw9IGFscGhhYmV0QnlFbmNvZGluZ1tpbnB1dFtqXV0gPDwgKChsaW1pdCAtIGopICogYml0c1BlckxldHRlcik7XG4gICAgICAgIGJpdExlbmd0aCArPSBiaXRzUGVyTGV0dGVyO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgYml0cyA+Pj0gYml0c1BlckxldHRlcjtcbiAgICAgIH1cbiAgICB9XG5cbiAgICBjb25zdCBjaHVua09mZnNldCA9IChpIC8gNCkgKiAzO1xuICAgIGJpdHMgPj49IGJpdExlbmd0aCAlIGJpdHNQZXJCeXRlO1xuICAgIGNvbnN0IGJ5dGVMZW5ndGggPSBNYXRoLmZsb29yKGJpdExlbmd0aCAvIGJpdHNQZXJCeXRlKTtcbiAgICBmb3IgKGxldCBrID0gMDsgayA8IGJ5dGVMZW5ndGg7IGsrKykge1xuICAgICAgY29uc3Qgb2Zmc2V0ID0gKGJ5dGVMZW5ndGggLSBrIC0gMSkgKiBiaXRzUGVyQnl0ZTtcbiAgICAgIGRhdGFWaWV3LnNldFVpbnQ4KGNodW5rT2Zmc2V0ICsgaywgKGJpdHMgJiAoMjU1IDw8IG9mZnNldCkpID4+IG9mZnNldCk7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIG5ldyBVaW50OEFycmF5KG91dCk7XG59XG5cbi8qKlxuICogQ29udmVydHMgYSBVaW50OEFycmF5IG9mIGJpbmFyeSBkYXRhIHRvIGEgYmFzZS02NCBlbmNvZGVkIHN0cmluZy5cbiAqXG4gKiBAcGFyYW0gaW5wdXQgVGhlIGJpbmFyeSBkYXRhIHRvIGVuY29kZVxuICpcbiAqIEBzZWUgaHR0cHM6Ly90b29scy5pZXRmLm9yZy9odG1sL3JmYzQ2NDgjc2VjdGlvbi00XG4gKi9cbmV4cG9ydCBmdW5jdGlvbiB0b0Jhc2U2NChpbnB1dDogVWludDhBcnJheSk6IHN0cmluZyB7XG4gIGxldCBzdHIgPSBcIlwiO1xuICBmb3IgKGxldCBpID0gMDsgaSA8IGlucHV0Lmxlbmd0aDsgaSArPSAzKSB7XG4gICAgbGV0IGJpdHMgPSAwO1xuICAgIGxldCBiaXRMZW5ndGggPSAwO1xuICAgIGZvciAobGV0IGogPSBpLCBsaW1pdCA9IE1hdGgubWluKGkgKyAzLCBpbnB1dC5sZW5ndGgpOyBqIDwgbGltaXQ7IGorKykge1xuICAgICAgYml0cyB8PSBpbnB1dFtqXSA8PCAoKGxpbWl0IC0gaiAtIDEpICogYml0c1BlckJ5dGUpO1xuICAgICAgYml0TGVuZ3RoICs9IGJpdHNQZXJCeXRlO1xuICAgIH1cblxuICAgIGNvbnN0IGJpdENsdXN0ZXJDb3VudCA9IE1hdGguY2VpbChiaXRMZW5ndGggLyBiaXRzUGVyTGV0dGVyKTtcbiAgICBiaXRzIDw8PSBiaXRDbHVzdGVyQ291bnQgKiBiaXRzUGVyTGV0dGVyIC0gYml0TGVuZ3RoO1xuICAgIGZvciAobGV0IGsgPSAxOyBrIDw9IGJpdENsdXN0ZXJDb3VudDsgaysrKSB7XG4gICAgICBjb25zdCBvZmZzZXQgPSAoYml0Q2x1c3RlckNvdW50IC0gaykgKiBiaXRzUGVyTGV0dGVyO1xuICAgICAgc3RyICs9IGFscGhhYmV0QnlWYWx1ZVsoYml0cyAmIChtYXhMZXR0ZXJWYWx1ZSA8PCBvZmZzZXQpKSA+PiBvZmZzZXRdO1xuICAgIH1cblxuICAgIHN0ciArPSBcIj09XCIuc2xpY2UoMCwgNCAtIGJpdENsdXN0ZXJDb3VudCk7XG4gIH1cblxuICByZXR1cm4gc3RyO1xufVxuIl19 /***/ }), /***/ "S3bO": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutEventsCommand.js ***! \**********************************************************************************************/ /*! exports provided: PutEventsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventsCommand", function() { return PutEventsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "vdbe"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "EMfu"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutEventsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutEventsCommand, _super); // Start section: command_properties // End section: command_properties function PutEventsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutEventsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutEventsRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutEventsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PutEventsCommand"])(input, context); }; PutEventsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PutEventsCommand"])(output, context); }; return PutEventsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=PutEventsCommand.js.map /***/ }), /***/ "S4Ci": /*!*******************************************************!*\ !*** ./node_modules/graphql/jsutils/objectValues.mjs ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /* eslint-disable no-redeclare */ // $FlowFixMe workaround for: https://github.com/facebook/flow/issues/2221 var objectValues = Object.values || function (obj) { return Object.keys(obj).map(function (key) { return obj[key]; }); }; /* harmony default export */ __webpack_exports__["default"] = (objectValues); /***/ }), /***/ "SRFt": /*!***********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-firehose/dist/es/commands/CreateDeliveryStreamCommand.js ***! \***********************************************************************************************/ /*! exports provided: CreateDeliveryStreamCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamCommand", function() { return CreateDeliveryStreamCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "qPic"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "IZqD"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CreateDeliveryStreamCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateDeliveryStreamCommand, _super); // Start section: command_properties // End section: command_properties function CreateDeliveryStreamCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CreateDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateDeliveryStreamInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateDeliveryStreamOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CreateDeliveryStreamCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1CreateDeliveryStreamCommand"])(input, context); }; CreateDeliveryStreamCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1CreateDeliveryStreamCommand"])(output, context); }; return CreateDeliveryStreamCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=CreateDeliveryStreamCommand.js.map /***/ }), /***/ "STbY": /*!**********************************************************************!*\ !*** ./node_modules/@angular/material/__ivy_ngcc__/fesm2015/menu.js ***! \**********************************************************************/ /*! exports provided: MAT_MENU_CONTENT, MAT_MENU_DEFAULT_OPTIONS, MAT_MENU_PANEL, MAT_MENU_SCROLL_STRATEGY, MatMenu, MatMenuContent, MatMenuItem, MatMenuModule, MatMenuTrigger, _MatMenu, _MatMenuBase, _MatMenuDirectivesModule, fadeInItems, matMenuAnimations, transformMenu, ɵangular_material_src_material_menu_menu_a, ɵangular_material_src_material_menu_menu_b, ɵangular_material_src_material_menu_menu_c */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAT_MENU_CONTENT", function() { return MAT_MENU_CONTENT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAT_MENU_DEFAULT_OPTIONS", function() { return MAT_MENU_DEFAULT_OPTIONS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAT_MENU_PANEL", function() { return MAT_MENU_PANEL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAT_MENU_SCROLL_STRATEGY", function() { return MAT_MENU_SCROLL_STRATEGY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatMenu", function() { return MatMenu; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatMenuContent", function() { return MatMenuContent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatMenuItem", function() { return MatMenuItem; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatMenuModule", function() { return MatMenuModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatMenuTrigger", function() { return MatMenuTrigger; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_MatMenu", function() { return _MatMenu; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_MatMenuBase", function() { return _MatMenuBase; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_MatMenuDirectivesModule", function() { return _MatMenuDirectivesModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fadeInItems", function() { return fadeInItems; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "matMenuAnimations", function() { return matMenuAnimations; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transformMenu", function() { return transformMenu; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_material_menu_menu_a", function() { return MAT_MENU_DEFAULT_OPTIONS_FACTORY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_material_menu_menu_b", function() { return MAT_MENU_SCROLL_STRATEGY_FACTORY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_material_menu_menu_c", function() { return MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER; }); /* harmony import */ var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/cdk/a11y */ "u47x"); /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/coercion */ "8LU1"); /* harmony import */ var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/cdk/keycodes */ "FtGj"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "fXoL"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "qCKp"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "kU1M"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/animations */ "R0Ic"); /* harmony import */ var _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/cdk/portal */ "+rOU"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "ofXK"); /* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/core */ "FKr1"); /* harmony import */ var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/cdk/bidi */ "cH1L"); /* harmony import */ var _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/cdk/overlay */ "rDax"); /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/cdk/platform */ "nLfN"); /* harmony import */ var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/cdk/scrolling */ "vxfF"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Animations used by the mat-menu component. * Animation duration and timing values are based on: * https://material.io/guidelines/components/menus.html#menus-usage * @docs-private */ const _c0 = ["mat-menu-item", ""]; const _c1 = ["*"]; function _MatMenu_ng_template_0_Template(rf, ctx) { if (rf & 1) { const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("keydown", function _MatMenu_ng_template_0_Template_div_keydown_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r2); const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); return ctx_r1._handleKeydown($event); })("click", function _MatMenu_ng_template_0_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r2); const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); return ctx_r3.closed.emit("click"); })("@transformMenu.start", function _MatMenu_ng_template_0_Template_div_animation_transformMenu_start_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r2); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); return ctx_r4._onAnimationStart($event); })("@transformMenu.done", function _MatMenu_ng_template_0_Template_div_animation_transformMenu_done_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r2); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); return ctx_r5._onAnimationDone($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojection"](2); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("id", ctx_r0.panelId)("ngClass", ctx_r0._classList)("@transformMenu", ctx_r0._panelAnimationState); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵattribute"]("aria-label", ctx_r0.ariaLabel || null)("aria-labelledby", ctx_r0.ariaLabelledby || null)("aria-describedby", ctx_r0.ariaDescribedby || null); } } const matMenuAnimations = { /** * This animation controls the menu panel's entry and exit from the page. * * When the menu panel is added to the DOM, it scales in and fades in its border. * * When the menu panel is removed from the DOM, it simply fades out after a brief * delay to display the ripple. */ transformMenu: Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["trigger"])('transformMenu', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["state"])('void', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["style"])({ opacity: 0, transform: 'scale(0.8)' })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["transition"])('void => enter', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["group"])([ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["query"])('.mat-menu-content, .mat-mdc-menu-content', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["animate"])('100ms linear', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["style"])({ opacity: 1 }))), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["animate"])('120ms cubic-bezier(0, 0, 0.2, 1)', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["style"])({ transform: 'scale(1)' })), ])), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["transition"])('* => void', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["animate"])('100ms 25ms linear', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["style"])({ opacity: 0 }))) ]), /** * This animation fades in the background color and content of the menu panel * after its containing element is scaled in. */ fadeInItems: Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["trigger"])('fadeInItems', [ // TODO(crisbeto): this is inside the `transformMenu` // now. Remove next time we do breaking changes. Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["state"])('showing', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["style"])({ opacity: 1 })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["transition"])('void => *', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["style"])({ opacity: 0 }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["animate"])('400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)') ]) ]) }; /** * @deprecated * @breaking-change 8.0.0 * @docs-private */ const fadeInItems = matMenuAnimations.fadeInItems; /** * @deprecated * @breaking-change 8.0.0 * @docs-private */ const transformMenu = matMenuAnimations.transformMenu; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Injection token that can be used to reference instances of `MatMenuContent`. It serves * as alternative token to the actual `MatMenuContent` class which could cause unnecessary * retention of the class and its directive metadata. */ const MAT_MENU_CONTENT = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('MatMenuContent'); /** * Menu content that will be rendered lazily once the menu is opened. */ class MatMenuContent { constructor(_template, _componentFactoryResolver, _appRef, _injector, _viewContainerRef, _document, _changeDetectorRef) { this._template = _template; this._componentFactoryResolver = _componentFactoryResolver; this._appRef = _appRef; this._injector = _injector; this._viewContainerRef = _viewContainerRef; this._document = _document; this._changeDetectorRef = _changeDetectorRef; /** Emits when the menu content has been attached. */ this._attached = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"](); } /** * Attaches the content with a particular context. * @docs-private */ attach(context = {}) { if (!this._portal) { this._portal = new _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_7__["TemplatePortal"](this._template, this._viewContainerRef); } this.detach(); if (!this._outlet) { this._outlet = new _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_7__["DomPortalOutlet"](this._document.createElement('div'), this._componentFactoryResolver, this._appRef, this._injector); } const element = this._template.elementRef.nativeElement; // Because we support opening the same menu from different triggers (which in turn have their // own `OverlayRef` panel), we have to re-insert the host element every time, otherwise we // risk it staying attached to a pane that's no longer in the DOM. element.parentNode.insertBefore(this._outlet.outletElement, element); // When `MatMenuContent` is used in an `OnPush` component, the insertion of the menu // content via `createEmbeddedView` does not cause the content to be seen as "dirty" // by Angular. This causes the `@ContentChildren` for menu items within the menu to // not be updated by Angular. By explicitly marking for check here, we tell Angular that // it needs to check for new menu items and update the `@ContentChild` in `MatMenu`. // @breaking-change 9.0.0 Make change detector ref required if (this._changeDetectorRef) { this._changeDetectorRef.markForCheck(); } this._portal.attach(this._outlet, context); this._attached.next(); } /** * Detaches the content. * @docs-private */ detach() { if (this._portal.isAttached) { this._portal.detach(); } } ngOnDestroy() { if (this._outlet) { this._outlet.dispose(); } } } MatMenuContent.ɵfac = function MatMenuContent_Factory(t) { return new (t || MatMenuContent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ComponentFactoryResolver"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ApplicationRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["Injector"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_8__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"])); }; MatMenuContent.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({ type: MatMenuContent, selectors: [["ng-template", "matMenuContent", ""]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵProvidersFeature"]([{ provide: MAT_MENU_CONTENT, useExisting: MatMenuContent }])] }); MatMenuContent.ctorParameters = () => [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ComponentFactoryResolver"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ApplicationRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Injector"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["DOCUMENT"],] }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"] } ]; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatMenuContent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"], args: [{ selector: 'ng-template[matMenuContent]', providers: [{ provide: MAT_MENU_CONTENT, useExisting: MatMenuContent }] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ComponentFactoryResolver"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ApplicationRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Injector"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["DOCUMENT"]] }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"] }]; }, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Throws an exception for the case when menu trigger doesn't have a valid mat-menu instance * @docs-private */ function throwMatMenuMissingError() { throw Error(`matMenuTriggerFor: must pass in an mat-menu instance. Example: `); } /** * Throws an exception for the case when menu's x-position value isn't valid. * In other words, it doesn't match 'before' or 'after'. * @docs-private */ function throwMatMenuInvalidPositionX() { throw Error(`xPosition value must be either 'before' or after'. Example: `); } /** * Throws an exception for the case when menu's y-position value isn't valid. * In other words, it doesn't match 'above' or 'below'. * @docs-private */ function throwMatMenuInvalidPositionY() { throw Error(`yPosition value must be either 'above' or below'. Example: `); } /** * Throws an exception for the case when a menu is assigned * to a trigger that is placed inside the same menu. * @docs-private */ function throwMatMenuRecursiveError() { throw Error(`matMenuTriggerFor: menu cannot contain its own trigger. Assign a menu that is ` + `not a parent of the trigger or move the trigger outside of the menu.`); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Injection token used to provide the parent menu to menu-specific components. * @docs-private */ const MAT_MENU_PANEL = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('MAT_MENU_PANEL'); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // Boilerplate for applying mixins to MatMenuItem. /** @docs-private */ class MatMenuItemBase { } const _MatMenuItemMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_9__["mixinDisableRipple"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_9__["mixinDisabled"])(MatMenuItemBase)); /** * Single item inside of a `mat-menu`. Provides the menu item styling and accessibility treatment. */ class MatMenuItem extends _MatMenuItemMixinBase { constructor(_elementRef, /** * @deprecated `_document` parameter is no longer being used and will be removed. * @breaking-change 12.0.0 */ _document, _focusMonitor, _parentMenu) { // @breaking-change 8.0.0 make `_focusMonitor` and `document` required params. super(); this._elementRef = _elementRef; this._focusMonitor = _focusMonitor; this._parentMenu = _parentMenu; /** ARIA role for the menu item. */ this.role = 'menuitem'; /** Stream that emits when the menu item is hovered. */ this._hovered = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"](); /** Stream that emits when the menu item is focused. */ this._focused = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"](); /** Whether the menu item is highlighted. */ this._highlighted = false; /** Whether the menu item acts as a trigger for a sub-menu. */ this._triggersSubmenu = false; if (_parentMenu && _parentMenu.addItem) { _parentMenu.addItem(this); } } /** Focuses the menu item. */ focus(origin = 'program', options) { if (this._focusMonitor) { this._focusMonitor.focusVia(this._getHostElement(), origin, options); } else { this._getHostElement().focus(options); } this._focused.next(this); } ngAfterViewInit() { if (this._focusMonitor) { // Start monitoring the element so it gets the appropriate focused classes. We want // to show the focus style for menu items only when the focus was not caused by a // mouse or touch interaction. this._focusMonitor.monitor(this._elementRef, false); } } ngOnDestroy() { if (this._focusMonitor) { this._focusMonitor.stopMonitoring(this._elementRef); } if (this._parentMenu && this._parentMenu.removeItem) { this._parentMenu.removeItem(this); } this._hovered.complete(); this._focused.complete(); } /** Used to set the `tabindex`. */ _getTabIndex() { return this.disabled ? '-1' : '0'; } /** Returns the host DOM element. */ _getHostElement() { return this._elementRef.nativeElement; } /** Prevents the default element actions if it is disabled. */ // We have to use a `HostListener` here in order to support both Ivy and ViewEngine. // In Ivy the `host` bindings will be merged when this class is extended, whereas in // ViewEngine they're overwritten. // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default. // tslint:disable-next-line:no-host-decorator-in-concrete _checkDisabled(event) { if (this.disabled) { event.preventDefault(); event.stopPropagation(); } } /** Emits to the hover stream. */ // We have to use a `HostListener` here in order to support both Ivy and ViewEngine. // In Ivy the `host` bindings will be merged when this class is extended, whereas in // ViewEngine they're overwritten. // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default. // tslint:disable-next-line:no-host-decorator-in-concrete _handleMouseEnter() { this._hovered.next(this); } /** Gets the label to be used when determining whether the option should be focused. */ getLabel() { var _a, _b; const clone = this._elementRef.nativeElement.cloneNode(true); const icons = clone.querySelectorAll('mat-icon, .material-icons'); // Strip away icons so they don't show up in the text. for (let i = 0; i < icons.length; i++) { const icon = icons[i]; (_a = icon.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(icon); } return ((_b = clone.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || ''; } } MatMenuItem.ɵfac = function MatMenuItem_Factory(t) { return new (t || MatMenuItem)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_8__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](MAT_MENU_PANEL, 8)); }; MatMenuItem.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: MatMenuItem, selectors: [["", "mat-menu-item", ""]], hostAttrs: [1, "mat-focus-indicator"], hostVars: 10, hostBindings: function MatMenuItem_HostBindings(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function MatMenuItem_click_HostBindingHandler($event) { return ctx._checkDisabled($event); })("mouseenter", function MatMenuItem_mouseenter_HostBindingHandler() { return ctx._handleMouseEnter(); }); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵattribute"]("role", ctx.role)("tabindex", ctx._getTabIndex())("aria-disabled", ctx.disabled.toString())("disabled", ctx.disabled || null); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("mat-menu-item", true)("mat-menu-item-highlighted", ctx._highlighted)("mat-menu-item-submenu-trigger", ctx._triggersSubmenu); } }, inputs: { disabled: "disabled", disableRipple: "disableRipple", role: "role" }, exportAs: ["matMenuItem"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]], attrs: _c0, ngContentSelectors: _c1, decls: 2, vars: 2, consts: [["matRipple", "", 1, "mat-menu-ripple", 3, "matRippleDisabled", "matRippleTrigger"]], template: function MatMenuItem_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojection"](0); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "div", 0); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("matRippleDisabled", ctx.disableRipple || ctx.disabled)("matRippleTrigger", ctx._getHostElement()); } }, directives: [_angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatRipple"]], encapsulation: 2, changeDetection: 0 }); MatMenuItem.ctorParameters = () => [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["DOCUMENT"],] }] }, { type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"], args: [MAT_MENU_PANEL,] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"] }] } ]; MatMenuItem.propDecorators = { role: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], _checkDisabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostListener"], args: ['click', ['$event'],] }], _handleMouseEnter: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostListener"], args: ['mouseenter',] }] }; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatMenuItem, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"], args: [{ selector: '[mat-menu-item]', exportAs: 'matMenuItem', inputs: ['disabled', 'disableRipple'], host: { '[attr.role]': 'role', '[class.mat-menu-item]': 'true', '[class.mat-menu-item-highlighted]': '_highlighted', '[class.mat-menu-item-submenu-trigger]': '_triggersSubmenu', '[attr.tabindex]': '_getTabIndex()', '[attr.aria-disabled]': 'disabled.toString()', '[attr.disabled]': 'disabled || null', 'class': 'mat-focus-indicator' }, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectionStrategy"].OnPush, encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None, template: "\n
\n
\n" }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["DOCUMENT"]] }] }, { type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"], args: [MAT_MENU_PANEL] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"] }] }]; }, { role: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], /** Prevents the default element actions if it is disabled. */ // We have to use a `HostListener` here in order to support both Ivy and ViewEngine. // In Ivy the `host` bindings will be merged when this class is extended, whereas in // ViewEngine they're overwritten. // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default. // tslint:disable-next-line:no-host-decorator-in-concrete _checkDisabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostListener"], args: ['click', ['$event']] }], /** Emits to the hover stream. */ // We have to use a `HostListener` here in order to support both Ivy and ViewEngine. // In Ivy the `host` bindings will be merged when this class is extended, whereas in // ViewEngine they're overwritten. // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default. // tslint:disable-next-line:no-host-decorator-in-concrete _handleMouseEnter: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostListener"], args: ['mouseenter'] }] }); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** Injection token to be used to override the default options for `mat-menu`. */ const MAT_MENU_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('mat-menu-default-options', { providedIn: 'root', factory: MAT_MENU_DEFAULT_OPTIONS_FACTORY }); /** @docs-private */ function MAT_MENU_DEFAULT_OPTIONS_FACTORY() { return { overlapTrigger: false, xPosition: 'after', yPosition: 'below', backdropClass: 'cdk-overlay-transparent-backdrop', }; } /** * Start elevation for the menu panel. * @docs-private */ const MAT_MENU_BASE_ELEVATION = 4; let menuPanelUid = 0; /** Base class with all of the `MatMenu` functionality. */ class _MatMenuBase { constructor(_elementRef, _ngZone, _defaultOptions) { this._elementRef = _elementRef; this._ngZone = _ngZone; this._defaultOptions = _defaultOptions; this._xPosition = this._defaultOptions.xPosition; this._yPosition = this._defaultOptions.yPosition; /** Only the direct descendant menu items. */ this._directDescendantItems = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["QueryList"](); /** Subscription to tab events on the menu panel */ this._tabSubscription = rxjs__WEBPACK_IMPORTED_MODULE_4__["Subscription"].EMPTY; /** Config object to be passed into the menu's ngClass */ this._classList = {}; /** Current state of the panel animation. */ this._panelAnimationState = 'void'; /** Emits whenever an animation on the menu completes. */ this._animationDone = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"](); /** Class or list of classes to be added to the overlay panel. */ this.overlayPanelClass = this._defaultOptions.overlayPanelClass || ''; /** Class to be added to the backdrop element. */ this.backdropClass = this._defaultOptions.backdropClass; this._overlapTrigger = this._defaultOptions.overlapTrigger; this._hasBackdrop = this._defaultOptions.hasBackdrop; /** Event emitted when the menu is closed. */ this.closed = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"](); /** * Event emitted when the menu is closed. * @deprecated Switch to `closed` instead * @breaking-change 8.0.0 */ this.close = this.closed; this.panelId = `mat-menu-panel-${menuPanelUid++}`; } /** Position of the menu in the X axis. */ get xPosition() { return this._xPosition; } set xPosition(value) { if (value !== 'before' && value !== 'after' && (typeof ngDevMode === 'undefined' || ngDevMode)) { throwMatMenuInvalidPositionX(); } this._xPosition = value; this.setPositionClasses(); } /** Position of the menu in the Y axis. */ get yPosition() { return this._yPosition; } set yPosition(value) { if (value !== 'above' && value !== 'below' && (typeof ngDevMode === 'undefined' || ngDevMode)) { throwMatMenuInvalidPositionY(); } this._yPosition = value; this.setPositionClasses(); } /** Whether the menu should overlap its trigger. */ get overlapTrigger() { return this._overlapTrigger; } set overlapTrigger(value) { this._overlapTrigger = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__["coerceBooleanProperty"])(value); } /** Whether the menu has a backdrop. */ get hasBackdrop() { return this._hasBackdrop; } set hasBackdrop(value) { this._hasBackdrop = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__["coerceBooleanProperty"])(value); } /** * This method takes classes set on the host mat-menu element and applies them on the * menu template that displays in the overlay container. Otherwise, it's difficult * to style the containing menu from outside the component. * @param classes list of class names */ set panelClass(classes) { const previousPanelClass = this._previousPanelClass; if (previousPanelClass && previousPanelClass.length) { previousPanelClass.split(' ').forEach((className) => { this._classList[className] = false; }); } this._previousPanelClass = classes; if (classes && classes.length) { classes.split(' ').forEach((className) => { this._classList[className] = true; }); this._elementRef.nativeElement.className = ''; } } /** * This method takes classes set on the host mat-menu element and applies them on the * menu template that displays in the overlay container. Otherwise, it's difficult * to style the containing menu from outside the component. * @deprecated Use `panelClass` instead. * @breaking-change 8.0.0 */ get classList() { return this.panelClass; } set classList(classes) { this.panelClass = classes; } ngOnInit() { this.setPositionClasses(); } ngAfterContentInit() { this._updateDirectDescendants(); this._keyManager = new _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusKeyManager"](this._directDescendantItems) .withWrap() .withTypeAhead() .withHomeAndEnd(); this._tabSubscription = this._keyManager.tabOut.subscribe(() => this.closed.emit('tab')); // If a user manually (programatically) focuses a menu item, we need to reflect that focus // change back to the key manager. Note that we don't need to unsubscribe here because _focused // is internal and we know that it gets completed on destroy. this._directDescendantItems.changes.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["startWith"])(this._directDescendantItems), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["switchMap"])(items => Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["merge"])(...items.map((item) => item._focused)))).subscribe(focusedItem => this._keyManager.updateActiveItem(focusedItem)); } ngOnDestroy() { this._directDescendantItems.destroy(); this._tabSubscription.unsubscribe(); this.closed.complete(); } /** Stream that emits whenever the hovered menu item changes. */ _hovered() { // Coerce the `changes` property because Angular types it as `Observable` const itemChanges = this._directDescendantItems.changes; return itemChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["startWith"])(this._directDescendantItems), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["switchMap"])(items => Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["merge"])(...items.map((item) => item._hovered)))); } /* * Registers a menu item with the menu. * @docs-private * @deprecated No longer being used. To be removed. * @breaking-change 9.0.0 */ addItem(_item) { } /** * Removes an item from the menu. * @docs-private * @deprecated No longer being used. To be removed. * @breaking-change 9.0.0 */ removeItem(_item) { } /** Handle a keyboard event from the menu, delegating to the appropriate action. */ _handleKeydown(event) { const keyCode = event.keyCode; const manager = this._keyManager; switch (keyCode) { case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__["ESCAPE"]: if (!Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__["hasModifierKey"])(event)) { event.preventDefault(); this.closed.emit('keydown'); } break; case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__["LEFT_ARROW"]: if (this.parentMenu && this.direction === 'ltr') { this.closed.emit('keydown'); } break; case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__["RIGHT_ARROW"]: if (this.parentMenu && this.direction === 'rtl') { this.closed.emit('keydown'); } break; default: if (keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__["UP_ARROW"] || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__["DOWN_ARROW"]) { manager.setFocusOrigin('keyboard'); } manager.onKeydown(event); } } /** * Focus the first item in the menu. * @param origin Action from which the focus originated. Used to set the correct styling. */ focusFirstItem(origin = 'program') { // When the content is rendered lazily, it takes a bit before the items are inside the DOM. if (this.lazyContent) { this._ngZone.onStable .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["take"])(1)) .subscribe(() => this._focusFirstItem(origin)); } else { this._focusFirstItem(origin); } } /** * Actual implementation that focuses the first item. Needs to be separated * out so we don't repeat the same logic in the public `focusFirstItem` method. */ _focusFirstItem(origin) { const manager = this._keyManager; manager.setFocusOrigin(origin).setFirstItemActive(); // If there's no active item at this point, it means that all the items are disabled. // Move focus to the menu panel so keyboard events like Escape still work. Also this will // give _some_ feedback to screen readers. if (!manager.activeItem && this._directDescendantItems.length) { let element = this._directDescendantItems.first._getHostElement().parentElement; // Because the `mat-menu` is at the DOM insertion point, not inside the overlay, we don't // have a nice way of getting a hold of the menu panel. We can't use a `ViewChild` either // because the panel is inside an `ng-template`. We work around it by starting from one of // the items and walking up the DOM. while (element) { if (element.getAttribute('role') === 'menu') { element.focus(); break; } else { element = element.parentElement; } } } } /** * Resets the active item in the menu. This is used when the menu is opened, allowing * the user to start from the first option when pressing the down arrow. */ resetActiveItem() { this._keyManager.setActiveItem(-1); } /** * Sets the menu panel elevation. * @param depth Number of parent menus that come before the menu. */ setElevation(depth) { // The elevation starts at the base and increases by one for each level. // Capped at 24 because that's the maximum elevation defined in the Material design spec. const elevation = Math.min(MAT_MENU_BASE_ELEVATION + depth, 24); const newElevation = `mat-elevation-z${elevation}`; const customElevation = Object.keys(this._classList).find(c => c.startsWith('mat-elevation-z')); if (!customElevation || customElevation === this._previousElevation) { if (this._previousElevation) { this._classList[this._previousElevation] = false; } this._classList[newElevation] = true; this._previousElevation = newElevation; } } /** * Adds classes to the menu panel based on its position. Can be used by * consumers to add specific styling based on the position. * @param posX Position of the menu along the x axis. * @param posY Position of the menu along the y axis. * @docs-private */ setPositionClasses(posX = this.xPosition, posY = this.yPosition) { const classes = this._classList; classes['mat-menu-before'] = posX === 'before'; classes['mat-menu-after'] = posX === 'after'; classes['mat-menu-above'] = posY === 'above'; classes['mat-menu-below'] = posY === 'below'; } /** Starts the enter animation. */ _startAnimation() { // @breaking-change 8.0.0 Combine with _resetAnimation. this._panelAnimationState = 'enter'; } /** Resets the panel animation to its initial state. */ _resetAnimation() { // @breaking-change 8.0.0 Combine with _startAnimation. this._panelAnimationState = 'void'; } /** Callback that is invoked when the panel animation completes. */ _onAnimationDone(event) { this._animationDone.next(event); this._isAnimating = false; } _onAnimationStart(event) { this._isAnimating = true; // Scroll the content element to the top as soon as the animation starts. This is necessary, // because we move focus to the first item while it's still being animated, which can throw // the browser off when it determines the scroll position. Alternatively we can move focus // when the animation is done, however moving focus asynchronously will interrupt screen // readers which are in the process of reading out the menu already. We take the `element` // from the `event` since we can't use a `ViewChild` to access the pane. if (event.toState === 'enter' && this._keyManager.activeItemIndex === 0) { event.element.scrollTop = 0; } } /** * Sets up a stream that will keep track of any newly-added menu items and will update the list * of direct descendants. We collect the descendants this way, because `_allItems` can include * items that are part of child menus, and using a custom way of registering items is unreliable * when it comes to maintaining the item order. */ _updateDirectDescendants() { this._allItems.changes .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["startWith"])(this._allItems)) .subscribe((items) => { this._directDescendantItems.reset(items.filter(item => item._parentMenu === this)); this._directDescendantItems.notifyOnChanges(); }); } } _MatMenuBase.ɵfac = function _MatMenuBase_Factory(t) { return new (t || _MatMenuBase)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](MAT_MENU_DEFAULT_OPTIONS)); }; _MatMenuBase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({ type: _MatMenuBase, contentQueries: function _MatMenuBase_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, MAT_MENU_CONTENT, true); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, MatMenuItem, true); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, MatMenuItem, false); } if (rf & 2) { var _t; _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.lazyContent = _t.first); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx._allItems = _t); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.items = _t); } }, viewQuery: function _MatMenuBase_Query(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"], true); } if (rf & 2) { var _t; _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.templateRef = _t.first); } }, inputs: { backdropClass: "backdropClass", xPosition: "xPosition", yPosition: "yPosition", overlapTrigger: "overlapTrigger", hasBackdrop: "hasBackdrop", panelClass: ["class", "panelClass"], classList: "classList", ariaLabel: ["aria-label", "ariaLabel"], ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], ariaDescribedby: ["aria-describedby", "ariaDescribedby"] }, outputs: { closed: "closed", close: "close" } }); _MatMenuBase.ctorParameters = () => [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"], args: [MAT_MENU_DEFAULT_OPTIONS,] }] } ]; _MatMenuBase.propDecorators = { _allItems: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"], args: [MatMenuItem, { descendants: true },] }], backdropClass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], ariaLabel: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"], args: ['aria-label',] }], ariaLabelledby: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"], args: ['aria-labelledby',] }], ariaDescribedby: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"], args: ['aria-describedby',] }], xPosition: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], yPosition: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], templateRef: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"],] }], items: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"], args: [MatMenuItem, { descendants: false },] }], lazyContent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"], args: [MAT_MENU_CONTENT,] }], overlapTrigger: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], hasBackdrop: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], panelClass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"], args: ['class',] }], classList: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], closed: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }], close: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }] }; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](_MatMenuBase, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"], args: [MAT_MENU_DEFAULT_OPTIONS] }] }]; }, { backdropClass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], closed: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }], close: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }], xPosition: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], yPosition: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], overlapTrigger: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], hasBackdrop: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], panelClass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"], args: ['class'] }], classList: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], _allItems: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"], args: [MatMenuItem, { descendants: true }] }], ariaLabel: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"], args: ['aria-label'] }], ariaLabelledby: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"], args: ['aria-labelledby'] }], ariaDescribedby: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"], args: ['aria-describedby'] }], templateRef: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]] }], items: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"], args: [MatMenuItem, { descendants: false }] }], lazyContent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"], args: [MAT_MENU_CONTENT] }] }); })(); /** @docs-private We show the "_MatMenu" class as "MatMenu" in the docs. */ class MatMenu extends _MatMenuBase { } MatMenu.ɵfac = function MatMenu_Factory(t) { return ɵMatMenu_BaseFactory(t || MatMenu); }; MatMenu.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({ type: MatMenu, features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]] }); const ɵMatMenu_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetInheritedFactory"](MatMenu); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatMenu, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"] }], null, null); })(); // Note on the weird inheritance setup: we need three classes, because the MDC-based menu has to // extend `MatMenu`, however keeping a reference to it will cause the inlined template and styles // to be retained as well. The MDC menu also has to provide itself as a `MatMenu` in order for // queries and DI to work correctly, while still not referencing the actual menu class. // Class responsibility is split up as follows: // * _MatMenuBase - provides all the functionality without any of the Angular metadata. // * MatMenu - keeps the same name symbol name as the current menu and // is used as a provider for DI and query purposes. // * _MatMenu - the actual menu component implementation with the Angular metadata that should // be tree shaken away for MDC. /** @docs-public MatMenu */ class _MatMenu extends MatMenu { constructor(elementRef, ngZone, defaultOptions) { super(elementRef, ngZone, defaultOptions); } } _MatMenu.ɵfac = function _MatMenu_Factory(t) { return new (t || _MatMenu)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](MAT_MENU_DEFAULT_OPTIONS)); }; _MatMenu.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: _MatMenu, selectors: [["mat-menu"]], exportAs: ["matMenu"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵProvidersFeature"]([ { provide: MAT_MENU_PANEL, useExisting: MatMenu }, { provide: MatMenu, useExisting: _MatMenu } ]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]], ngContentSelectors: _c1, decls: 1, vars: 0, consts: [["tabindex", "-1", "role", "menu", 1, "mat-menu-panel", 3, "id", "ngClass", "keydown", "click"], [1, "mat-menu-content"]], template: function _MatMenu_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](0, _MatMenu_ng_template_0_Template, 3, 6, "ng-template"); } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["NgClass"]], styles: [".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:\"\";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"], encapsulation: 2, data: { animation: [ matMenuAnimations.transformMenu, matMenuAnimations.fadeInItems ] }, changeDetection: 0 }); _MatMenu.ctorParameters = () => [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"], args: [MAT_MENU_DEFAULT_OPTIONS,] }] } ]; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](_MatMenu, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"], args: [{ selector: 'mat-menu', template: "\n \n
\n \n
\n \n
\n", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectionStrategy"].OnPush, encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None, exportAs: 'matMenu', animations: [ matMenuAnimations.transformMenu, matMenuAnimations.fadeInItems ], providers: [ { provide: MAT_MENU_PANEL, useExisting: MatMenu }, { provide: MatMenu, useExisting: _MatMenu } ], styles: [".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:\"\";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"], args: [MAT_MENU_DEFAULT_OPTIONS] }] }]; }, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** Injection token that determines the scroll handling while the menu is open. */ const MAT_MENU_SCROLL_STRATEGY = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('mat-menu-scroll-strategy'); /** @docs-private */ function MAT_MENU_SCROLL_STRATEGY_FACTORY(overlay) { return () => overlay.scrollStrategies.reposition(); } /** @docs-private */ const MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER = { provide: MAT_MENU_SCROLL_STRATEGY, deps: [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["Overlay"]], useFactory: MAT_MENU_SCROLL_STRATEGY_FACTORY, }; /** Default top padding of the menu panel. */ const MENU_PANEL_TOP_PADDING = 8; /** Options for binding a passive event listener. */ const passiveEventListenerOptions = Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_12__["normalizePassiveListenerOptions"])({ passive: true }); // TODO(andrewseguin): Remove the kebab versions in favor of camelCased attribute selectors /** Directive applied to an element that should trigger a `mat-menu`. */ class MatMenuTrigger { constructor(_overlay, _element, _viewContainerRef, scrollStrategy, // `MatMenu` is always used in combination with a `MatMenuTrigger`. // tslint:disable-next-line: lightweight-tokens _parentMenu, // `MatMenuTrigger` is commonly used in combination with a `MatMenuItem`. // tslint:disable-next-line: lightweight-tokens _menuItemInstance, _dir, // TODO(crisbeto): make the _focusMonitor required when doing breaking changes. // @breaking-change 8.0.0 _focusMonitor) { this._overlay = _overlay; this._element = _element; this._viewContainerRef = _viewContainerRef; this._parentMenu = _parentMenu; this._menuItemInstance = _menuItemInstance; this._dir = _dir; this._focusMonitor = _focusMonitor; this._overlayRef = null; this._menuOpen = false; this._closingActionsSubscription = rxjs__WEBPACK_IMPORTED_MODULE_4__["Subscription"].EMPTY; this._hoverSubscription = rxjs__WEBPACK_IMPORTED_MODULE_4__["Subscription"].EMPTY; this._menuCloseSubscription = rxjs__WEBPACK_IMPORTED_MODULE_4__["Subscription"].EMPTY; /** * Handles touch start events on the trigger. * Needs to be an arrow function so we can easily use addEventListener and removeEventListener. */ this._handleTouchStart = () => this._openedBy = 'touch'; // Tracking input type is necessary so it's possible to only auto-focus // the first item of the list when the menu is opened via the keyboard this._openedBy = null; /** * Whether focus should be restored when the menu is closed. * Note that disabling this option can have accessibility implications * and it's up to you to manage focus, if you decide to turn it off. */ this.restoreFocus = true; /** Event emitted when the associated menu is opened. */ this.menuOpened = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"](); /** * Event emitted when the associated menu is opened. * @deprecated Switch to `menuOpened` instead * @breaking-change 8.0.0 */ // tslint:disable-next-line:no-output-on-prefix this.onMenuOpen = this.menuOpened; /** Event emitted when the associated menu is closed. */ this.menuClosed = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"](); /** * Event emitted when the associated menu is closed. * @deprecated Switch to `menuClosed` instead * @breaking-change 8.0.0 */ // tslint:disable-next-line:no-output-on-prefix this.onMenuClose = this.menuClosed; _element.nativeElement.addEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions); if (_menuItemInstance) { _menuItemInstance._triggersSubmenu = this.triggersSubmenu(); } this._scrollStrategy = scrollStrategy; } /** * @deprecated * @breaking-change 8.0.0 */ get _deprecatedMatMenuTriggerFor() { return this.menu; } set _deprecatedMatMenuTriggerFor(v) { this.menu = v; } /** References the menu instance that the trigger is associated with. */ get menu() { return this._menu; } set menu(menu) { if (menu === this._menu) { return; } this._menu = menu; this._menuCloseSubscription.unsubscribe(); if (menu) { if (menu === this._parentMenu && (typeof ngDevMode === 'undefined' || ngDevMode)) { throwMatMenuRecursiveError(); } this._menuCloseSubscription = menu.close.subscribe((reason) => { this._destroyMenu(); // If a click closed the menu, we should close the entire chain of nested menus. if ((reason === 'click' || reason === 'tab') && this._parentMenu) { this._parentMenu.closed.emit(reason); } }); } } ngAfterContentInit() { this._checkMenu(); this._handleHover(); } ngOnDestroy() { if (this._overlayRef) { this._overlayRef.dispose(); this._overlayRef = null; } this._element.nativeElement.removeEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions); this._menuCloseSubscription.unsubscribe(); this._closingActionsSubscription.unsubscribe(); this._hoverSubscription.unsubscribe(); } /** Whether the menu is open. */ get menuOpen() { return this._menuOpen; } /** The text direction of the containing app. */ get dir() { return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr'; } /** Whether the menu triggers a sub-menu or a top-level one. */ triggersSubmenu() { return !!(this._menuItemInstance && this._parentMenu); } /** Toggles the menu between the open and closed states. */ toggleMenu() { return this._menuOpen ? this.closeMenu() : this.openMenu(); } /** Opens the menu. */ openMenu() { if (this._menuOpen) { return; } this._checkMenu(); const overlayRef = this._createOverlay(); const overlayConfig = overlayRef.getConfig(); this._setPosition(overlayConfig.positionStrategy); overlayConfig.hasBackdrop = this.menu.hasBackdrop == null ? !this.triggersSubmenu() : this.menu.hasBackdrop; overlayRef.attach(this._getPortal()); if (this.menu.lazyContent) { this.menu.lazyContent.attach(this.menuData); } this._closingActionsSubscription = this._menuClosingActions().subscribe(() => this.closeMenu()); this._initMenu(); if (this.menu instanceof MatMenu) { this.menu._startAnimation(); } } /** Closes the menu. */ closeMenu() { this.menu.close.emit(); } /** * Focuses the menu trigger. * @param origin Source of the menu trigger's focus. */ focus(origin = 'program', options) { if (this._focusMonitor) { this._focusMonitor.focusVia(this._element, origin, options); } else { this._element.nativeElement.focus(options); } } /** Closes the menu and does the necessary cleanup. */ _destroyMenu() { if (!this._overlayRef || !this.menuOpen) { return; } const menu = this.menu; this._closingActionsSubscription.unsubscribe(); this._overlayRef.detach(); this._restoreFocus(); if (menu instanceof MatMenu) { menu._resetAnimation(); if (menu.lazyContent) { // Wait for the exit animation to finish before detaching the content. menu._animationDone .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["filter"])(event => event.toState === 'void'), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["take"])(1), // Interrupt if the content got re-attached. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["takeUntil"])(menu.lazyContent._attached)) .subscribe({ next: () => menu.lazyContent.detach(), // No matter whether the content got re-attached, reset the menu. complete: () => this._setIsMenuOpen(false) }); } else { this._setIsMenuOpen(false); } } else { this._setIsMenuOpen(false); if (menu.lazyContent) { menu.lazyContent.detach(); } } } /** * This method sets the menu state to open and focuses the first item if * the menu was opened via the keyboard. */ _initMenu() { this.menu.parentMenu = this.triggersSubmenu() ? this._parentMenu : undefined; this.menu.direction = this.dir; this._setMenuElevation(); this._setIsMenuOpen(true); this.menu.focusFirstItem(this._openedBy || 'program'); } /** Updates the menu elevation based on the amount of parent menus that it has. */ _setMenuElevation() { if (this.menu.setElevation) { let depth = 0; let parentMenu = this.menu.parentMenu; while (parentMenu) { depth++; parentMenu = parentMenu.parentMenu; } this.menu.setElevation(depth); } } /** Restores focus to the element that was focused before the menu was open. */ _restoreFocus() { // We should reset focus if the user is navigating using a keyboard or // if we have a top-level trigger which might cause focus to be lost // when clicking on the backdrop. if (this.restoreFocus) { if (!this._openedBy) { // Note that the focus style will show up both for `program` and // `keyboard` so we don't have to specify which one it is. this.focus(); } else if (!this.triggersSubmenu()) { this.focus(this._openedBy); } } this._openedBy = null; } // set state rather than toggle to support triggers sharing a menu _setIsMenuOpen(isOpen) { this._menuOpen = isOpen; this._menuOpen ? this.menuOpened.emit() : this.menuClosed.emit(); if (this.triggersSubmenu()) { this._menuItemInstance._highlighted = isOpen; } } /** * This method checks that a valid instance of MatMenu has been passed into * matMenuTriggerFor. If not, an exception is thrown. */ _checkMenu() { if (!this.menu && (typeof ngDevMode === 'undefined' || ngDevMode)) { throwMatMenuMissingError(); } } /** * This method creates the overlay from the provided menu's template and saves its * OverlayRef so that it can be attached to the DOM when openMenu is called. */ _createOverlay() { if (!this._overlayRef) { const config = this._getOverlayConfig(); this._subscribeToPositions(config.positionStrategy); this._overlayRef = this._overlay.create(config); // Consume the `keydownEvents` in order to prevent them from going to another overlay. // Ideally we'd also have our keyboard event logic in here, however doing so will // break anybody that may have implemented the `MatMenuPanel` themselves. this._overlayRef.keydownEvents().subscribe(); } return this._overlayRef; } /** * This method builds the configuration object needed to create the overlay, the OverlayState. * @returns OverlayConfig */ _getOverlayConfig() { return new _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["OverlayConfig"]({ positionStrategy: this._overlay.position() .flexibleConnectedTo(this._element) .withLockedPosition() .withTransformOriginOn('.mat-menu-panel, .mat-mdc-menu-panel'), backdropClass: this.menu.backdropClass || 'cdk-overlay-transparent-backdrop', panelClass: this.menu.overlayPanelClass, scrollStrategy: this._scrollStrategy(), direction: this._dir }); } /** * Listens to changes in the position of the overlay and sets the correct classes * on the menu based on the new position. This ensures the animation origin is always * correct, even if a fallback position is used for the overlay. */ _subscribeToPositions(position) { if (this.menu.setPositionClasses) { position.positionChanges.subscribe(change => { const posX = change.connectionPair.overlayX === 'start' ? 'after' : 'before'; const posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above'; this.menu.setPositionClasses(posX, posY); }); } } /** * Sets the appropriate positions on a position strategy * so the overlay connects with the trigger correctly. * @param positionStrategy Strategy whose position to update. */ _setPosition(positionStrategy) { let [originX, originFallbackX] = this.menu.xPosition === 'before' ? ['end', 'start'] : ['start', 'end']; let [overlayY, overlayFallbackY] = this.menu.yPosition === 'above' ? ['bottom', 'top'] : ['top', 'bottom']; let [originY, originFallbackY] = [overlayY, overlayFallbackY]; let [overlayX, overlayFallbackX] = [originX, originFallbackX]; let offsetY = 0; if (this.triggersSubmenu()) { // When the menu is a sub-menu, it should always align itself // to the edges of the trigger, instead of overlapping it. overlayFallbackX = originX = this.menu.xPosition === 'before' ? 'start' : 'end'; originFallbackX = overlayX = originX === 'end' ? 'start' : 'end'; offsetY = overlayY === 'bottom' ? MENU_PANEL_TOP_PADDING : -MENU_PANEL_TOP_PADDING; } else if (!this.menu.overlapTrigger) { originY = overlayY === 'top' ? 'bottom' : 'top'; originFallbackY = overlayFallbackY === 'top' ? 'bottom' : 'top'; } positionStrategy.withPositions([ { originX, originY, overlayX, overlayY, offsetY }, { originX: originFallbackX, originY, overlayX: overlayFallbackX, overlayY, offsetY }, { originX, originY: originFallbackY, overlayX, overlayY: overlayFallbackY, offsetY: -offsetY }, { originX: originFallbackX, originY: originFallbackY, overlayX: overlayFallbackX, overlayY: overlayFallbackY, offsetY: -offsetY } ]); } /** Returns a stream that emits whenever an action that should close the menu occurs. */ _menuClosingActions() { const backdrop = this._overlayRef.backdropClick(); const detachments = this._overlayRef.detachments(); const parentClose = this._parentMenu ? this._parentMenu.closed : Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(); const hover = this._parentMenu ? this._parentMenu._hovered().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["filter"])(active => active !== this._menuItemInstance), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["filter"])(() => this._menuOpen)) : Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(); return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["merge"])(backdrop, parentClose, hover, detachments); } /** Handles mouse presses on the trigger. */ _handleMousedown(event) { if (!Object(_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["isFakeMousedownFromScreenReader"])(event)) { // Since right or middle button clicks won't trigger the `click` event, // we shouldn't consider the menu as opened by mouse in those cases. this._openedBy = event.button === 0 ? 'mouse' : null; // Since clicking on the trigger won't close the menu if it opens a sub-menu, // we should prevent focus from moving onto it via click to avoid the // highlight from lingering on the menu item. if (this.triggersSubmenu()) { event.preventDefault(); } } } /** Handles key presses on the trigger. */ _handleKeydown(event) { const keyCode = event.keyCode; if (this.triggersSubmenu() && ((keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__["RIGHT_ARROW"] && this.dir === 'ltr') || (keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__["LEFT_ARROW"] && this.dir === 'rtl'))) { this.openMenu(); } } /** Handles click events on the trigger. */ _handleClick(event) { if (this.triggersSubmenu()) { // Stop event propagation to avoid closing the parent menu. event.stopPropagation(); this.openMenu(); } else { this.toggleMenu(); } } /** Handles the cases where the user hovers over the trigger. */ _handleHover() { // Subscribe to changes in the hovered item in order to toggle the panel. if (!this.triggersSubmenu()) { return; } this._hoverSubscription = this._parentMenu._hovered() // Since we might have multiple competing triggers for the same menu (e.g. a sub-menu // with different data and triggers), we have to delay it by a tick to ensure that // it won't be closed immediately after it is opened. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["filter"])(active => active === this._menuItemInstance && !active.disabled), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["delay"])(0, rxjs__WEBPACK_IMPORTED_MODULE_4__["asapScheduler"])) .subscribe(() => { this._openedBy = 'mouse'; // If the same menu is used between multiple triggers, it might still be animating // while the new trigger tries to re-open it. Wait for the animation to finish // before doing so. Also interrupt if the user moves to another item. if (this.menu instanceof MatMenu && this.menu._isAnimating) { // We need the `delay(0)` here in order to avoid // 'changed after checked' errors in some cases. See #12194. this.menu._animationDone .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["delay"])(0, rxjs__WEBPACK_IMPORTED_MODULE_4__["asapScheduler"]), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["takeUntil"])(this._parentMenu._hovered())) .subscribe(() => this.openMenu()); } else { this.openMenu(); } }); } /** Gets the portal that should be attached to the overlay. */ _getPortal() { // Note that we can avoid this check by keeping the portal on the menu panel. // While it would be cleaner, we'd have to introduce another required method on // `MatMenuPanel`, making it harder to consume. if (!this._portal || this._portal.templateRef !== this.menu.templateRef) { this._portal = new _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_7__["TemplatePortal"](this.menu.templateRef, this._viewContainerRef); } return this._portal; } } MatMenuTrigger.ɵfac = function MatMenuTrigger_Factory(t) { return new (t || MatMenuTrigger)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["Overlay"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](MAT_MENU_SCROLL_STRATEGY), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](MatMenu, 8), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](MatMenuItem, 10), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_10__["Directionality"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"])); }; MatMenuTrigger.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({ type: MatMenuTrigger, selectors: [["", "mat-menu-trigger-for", ""], ["", "matMenuTriggerFor", ""]], hostAttrs: ["aria-haspopup", "true", 1, "mat-menu-trigger"], hostVars: 2, hostBindings: function MatMenuTrigger_HostBindings(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("mousedown", function MatMenuTrigger_mousedown_HostBindingHandler($event) { return ctx._handleMousedown($event); })("keydown", function MatMenuTrigger_keydown_HostBindingHandler($event) { return ctx._handleKeydown($event); })("click", function MatMenuTrigger_click_HostBindingHandler($event) { return ctx._handleClick($event); }); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵattribute"]("aria-expanded", ctx.menuOpen || null)("aria-controls", ctx.menuOpen ? ctx.menu.panelId : null); } }, inputs: { restoreFocus: ["matMenuTriggerRestoreFocus", "restoreFocus"], _deprecatedMatMenuTriggerFor: ["mat-menu-trigger-for", "_deprecatedMatMenuTriggerFor"], menu: ["matMenuTriggerFor", "menu"], menuData: ["matMenuTriggerData", "menuData"] }, outputs: { menuOpened: "menuOpened", onMenuOpen: "onMenuOpen", menuClosed: "menuClosed", onMenuClose: "onMenuClose" }, exportAs: ["matMenuTrigger"] }); MatMenuTrigger.ctorParameters = () => [ { type: _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["Overlay"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"], args: [MAT_MENU_SCROLL_STRATEGY,] }] }, { type: MatMenu, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"] }] }, { type: MatMenuItem, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Self"] }] }, { type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_10__["Directionality"], decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"] }] }, { type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"] } ]; MatMenuTrigger.propDecorators = { _deprecatedMatMenuTriggerFor: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"], args: ['mat-menu-trigger-for',] }], menu: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"], args: ['matMenuTriggerFor',] }], menuData: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"], args: ['matMenuTriggerData',] }], restoreFocus: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"], args: ['matMenuTriggerRestoreFocus',] }], menuOpened: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }], onMenuOpen: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }], menuClosed: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }], onMenuClose: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }] }; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatMenuTrigger, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"], args: [{ selector: `[mat-menu-trigger-for], [matMenuTriggerFor]`, host: { 'class': 'mat-menu-trigger', 'aria-haspopup': 'true', '[attr.aria-expanded]': 'menuOpen || null', '[attr.aria-controls]': 'menuOpen ? menu.panelId : null', '(mousedown)': '_handleMousedown($event)', '(keydown)': '_handleKeydown($event)', '(click)': '_handleClick($event)' }, exportAs: 'matMenuTrigger' }] }], function () { return [{ type: _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["Overlay"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"], args: [MAT_MENU_SCROLL_STRATEGY] }] }, { type: MatMenu, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"] }] }, { type: MatMenuItem, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Self"] }] }, { type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_10__["Directionality"], decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"] }] }, { type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"] }]; }, { restoreFocus: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"], args: ['matMenuTriggerRestoreFocus'] }], menuOpened: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }], onMenuOpen: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }], menuClosed: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }], onMenuClose: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }], _deprecatedMatMenuTriggerFor: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"], args: ['mat-menu-trigger-for'] }], menu: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"], args: ['matMenuTriggerFor'] }], menuData: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"], args: ['matMenuTriggerData'] }] }); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Used by both the current `MatMenuModule` and the MDC `MatMenuModule` * to declare the menu-related directives. */ class _MatMenuDirectivesModule { } _MatMenuDirectivesModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({ type: _MatMenuDirectivesModule }); _MatMenuDirectivesModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({ factory: function _MatMenuDirectivesModule_Factory(t) { return new (t || _MatMenuDirectivesModule)(); }, providers: [MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"]] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](_MatMenuDirectivesModule, { declarations: function () { return [MatMenuTrigger, MatMenuContent]; }, exports: function () { return [MatMenuTrigger, MatMenuContent, _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"]]; } }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](_MatMenuDirectivesModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgModule"], args: [{ exports: [MatMenuTrigger, MatMenuContent, _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"]], declarations: [ MatMenuTrigger, MatMenuContent, ], providers: [MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER] }] }], null, null); })(); class MatMenuModule { } MatMenuModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({ type: MatMenuModule }); MatMenuModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({ factory: function MatMenuModule_Factory(t) { return new (t || MatMenuModule)(); }, providers: [MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [[ _angular_common__WEBPACK_IMPORTED_MODULE_8__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatRippleModule"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["OverlayModule"], _MatMenuDirectivesModule, ], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__["CdkScrollableModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"], _MatMenuDirectivesModule] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](MatMenuModule, { declarations: function () { return [_MatMenu, MatMenuItem]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_8__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatRippleModule"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["OverlayModule"], _MatMenuDirectivesModule]; }, exports: function () { return [_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__["CdkScrollableModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"], _MatMenu, MatMenuItem, _MatMenuDirectivesModule]; } }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatMenuModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgModule"], args: [{ imports: [ _angular_common__WEBPACK_IMPORTED_MODULE_8__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatRippleModule"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["OverlayModule"], _MatMenuDirectivesModule, ], exports: [_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__["CdkScrollableModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"], _MatMenu, MatMenuItem, _MatMenuDirectivesModule], declarations: [_MatMenu, MatMenuItem], providers: [MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER] }] }], null, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Generated bundle index. Do not edit. */ //# sourceMappingURL=menu.js.map /***/ }), /***/ "SUoz": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/GetCelebrityInfoCommand.js ***! \**********************************************************************************************/ /*! exports provided: GetCelebrityInfoCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCelebrityInfoCommand", function() { return GetCelebrityInfoCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetCelebrityInfoCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCelebrityInfoCommand, _super); // Start section: command_properties // End section: command_properties function GetCelebrityInfoCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetCelebrityInfoCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCelebrityInfoRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCelebrityInfoResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetCelebrityInfoCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetCelebrityInfoCommand"])(input, context); }; GetCelebrityInfoCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetCelebrityInfoCommand"])(output, context); }; return GetCelebrityInfoCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetCelebrityInfoCommand.js.map /***/ }), /***/ "SWgf": /*!******************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutObjectCommand.js ***! \******************************************************************************/ /*! exports provided: PutObjectCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutObjectCommand", function() { return PutObjectCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_ssec__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-ssec */ "CXEx"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutObjectCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutObjectCommand, _super); // Start section: command_properties // End section: command_properties function PutObjectCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_ssec__WEBPACK_IMPORTED_MODULE_5__["getSsecPlugin"])(configuration)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutObjectRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutObjectOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutObjectCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutObjectCommand"])(input, context); }; PutObjectCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutObjectCommand"])(output, context); }; return PutObjectCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__["Command"])); //# sourceMappingURL=PutObjectCommand.js.map /***/ }), /***/ "SYQj": /*!***************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetObjectLegalHoldCommand.js ***! \***************************************************************************************/ /*! exports provided: GetObjectLegalHoldCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetObjectLegalHoldCommand", function() { return GetObjectLegalHoldCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetObjectLegalHoldCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetObjectLegalHoldCommand, _super); // Start section: command_properties // End section: command_properties function GetObjectLegalHoldCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetObjectLegalHoldCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetObjectLegalHoldRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetObjectLegalHoldOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetObjectLegalHoldCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetObjectLegalHoldCommand"])(input, context); }; GetObjectLegalHoldCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetObjectLegalHoldCommand"])(output, context); }; return GetObjectLegalHoldCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetObjectLegalHoldCommand.js.map /***/ }), /***/ "SYjR": /*!************************************************************!*\ !*** ./node_modules/graphql/utilities/getOperationAST.mjs ***! \************************************************************/ /*! exports provided: getOperationAST */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOperationAST", function() { return getOperationAST; }); /* harmony import */ var _language_kinds__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../language/kinds */ "/jXB"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Returns an operation AST given a document AST and optionally an operation * name. If a name is not provided, an operation is only returned if only one is * provided in the document. */ function getOperationAST(documentAST, operationName) { var operation = null; for (var i = 0; i < documentAST.definitions.length; i++) { var definition = documentAST.definitions[i]; if (definition.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].OPERATION_DEFINITION) { if (!operationName) { // If no operation name was provided, only return an Operation if there // is one defined in the document. Upon encountering the second, return // null. if (operation) { return null; } operation = definition; } else if (definition.name && definition.name.value === operationName) { return definition; } } } return operation; } /***/ }), /***/ "Sa+4": /*!*********************************************************************************!*\ !*** ./node_modules/@aws-amplify/analytics/lib-esm/trackers/PageViewTracker.js ***! \*********************************************************************************/ /*! exports provided: PageViewTracker, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PageViewTracker", function() { return PageViewTracker; }); /* harmony import */ var _utils_MethodEmbed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/MethodEmbed */ "Np1J"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('PageViewTracker'); var PREV_URL_KEY = 'aws-amplify-analytics-prevUrl'; var getUrl = function () { if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["JS"].browserOrNode().isBrowser) return ''; else return window.location.origin + window.location.pathname; }; var defaultOpts = { enable: false, provider: 'AWSPinpoint', getUrl: getUrl, }; var PageViewTracker = /** @class */ (function () { function PageViewTracker(tracker, opts) { logger.debug('initialize pageview tracker with opts', opts); this._config = Object.assign({}, defaultOpts, opts); this._tracker = tracker; this._hasEnabled = false; this._trackFunc = this._trackFunc.bind(this); if (this._config.type === 'SPA') { this._pageViewTrackSPA(); } else { this._pageViewTrackDefault(); } } PageViewTracker.prototype.configure = function (opts) { Object.assign(this._config, opts); // if spa, need to remove those listeners if disabled if (this._config.type === 'SPA') { this._pageViewTrackSPA(); } return this._config; }; PageViewTracker.prototype._isSameUrl = function () { var prevUrl = sessionStorage.getItem(PREV_URL_KEY); var curUrl = this._config.getUrl(); if (prevUrl === curUrl) { logger.debug('the url is same'); return true; } else return false; }; PageViewTracker.prototype._pageViewTrackDefault = function () { return __awaiter(this, void 0, void 0, function () { var url, customAttrs, _a, attributes; return __generator(this, function (_b) { switch (_b.label) { case 0: if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["JS"].browserOrNode().isBrowser || !window.addEventListener || !window.sessionStorage) { logger.debug('not in the supported web enviroment'); return [2 /*return*/]; } url = this._config.getUrl(); if (!(typeof this._config.attributes === 'function')) return [3 /*break*/, 2]; return [4 /*yield*/, this._config.attributes()]; case 1: _a = _b.sent(); return [3 /*break*/, 3]; case 2: _a = this._config.attributes; _b.label = 3; case 3: customAttrs = _a; attributes = Object.assign({ url: url, }, customAttrs); if (this._config.enable && !this._isSameUrl()) { this._tracker({ name: this._config.eventName || 'pageView', attributes: attributes, }, this._config.provider).catch(function (e) { logger.debug('Failed to record the page view event', e); }); sessionStorage.setItem(PREV_URL_KEY, url); } return [2 /*return*/]; } }); }); }; PageViewTracker.prototype._trackFunc = function () { return __awaiter(this, void 0, void 0, function () { var url, customAttrs, _a, attributes; return __generator(this, function (_b) { switch (_b.label) { case 0: if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["JS"].browserOrNode().isBrowser || !window.addEventListener || !history.pushState || !window.sessionStorage) { logger.debug('not in the supported web enviroment'); return [2 /*return*/]; } url = this._config.getUrl(); if (!(typeof this._config.attributes === 'function')) return [3 /*break*/, 2]; return [4 /*yield*/, this._config.attributes()]; case 1: _a = _b.sent(); return [3 /*break*/, 3]; case 2: _a = this._config.attributes; _b.label = 3; case 3: customAttrs = _a; attributes = Object.assign({ url: url, }, customAttrs); if (!this._isSameUrl()) { this._tracker({ name: this._config.eventName || 'pageView', attributes: attributes, }, this._config.provider).catch(function (e) { logger.debug('Failed to record the page view event', e); }); sessionStorage.setItem(PREV_URL_KEY, url); } return [2 /*return*/]; } }); }); }; PageViewTracker.prototype._pageViewTrackSPA = function () { if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["JS"].browserOrNode().isBrowser || !window.addEventListener || !history.pushState) { logger.debug('not in the supported web enviroment'); return; } if (this._config.enable && !this._hasEnabled) { _utils_MethodEmbed__WEBPACK_IMPORTED_MODULE_0__["MethodEmbed"].add(history, 'pushState', this._trackFunc); _utils_MethodEmbed__WEBPACK_IMPORTED_MODULE_0__["MethodEmbed"].add(history, 'replaceState', this._trackFunc); window.addEventListener('popstate', this._trackFunc); this._trackFunc(); this._hasEnabled = true; } else { _utils_MethodEmbed__WEBPACK_IMPORTED_MODULE_0__["MethodEmbed"].remove(history, 'pushState'); _utils_MethodEmbed__WEBPACK_IMPORTED_MODULE_0__["MethodEmbed"].remove(history, 'replaceState'); window.removeEventListener('popstate', this._trackFunc); this._hasEnabled = false; } }; return PageViewTracker; }()); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (PageViewTracker); //# sourceMappingURL=PageViewTracker.js.map /***/ }), /***/ "SdfR": /*!**********************************************************************!*\ !*** ./node_modules/@aws-amplify/storage/lib-esm/providers/index.js ***! \**********************************************************************/ /*! exports provided: AWSS3Provider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _AWSS3Provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AWSS3Provider */ "RdWp"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSS3Provider", function() { return _AWSS3Provider__WEBPACK_IMPORTED_MODULE_0__["AWSS3Provider"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "SeVD": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/subscribeTo.js ***! \*****************************************************************/ /*! exports provided: subscribeTo */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeTo", function() { return subscribeTo; }); /* harmony import */ var _subscribeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./subscribeToArray */ "ngJS"); /* harmony import */ var _subscribeToPromise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./subscribeToPromise */ "a7t3"); /* harmony import */ var _subscribeToIterable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./subscribeToIterable */ "pLzU"); /* harmony import */ var _subscribeToObservable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./subscribeToObservable */ "CRDf"); /* harmony import */ var _isArrayLike__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./isArrayLike */ "I55L"); /* harmony import */ var _isPromise__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./isPromise */ "c2HN"); /* harmony import */ var _isObject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./isObject */ "XoHu"); /* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../symbol/iterator */ "Lhse"); /* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../symbol/observable */ "kJWO"); const subscribeTo = (result) => { if (!!result && typeof result[_symbol_observable__WEBPACK_IMPORTED_MODULE_8__["observable"]] === 'function') { return Object(_subscribeToObservable__WEBPACK_IMPORTED_MODULE_3__["subscribeToObservable"])(result); } else if (Object(_isArrayLike__WEBPACK_IMPORTED_MODULE_4__["isArrayLike"])(result)) { return Object(_subscribeToArray__WEBPACK_IMPORTED_MODULE_0__["subscribeToArray"])(result); } else if (Object(_isPromise__WEBPACK_IMPORTED_MODULE_5__["isPromise"])(result)) { return Object(_subscribeToPromise__WEBPACK_IMPORTED_MODULE_1__["subscribeToPromise"])(result); } else if (!!result && typeof result[_symbol_iterator__WEBPACK_IMPORTED_MODULE_7__["iterator"]] === 'function') { return Object(_subscribeToIterable__WEBPACK_IMPORTED_MODULE_2__["subscribeToIterable"])(result); } else { const value = Object(_isObject__WEBPACK_IMPORTED_MODULE_6__["isObject"])(result) ? 'an invalid object' : `'${result}'`; const msg = `You provided ${value} where a stream was expected.` + ' You can provide an Observable, Promise, Array, or Iterable.'; throw new TypeError(msg); } }; //# sourceMappingURL=subscribeTo.js.map /***/ }), /***/ "SfRM": /*!*******************************************!*\ !*** ./node_modules/lodash/_hashClear.js ***! \*******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "YESw"); /** * Removes all key-value entries from the hash. * * @private * @name clear * @memberOf Hash */ function hashClear() { this.__data__ = nativeCreate ? nativeCreate(null) : {}; this.size = 0; } module.exports = hashClear; /***/ }), /***/ "SntB": /*!****************************************************!*\ !*** ./node_modules/axios/lib/core/mergeConfig.js ***! \****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ../utils */ "xTJ+"); /** * Config-specific merge-function which creates a new config-object * by merging two configuration objects together. * * @param {Object} config1 * @param {Object} config2 * @returns {Object} New object resulting from merging config2 to config1 */ module.exports = function mergeConfig(config1, config2) { // eslint-disable-next-line no-param-reassign config2 = config2 || {}; var config = {}; utils.forEach(['url', 'method', 'params', 'data'], function valueFromConfig2(prop) { if (typeof config2[prop] !== 'undefined') { config[prop] = config2[prop]; } }); utils.forEach(['headers', 'auth', 'proxy'], function mergeDeepProperties(prop) { if (utils.isObject(config2[prop])) { config[prop] = utils.deepMerge(config1[prop], config2[prop]); } else if (typeof config2[prop] !== 'undefined') { config[prop] = config2[prop]; } else if (utils.isObject(config1[prop])) { config[prop] = utils.deepMerge(config1[prop]); } else if (typeof config1[prop] !== 'undefined') { config[prop] = config1[prop]; } }); utils.forEach([ 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer', 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent', 'httpsAgent', 'cancelToken', 'socketPath' ], function defaultToConfig2(prop) { if (typeof config2[prop] !== 'undefined') { config[prop] = config2[prop]; } else if (typeof config1[prop] !== 'undefined') { config[prop] = config1[prop]; } }); return config; }; /***/ }), /***/ "SnyI": /*!*****************************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-retry/dist/es/defaultRetryQuota.js ***! \*****************************************************************************/ /*! exports provided: getDefaultRetryQuota */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDefaultRetryQuota", function() { return getDefaultRetryQuota; }); /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ "u/uE"); var getDefaultRetryQuota = function (initialRetryTokens) { var MAX_CAPACITY = initialRetryTokens; var availableCapacity = initialRetryTokens; var getCapacityAmount = function (error) { return (error.name === "TimeoutError" ? _constants__WEBPACK_IMPORTED_MODULE_0__["TIMEOUT_RETRY_COST"] : _constants__WEBPACK_IMPORTED_MODULE_0__["RETRY_COST"]); }; var hasRetryTokens = function (error) { return getCapacityAmount(error) <= availableCapacity; }; var retrieveRetryTokens = function (error) { if (!hasRetryTokens(error)) { // retryStrategy should stop retrying, and return last error throw new Error("No retry token available"); } var capacityAmount = getCapacityAmount(error); availableCapacity -= capacityAmount; return capacityAmount; }; var releaseRetryTokens = function (capacityReleaseAmount) { availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : _constants__WEBPACK_IMPORTED_MODULE_0__["NO_RETRY_INCREMENT"]; availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); }; return Object.freeze({ hasRetryTokens: hasRetryTokens, retrieveRetryTokens: retrieveRetryTokens, releaseRetryTokens: releaseRetryTokens, }); }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdFJldHJ5UXVvdGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGVmYXVsdFJldHJ5UXVvdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFFLGtCQUFrQixFQUFFLFVBQVUsRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUdqRixNQUFNLENBQUMsSUFBTSxvQkFBb0IsR0FBRyxVQUFDLGtCQUEwQjtJQUM3RCxJQUFNLFlBQVksR0FBRyxrQkFBa0IsQ0FBQztJQUN4QyxJQUFJLGlCQUFpQixHQUFHLGtCQUFrQixDQUFDO0lBRTNDLElBQU0saUJBQWlCLEdBQUcsVUFBQyxLQUFlLElBQUssT0FBQSxDQUFDLEtBQUssQ0FBQyxJQUFJLEtBQUssY0FBYyxDQUFDLENBQUMsQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDLEVBQWpFLENBQWlFLENBQUM7SUFFakgsSUFBTSxjQUFjLEdBQUcsVUFBQyxLQUFlLElBQUssT0FBQSxpQkFBaUIsQ0FBQyxLQUFLLENBQUMsSUFBSSxpQkFBaUIsRUFBN0MsQ0FBNkMsQ0FBQztJQUUxRixJQUFNLG1CQUFtQixHQUFHLFVBQUMsS0FBZTtRQUMxQyxJQUFJLENBQUMsY0FBYyxDQUFDLEtBQUssQ0FBQyxFQUFFO1lBQzFCLDREQUE0RDtZQUM1RCxNQUFNLElBQUksS0FBSyxDQUFDLDBCQUEwQixDQUFDLENBQUM7U0FDN0M7UUFDRCxJQUFNLGNBQWMsR0FBRyxpQkFBaUIsQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUNoRCxpQkFBaUIsSUFBSSxjQUFjLENBQUM7UUFDcEMsT0FBTyxjQUFjLENBQUM7SUFDeEIsQ0FBQyxDQUFDO0lBRUYsSUFBTSxrQkFBa0IsR0FBRyxVQUFDLHFCQUE4QjtRQUN4RCxpQkFBaUIsSUFBSSxxQkFBcUIsYUFBckIscUJBQXFCLGNBQXJCLHFCQUFxQixHQUFJLGtCQUFrQixDQUFDO1FBQ2pFLGlCQUFpQixHQUFHLElBQUksQ0FBQyxHQUFHLENBQUMsaUJBQWlCLEVBQUUsWUFBWSxDQUFDLENBQUM7SUFDaEUsQ0FBQyxDQUFDO0lBRUYsT0FBTyxNQUFNLENBQUMsTUFBTSxDQUFDO1FBQ25CLGNBQWMsZ0JBQUE7UUFDZCxtQkFBbUIscUJBQUE7UUFDbkIsa0JBQWtCLG9CQUFBO0tBQ25CLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFNka0Vycm9yIH0gZnJvbSBcIkBhd3Mtc2RrL3NtaXRoeS1jbGllbnRcIjtcblxuaW1wb3J0IHsgTk9fUkVUUllfSU5DUkVNRU5ULCBSRVRSWV9DT1NULCBUSU1FT1VUX1JFVFJZX0NPU1QgfSBmcm9tIFwiLi9jb25zdGFudHNcIjtcbmltcG9ydCB7IFJldHJ5UXVvdGEgfSBmcm9tIFwiLi9kZWZhdWx0U3RyYXRlZ3lcIjtcblxuZXhwb3J0IGNvbnN0IGdldERlZmF1bHRSZXRyeVF1b3RhID0gKGluaXRpYWxSZXRyeVRva2VuczogbnVtYmVyKTogUmV0cnlRdW90YSA9PiB7XG4gIGNvbnN0IE1BWF9DQVBBQ0lUWSA9IGluaXRpYWxSZXRyeVRva2VucztcbiAgbGV0IGF2YWlsYWJsZUNhcGFjaXR5ID0gaW5pdGlhbFJldHJ5VG9rZW5zO1xuXG4gIGNvbnN0IGdldENhcGFjaXR5QW1vdW50ID0gKGVycm9yOiBTZGtFcnJvcikgPT4gKGVycm9yLm5hbWUgPT09IFwiVGltZW91dEVycm9yXCIgPyBUSU1FT1VUX1JFVFJZX0NPU1QgOiBSRVRSWV9DT1NUKTtcblxuICBjb25zdCBoYXNSZXRyeVRva2VucyA9IChlcnJvcjogU2RrRXJyb3IpID0+IGdldENhcGFjaXR5QW1vdW50KGVycm9yKSA8PSBhdmFpbGFibGVDYXBhY2l0eTtcblxuICBjb25zdCByZXRyaWV2ZVJldHJ5VG9rZW5zID0gKGVycm9yOiBTZGtFcnJvcikgPT4ge1xuICAgIGlmICghaGFzUmV0cnlUb2tlbnMoZXJyb3IpKSB7XG4gICAgICAvLyByZXRyeVN0cmF0ZWd5IHNob3VsZCBzdG9wIHJldHJ5aW5nLCBhbmQgcmV0dXJuIGxhc3QgZXJyb3JcbiAgICAgIHRocm93IG5ldyBFcnJvcihcIk5vIHJldHJ5IHRva2VuIGF2YWlsYWJsZVwiKTtcbiAgICB9XG4gICAgY29uc3QgY2FwYWNpdHlBbW91bnQgPSBnZXRDYXBhY2l0eUFtb3VudChlcnJvcik7XG4gICAgYXZhaWxhYmxlQ2FwYWNpdHkgLT0gY2FwYWNpdHlBbW91bnQ7XG4gICAgcmV0dXJuIGNhcGFjaXR5QW1vdW50O1xuICB9O1xuXG4gIGNvbnN0IHJlbGVhc2VSZXRyeVRva2VucyA9IChjYXBhY2l0eVJlbGVhc2VBbW91bnQ/OiBudW1iZXIpID0+IHtcbiAgICBhdmFpbGFibGVDYXBhY2l0eSArPSBjYXBhY2l0eVJlbGVhc2VBbW91bnQgPz8gTk9fUkVUUllfSU5DUkVNRU5UO1xuICAgIGF2YWlsYWJsZUNhcGFjaXR5ID0gTWF0aC5taW4oYXZhaWxhYmxlQ2FwYWNpdHksIE1BWF9DQVBBQ0lUWSk7XG4gIH07XG5cbiAgcmV0dXJuIE9iamVjdC5mcmVlemUoe1xuICAgIGhhc1JldHJ5VG9rZW5zLFxuICAgIHJldHJpZXZlUmV0cnlUb2tlbnMsXG4gICAgcmVsZWFzZVJldHJ5VG9rZW5zLFxuICB9KTtcbn07XG4iXX0= /***/ }), /***/ "SpAZ": /*!**************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/identity.js ***! \**************************************************************/ /*! exports provided: identity */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "identity", function() { return identity; }); function identity(x) { return x; } //# sourceMappingURL=identity.js.map /***/ }), /***/ "Sv+X": /*!********************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/lib-esm/sync/outbox.js ***! \********************************************************************/ /*! exports provided: MutationEventOutbox */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MutationEventOutbox", function() { return MutationEventOutbox; }); /* harmony import */ var _predicates__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../predicates */ "0VOl"); /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../types */ "+eag"); /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "wr5y"); /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "U1Cx"); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; // TODO: Persist deleted ids var MutationEventOutbox = /** @class */ (function () { function MutationEventOutbox(schema, namespaceResolver, MutationEvent, ownSymbol) { this.schema = schema; this.namespaceResolver = namespaceResolver; this.MutationEvent = MutationEvent; this.ownSymbol = ownSymbol; } MutationEventOutbox.prototype.enqueue = function (storage, mutationEvent) { return __awaiter(this, void 0, void 0, function () { var _this = this; return __generator(this, function (_a) { storage.runExclusive(function (s) { return __awaiter(_this, void 0, void 0, function () { var mutationEventModelDefinition, predicate, _a, first, incomingMutationType, incomingConditionJSON, incomingCondition; var _this = this; return __generator(this, function (_b) { switch (_b.label) { case 0: mutationEventModelDefinition = this.schema.namespaces[_util__WEBPACK_IMPORTED_MODULE_2__["SYNC"]].models['MutationEvent']; predicate = _predicates__WEBPACK_IMPORTED_MODULE_0__["ModelPredicateCreator"].createFromExisting(mutationEventModelDefinition, function (c) { return c .modelId('eq', mutationEvent.modelId) .id('ne', _this.inProgressMutationEventId); }); return [4 /*yield*/, s.query(this.MutationEvent, predicate)]; case 1: _a = __read.apply(void 0, [_b.sent(), 1]), first = _a[0]; if (!(first === undefined)) return [3 /*break*/, 3]; return [4 /*yield*/, s.save(mutationEvent, undefined, this.ownSymbol)]; case 2: _b.sent(); return [2 /*return*/]; case 3: incomingMutationType = mutationEvent.operation; if (!(first.operation === _utils__WEBPACK_IMPORTED_MODULE_3__["TransformerMutationType"].CREATE)) return [3 /*break*/, 8]; if (!(incomingMutationType === _utils__WEBPACK_IMPORTED_MODULE_3__["TransformerMutationType"].DELETE)) return [3 /*break*/, 5]; // delete all for model return [4 /*yield*/, s.delete(this.MutationEvent, predicate)]; case 4: // delete all for model _b.sent(); return [3 /*break*/, 7]; case 5: // first gets updated with incoming's data, condition intentionally skiped return [4 /*yield*/, s.save(this.MutationEvent.copyOf(first, function (draft) { draft.data = mutationEvent.data; }), undefined, this.ownSymbol)]; case 6: // first gets updated with incoming's data, condition intentionally skiped _b.sent(); _b.label = 7; case 7: return [3 /*break*/, 12]; case 8: incomingConditionJSON = mutationEvent.condition; incomingCondition = JSON.parse(incomingConditionJSON); if (!(Object.keys(incomingCondition).length === 0)) return [3 /*break*/, 10]; // delete all for model return [4 /*yield*/, s.delete(this.MutationEvent, predicate)]; case 9: // delete all for model _b.sent(); _b.label = 10; case 10: // Enqueue new one return [4 /*yield*/, s.save(mutationEvent, undefined, this.ownSymbol)]; case 11: // Enqueue new one _b.sent(); _b.label = 12; case 12: return [2 /*return*/]; } }); }); }); return [2 /*return*/]; }); }); }; MutationEventOutbox.prototype.dequeue = function (storage) { return __awaiter(this, void 0, void 0, function () { var head; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.peek(storage)]; case 1: head = _a.sent(); return [4 /*yield*/, storage.delete(head)]; case 2: _a.sent(); this.inProgressMutationEventId = undefined; return [2 /*return*/, head]; } }); }); }; /** * Doing a peek() implies that the mutation goes "inProgress" * * @param storage */ MutationEventOutbox.prototype.peek = function (storage) { return __awaiter(this, void 0, void 0, function () { var head; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, storage.queryOne(this.MutationEvent, _types__WEBPACK_IMPORTED_MODULE_1__["QueryOne"].FIRST)]; case 1: head = _a.sent(); this.inProgressMutationEventId = head ? head.id : undefined; return [2 /*return*/, head]; } }); }); }; MutationEventOutbox.prototype.getForModel = function (storage, model) { return __awaiter(this, void 0, void 0, function () { var mutationEventModelDefinition, mutationEvents; return __generator(this, function (_a) { switch (_a.label) { case 0: mutationEventModelDefinition = this.schema.namespaces[_util__WEBPACK_IMPORTED_MODULE_2__["SYNC"]].models .MutationEvent; return [4 /*yield*/, storage.query(this.MutationEvent, _predicates__WEBPACK_IMPORTED_MODULE_0__["ModelPredicateCreator"].createFromExisting(mutationEventModelDefinition, function (c) { return c.modelId('eq', model.id); }))]; case 1: mutationEvents = _a.sent(); return [2 /*return*/, mutationEvents]; } }); }); }; MutationEventOutbox.prototype.getModelIds = function (storage) { return __awaiter(this, void 0, void 0, function () { var mutationEvents, result; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, storage.query(this.MutationEvent)]; case 1: mutationEvents = _a.sent(); result = new Set(); mutationEvents.forEach(function (_a) { var modelId = _a.modelId; return result.add(modelId); }); return [2 /*return*/, result]; } }); }); }; return MutationEventOutbox; }()); //# sourceMappingURL=outbox.js.map /***/ }), /***/ "SxV6": /*!****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/first.js ***! \****************************************************************/ /*! exports provided: first */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "first", function() { return first; }); /* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/EmptyError */ "sVev"); /* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./filter */ "pLZG"); /* harmony import */ var _take__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./take */ "IzEk"); /* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./defaultIfEmpty */ "xbPD"); /* harmony import */ var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./throwIfEmpty */ "XDbj"); /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/identity */ "SpAZ"); function first(predicate, defaultValue) { const hasDefaultValue = arguments.length >= 2; return (source) => source.pipe(predicate ? Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])((v, i) => predicate(v, i, source)) : _util_identity__WEBPACK_IMPORTED_MODULE_5__["identity"], Object(_take__WEBPACK_IMPORTED_MODULE_2__["take"])(1), hasDefaultValue ? Object(_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__["defaultIfEmpty"])(defaultValue) : Object(_throwIfEmpty__WEBPACK_IMPORTED_MODULE_4__["throwIfEmpty"])(() => new _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__["EmptyError"]())); } //# sourceMappingURL=first.js.map /***/ }), /***/ "T/BW": /*!*****************************************************************!*\ !*** ./node_modules/@aws-sdk/client-translate/dist/es/index.js ***! \*****************************************************************/ /*! exports provided: TranslateClient, Translate, DeleteTerminologyCommand, DescribeTextTranslationJobCommand, GetTerminologyCommand, ImportTerminologyCommand, ListTerminologiesCommand, listTerminologiesPaginate, ListTextTranslationJobsCommand, listTextTranslationJobsPaginate, StartTextTranslationJobCommand, StopTextTranslationJobCommand, TranslateTextCommand, AppliedTerminology, DeleteTerminologyRequest, DescribeTextTranslationJobRequest, DescribeTextTranslationJobResponse, DetectedLanguageLowConfidenceException, EncryptionKey, EncryptionKeyType, GetTerminologyRequest, GetTerminologyResponse, ImportTerminologyRequest, ImportTerminologyResponse, InputDataConfig, InternalServerException, InvalidFilterException, InvalidParameterValueException, InvalidRequestException, JobDetails, JobStatus, LimitExceededException, ListTerminologiesRequest, ListTerminologiesResponse, ListTextTranslationJobsRequest, ListTextTranslationJobsResponse, MergeStrategy, OutputDataConfig, ResourceNotFoundException, ServiceUnavailableException, StartTextTranslationJobRequest, StartTextTranslationJobResponse, StopTextTranslationJobRequest, StopTextTranslationJobResponse, Term, TerminologyData, TerminologyDataFormat, TerminologyDataLocation, TerminologyProperties, TextSizeLimitExceededException, TextTranslationJobFilter, TextTranslationJobProperties, TooManyRequestsException, TranslateTextRequest, TranslateTextResponse, UnsupportedLanguagePairException */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _TranslateClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TranslateClient */ "xRRc"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslateClient", function() { return _TranslateClient__WEBPACK_IMPORTED_MODULE_0__["TranslateClient"]; }); /* harmony import */ var _Translate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Translate */ "b7AO"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Translate", function() { return _Translate__WEBPACK_IMPORTED_MODULE_1__["Translate"]; }); /* harmony import */ var _commands_DeleteTerminologyCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/DeleteTerminologyCommand */ "0jX4"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteTerminologyCommand", function() { return _commands_DeleteTerminologyCommand__WEBPACK_IMPORTED_MODULE_2__["DeleteTerminologyCommand"]; }); /* harmony import */ var _commands_DescribeTextTranslationJobCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/DescribeTextTranslationJobCommand */ "qlNO"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeTextTranslationJobCommand", function() { return _commands_DescribeTextTranslationJobCommand__WEBPACK_IMPORTED_MODULE_3__["DescribeTextTranslationJobCommand"]; }); /* harmony import */ var _commands_GetTerminologyCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/GetTerminologyCommand */ "tncr"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetTerminologyCommand", function() { return _commands_GetTerminologyCommand__WEBPACK_IMPORTED_MODULE_4__["GetTerminologyCommand"]; }); /* harmony import */ var _commands_ImportTerminologyCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/ImportTerminologyCommand */ "Rfsf"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportTerminologyCommand", function() { return _commands_ImportTerminologyCommand__WEBPACK_IMPORTED_MODULE_5__["ImportTerminologyCommand"]; }); /* harmony import */ var _commands_ListTerminologiesCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/ListTerminologiesCommand */ "Na0I"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTerminologiesCommand", function() { return _commands_ListTerminologiesCommand__WEBPACK_IMPORTED_MODULE_6__["ListTerminologiesCommand"]; }); /* harmony import */ var _pagination_ListTerminologiesPaginator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./pagination/ListTerminologiesPaginator */ "R8JX"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "listTerminologiesPaginate", function() { return _pagination_ListTerminologiesPaginator__WEBPACK_IMPORTED_MODULE_7__["listTerminologiesPaginate"]; }); /* harmony import */ var _commands_ListTextTranslationJobsCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/ListTextTranslationJobsCommand */ "DZ4p"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTextTranslationJobsCommand", function() { return _commands_ListTextTranslationJobsCommand__WEBPACK_IMPORTED_MODULE_8__["ListTextTranslationJobsCommand"]; }); /* harmony import */ var _pagination_ListTextTranslationJobsPaginator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./pagination/ListTextTranslationJobsPaginator */ "aq2g"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "listTextTranslationJobsPaginate", function() { return _pagination_ListTextTranslationJobsPaginator__WEBPACK_IMPORTED_MODULE_9__["listTextTranslationJobsPaginate"]; }); /* harmony import */ var _commands_StartTextTranslationJobCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/StartTextTranslationJobCommand */ "ZS8B"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartTextTranslationJobCommand", function() { return _commands_StartTextTranslationJobCommand__WEBPACK_IMPORTED_MODULE_10__["StartTextTranslationJobCommand"]; }); /* harmony import */ var _commands_StopTextTranslationJobCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/StopTextTranslationJobCommand */ "gLFW"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopTextTranslationJobCommand", function() { return _commands_StopTextTranslationJobCommand__WEBPACK_IMPORTED_MODULE_11__["StopTextTranslationJobCommand"]; }); /* harmony import */ var _commands_TranslateTextCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/TranslateTextCommand */ "ORaX"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslateTextCommand", function() { return _commands_TranslateTextCommand__WEBPACK_IMPORTED_MODULE_12__["TranslateTextCommand"]; }); /* harmony import */ var _pagination_Interfaces__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./pagination/Interfaces */ "EjyU"); /* empty/unused harmony star reexport *//* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./models/index */ "B4mn"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AppliedTerminology", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["AppliedTerminology"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteTerminologyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeleteTerminologyRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeTextTranslationJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DescribeTextTranslationJobRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeTextTranslationJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DescribeTextTranslationJobResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectedLanguageLowConfidenceException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DetectedLanguageLowConfidenceException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EncryptionKey", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["EncryptionKey"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EncryptionKeyType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["EncryptionKeyType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetTerminologyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["GetTerminologyRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetTerminologyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["GetTerminologyResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportTerminologyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ImportTerminologyRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportTerminologyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ImportTerminologyResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InputDataConfig", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["InputDataConfig"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InternalServerException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["InternalServerException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidFilterException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["InvalidFilterException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidParameterValueException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["InvalidParameterValueException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidRequestException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["InvalidRequestException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JobDetails", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["JobDetails"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JobStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["JobStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["LimitExceededException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTerminologiesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ListTerminologiesRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTerminologiesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ListTerminologiesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTextTranslationJobsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ListTextTranslationJobsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTextTranslationJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ListTextTranslationJobsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MergeStrategy", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["MergeStrategy"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OutputDataConfig", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["OutputDataConfig"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ResourceNotFoundException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ServiceUnavailableException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ServiceUnavailableException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartTextTranslationJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["StartTextTranslationJobRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartTextTranslationJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["StartTextTranslationJobResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopTextTranslationJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["StopTextTranslationJobRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopTextTranslationJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["StopTextTranslationJobResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Term", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["Term"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TerminologyData", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["TerminologyData"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TerminologyDataFormat", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["TerminologyDataFormat"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TerminologyDataLocation", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["TerminologyDataLocation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TerminologyProperties", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["TerminologyProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextSizeLimitExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["TextSizeLimitExceededException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextTranslationJobFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["TextTranslationJobFilter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextTranslationJobProperties", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["TextTranslationJobProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooManyRequestsException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["TooManyRequestsException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslateTextRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["TranslateTextRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslateTextResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["TranslateTextResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UnsupportedLanguagePairException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["UnsupportedLanguagePairException"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "T03m": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/ClassifyDocumentCommand.js ***! \*********************************************************************************************/ /*! exports provided: ClassifyDocumentCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassifyDocumentCommand", function() { return ClassifyDocumentCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ClassifyDocumentCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ClassifyDocumentCommand, _super); // Start section: command_properties // End section: command_properties function ClassifyDocumentCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ClassifyDocumentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ClassifyDocumentRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ClassifyDocumentResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ClassifyDocumentCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ClassifyDocumentCommand"])(input, context); }; ClassifyDocumentCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ClassifyDocumentCommand"])(output, context); }; return ClassifyDocumentCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ClassifyDocumentCommand.js.map /***/ }), /***/ "T0KU": /*!**************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeregisterStreamConsumerCommand.js ***! \**************************************************************************************************/ /*! exports provided: DeregisterStreamConsumerCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeregisterStreamConsumerCommand", function() { return DeregisterStreamConsumerCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeregisterStreamConsumerCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeregisterStreamConsumerCommand, _super); // Start section: command_properties // End section: command_properties function DeregisterStreamConsumerCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeregisterStreamConsumerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeregisterStreamConsumerInput"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeregisterStreamConsumerCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DeregisterStreamConsumerCommand"])(input, context); }; DeregisterStreamConsumerCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DeregisterStreamConsumerCommand"])(output, context); }; return DeregisterStreamConsumerCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeregisterStreamConsumerCommand.js.map /***/ }), /***/ "T95z": /*!*********************************************************!*\ !*** ./node_modules/graphql/jsutils/suggestionList.mjs ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return suggestionList; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Given an invalid input string and a list of valid options, returns a filtered * list of valid options sorted based on their similarity with the input. */ function suggestionList(input, options) { var optionsByDistance = Object.create(null); var oLength = options.length; var inputThreshold = input.length / 2; for (var i = 0; i < oLength; i++) { var distance = lexicalDistance(input, options[i]); var threshold = Math.max(inputThreshold, options[i].length / 2, 1); if (distance <= threshold) { optionsByDistance[options[i]] = distance; } } return Object.keys(optionsByDistance).sort(function (a, b) { return optionsByDistance[a] - optionsByDistance[b]; }); } /** * Computes the lexical distance between strings A and B. * * The "distance" between two strings is given by counting the minimum number * of edits needed to transform string A into string B. An edit can be an * insertion, deletion, or substitution of a single character, or a swap of two * adjacent characters. * * Includes a custom alteration from Damerau-Levenshtein to treat case changes * as a single edit which helps identify mis-cased values with an edit distance * of 1. * * This distance can be useful for detecting typos in input or sorting * * @param {string} a * @param {string} b * @return {int} distance in number of edits */ function lexicalDistance(aStr, bStr) { if (aStr === bStr) { return 0; } var i; var j; var d = []; var a = aStr.toLowerCase(); var b = bStr.toLowerCase(); var aLength = a.length; var bLength = b.length; // Any case change counts as a single edit if (a === b) { return 1; } for (i = 0; i <= aLength; i++) { d[i] = [i]; } for (j = 1; j <= bLength; j++) { d[0][j] = j; } for (i = 1; i <= aLength; i++) { for (j = 1; j <= bLength; j++) { var cost = a[i - 1] === b[j - 1] ? 0 : 1; d[i][j] = Math.min(d[i - 1][j] + 1, d[i][j - 1] + 1, d[i - 1][j - 1] + cost); if (i > 1 && j > 1 && a[i - 1] === b[j - 2] && a[i - 2] === b[j - 1]) { d[i][j] = Math.min(d[i][j], d[i - 2][j - 2] + cost); } } } return d[aLength][bLength]; } /***/ }), /***/ "TARy": /*!****************************************************************!*\ !*** ./node_modules/@aws-sdk/util-uri-escape/dist/es/index.js ***! \****************************************************************/ /*! exports provided: escapeUri, escapeUriPath */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _escape_uri__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./escape-uri */ "9niX"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "escapeUri", function() { return _escape_uri__WEBPACK_IMPORTED_MODULE_0__["escapeUri"]; }); /* harmony import */ var _escape_uri_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./escape-uri-path */ "Uou1"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "escapeUriPath", function() { return _escape_uri_path__WEBPACK_IMPORTED_MODULE_1__["escapeUriPath"]; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2VzY2FwZS11cmlcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2VzY2FwZS11cmktcGF0aFwiO1xuIl19 /***/ }), /***/ "TESy": /*!*************************************************************!*\ !*** ./node_modules/amazon-cognito-identity-js/es/index.js ***! \*************************************************************/ /*! exports provided: AuthenticationDetails, AuthenticationHelper, CognitoAccessToken, CognitoIdToken, CognitoRefreshToken, CognitoUser, CognitoUserAttribute, CognitoUserPool, CognitoUserSession, CookieStorage, DateHelper, appendToCognitoUserAgent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _AuthenticationDetails__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AuthenticationDetails */ "4gov"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthenticationDetails", function() { return _AuthenticationDetails__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _AuthenticationHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AuthenticationHelper */ "7DD1"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthenticationHelper", function() { return _AuthenticationHelper__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _CognitoAccessToken__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CognitoAccessToken */ "GaV3"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CognitoAccessToken", function() { return _CognitoAccessToken__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _CognitoIdToken__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CognitoIdToken */ "Huoz"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CognitoIdToken", function() { return _CognitoIdToken__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _CognitoRefreshToken__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CognitoRefreshToken */ "bBqc"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CognitoRefreshToken", function() { return _CognitoRefreshToken__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _CognitoUser__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CognitoUser */ "PEP3"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CognitoUser", function() { return _CognitoUser__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony import */ var _CognitoUserAttribute__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CognitoUserAttribute */ "ozAt"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CognitoUserAttribute", function() { return _CognitoUserAttribute__WEBPACK_IMPORTED_MODULE_6__["default"]; }); /* harmony import */ var _CognitoUserPool__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./CognitoUserPool */ "F6er"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CognitoUserPool", function() { return _CognitoUserPool__WEBPACK_IMPORTED_MODULE_7__["default"]; }); /* harmony import */ var _CognitoUserSession__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CognitoUserSession */ "z7CB"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CognitoUserSession", function() { return _CognitoUserSession__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony import */ var _CookieStorage__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./CookieStorage */ "nUMu"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CookieStorage", function() { return _CookieStorage__WEBPACK_IMPORTED_MODULE_9__["default"]; }); /* harmony import */ var _DateHelper__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./DateHelper */ "2Tg4"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DateHelper", function() { return _DateHelper__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony import */ var _UserAgent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./UserAgent */ "b2dS"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "appendToCognitoUserAgent", function() { return _UserAgent__WEBPACK_IMPORTED_MODULE_11__["appendToCognitoUserAgent"]; }); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ /***/ }), /***/ "TLcn": /*!***********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/GetPersonTrackingCommand.js ***! \***********************************************************************************************/ /*! exports provided: GetPersonTrackingCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetPersonTrackingCommand", function() { return GetPersonTrackingCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetPersonTrackingCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetPersonTrackingCommand, _super); // Start section: command_properties // End section: command_properties function GetPersonTrackingCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetPersonTrackingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetPersonTrackingRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetPersonTrackingResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetPersonTrackingCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetPersonTrackingCommand"])(input, context); }; GetPersonTrackingCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetPersonTrackingCommand"])(output, context); }; return GetPersonTrackingCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetPersonTrackingCommand.js.map /***/ }), /***/ "TPAK": /*!****************************************************************************!*\ !*** ./node_modules/@aws-sdk/signature-v4/dist/es/credentialDerivation.js ***! \****************************************************************************/ /*! exports provided: createScope, getSigningKey, clearCredentialCache */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createScope", function() { return createScope; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSigningKey", function() { return getSigningKey; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clearCredentialCache", function() { return clearCredentialCache; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "IkwW"); var signingKeyCache = {}; var cacheQueue = []; /** * Create a string describing the scope of credentials used to sign a request. * * @param shortDate The current calendar date in the form YYYYMMDD. * @param region The AWS region in which the service resides. * @param service The service to which the signed request is being sent. */ function createScope(shortDate, region, service) { return shortDate + "/" + region + "/" + service + "/" + _constants__WEBPACK_IMPORTED_MODULE_1__["KEY_TYPE_IDENTIFIER"]; } /** * Derive a signing key from its composite parts * * @param sha256Constructor A constructor function that can instantiate SHA-256 * hash objects. * @param credentials The credentials with which the request will be * signed. * @param shortDate The current calendar date in the form YYYYMMDD. * @param region The AWS region in which the service resides. * @param service The service to which the signed request is being * sent. */ function getSigningKey(sha256Constructor, credentials, shortDate, region, service) { var cacheKey = shortDate + ":" + region + ":" + service + ":" + (credentials.accessKeyId + ":" + credentials.sessionToken); if (cacheKey in signingKeyCache) { return signingKeyCache[cacheKey]; } cacheQueue.push(cacheKey); while (cacheQueue.length > _constants__WEBPACK_IMPORTED_MODULE_1__["MAX_CACHE_SIZE"]) { delete signingKeyCache[cacheQueue.shift()]; } return (signingKeyCache[cacheKey] = new Promise(function (resolve, reject) { var e_1, _a; var keyPromise = Promise.resolve("AWS4" + credentials.secretAccessKey); var _loop_1 = function (signable) { keyPromise = keyPromise.then(function (intermediateKey) { return hmac(sha256Constructor, intermediateKey, signable); }); keyPromise.catch(function () { }); }; try { for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])([shortDate, region, service, _constants__WEBPACK_IMPORTED_MODULE_1__["KEY_TYPE_IDENTIFIER"]]), _c = _b.next(); !_c.done; _c = _b.next()) { var signable = _c.value; _loop_1(signable); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } keyPromise.then(resolve, function (reason) { delete signingKeyCache[cacheKey]; reject(reason); }); })); } /** * @internal */ function clearCredentialCache() { cacheQueue.length = 0; Object.keys(signingKeyCache).forEach(function (cacheKey) { delete signingKeyCache[cacheKey]; }); } function hmac(ctor, secret, data) { var hash = new ctor(secret); hash.update(data); return hash.digest(); } //# sourceMappingURL=credentialDerivation.js.map /***/ }), /***/ "TRML": /*!**************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/EnableEnhancedMonitoringCommand.js ***! \**************************************************************************************************/ /*! exports provided: EnableEnhancedMonitoringCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnableEnhancedMonitoringCommand", function() { return EnableEnhancedMonitoringCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var EnableEnhancedMonitoringCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(EnableEnhancedMonitoringCommand, _super); // Start section: command_properties // End section: command_properties function EnableEnhancedMonitoringCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } EnableEnhancedMonitoringCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["EnableEnhancedMonitoringInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["EnhancedMonitoringOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; EnableEnhancedMonitoringCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1EnableEnhancedMonitoringCommand"])(input, context); }; EnableEnhancedMonitoringCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1EnableEnhancedMonitoringCommand"])(output, context); }; return EnableEnhancedMonitoringCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=EnableEnhancedMonitoringCommand.js.map /***/ }), /***/ "TVPv": /*!**************************************************************************!*\ !*** ./node_modules/@aws-sdk/eventstream-serde-browser/dist/es/index.js ***! \**************************************************************************/ /*! exports provided: eventStreamSerdeProvider, EventStreamMarshaller, readableStreamtoIterable, iterableToReadableStream */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./provider */ "zQvM"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "eventStreamSerdeProvider", function() { return _provider__WEBPACK_IMPORTED_MODULE_0__["eventStreamSerdeProvider"]; }); /* harmony import */ var _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EventStreamMarshaller */ "7TU6"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_1__["EventStreamMarshaller"]; }); /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "nwlK"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "readableStreamtoIterable", function() { return _utils__WEBPACK_IMPORTED_MODULE_2__["readableStreamtoIterable"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "iterableToReadableStream", function() { return _utils__WEBPACK_IMPORTED_MODULE_2__["iterableToReadableStream"]; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL3Byb3ZpZGVyXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9FdmVudFN0cmVhbU1hcnNoYWxsZXJcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3V0aWxzXCI7XG4iXX0= /***/ }), /***/ "TWc+": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/DescribeTopicsDetectionJobCommand.js ***! \*******************************************************************************************************/ /*! exports provided: DescribeTopicsDetectionJobCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeTopicsDetectionJobCommand", function() { return DescribeTopicsDetectionJobCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DescribeTopicsDetectionJobCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeTopicsDetectionJobCommand, _super); // Start section: command_properties // End section: command_properties function DescribeTopicsDetectionJobCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DescribeTopicsDetectionJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeTopicsDetectionJobRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeTopicsDetectionJobResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DescribeTopicsDetectionJobCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeTopicsDetectionJobCommand"])(input, context); }; DescribeTopicsDetectionJobCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeTopicsDetectionJobCommand"])(output, context); }; return DescribeTopicsDetectionJobCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DescribeTopicsDetectionJobCommand.js.map /***/ }), /***/ "TbLX": /*!******************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/ListPartsCommand.js ***! \******************************************************************************/ /*! exports provided: ListPartsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListPartsCommand", function() { return ListPartsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListPartsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListPartsCommand, _super); // Start section: command_properties // End section: command_properties function ListPartsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListPartsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListPartsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListPartsOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListPartsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlListPartsCommand"])(input, context); }; ListPartsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlListPartsCommand"])(output, context); }; return ListPartsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=ListPartsCommand.js.map /***/ }), /***/ "TcwO": /*!**************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/pagination/DescribeProjectsPaginator.js ***! \**************************************************************************************************/ /*! exports provided: describeProjectsPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "describeProjectsPaginate", function() { return describeProjectsPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Rekognition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Rekognition */ "MjkZ"); /* harmony import */ var _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../RekognitionClient */ "YOij"); /* harmony import */ var _commands_DescribeProjectsCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/DescribeProjectsCommand */ "GhKt"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_DescribeProjectsCommand__WEBPACK_IMPORTED_MODULE_3__["DescribeProjectsCommand"].bind.apply(_commands_DescribeProjectsCommand__WEBPACK_IMPORTED_MODULE_3__["DescribeProjectsCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.describeProjects.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function describeProjectsPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function describeProjectsPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Rekognition__WEBPACK_IMPORTED_MODULE_1__["Rekognition"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__["RekognitionClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Rekognition | RekognitionClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=DescribeProjectsPaginator.js.map /***/ }), /***/ "TirB": /*!**************************************************************!*\ !*** ./node_modules/graphql/utilities/buildClientSchema.mjs ***! \**************************************************************/ /*! exports provided: buildClientSchema */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildClientSchema", function() { return buildClientSchema; }); /* harmony import */ var _jsutils_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/invariant */ "2C6G"); /* harmony import */ var _jsutils_keyMap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/keyMap */ "kBjl"); /* harmony import */ var _jsutils_keyValMap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../jsutils/keyValMap */ "WXJZ"); /* harmony import */ var _valueFromAST__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./valueFromAST */ "Mbdf"); /* harmony import */ var _language_parser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../language/parser */ "EMzn"); /* harmony import */ var _type_schema__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../type/schema */ "51nL"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../type/definition */ "axIb"); /* harmony import */ var _type_directives__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../type/directives */ "4suF"); /* harmony import */ var _type_introspection__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../type/introspection */ "LViu"); /* harmony import */ var _type_scalars__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../type/scalars */ "19Hc"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Build a GraphQLSchema for use by client tools. * * Given the result of a client running the introspection query, creates and * returns a GraphQLSchema instance which can be then used with all graphql-js * tools, but cannot be used to execute a query, as introspection does not * represent the "resolver", "parse" or "serialize" functions or any other * server-internal mechanisms. * * This function expects a complete introspection result. Don't forget to check * the "errors" field of a server response before calling this function. */ function buildClientSchema(introspection, options) { // Get the schema from the introspection result. var schemaIntrospection = introspection.__schema; // Converts the list of types into a keyMap based on the type names. var typeIntrospectionMap = Object(_jsutils_keyMap__WEBPACK_IMPORTED_MODULE_1__["default"])(schemaIntrospection.types, function (type) { return type.name; }); // A cache to use to store the actual GraphQLType definition objects by name. // Initialize to the GraphQL built in scalars. All functions below are inline // so that this type def cache is within the scope of the closure. var typeDefCache = Object(_jsutils_keyMap__WEBPACK_IMPORTED_MODULE_1__["default"])(_type_scalars__WEBPACK_IMPORTED_MODULE_9__["specifiedScalarTypes"].concat(_type_introspection__WEBPACK_IMPORTED_MODULE_8__["introspectionTypes"]), function (type) { return type.name; }); // Given a type reference in introspection, return the GraphQLType instance. // preferring cached instances before building new instances. function getType(typeRef) { if (typeRef.kind === _type_introspection__WEBPACK_IMPORTED_MODULE_8__["TypeKind"].LIST) { var itemRef = typeRef.ofType; if (!itemRef) { throw new Error('Decorated type deeper than introspection query.'); } return Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["GraphQLList"])(getType(itemRef)); } if (typeRef.kind === _type_introspection__WEBPACK_IMPORTED_MODULE_8__["TypeKind"].NON_NULL) { var nullableRef = typeRef.ofType; if (!nullableRef) { throw new Error('Decorated type deeper than introspection query.'); } var nullableType = getType(nullableRef); return Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["GraphQLNonNull"])(Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["assertNullableType"])(nullableType)); } if (!typeRef.name) { throw new Error('Unknown type reference: ' + JSON.stringify(typeRef)); } return getNamedType(typeRef.name); } function getNamedType(typeName) { if (typeDefCache[typeName]) { return typeDefCache[typeName]; } var typeIntrospection = typeIntrospectionMap[typeName]; if (!typeIntrospection) { throw new Error("Invalid or incomplete schema, unknown type: ".concat(typeName, ". Ensure ") + 'that a full introspection query is used in order to build a ' + 'client schema.'); } var typeDef = buildType(typeIntrospection); typeDefCache[typeName] = typeDef; return typeDef; } function getInputType(typeRef) { var type = getType(typeRef); !Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["isInputType"])(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_0__["default"])(0, 'Introspection must provide input type for arguments.') : void 0; return type; } function getOutputType(typeRef) { var type = getType(typeRef); !Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["isOutputType"])(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_0__["default"])(0, 'Introspection must provide output type for fields.') : void 0; return type; } function getObjectType(typeRef) { var type = getType(typeRef); return Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["assertObjectType"])(type); } function getInterfaceType(typeRef) { var type = getType(typeRef); return Object(_type_definition__WEBPACK_IMPORTED_MODULE_6__["assertInterfaceType"])(type); } // Given a type's introspection result, construct the correct // GraphQLType instance. function buildType(type) { if (type && type.name && type.kind) { switch (type.kind) { case _type_introspection__WEBPACK_IMPORTED_MODULE_8__["TypeKind"].SCALAR: return buildScalarDef(type); case _type_introspection__WEBPACK_IMPORTED_MODULE_8__["TypeKind"].OBJECT: return buildObjectDef(type); case _type_introspection__WEBPACK_IMPORTED_MODULE_8__["TypeKind"].INTERFACE: return buildInterfaceDef(type); case _type_introspection__WEBPACK_IMPORTED_MODULE_8__["TypeKind"].UNION: return buildUnionDef(type); case _type_introspection__WEBPACK_IMPORTED_MODULE_8__["TypeKind"].ENUM: return buildEnumDef(type); case _type_introspection__WEBPACK_IMPORTED_MODULE_8__["TypeKind"].INPUT_OBJECT: return buildInputObjectDef(type); } } throw new Error('Invalid or incomplete introspection result. Ensure that a full ' + 'introspection query is used in order to build a client schema:' + JSON.stringify(type)); } function buildScalarDef(scalarIntrospection) { return new _type_definition__WEBPACK_IMPORTED_MODULE_6__["GraphQLScalarType"]({ name: scalarIntrospection.name, description: scalarIntrospection.description, serialize: function serialize(value) { return value; } }); } function buildObjectDef(objectIntrospection) { if (!objectIntrospection.interfaces) { throw new Error('Introspection result missing interfaces: ' + JSON.stringify(objectIntrospection)); } return new _type_definition__WEBPACK_IMPORTED_MODULE_6__["GraphQLObjectType"]({ name: objectIntrospection.name, description: objectIntrospection.description, interfaces: objectIntrospection.interfaces.map(getInterfaceType), fields: function fields() { return buildFieldDefMap(objectIntrospection); } }); } function buildInterfaceDef(interfaceIntrospection) { return new _type_definition__WEBPACK_IMPORTED_MODULE_6__["GraphQLInterfaceType"]({ name: interfaceIntrospection.name, description: interfaceIntrospection.description, fields: function fields() { return buildFieldDefMap(interfaceIntrospection); } }); } function buildUnionDef(unionIntrospection) { if (!unionIntrospection.possibleTypes) { throw new Error('Introspection result missing possibleTypes: ' + JSON.stringify(unionIntrospection)); } return new _type_definition__WEBPACK_IMPORTED_MODULE_6__["GraphQLUnionType"]({ name: unionIntrospection.name, description: unionIntrospection.description, types: unionIntrospection.possibleTypes.map(getObjectType) }); } function buildEnumDef(enumIntrospection) { if (!enumIntrospection.enumValues) { throw new Error('Introspection result missing enumValues: ' + JSON.stringify(enumIntrospection)); } return new _type_definition__WEBPACK_IMPORTED_MODULE_6__["GraphQLEnumType"]({ name: enumIntrospection.name, description: enumIntrospection.description, values: Object(_jsutils_keyValMap__WEBPACK_IMPORTED_MODULE_2__["default"])(enumIntrospection.enumValues, function (valueIntrospection) { return valueIntrospection.name; }, function (valueIntrospection) { return { description: valueIntrospection.description, deprecationReason: valueIntrospection.deprecationReason }; }) }); } function buildInputObjectDef(inputObjectIntrospection) { if (!inputObjectIntrospection.inputFields) { throw new Error('Introspection result missing inputFields: ' + JSON.stringify(inputObjectIntrospection)); } return new _type_definition__WEBPACK_IMPORTED_MODULE_6__["GraphQLInputObjectType"]({ name: inputObjectIntrospection.name, description: inputObjectIntrospection.description, fields: function fields() { return buildInputValueDefMap(inputObjectIntrospection.inputFields); } }); } function buildFieldDefMap(typeIntrospection) { if (!typeIntrospection.fields) { throw new Error('Introspection result missing fields: ' + JSON.stringify(typeIntrospection)); } return Object(_jsutils_keyValMap__WEBPACK_IMPORTED_MODULE_2__["default"])(typeIntrospection.fields, function (fieldIntrospection) { return fieldIntrospection.name; }, function (fieldIntrospection) { if (!fieldIntrospection.args) { throw new Error('Introspection result missing field args: ' + JSON.stringify(fieldIntrospection)); } return { description: fieldIntrospection.description, deprecationReason: fieldIntrospection.deprecationReason, type: getOutputType(fieldIntrospection.type), args: buildInputValueDefMap(fieldIntrospection.args) }; }); } function buildInputValueDefMap(inputValueIntrospections) { return Object(_jsutils_keyValMap__WEBPACK_IMPORTED_MODULE_2__["default"])(inputValueIntrospections, function (inputValue) { return inputValue.name; }, buildInputValue); } function buildInputValue(inputValueIntrospection) { var type = getInputType(inputValueIntrospection.type); var defaultValue = inputValueIntrospection.defaultValue ? Object(_valueFromAST__WEBPACK_IMPORTED_MODULE_3__["valueFromAST"])(Object(_language_parser__WEBPACK_IMPORTED_MODULE_4__["parseValue"])(inputValueIntrospection.defaultValue), type) : undefined; return { description: inputValueIntrospection.description, type: type, defaultValue: defaultValue }; } function buildDirective(directiveIntrospection) { if (!directiveIntrospection.args) { throw new Error('Introspection result missing directive args: ' + JSON.stringify(directiveIntrospection)); } return new _type_directives__WEBPACK_IMPORTED_MODULE_7__["GraphQLDirective"]({ name: directiveIntrospection.name, description: directiveIntrospection.description, locations: directiveIntrospection.locations.slice(), args: buildInputValueDefMap(directiveIntrospection.args) }); } // Iterate through all types, getting the type definition for each, ensuring // that any type not directly referenced by a field will get created. var types = schemaIntrospection.types.map(function (typeIntrospection) { return getNamedType(typeIntrospection.name); }); // Get the root Query, Mutation, and Subscription types. var queryType = schemaIntrospection.queryType ? getObjectType(schemaIntrospection.queryType) : null; var mutationType = schemaIntrospection.mutationType ? getObjectType(schemaIntrospection.mutationType) : null; var subscriptionType = schemaIntrospection.subscriptionType ? getObjectType(schemaIntrospection.subscriptionType) : null; // Get the directives supported by Introspection, assuming empty-set if // directives were not queried for. var directives = schemaIntrospection.directives ? schemaIntrospection.directives.map(buildDirective) : []; // Then produce and return a Schema with these types. return new _type_schema__WEBPACK_IMPORTED_MODULE_5__["GraphQLSchema"]({ query: queryType, mutation: mutationType, subscription: subscriptionType, types: types, directives: directives, assumeValid: options && options.assumeValid, allowedLegacyNames: options && options.allowedLegacyNames }); } /***/ }), /***/ "TlKN": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-amplify/pubsub/lib-esm/Providers/AWSAppSyncProvider.js ***! \**********************************************************************************/ /*! exports provided: AWSAppSyncProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AWSAppSyncProvider", function() { return AWSAppSyncProvider; }); /* harmony import */ var zen_observable_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zen-observable-ts */ "b0dj"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _MqttOverWSProvider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MqttOverWSProvider */ "h4Oi"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __rest = (undefined && undefined.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (undefined && undefined.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('AWSAppSyncProvider'); var AWSAppSyncProvider = /** @class */ (function (_super) { __extends(AWSAppSyncProvider, _super); function AWSAppSyncProvider() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._topicClient = new Map(); _this._topicAlias = new Map(); return _this; } Object.defineProperty(AWSAppSyncProvider.prototype, "endpoint", { get: function () { throw new Error('Not supported'); }, enumerable: true, configurable: true }); AWSAppSyncProvider.prototype.getProviderName = function () { return 'AWSAppSyncProvider'; }; AWSAppSyncProvider.prototype.publish = function (topics, msg, options) { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { throw new Error('Operation not supported'); }); }); }; AWSAppSyncProvider.prototype._cleanUp = function (clientId) { var _this = this; var topicsForClient = Array.from(this._topicClient.entries()) .filter(function (_a) { var _b = __read(_a, 2), c = _b[1]; return c.clientId === clientId; }) .map(function (_a) { var _b = __read(_a, 1), t = _b[0]; return t; }); topicsForClient.forEach(function (t) { return _this._cleanUpForTopic(t); }); }; AWSAppSyncProvider.prototype._cleanUpForTopic = function (topic) { this._topicClient.delete(topic); this._topicAlias.delete(topic); }; AWSAppSyncProvider.prototype.onDisconnect = function (_a) { var _this = this; var clientId = _a.clientId, errorCode = _a.errorCode, args = __rest(_a, ["clientId", "errorCode"]); if (errorCode !== 0) { var topicsForClient = Array.from(this._topicClient.entries()) .filter(function (_a) { var _b = __read(_a, 2), c = _b[1]; return c.clientId === clientId; }) .map(function (_a) { var _b = __read(_a, 1), t = _b[0]; return t; }); topicsForClient.forEach(function (topic) { if (_this._topicObservers.has(topic)) { _this._topicObservers.get(topic).forEach(function (obs) { if (!obs.closed) { obs.error(args); } }); _this._topicObservers.delete(topic); } }); this._cleanUp(clientId); } }; AWSAppSyncProvider.prototype.disconnect = function (clientId) { return __awaiter(this, void 0, void 0, function () { var client; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.clientsQueue.get(clientId, function () { return null; })]; case 1: client = _a.sent(); return [4 /*yield*/, _super.prototype.disconnect.call(this, clientId)]; case 2: _a.sent(); this._cleanUp(clientId); return [2 /*return*/]; } }); }); }; AWSAppSyncProvider.prototype.subscribe = function (topics, options) { var _this = this; if (options === void 0) { options = {}; } var result = new zen_observable_ts__WEBPACK_IMPORTED_MODULE_0__["default"](function (observer) { var targetTopics = [].concat(topics); logger.debug('Subscribing to topic(s)', targetTopics.join(',')); (function () { return __awaiter(_this, void 0, void 0, function () { var _a, mqttConnections, newSubscriptions, newAliases, map; var _this = this; return __generator(this, function (_b) { switch (_b.label) { case 0: // Add these topics to map targetTopics.forEach(function (t) { if (!_this._topicObservers.has(t)) { _this._topicObservers.set(t, new Set()); } _this._topicObservers.get(t).add(observer); }); _a = options.mqttConnections, mqttConnections = _a === void 0 ? [] : _a, newSubscriptions = options.newSubscriptions; newAliases = Object.entries(newSubscriptions).map(function (_a) { var _b = __read(_a, 2), alias = _b[0], v = _b[1]; return [v.topic, alias]; }); // Merge new aliases with old ones this._topicAlias = new Map(__spread(Array.from(this._topicAlias.entries()), newAliases)); map = Object.entries(targetTopics.reduce(function (acc, elem) { var connectionInfoForTopic = mqttConnections.find(function (c) { return c.topics.indexOf(elem) > -1; }); if (connectionInfoForTopic) { var clientId = connectionInfoForTopic.client, url = connectionInfoForTopic.url; if (!acc[clientId]) { acc[clientId] = { url: url, topics: new Set(), }; } acc[clientId].topics.add(elem); } return acc; }, {})); // reconnect everything we have in the map return [4 /*yield*/, Promise.all(map.map(function (_a) { var _b = __read(_a, 2), clientId = _b[0], _c = _b[1], url = _c.url, topics = _c.topics; return __awaiter(_this, void 0, void 0, function () { var client, err_1; var _this = this; return __generator(this, function (_d) { switch (_d.label) { case 0: client = null; _d.label = 1; case 1: _d.trys.push([1, 3, , 4]); return [4 /*yield*/, this.connect(clientId, { clientId: clientId, url: url, })]; case 2: client = _d.sent(); return [3 /*break*/, 4]; case 3: err_1 = _d.sent(); observer.error({ message: 'Failed to connect', error: err_1 }); observer.complete(); return [2 /*return*/, undefined]; case 4: // subscribe to all topics for this client // store topic-client mapping topics.forEach(function (topic) { if (client.isConnected()) { client.subscribe(topic); _this._topicClient.set(topic, client); } }); return [2 /*return*/, client]; } }); }); }))]; case 1: // reconnect everything we have in the map _b.sent(); return [2 /*return*/]; } }); }); })(); return function () { logger.debug('Unsubscribing from topic(s)', targetTopics.join(',')); targetTopics.forEach(function (t) { var client = _this._topicClient.get(t); if (client && client.isConnected()) { client.unsubscribe(t); _this._topicClient.delete(t); if (!Array.from(_this._topicClient.values()).some(function (c) { return c === client; })) { _this.disconnect(client.clientId); } } _this._topicObservers.delete(t); }); }; }); return zen_observable_ts__WEBPACK_IMPORTED_MODULE_0__["default"].from(result).map(function (value) { var topic = _this.getTopicForValue(value); var alias = _this._topicAlias.get(topic); value.data = Object.entries(value.data).reduce(function (obj, _a) { var _b = __read(_a, 2), origKey = _b[0], val = _b[1]; return ((obj[(alias || origKey)] = val), obj); }, {}); return value; }); }; return AWSAppSyncProvider; }(_MqttOverWSProvider__WEBPACK_IMPORTED_MODULE_2__["MqttOverWSProvider"])); //# sourceMappingURL=AWSAppSyncProvider.js.map /***/ }), /***/ "Tp+l": /*!**************************************************************************!*\ !*** ./node_modules/@aws-sdk/signature-v4/dist/es/moveHeadersToQuery.js ***! \**************************************************************************/ /*! exports provided: moveHeadersToQuery */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "moveHeadersToQuery", function() { return moveHeadersToQuery; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _cloneRequest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cloneRequest */ "NsQP"); /** * @internal */ function moveHeadersToQuery(request) { var e_1, _a; var _b = typeof request.clone === "function" ? request.clone() : Object(_cloneRequest__WEBPACK_IMPORTED_MODULE_1__["cloneRequest"])(request), headers = _b.headers, _c = _b.query, query = _c === void 0 ? {} : _c; try { for (var _d = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(headers)), _e = _d.next(); !_e.done; _e = _d.next()) { var name = _e.value; var lname = name.toLowerCase(); if (lname.substr(0, 6) === "x-amz-") { query[name] = headers[name]; delete headers[name]; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_1) throw e_1.error; } } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request), { headers: headers, query: query }); } //# sourceMappingURL=moveHeadersToQuery.js.map /***/ }), /***/ "Tth/": /*!***************************************************!*\ !*** ./node_modules/graphql/jsutils/memoize3.mjs ***! \***************************************************/ /*! exports provided: default */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return memoize3; }); /** * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Memoizes the provided three-argument function. */ function memoize3(fn) { var cache0; function memoized(a1, a2, a3) { if (!cache0) { cache0 = new WeakMap(); } var cache1 = cache0.get(a1); var cache2; if (cache1) { cache2 = cache1.get(a2); if (cache2) { var cachedValue = cache2.get(a3); if (cachedValue !== undefined) { return cachedValue; } } } else { cache1 = new WeakMap(); cache0.set(a1, cache1); } if (!cache2) { cache2 = new WeakMap(); cache1.set(a2, cache2); } var newValue = fn.apply(this, arguments); cache2.set(a3, newValue); return newValue; } return memoized; } /***/ }), /***/ "TuaZ": /*!***********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/protocols/Aws_json1_1.js ***! \***********************************************************************************/ /*! exports provided: serializeAws_json1_1CompareFacesCommand, serializeAws_json1_1CreateCollectionCommand, serializeAws_json1_1CreateProjectCommand, serializeAws_json1_1CreateProjectVersionCommand, serializeAws_json1_1CreateStreamProcessorCommand, serializeAws_json1_1DeleteCollectionCommand, serializeAws_json1_1DeleteFacesCommand, serializeAws_json1_1DeleteProjectCommand, serializeAws_json1_1DeleteProjectVersionCommand, serializeAws_json1_1DeleteStreamProcessorCommand, serializeAws_json1_1DescribeCollectionCommand, serializeAws_json1_1DescribeProjectsCommand, serializeAws_json1_1DescribeProjectVersionsCommand, serializeAws_json1_1DescribeStreamProcessorCommand, serializeAws_json1_1DetectCustomLabelsCommand, serializeAws_json1_1DetectFacesCommand, serializeAws_json1_1DetectLabelsCommand, serializeAws_json1_1DetectModerationLabelsCommand, serializeAws_json1_1DetectTextCommand, serializeAws_json1_1GetCelebrityInfoCommand, serializeAws_json1_1GetCelebrityRecognitionCommand, serializeAws_json1_1GetContentModerationCommand, serializeAws_json1_1GetFaceDetectionCommand, serializeAws_json1_1GetFaceSearchCommand, serializeAws_json1_1GetLabelDetectionCommand, serializeAws_json1_1GetPersonTrackingCommand, serializeAws_json1_1GetSegmentDetectionCommand, serializeAws_json1_1GetTextDetectionCommand, serializeAws_json1_1IndexFacesCommand, serializeAws_json1_1ListCollectionsCommand, serializeAws_json1_1ListFacesCommand, serializeAws_json1_1ListStreamProcessorsCommand, serializeAws_json1_1RecognizeCelebritiesCommand, serializeAws_json1_1SearchFacesCommand, serializeAws_json1_1SearchFacesByImageCommand, serializeAws_json1_1StartCelebrityRecognitionCommand, serializeAws_json1_1StartContentModerationCommand, serializeAws_json1_1StartFaceDetectionCommand, serializeAws_json1_1StartFaceSearchCommand, serializeAws_json1_1StartLabelDetectionCommand, serializeAws_json1_1StartPersonTrackingCommand, serializeAws_json1_1StartProjectVersionCommand, serializeAws_json1_1StartSegmentDetectionCommand, serializeAws_json1_1StartStreamProcessorCommand, serializeAws_json1_1StartTextDetectionCommand, serializeAws_json1_1StopProjectVersionCommand, serializeAws_json1_1StopStreamProcessorCommand, deserializeAws_json1_1CompareFacesCommand, deserializeAws_json1_1CreateCollectionCommand, deserializeAws_json1_1CreateProjectCommand, deserializeAws_json1_1CreateProjectVersionCommand, deserializeAws_json1_1CreateStreamProcessorCommand, deserializeAws_json1_1DeleteCollectionCommand, deserializeAws_json1_1DeleteFacesCommand, deserializeAws_json1_1DeleteProjectCommand, deserializeAws_json1_1DeleteProjectVersionCommand, deserializeAws_json1_1DeleteStreamProcessorCommand, deserializeAws_json1_1DescribeCollectionCommand, deserializeAws_json1_1DescribeProjectsCommand, deserializeAws_json1_1DescribeProjectVersionsCommand, deserializeAws_json1_1DescribeStreamProcessorCommand, deserializeAws_json1_1DetectCustomLabelsCommand, deserializeAws_json1_1DetectFacesCommand, deserializeAws_json1_1DetectLabelsCommand, deserializeAws_json1_1DetectModerationLabelsCommand, deserializeAws_json1_1DetectTextCommand, deserializeAws_json1_1GetCelebrityInfoCommand, deserializeAws_json1_1GetCelebrityRecognitionCommand, deserializeAws_json1_1GetContentModerationCommand, deserializeAws_json1_1GetFaceDetectionCommand, deserializeAws_json1_1GetFaceSearchCommand, deserializeAws_json1_1GetLabelDetectionCommand, deserializeAws_json1_1GetPersonTrackingCommand, deserializeAws_json1_1GetSegmentDetectionCommand, deserializeAws_json1_1GetTextDetectionCommand, deserializeAws_json1_1IndexFacesCommand, deserializeAws_json1_1ListCollectionsCommand, deserializeAws_json1_1ListFacesCommand, deserializeAws_json1_1ListStreamProcessorsCommand, deserializeAws_json1_1RecognizeCelebritiesCommand, deserializeAws_json1_1SearchFacesCommand, deserializeAws_json1_1SearchFacesByImageCommand, deserializeAws_json1_1StartCelebrityRecognitionCommand, deserializeAws_json1_1StartContentModerationCommand, deserializeAws_json1_1StartFaceDetectionCommand, deserializeAws_json1_1StartFaceSearchCommand, deserializeAws_json1_1StartLabelDetectionCommand, deserializeAws_json1_1StartPersonTrackingCommand, deserializeAws_json1_1StartProjectVersionCommand, deserializeAws_json1_1StartSegmentDetectionCommand, deserializeAws_json1_1StartStreamProcessorCommand, deserializeAws_json1_1StartTextDetectionCommand, deserializeAws_json1_1StopProjectVersionCommand, deserializeAws_json1_1StopStreamProcessorCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1CompareFacesCommand", function() { return serializeAws_json1_1CompareFacesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1CreateCollectionCommand", function() { return serializeAws_json1_1CreateCollectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1CreateProjectCommand", function() { return serializeAws_json1_1CreateProjectCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1CreateProjectVersionCommand", function() { return serializeAws_json1_1CreateProjectVersionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1CreateStreamProcessorCommand", function() { return serializeAws_json1_1CreateStreamProcessorCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeleteCollectionCommand", function() { return serializeAws_json1_1DeleteCollectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeleteFacesCommand", function() { return serializeAws_json1_1DeleteFacesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeleteProjectCommand", function() { return serializeAws_json1_1DeleteProjectCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeleteProjectVersionCommand", function() { return serializeAws_json1_1DeleteProjectVersionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeleteStreamProcessorCommand", function() { return serializeAws_json1_1DeleteStreamProcessorCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeCollectionCommand", function() { return serializeAws_json1_1DescribeCollectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeProjectsCommand", function() { return serializeAws_json1_1DescribeProjectsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeProjectVersionsCommand", function() { return serializeAws_json1_1DescribeProjectVersionsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeStreamProcessorCommand", function() { return serializeAws_json1_1DescribeStreamProcessorCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DetectCustomLabelsCommand", function() { return serializeAws_json1_1DetectCustomLabelsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DetectFacesCommand", function() { return serializeAws_json1_1DetectFacesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DetectLabelsCommand", function() { return serializeAws_json1_1DetectLabelsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DetectModerationLabelsCommand", function() { return serializeAws_json1_1DetectModerationLabelsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DetectTextCommand", function() { return serializeAws_json1_1DetectTextCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetCelebrityInfoCommand", function() { return serializeAws_json1_1GetCelebrityInfoCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetCelebrityRecognitionCommand", function() { return serializeAws_json1_1GetCelebrityRecognitionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetContentModerationCommand", function() { return serializeAws_json1_1GetContentModerationCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetFaceDetectionCommand", function() { return serializeAws_json1_1GetFaceDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetFaceSearchCommand", function() { return serializeAws_json1_1GetFaceSearchCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetLabelDetectionCommand", function() { return serializeAws_json1_1GetLabelDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetPersonTrackingCommand", function() { return serializeAws_json1_1GetPersonTrackingCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetSegmentDetectionCommand", function() { return serializeAws_json1_1GetSegmentDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetTextDetectionCommand", function() { return serializeAws_json1_1GetTextDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1IndexFacesCommand", function() { return serializeAws_json1_1IndexFacesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListCollectionsCommand", function() { return serializeAws_json1_1ListCollectionsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListFacesCommand", function() { return serializeAws_json1_1ListFacesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListStreamProcessorsCommand", function() { return serializeAws_json1_1ListStreamProcessorsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1RecognizeCelebritiesCommand", function() { return serializeAws_json1_1RecognizeCelebritiesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1SearchFacesCommand", function() { return serializeAws_json1_1SearchFacesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1SearchFacesByImageCommand", function() { return serializeAws_json1_1SearchFacesByImageCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartCelebrityRecognitionCommand", function() { return serializeAws_json1_1StartCelebrityRecognitionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartContentModerationCommand", function() { return serializeAws_json1_1StartContentModerationCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartFaceDetectionCommand", function() { return serializeAws_json1_1StartFaceDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartFaceSearchCommand", function() { return serializeAws_json1_1StartFaceSearchCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartLabelDetectionCommand", function() { return serializeAws_json1_1StartLabelDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartPersonTrackingCommand", function() { return serializeAws_json1_1StartPersonTrackingCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartProjectVersionCommand", function() { return serializeAws_json1_1StartProjectVersionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartSegmentDetectionCommand", function() { return serializeAws_json1_1StartSegmentDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartStreamProcessorCommand", function() { return serializeAws_json1_1StartStreamProcessorCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartTextDetectionCommand", function() { return serializeAws_json1_1StartTextDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StopProjectVersionCommand", function() { return serializeAws_json1_1StopProjectVersionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StopStreamProcessorCommand", function() { return serializeAws_json1_1StopStreamProcessorCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1CompareFacesCommand", function() { return deserializeAws_json1_1CompareFacesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1CreateCollectionCommand", function() { return deserializeAws_json1_1CreateCollectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1CreateProjectCommand", function() { return deserializeAws_json1_1CreateProjectCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1CreateProjectVersionCommand", function() { return deserializeAws_json1_1CreateProjectVersionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1CreateStreamProcessorCommand", function() { return deserializeAws_json1_1CreateStreamProcessorCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeleteCollectionCommand", function() { return deserializeAws_json1_1DeleteCollectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeleteFacesCommand", function() { return deserializeAws_json1_1DeleteFacesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeleteProjectCommand", function() { return deserializeAws_json1_1DeleteProjectCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeleteProjectVersionCommand", function() { return deserializeAws_json1_1DeleteProjectVersionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeleteStreamProcessorCommand", function() { return deserializeAws_json1_1DeleteStreamProcessorCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeCollectionCommand", function() { return deserializeAws_json1_1DescribeCollectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeProjectsCommand", function() { return deserializeAws_json1_1DescribeProjectsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeProjectVersionsCommand", function() { return deserializeAws_json1_1DescribeProjectVersionsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeStreamProcessorCommand", function() { return deserializeAws_json1_1DescribeStreamProcessorCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DetectCustomLabelsCommand", function() { return deserializeAws_json1_1DetectCustomLabelsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DetectFacesCommand", function() { return deserializeAws_json1_1DetectFacesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DetectLabelsCommand", function() { return deserializeAws_json1_1DetectLabelsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DetectModerationLabelsCommand", function() { return deserializeAws_json1_1DetectModerationLabelsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DetectTextCommand", function() { return deserializeAws_json1_1DetectTextCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetCelebrityInfoCommand", function() { return deserializeAws_json1_1GetCelebrityInfoCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetCelebrityRecognitionCommand", function() { return deserializeAws_json1_1GetCelebrityRecognitionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetContentModerationCommand", function() { return deserializeAws_json1_1GetContentModerationCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetFaceDetectionCommand", function() { return deserializeAws_json1_1GetFaceDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetFaceSearchCommand", function() { return deserializeAws_json1_1GetFaceSearchCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetLabelDetectionCommand", function() { return deserializeAws_json1_1GetLabelDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetPersonTrackingCommand", function() { return deserializeAws_json1_1GetPersonTrackingCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetSegmentDetectionCommand", function() { return deserializeAws_json1_1GetSegmentDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetTextDetectionCommand", function() { return deserializeAws_json1_1GetTextDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1IndexFacesCommand", function() { return deserializeAws_json1_1IndexFacesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListCollectionsCommand", function() { return deserializeAws_json1_1ListCollectionsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListFacesCommand", function() { return deserializeAws_json1_1ListFacesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListStreamProcessorsCommand", function() { return deserializeAws_json1_1ListStreamProcessorsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1RecognizeCelebritiesCommand", function() { return deserializeAws_json1_1RecognizeCelebritiesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1SearchFacesCommand", function() { return deserializeAws_json1_1SearchFacesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1SearchFacesByImageCommand", function() { return deserializeAws_json1_1SearchFacesByImageCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartCelebrityRecognitionCommand", function() { return deserializeAws_json1_1StartCelebrityRecognitionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartContentModerationCommand", function() { return deserializeAws_json1_1StartContentModerationCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartFaceDetectionCommand", function() { return deserializeAws_json1_1StartFaceDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartFaceSearchCommand", function() { return deserializeAws_json1_1StartFaceSearchCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartLabelDetectionCommand", function() { return deserializeAws_json1_1StartLabelDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartPersonTrackingCommand", function() { return deserializeAws_json1_1StartPersonTrackingCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartProjectVersionCommand", function() { return deserializeAws_json1_1StartProjectVersionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartSegmentDetectionCommand", function() { return deserializeAws_json1_1StartSegmentDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartStreamProcessorCommand", function() { return deserializeAws_json1_1StartStreamProcessorCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartTextDetectionCommand", function() { return deserializeAws_json1_1StartTextDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StopProjectVersionCommand", function() { return deserializeAws_json1_1StopProjectVersionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StopStreamProcessorCommand", function() { return deserializeAws_json1_1StopStreamProcessorCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "Enk7"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var serializeAws_json1_1CompareFacesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.CompareFaces", }; body = JSON.stringify(serializeAws_json1_1CompareFacesRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1CreateCollectionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.CreateCollection", }; body = JSON.stringify(serializeAws_json1_1CreateCollectionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1CreateProjectCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.CreateProject", }; body = JSON.stringify(serializeAws_json1_1CreateProjectRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1CreateProjectVersionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.CreateProjectVersion", }; body = JSON.stringify(serializeAws_json1_1CreateProjectVersionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1CreateStreamProcessorCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.CreateStreamProcessor", }; body = JSON.stringify(serializeAws_json1_1CreateStreamProcessorRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DeleteCollectionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.DeleteCollection", }; body = JSON.stringify(serializeAws_json1_1DeleteCollectionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DeleteFacesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.DeleteFaces", }; body = JSON.stringify(serializeAws_json1_1DeleteFacesRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DeleteProjectCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.DeleteProject", }; body = JSON.stringify(serializeAws_json1_1DeleteProjectRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DeleteProjectVersionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.DeleteProjectVersion", }; body = JSON.stringify(serializeAws_json1_1DeleteProjectVersionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DeleteStreamProcessorCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.DeleteStreamProcessor", }; body = JSON.stringify(serializeAws_json1_1DeleteStreamProcessorRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeCollectionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.DescribeCollection", }; body = JSON.stringify(serializeAws_json1_1DescribeCollectionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeProjectsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.DescribeProjects", }; body = JSON.stringify(serializeAws_json1_1DescribeProjectsRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeProjectVersionsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.DescribeProjectVersions", }; body = JSON.stringify(serializeAws_json1_1DescribeProjectVersionsRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeStreamProcessorCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.DescribeStreamProcessor", }; body = JSON.stringify(serializeAws_json1_1DescribeStreamProcessorRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DetectCustomLabelsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.DetectCustomLabels", }; body = JSON.stringify(serializeAws_json1_1DetectCustomLabelsRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DetectFacesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.DetectFaces", }; body = JSON.stringify(serializeAws_json1_1DetectFacesRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DetectLabelsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.DetectLabels", }; body = JSON.stringify(serializeAws_json1_1DetectLabelsRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DetectModerationLabelsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.DetectModerationLabels", }; body = JSON.stringify(serializeAws_json1_1DetectModerationLabelsRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DetectTextCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.DetectText", }; body = JSON.stringify(serializeAws_json1_1DetectTextRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetCelebrityInfoCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.GetCelebrityInfo", }; body = JSON.stringify(serializeAws_json1_1GetCelebrityInfoRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetCelebrityRecognitionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.GetCelebrityRecognition", }; body = JSON.stringify(serializeAws_json1_1GetCelebrityRecognitionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetContentModerationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.GetContentModeration", }; body = JSON.stringify(serializeAws_json1_1GetContentModerationRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetFaceDetectionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.GetFaceDetection", }; body = JSON.stringify(serializeAws_json1_1GetFaceDetectionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetFaceSearchCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.GetFaceSearch", }; body = JSON.stringify(serializeAws_json1_1GetFaceSearchRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetLabelDetectionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.GetLabelDetection", }; body = JSON.stringify(serializeAws_json1_1GetLabelDetectionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetPersonTrackingCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.GetPersonTracking", }; body = JSON.stringify(serializeAws_json1_1GetPersonTrackingRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetSegmentDetectionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.GetSegmentDetection", }; body = JSON.stringify(serializeAws_json1_1GetSegmentDetectionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetTextDetectionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.GetTextDetection", }; body = JSON.stringify(serializeAws_json1_1GetTextDetectionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1IndexFacesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.IndexFaces", }; body = JSON.stringify(serializeAws_json1_1IndexFacesRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListCollectionsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.ListCollections", }; body = JSON.stringify(serializeAws_json1_1ListCollectionsRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListFacesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.ListFaces", }; body = JSON.stringify(serializeAws_json1_1ListFacesRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListStreamProcessorsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.ListStreamProcessors", }; body = JSON.stringify(serializeAws_json1_1ListStreamProcessorsRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1RecognizeCelebritiesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.RecognizeCelebrities", }; body = JSON.stringify(serializeAws_json1_1RecognizeCelebritiesRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1SearchFacesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.SearchFaces", }; body = JSON.stringify(serializeAws_json1_1SearchFacesRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1SearchFacesByImageCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.SearchFacesByImage", }; body = JSON.stringify(serializeAws_json1_1SearchFacesByImageRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartCelebrityRecognitionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.StartCelebrityRecognition", }; body = JSON.stringify(serializeAws_json1_1StartCelebrityRecognitionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartContentModerationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.StartContentModeration", }; body = JSON.stringify(serializeAws_json1_1StartContentModerationRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartFaceDetectionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.StartFaceDetection", }; body = JSON.stringify(serializeAws_json1_1StartFaceDetectionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartFaceSearchCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.StartFaceSearch", }; body = JSON.stringify(serializeAws_json1_1StartFaceSearchRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartLabelDetectionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.StartLabelDetection", }; body = JSON.stringify(serializeAws_json1_1StartLabelDetectionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartPersonTrackingCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.StartPersonTracking", }; body = JSON.stringify(serializeAws_json1_1StartPersonTrackingRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartProjectVersionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.StartProjectVersion", }; body = JSON.stringify(serializeAws_json1_1StartProjectVersionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartSegmentDetectionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.StartSegmentDetection", }; body = JSON.stringify(serializeAws_json1_1StartSegmentDetectionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartStreamProcessorCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.StartStreamProcessor", }; body = JSON.stringify(serializeAws_json1_1StartStreamProcessorRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartTextDetectionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.StartTextDetection", }; body = JSON.stringify(serializeAws_json1_1StartTextDetectionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StopProjectVersionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.StopProjectVersion", }; body = JSON.stringify(serializeAws_json1_1StopProjectVersionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StopStreamProcessorCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "RekognitionService.StopStreamProcessor", }; body = JSON.stringify(serializeAws_json1_1StopStreamProcessorRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var deserializeAws_json1_1CompareFacesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1CompareFacesCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1CompareFacesResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "CompareFacesResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1CompareFacesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; var _l; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) { switch (_m.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _l = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "ImageTooLargeException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#ImageTooLargeException": return [3 /*break*/, 4]; case "InternalServerError": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 6]; case "InvalidImageFormatException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidImageFormatException": return [3 /*break*/, 8]; case "InvalidParameterException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 10]; case "InvalidS3ObjectException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 12]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "ThrottlingException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 16]; } return [3 /*break*/, 18]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1ImageTooLargeExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidImageFormatExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 18: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _m.label = 19; case 19: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1CreateCollectionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1CreateCollectionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1CreateCollectionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "CreateCollectionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1CreateCollectionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "ResourceAlreadyExistsException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ResourceAlreadyExistsException": return [3 /*break*/, 10]; case "ThrottlingException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1CreateProjectCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1CreateProjectCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1CreateProjectResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "CreateProjectResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1CreateProjectCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "LimitExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#LimitExceededException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ResourceInUseException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceInUseException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1CreateProjectVersionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1CreateProjectVersionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1CreateProjectVersionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "CreateProjectVersionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1CreateProjectVersionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; var _l; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) { switch (_m.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _l = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "LimitExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#LimitExceededException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ResourceInUseException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceInUseException": return [3 /*break*/, 12]; case "ResourceNotFoundException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 14]; case "ThrottlingException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 16]; } return [3 /*break*/, 18]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 18: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _m.label = 19; case 19: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1CreateStreamProcessorCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1CreateStreamProcessorCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1CreateStreamProcessorResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "CreateStreamProcessorResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1CreateStreamProcessorCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "LimitExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#LimitExceededException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ResourceInUseException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceInUseException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DeleteCollectionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DeleteCollectionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DeleteCollectionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DeleteCollectionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DeleteCollectionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "ResourceNotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 10]; case "ThrottlingException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DeleteFacesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DeleteFacesCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DeleteFacesResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DeleteFacesResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DeleteFacesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "ResourceNotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 10]; case "ThrottlingException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DeleteProjectCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DeleteProjectCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DeleteProjectResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DeleteProjectResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DeleteProjectCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "ResourceInUseException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ResourceInUseException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DeleteProjectVersionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DeleteProjectVersionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DeleteProjectVersionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DeleteProjectVersionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DeleteProjectVersionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "ResourceInUseException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ResourceInUseException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DeleteStreamProcessorCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DeleteStreamProcessorCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DeleteStreamProcessorResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DeleteStreamProcessorResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DeleteStreamProcessorCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "ResourceInUseException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ResourceInUseException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeCollectionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeCollectionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DescribeCollectionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DescribeCollectionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeCollectionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "ResourceNotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 10]; case "ThrottlingException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeProjectsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeProjectsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DescribeProjectsResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DescribeProjectsResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeProjectsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidPaginationTokenException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidPaginationTokenException": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ThrottlingException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeProjectVersionsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeProjectVersionsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DescribeProjectVersionsResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DescribeProjectVersionsResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeProjectVersionsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidPaginationTokenException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidPaginationTokenException": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeStreamProcessorCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeStreamProcessorCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DescribeStreamProcessorResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DescribeStreamProcessorResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeStreamProcessorCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "ResourceNotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 10]; case "ThrottlingException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DetectCustomLabelsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DetectCustomLabelsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DetectCustomLabelsResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DetectCustomLabelsResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DetectCustomLabelsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, parsedBody, message; var _p; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_q) { switch (_q.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _p = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_p.body = _q.sent(), _p)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "ImageTooLargeException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#ImageTooLargeException": return [3 /*break*/, 4]; case "InternalServerError": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 6]; case "InvalidImageFormatException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidImageFormatException": return [3 /*break*/, 8]; case "InvalidParameterException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 10]; case "InvalidS3ObjectException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 12]; case "LimitExceededException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#LimitExceededException": return [3 /*break*/, 14]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 16]; case "ResourceNotFoundException": return [3 /*break*/, 18]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 18]; case "ResourceNotReadyException": return [3 /*break*/, 20]; case "com.amazonaws.rekognition#ResourceNotReadyException": return [3 /*break*/, 20]; case "ThrottlingException": return [3 /*break*/, 22]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 22]; } return [3 /*break*/, 24]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1ImageTooLargeExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidImageFormatExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 20: _m = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotReadyExceptionResponse(parsedOutput, context)]; case 21: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _m.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 22: _o = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 23: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _o.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 24: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _q.label = 25; case 25: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DetectFacesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DetectFacesCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DetectFacesResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DetectFacesResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DetectFacesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; var _l; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) { switch (_m.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _l = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "ImageTooLargeException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#ImageTooLargeException": return [3 /*break*/, 4]; case "InternalServerError": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 6]; case "InvalidImageFormatException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidImageFormatException": return [3 /*break*/, 8]; case "InvalidParameterException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 10]; case "InvalidS3ObjectException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 12]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "ThrottlingException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 16]; } return [3 /*break*/, 18]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1ImageTooLargeExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidImageFormatExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 18: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _m.label = 19; case 19: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DetectLabelsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DetectLabelsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DetectLabelsResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DetectLabelsResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DetectLabelsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; var _l; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) { switch (_m.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _l = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "ImageTooLargeException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#ImageTooLargeException": return [3 /*break*/, 4]; case "InternalServerError": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 6]; case "InvalidImageFormatException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidImageFormatException": return [3 /*break*/, 8]; case "InvalidParameterException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 10]; case "InvalidS3ObjectException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 12]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "ThrottlingException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 16]; } return [3 /*break*/, 18]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1ImageTooLargeExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidImageFormatExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 18: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _m.label = 19; case 19: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DetectModerationLabelsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DetectModerationLabelsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DetectModerationLabelsResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DetectModerationLabelsResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DetectModerationLabelsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message; var _m; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_o) { switch (_o.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _m = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_m.body = _o.sent(), _m)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "HumanLoopQuotaExceededException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#HumanLoopQuotaExceededException": return [3 /*break*/, 4]; case "ImageTooLargeException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#ImageTooLargeException": return [3 /*break*/, 6]; case "InternalServerError": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 8]; case "InvalidImageFormatException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidImageFormatException": return [3 /*break*/, 10]; case "InvalidParameterException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 12]; case "InvalidS3ObjectException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 14]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 16]; case "ThrottlingException": return [3 /*break*/, 18]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 18]; } return [3 /*break*/, 20]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1HumanLoopQuotaExceededExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ImageTooLargeExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidImageFormatExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 20: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _o.label = 21; case 21: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DetectTextCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DetectTextCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DetectTextResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DetectTextResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DetectTextCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; var _l; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) { switch (_m.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _l = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "ImageTooLargeException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#ImageTooLargeException": return [3 /*break*/, 4]; case "InternalServerError": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 6]; case "InvalidImageFormatException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidImageFormatException": return [3 /*break*/, 8]; case "InvalidParameterException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 10]; case "InvalidS3ObjectException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 12]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "ThrottlingException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 16]; } return [3 /*break*/, 18]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1ImageTooLargeExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidImageFormatExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 18: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _m.label = 19; case 19: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetCelebrityInfoCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetCelebrityInfoCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetCelebrityInfoResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetCelebrityInfoResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetCelebrityInfoCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "ResourceNotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 10]; case "ThrottlingException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetCelebrityRecognitionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetCelebrityRecognitionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetCelebrityRecognitionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetCelebrityRecognitionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetCelebrityRecognitionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidPaginationTokenException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidPaginationTokenException": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetContentModerationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetContentModerationCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetContentModerationResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetContentModerationResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetContentModerationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidPaginationTokenException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidPaginationTokenException": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetFaceDetectionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetFaceDetectionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetFaceDetectionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetFaceDetectionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetFaceDetectionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidPaginationTokenException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidPaginationTokenException": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetFaceSearchCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetFaceSearchCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetFaceSearchResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetFaceSearchResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetFaceSearchCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidPaginationTokenException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidPaginationTokenException": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetLabelDetectionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetLabelDetectionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetLabelDetectionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetLabelDetectionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetLabelDetectionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidPaginationTokenException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidPaginationTokenException": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetPersonTrackingCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetPersonTrackingCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetPersonTrackingResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetPersonTrackingResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetPersonTrackingCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidPaginationTokenException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidPaginationTokenException": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetSegmentDetectionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetSegmentDetectionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetSegmentDetectionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetSegmentDetectionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetSegmentDetectionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidPaginationTokenException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidPaginationTokenException": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetTextDetectionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetTextDetectionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetTextDetectionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetTextDetectionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetTextDetectionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidPaginationTokenException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidPaginationTokenException": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1IndexFacesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1IndexFacesCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1IndexFacesResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "IndexFacesResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1IndexFacesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message; var _m; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_o) { switch (_o.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _m = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_m.body = _o.sent(), _m)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "ImageTooLargeException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#ImageTooLargeException": return [3 /*break*/, 4]; case "InternalServerError": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 6]; case "InvalidImageFormatException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidImageFormatException": return [3 /*break*/, 8]; case "InvalidParameterException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 10]; case "InvalidS3ObjectException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 12]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "ResourceNotFoundException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 16]; case "ThrottlingException": return [3 /*break*/, 18]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 18]; } return [3 /*break*/, 20]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1ImageTooLargeExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidImageFormatExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 20: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _o.label = 21; case 21: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListCollectionsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListCollectionsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListCollectionsResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListCollectionsResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListCollectionsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidPaginationTokenException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidPaginationTokenException": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListFacesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListFacesCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListFacesResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListFacesResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListFacesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidPaginationTokenException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidPaginationTokenException": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListStreamProcessorsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListStreamProcessorsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListStreamProcessorsResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListStreamProcessorsResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListStreamProcessorsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidPaginationTokenException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidPaginationTokenException": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ThrottlingException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1RecognizeCelebritiesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1RecognizeCelebritiesCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1RecognizeCelebritiesResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "RecognizeCelebritiesResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1RecognizeCelebritiesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; var _l; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) { switch (_m.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _l = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "ImageTooLargeException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#ImageTooLargeException": return [3 /*break*/, 4]; case "InternalServerError": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 6]; case "InvalidImageFormatException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidImageFormatException": return [3 /*break*/, 8]; case "InvalidParameterException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 10]; case "InvalidS3ObjectException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 12]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "ThrottlingException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 16]; } return [3 /*break*/, 18]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1ImageTooLargeExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidImageFormatExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 18: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _m.label = 19; case 19: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1SearchFacesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1SearchFacesCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1SearchFacesResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "SearchFacesResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1SearchFacesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "ResourceNotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 10]; case "ThrottlingException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1SearchFacesByImageCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1SearchFacesByImageCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1SearchFacesByImageResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "SearchFacesByImageResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1SearchFacesByImageCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message; var _m; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_o) { switch (_o.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _m = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_m.body = _o.sent(), _m)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "ImageTooLargeException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#ImageTooLargeException": return [3 /*break*/, 4]; case "InternalServerError": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 6]; case "InvalidImageFormatException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidImageFormatException": return [3 /*break*/, 8]; case "InvalidParameterException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 10]; case "InvalidS3ObjectException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 12]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "ResourceNotFoundException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 16]; case "ThrottlingException": return [3 /*break*/, 18]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 18]; } return [3 /*break*/, 20]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1ImageTooLargeExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidImageFormatExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 20: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _o.label = 21; case 21: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartCelebrityRecognitionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartCelebrityRecognitionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartCelebrityRecognitionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartCelebrityRecognitionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartCelebrityRecognitionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message; var _m; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_o) { switch (_o.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _m = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_m.body = _o.sent(), _m)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "IdempotentParameterMismatchException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#IdempotentParameterMismatchException": return [3 /*break*/, 4]; case "InternalServerError": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "InvalidS3ObjectException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 10]; case "LimitExceededException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#LimitExceededException": return [3 /*break*/, 12]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "ThrottlingException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 16]; case "VideoTooLargeException": return [3 /*break*/, 18]; case "com.amazonaws.rekognition#VideoTooLargeException": return [3 /*break*/, 18]; } return [3 /*break*/, 20]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 20: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _o.label = 21; case 21: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartContentModerationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartContentModerationCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartContentModerationResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartContentModerationResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartContentModerationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message; var _m; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_o) { switch (_o.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _m = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_m.body = _o.sent(), _m)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "IdempotentParameterMismatchException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#IdempotentParameterMismatchException": return [3 /*break*/, 4]; case "InternalServerError": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "InvalidS3ObjectException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 10]; case "LimitExceededException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#LimitExceededException": return [3 /*break*/, 12]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "ThrottlingException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 16]; case "VideoTooLargeException": return [3 /*break*/, 18]; case "com.amazonaws.rekognition#VideoTooLargeException": return [3 /*break*/, 18]; } return [3 /*break*/, 20]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 20: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _o.label = 21; case 21: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartFaceDetectionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartFaceDetectionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartFaceDetectionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartFaceDetectionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartFaceDetectionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message; var _m; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_o) { switch (_o.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _m = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_m.body = _o.sent(), _m)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "IdempotentParameterMismatchException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#IdempotentParameterMismatchException": return [3 /*break*/, 4]; case "InternalServerError": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "InvalidS3ObjectException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 10]; case "LimitExceededException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#LimitExceededException": return [3 /*break*/, 12]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "ThrottlingException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 16]; case "VideoTooLargeException": return [3 /*break*/, 18]; case "com.amazonaws.rekognition#VideoTooLargeException": return [3 /*break*/, 18]; } return [3 /*break*/, 20]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 20: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _o.label = 21; case 21: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartFaceSearchCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartFaceSearchCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartFaceSearchResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartFaceSearchResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartFaceSearchCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, parsedBody, message; var _o; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_p) { switch (_p.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _o = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_o.body = _p.sent(), _o)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "IdempotentParameterMismatchException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#IdempotentParameterMismatchException": return [3 /*break*/, 4]; case "InternalServerError": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "InvalidS3ObjectException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 10]; case "LimitExceededException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#LimitExceededException": return [3 /*break*/, 12]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "ResourceNotFoundException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 16]; case "ThrottlingException": return [3 /*break*/, 18]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 18]; case "VideoTooLargeException": return [3 /*break*/, 20]; case "com.amazonaws.rekognition#VideoTooLargeException": return [3 /*break*/, 20]; } return [3 /*break*/, 22]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 20: _m = [{}]; return [4 /*yield*/, deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context)]; case 21: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 22: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _p.label = 23; case 23: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartLabelDetectionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartLabelDetectionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartLabelDetectionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartLabelDetectionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartLabelDetectionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message; var _m; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_o) { switch (_o.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _m = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_m.body = _o.sent(), _m)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "IdempotentParameterMismatchException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#IdempotentParameterMismatchException": return [3 /*break*/, 4]; case "InternalServerError": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "InvalidS3ObjectException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 10]; case "LimitExceededException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#LimitExceededException": return [3 /*break*/, 12]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "ThrottlingException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 16]; case "VideoTooLargeException": return [3 /*break*/, 18]; case "com.amazonaws.rekognition#VideoTooLargeException": return [3 /*break*/, 18]; } return [3 /*break*/, 20]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 20: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _o.label = 21; case 21: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartPersonTrackingCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartPersonTrackingCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartPersonTrackingResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartPersonTrackingResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartPersonTrackingCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message; var _m; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_o) { switch (_o.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _m = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_m.body = _o.sent(), _m)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "IdempotentParameterMismatchException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#IdempotentParameterMismatchException": return [3 /*break*/, 4]; case "InternalServerError": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "InvalidS3ObjectException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 10]; case "LimitExceededException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#LimitExceededException": return [3 /*break*/, 12]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "ThrottlingException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 16]; case "VideoTooLargeException": return [3 /*break*/, 18]; case "com.amazonaws.rekognition#VideoTooLargeException": return [3 /*break*/, 18]; } return [3 /*break*/, 20]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 20: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _o.label = 21; case 21: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartProjectVersionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartProjectVersionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartProjectVersionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartProjectVersionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartProjectVersionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; var _l; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) { switch (_m.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _l = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "LimitExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#LimitExceededException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ResourceInUseException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceInUseException": return [3 /*break*/, 12]; case "ResourceNotFoundException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 14]; case "ThrottlingException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 16]; } return [3 /*break*/, 18]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 18: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _m.label = 19; case 19: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartSegmentDetectionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartSegmentDetectionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartSegmentDetectionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartSegmentDetectionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartSegmentDetectionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message; var _m; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_o) { switch (_o.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _m = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_m.body = _o.sent(), _m)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "IdempotentParameterMismatchException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#IdempotentParameterMismatchException": return [3 /*break*/, 4]; case "InternalServerError": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "InvalidS3ObjectException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 10]; case "LimitExceededException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#LimitExceededException": return [3 /*break*/, 12]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "ThrottlingException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 16]; case "VideoTooLargeException": return [3 /*break*/, 18]; case "com.amazonaws.rekognition#VideoTooLargeException": return [3 /*break*/, 18]; } return [3 /*break*/, 20]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 20: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _o.label = 21; case 21: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartStreamProcessorCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartStreamProcessorCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartStreamProcessorResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartStreamProcessorResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartStreamProcessorCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "ResourceInUseException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ResourceInUseException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartTextDetectionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartTextDetectionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartTextDetectionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartTextDetectionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartTextDetectionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message; var _m; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_o) { switch (_o.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _m = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_m.body = _o.sent(), _m)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "IdempotentParameterMismatchException": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#IdempotentParameterMismatchException": return [3 /*break*/, 4]; case "InternalServerError": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 8]; case "InvalidS3ObjectException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#InvalidS3ObjectException": return [3 /*break*/, 10]; case "LimitExceededException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#LimitExceededException": return [3 /*break*/, 12]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "ThrottlingException": return [3 /*break*/, 16]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 16]; case "VideoTooLargeException": return [3 /*break*/, 18]; case "com.amazonaws.rekognition#VideoTooLargeException": return [3 /*break*/, 18]; } return [3 /*break*/, 20]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 20: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _o.label = 21; case 21: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StopProjectVersionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StopProjectVersionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StopProjectVersionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StopProjectVersionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StopProjectVersionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "ResourceInUseException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ResourceInUseException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StopStreamProcessorCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StopStreamProcessorCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StopStreamProcessorResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StopStreamProcessorResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StopStreamProcessorCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.rekognition#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.rekognition#InternalServerError": return [3 /*break*/, 4]; case "InvalidParameterException": return [3 /*break*/, 6]; case "com.amazonaws.rekognition#InvalidParameterException": return [3 /*break*/, 6]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3 /*break*/, 8]; case "ResourceInUseException": return [3 /*break*/, 10]; case "com.amazonaws.rekognition#ResourceInUseException": return [3 /*break*/, 10]; case "ResourceNotFoundException": return [3 /*break*/, 12]; case "com.amazonaws.rekognition#ResourceNotFoundException": return [3 /*break*/, 12]; case "ThrottlingException": return [3 /*break*/, 14]; case "com.amazonaws.rekognition#ThrottlingException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1AccessDeniedExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1AccessDeniedException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "AccessDeniedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1HumanLoopQuotaExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1HumanLoopQuotaExceededException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "HumanLoopQuotaExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1IdempotentParameterMismatchException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "IdempotentParameterMismatchException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ImageTooLargeExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ImageTooLargeException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ImageTooLargeException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InternalServerErrorResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InternalServerError(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InternalServerError", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InvalidImageFormatExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InvalidImageFormatException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidImageFormatException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InvalidPaginationTokenExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InvalidPaginationTokenException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidPaginationTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InvalidParameterException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidParameterException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InvalidS3ObjectExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InvalidS3ObjectException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidS3ObjectException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1LimitExceededException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ProvisionedThroughputExceededException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ProvisionedThroughputExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ResourceAlreadyExistsException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceAlreadyExistsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ResourceInUseException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceInUseException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ResourceNotReadyExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ResourceNotReadyException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceNotReadyException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ThrottlingException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ThrottlingException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1VideoTooLargeExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1VideoTooLargeException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "VideoTooLargeException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var serializeAws_json1_1Asset = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.GroundTruthManifest !== undefined && { GroundTruthManifest: serializeAws_json1_1GroundTruthManifest(input.GroundTruthManifest, context), })); }; var serializeAws_json1_1Assets = function (input, context) { return input.map(function (entry) { return serializeAws_json1_1Asset(entry, context); }); }; var serializeAws_json1_1Attributes = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1BoundingBox = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Height !== undefined && { Height: input.Height })), (input.Left !== undefined && { Left: input.Left })), (input.Top !== undefined && { Top: input.Top })), (input.Width !== undefined && { Width: input.Width })); }; var serializeAws_json1_1CompareFacesRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.QualityFilter !== undefined && { QualityFilter: input.QualityFilter })), (input.SimilarityThreshold !== undefined && { SimilarityThreshold: input.SimilarityThreshold })), (input.SourceImage !== undefined && { SourceImage: serializeAws_json1_1Image(input.SourceImage, context) })), (input.TargetImage !== undefined && { TargetImage: serializeAws_json1_1Image(input.TargetImage, context) })); }; var serializeAws_json1_1ContentClassifiers = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1CreateCollectionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CollectionId !== undefined && { CollectionId: input.CollectionId })); }; var serializeAws_json1_1CreateProjectRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ProjectName !== undefined && { ProjectName: input.ProjectName })); }; var serializeAws_json1_1CreateProjectVersionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.OutputConfig !== undefined && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context), })), (input.ProjectArn !== undefined && { ProjectArn: input.ProjectArn })), (input.TestingData !== undefined && { TestingData: serializeAws_json1_1TestingData(input.TestingData, context), })), (input.TrainingData !== undefined && { TrainingData: serializeAws_json1_1TrainingData(input.TrainingData, context), })), (input.VersionName !== undefined && { VersionName: input.VersionName })); }; var serializeAws_json1_1CreateStreamProcessorRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Input !== undefined && { Input: serializeAws_json1_1StreamProcessorInput(input.Input, context) })), (input.Name !== undefined && { Name: input.Name })), (input.Output !== undefined && { Output: serializeAws_json1_1StreamProcessorOutput(input.Output, context) })), (input.RoleArn !== undefined && { RoleArn: input.RoleArn })), (input.Settings !== undefined && { Settings: serializeAws_json1_1StreamProcessorSettings(input.Settings, context), })); }; var serializeAws_json1_1DeleteCollectionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CollectionId !== undefined && { CollectionId: input.CollectionId })); }; var serializeAws_json1_1DeleteFacesRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CollectionId !== undefined && { CollectionId: input.CollectionId })), (input.FaceIds !== undefined && { FaceIds: serializeAws_json1_1FaceIdList(input.FaceIds, context) })); }; var serializeAws_json1_1DeleteProjectRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ProjectArn !== undefined && { ProjectArn: input.ProjectArn })); }; var serializeAws_json1_1DeleteProjectVersionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ProjectVersionArn !== undefined && { ProjectVersionArn: input.ProjectVersionArn })); }; var serializeAws_json1_1DeleteStreamProcessorRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Name !== undefined && { Name: input.Name })); }; var serializeAws_json1_1DescribeCollectionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CollectionId !== undefined && { CollectionId: input.CollectionId })); }; var serializeAws_json1_1DescribeProjectsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1DescribeProjectVersionsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.ProjectArn !== undefined && { ProjectArn: input.ProjectArn })), (input.VersionNames !== undefined && { VersionNames: serializeAws_json1_1VersionNames(input.VersionNames, context), })); }; var serializeAws_json1_1DescribeStreamProcessorRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Name !== undefined && { Name: input.Name })); }; var serializeAws_json1_1DetectCustomLabelsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Image !== undefined && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.MinConfidence !== undefined && { MinConfidence: input.MinConfidence })), (input.ProjectVersionArn !== undefined && { ProjectVersionArn: input.ProjectVersionArn })); }; var serializeAws_json1_1DetectFacesRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Attributes !== undefined && { Attributes: serializeAws_json1_1Attributes(input.Attributes, context) })), (input.Image !== undefined && { Image: serializeAws_json1_1Image(input.Image, context) })); }; var serializeAws_json1_1DetectionFilter = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MinBoundingBoxHeight !== undefined && { MinBoundingBoxHeight: input.MinBoundingBoxHeight })), (input.MinBoundingBoxWidth !== undefined && { MinBoundingBoxWidth: input.MinBoundingBoxWidth })), (input.MinConfidence !== undefined && { MinConfidence: input.MinConfidence })); }; var serializeAws_json1_1DetectLabelsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Image !== undefined && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxLabels !== undefined && { MaxLabels: input.MaxLabels })), (input.MinConfidence !== undefined && { MinConfidence: input.MinConfidence })); }; var serializeAws_json1_1DetectModerationLabelsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.HumanLoopConfig !== undefined && { HumanLoopConfig: serializeAws_json1_1HumanLoopConfig(input.HumanLoopConfig, context), })), (input.Image !== undefined && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MinConfidence !== undefined && { MinConfidence: input.MinConfidence })); }; var serializeAws_json1_1DetectTextFilters = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.RegionsOfInterest !== undefined && { RegionsOfInterest: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterest, context), })), (input.WordFilter !== undefined && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context), })); }; var serializeAws_json1_1DetectTextRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Filters !== undefined && { Filters: serializeAws_json1_1DetectTextFilters(input.Filters, context) })), (input.Image !== undefined && { Image: serializeAws_json1_1Image(input.Image, context) })); }; var serializeAws_json1_1FaceIdList = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1FaceSearchSettings = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CollectionId !== undefined && { CollectionId: input.CollectionId })), (input.FaceMatchThreshold !== undefined && { FaceMatchThreshold: input.FaceMatchThreshold })); }; var serializeAws_json1_1GetCelebrityInfoRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Id !== undefined && { Id: input.Id })); }; var serializeAws_json1_1GetCelebrityRecognitionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.SortBy !== undefined && { SortBy: input.SortBy })); }; var serializeAws_json1_1GetContentModerationRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.SortBy !== undefined && { SortBy: input.SortBy })); }; var serializeAws_json1_1GetFaceDetectionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1GetFaceSearchRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.SortBy !== undefined && { SortBy: input.SortBy })); }; var serializeAws_json1_1GetLabelDetectionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.SortBy !== undefined && { SortBy: input.SortBy })); }; var serializeAws_json1_1GetPersonTrackingRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.SortBy !== undefined && { SortBy: input.SortBy })); }; var serializeAws_json1_1GetSegmentDetectionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1GetTextDetectionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1GroundTruthManifest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.S3Object !== undefined && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) })); }; var serializeAws_json1_1HumanLoopConfig = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DataAttributes !== undefined && { DataAttributes: serializeAws_json1_1HumanLoopDataAttributes(input.DataAttributes, context), })), (input.FlowDefinitionArn !== undefined && { FlowDefinitionArn: input.FlowDefinitionArn })), (input.HumanLoopName !== undefined && { HumanLoopName: input.HumanLoopName })); }; var serializeAws_json1_1HumanLoopDataAttributes = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ContentClassifiers !== undefined && { ContentClassifiers: serializeAws_json1_1ContentClassifiers(input.ContentClassifiers, context), })); }; var serializeAws_json1_1Image = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Bytes !== undefined && { Bytes: context.base64Encoder(input.Bytes) })), (input.S3Object !== undefined && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) })); }; var serializeAws_json1_1IndexFacesRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CollectionId !== undefined && { CollectionId: input.CollectionId })), (input.DetectionAttributes !== undefined && { DetectionAttributes: serializeAws_json1_1Attributes(input.DetectionAttributes, context), })), (input.ExternalImageId !== undefined && { ExternalImageId: input.ExternalImageId })), (input.Image !== undefined && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxFaces !== undefined && { MaxFaces: input.MaxFaces })), (input.QualityFilter !== undefined && { QualityFilter: input.QualityFilter })); }; var serializeAws_json1_1KinesisDataStream = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Arn !== undefined && { Arn: input.Arn })); }; var serializeAws_json1_1KinesisVideoStream = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Arn !== undefined && { Arn: input.Arn })); }; var serializeAws_json1_1ListCollectionsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1ListFacesRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CollectionId !== undefined && { CollectionId: input.CollectionId })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1ListStreamProcessorsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1NotificationChannel = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.RoleArn !== undefined && { RoleArn: input.RoleArn })), (input.SNSTopicArn !== undefined && { SNSTopicArn: input.SNSTopicArn })); }; var serializeAws_json1_1OutputConfig = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.S3Bucket !== undefined && { S3Bucket: input.S3Bucket })), (input.S3KeyPrefix !== undefined && { S3KeyPrefix: input.S3KeyPrefix })); }; var serializeAws_json1_1RecognizeCelebritiesRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Image !== undefined && { Image: serializeAws_json1_1Image(input.Image, context) })); }; var serializeAws_json1_1RegionOfInterest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BoundingBox !== undefined && { BoundingBox: serializeAws_json1_1BoundingBox(input.BoundingBox, context), })); }; var serializeAws_json1_1RegionsOfInterest = function (input, context) { return input.map(function (entry) { return serializeAws_json1_1RegionOfInterest(entry, context); }); }; var serializeAws_json1_1S3Object = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Bucket !== undefined && { Bucket: input.Bucket })), (input.Name !== undefined && { Name: input.Name })), (input.Version !== undefined && { Version: input.Version })); }; var serializeAws_json1_1SearchFacesByImageRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CollectionId !== undefined && { CollectionId: input.CollectionId })), (input.FaceMatchThreshold !== undefined && { FaceMatchThreshold: input.FaceMatchThreshold })), (input.Image !== undefined && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxFaces !== undefined && { MaxFaces: input.MaxFaces })), (input.QualityFilter !== undefined && { QualityFilter: input.QualityFilter })); }; var serializeAws_json1_1SearchFacesRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CollectionId !== undefined && { CollectionId: input.CollectionId })), (input.FaceId !== undefined && { FaceId: input.FaceId })), (input.FaceMatchThreshold !== undefined && { FaceMatchThreshold: input.FaceMatchThreshold })), (input.MaxFaces !== undefined && { MaxFaces: input.MaxFaces })); }; var serializeAws_json1_1SegmentTypes = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1StartCelebrityRecognitionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ClientRequestToken !== undefined && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag !== undefined && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined && { NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context), })), (input.Video !== undefined && { Video: serializeAws_json1_1Video(input.Video, context) })); }; var serializeAws_json1_1StartContentModerationRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ClientRequestToken !== undefined && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag !== undefined && { JobTag: input.JobTag })), (input.MinConfidence !== undefined && { MinConfidence: input.MinConfidence })), (input.NotificationChannel !== undefined && { NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context), })), (input.Video !== undefined && { Video: serializeAws_json1_1Video(input.Video, context) })); }; var serializeAws_json1_1StartFaceDetectionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ClientRequestToken !== undefined && { ClientRequestToken: input.ClientRequestToken })), (input.FaceAttributes !== undefined && { FaceAttributes: input.FaceAttributes })), (input.JobTag !== undefined && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined && { NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context), })), (input.Video !== undefined && { Video: serializeAws_json1_1Video(input.Video, context) })); }; var serializeAws_json1_1StartFaceSearchRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ClientRequestToken !== undefined && { ClientRequestToken: input.ClientRequestToken })), (input.CollectionId !== undefined && { CollectionId: input.CollectionId })), (input.FaceMatchThreshold !== undefined && { FaceMatchThreshold: input.FaceMatchThreshold })), (input.JobTag !== undefined && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined && { NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context), })), (input.Video !== undefined && { Video: serializeAws_json1_1Video(input.Video, context) })); }; var serializeAws_json1_1StartLabelDetectionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ClientRequestToken !== undefined && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag !== undefined && { JobTag: input.JobTag })), (input.MinConfidence !== undefined && { MinConfidence: input.MinConfidence })), (input.NotificationChannel !== undefined && { NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context), })), (input.Video !== undefined && { Video: serializeAws_json1_1Video(input.Video, context) })); }; var serializeAws_json1_1StartPersonTrackingRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ClientRequestToken !== undefined && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag !== undefined && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined && { NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context), })), (input.Video !== undefined && { Video: serializeAws_json1_1Video(input.Video, context) })); }; var serializeAws_json1_1StartProjectVersionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MinInferenceUnits !== undefined && { MinInferenceUnits: input.MinInferenceUnits })), (input.ProjectVersionArn !== undefined && { ProjectVersionArn: input.ProjectVersionArn })); }; var serializeAws_json1_1StartSegmentDetectionFilters = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ShotFilter !== undefined && { ShotFilter: serializeAws_json1_1StartShotDetectionFilter(input.ShotFilter, context), })), (input.TechnicalCueFilter !== undefined && { TechnicalCueFilter: serializeAws_json1_1StartTechnicalCueDetectionFilter(input.TechnicalCueFilter, context), })); }; var serializeAws_json1_1StartSegmentDetectionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ClientRequestToken !== undefined && { ClientRequestToken: input.ClientRequestToken })), (input.Filters !== undefined && { Filters: serializeAws_json1_1StartSegmentDetectionFilters(input.Filters, context), })), (input.JobTag !== undefined && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined && { NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context), })), (input.SegmentTypes !== undefined && { SegmentTypes: serializeAws_json1_1SegmentTypes(input.SegmentTypes, context), })), (input.Video !== undefined && { Video: serializeAws_json1_1Video(input.Video, context) })); }; var serializeAws_json1_1StartShotDetectionFilter = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MinSegmentConfidence !== undefined && { MinSegmentConfidence: input.MinSegmentConfidence })); }; var serializeAws_json1_1StartStreamProcessorRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Name !== undefined && { Name: input.Name })); }; var serializeAws_json1_1StartTechnicalCueDetectionFilter = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MinSegmentConfidence !== undefined && { MinSegmentConfidence: input.MinSegmentConfidence })); }; var serializeAws_json1_1StartTextDetectionFilters = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.RegionsOfInterest !== undefined && { RegionsOfInterest: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterest, context), })), (input.WordFilter !== undefined && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context), })); }; var serializeAws_json1_1StartTextDetectionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ClientRequestToken !== undefined && { ClientRequestToken: input.ClientRequestToken })), (input.Filters !== undefined && { Filters: serializeAws_json1_1StartTextDetectionFilters(input.Filters, context), })), (input.JobTag !== undefined && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined && { NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context), })), (input.Video !== undefined && { Video: serializeAws_json1_1Video(input.Video, context) })); }; var serializeAws_json1_1StopProjectVersionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ProjectVersionArn !== undefined && { ProjectVersionArn: input.ProjectVersionArn })); }; var serializeAws_json1_1StopStreamProcessorRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Name !== undefined && { Name: input.Name })); }; var serializeAws_json1_1StreamProcessorInput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.KinesisVideoStream !== undefined && { KinesisVideoStream: serializeAws_json1_1KinesisVideoStream(input.KinesisVideoStream, context), })); }; var serializeAws_json1_1StreamProcessorOutput = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.KinesisDataStream !== undefined && { KinesisDataStream: serializeAws_json1_1KinesisDataStream(input.KinesisDataStream, context), })); }; var serializeAws_json1_1StreamProcessorSettings = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.FaceSearch !== undefined && { FaceSearch: serializeAws_json1_1FaceSearchSettings(input.FaceSearch, context), })); }; var serializeAws_json1_1TestingData = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Assets !== undefined && { Assets: serializeAws_json1_1Assets(input.Assets, context) })), (input.AutoCreate !== undefined && { AutoCreate: input.AutoCreate })); }; var serializeAws_json1_1TrainingData = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Assets !== undefined && { Assets: serializeAws_json1_1Assets(input.Assets, context) })); }; var serializeAws_json1_1VersionNames = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1Video = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.S3Object !== undefined && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) })); }; var deserializeAws_json1_1AccessDeniedException = function (output, context) { return { __type: "AccessDeniedException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1AgeRange = function (output, context) { return { __type: "AgeRange", High: output.High !== undefined && output.High !== null ? output.High : undefined, Low: output.Low !== undefined && output.Low !== null ? output.Low : undefined, }; }; var deserializeAws_json1_1Asset = function (output, context) { return { __type: "Asset", GroundTruthManifest: output.GroundTruthManifest !== undefined && output.GroundTruthManifest !== null ? deserializeAws_json1_1GroundTruthManifest(output.GroundTruthManifest, context) : undefined, }; }; var deserializeAws_json1_1Assets = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Asset(entry, context); }); }; var deserializeAws_json1_1AudioMetadata = function (output, context) { return { __type: "AudioMetadata", Codec: output.Codec !== undefined && output.Codec !== null ? output.Codec : undefined, DurationMillis: output.DurationMillis !== undefined && output.DurationMillis !== null ? output.DurationMillis : undefined, NumberOfChannels: output.NumberOfChannels !== undefined && output.NumberOfChannels !== null ? output.NumberOfChannels : undefined, SampleRate: output.SampleRate !== undefined && output.SampleRate !== null ? output.SampleRate : undefined, }; }; var deserializeAws_json1_1AudioMetadataList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1AudioMetadata(entry, context); }); }; var deserializeAws_json1_1Beard = function (output, context) { return { __type: "Beard", Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined, }; }; var deserializeAws_json1_1BoundingBox = function (output, context) { return { __type: "BoundingBox", Height: output.Height !== undefined && output.Height !== null ? output.Height : undefined, Left: output.Left !== undefined && output.Left !== null ? output.Left : undefined, Top: output.Top !== undefined && output.Top !== null ? output.Top : undefined, Width: output.Width !== undefined && output.Width !== null ? output.Width : undefined, }; }; var deserializeAws_json1_1Celebrity = function (output, context) { return { __type: "Celebrity", Face: output.Face !== undefined && output.Face !== null ? deserializeAws_json1_1ComparedFace(output.Face, context) : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, MatchConfidence: output.MatchConfidence !== undefined && output.MatchConfidence !== null ? output.MatchConfidence : undefined, Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, Urls: output.Urls !== undefined && output.Urls !== null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined, }; }; var deserializeAws_json1_1CelebrityDetail = function (output, context) { return { __type: "CelebrityDetail", BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Face: output.Face !== undefined && output.Face !== null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, Urls: output.Urls !== undefined && output.Urls !== null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined, }; }; var deserializeAws_json1_1CelebrityList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Celebrity(entry, context); }); }; var deserializeAws_json1_1CelebrityRecognition = function (output, context) { return { __type: "CelebrityRecognition", Celebrity: output.Celebrity !== undefined && output.Celebrity !== null ? deserializeAws_json1_1CelebrityDetail(output.Celebrity, context) : undefined, Timestamp: output.Timestamp !== undefined && output.Timestamp !== null ? output.Timestamp : undefined, }; }; var deserializeAws_json1_1CelebrityRecognitions = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1CelebrityRecognition(entry, context); }); }; var deserializeAws_json1_1CollectionIdList = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1ComparedFace = function (output, context) { return { __type: "ComparedFace", BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Landmarks: output.Landmarks !== undefined && output.Landmarks !== null ? deserializeAws_json1_1Landmarks(output.Landmarks, context) : undefined, Pose: output.Pose !== undefined && output.Pose !== null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined, Quality: output.Quality !== undefined && output.Quality !== null ? deserializeAws_json1_1ImageQuality(output.Quality, context) : undefined, }; }; var deserializeAws_json1_1ComparedFaceList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1ComparedFace(entry, context); }); }; var deserializeAws_json1_1ComparedSourceImageFace = function (output, context) { return { __type: "ComparedSourceImageFace", BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, }; }; var deserializeAws_json1_1CompareFacesMatch = function (output, context) { return { __type: "CompareFacesMatch", Face: output.Face !== undefined && output.Face !== null ? deserializeAws_json1_1ComparedFace(output.Face, context) : undefined, Similarity: output.Similarity !== undefined && output.Similarity !== null ? output.Similarity : undefined, }; }; var deserializeAws_json1_1CompareFacesMatchList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1CompareFacesMatch(entry, context); }); }; var deserializeAws_json1_1CompareFacesResponse = function (output, context) { return { __type: "CompareFacesResponse", FaceMatches: output.FaceMatches !== undefined && output.FaceMatches !== null ? deserializeAws_json1_1CompareFacesMatchList(output.FaceMatches, context) : undefined, SourceImageFace: output.SourceImageFace !== undefined && output.SourceImageFace !== null ? deserializeAws_json1_1ComparedSourceImageFace(output.SourceImageFace, context) : undefined, SourceImageOrientationCorrection: output.SourceImageOrientationCorrection !== undefined && output.SourceImageOrientationCorrection !== null ? output.SourceImageOrientationCorrection : undefined, TargetImageOrientationCorrection: output.TargetImageOrientationCorrection !== undefined && output.TargetImageOrientationCorrection !== null ? output.TargetImageOrientationCorrection : undefined, UnmatchedFaces: output.UnmatchedFaces !== undefined && output.UnmatchedFaces !== null ? deserializeAws_json1_1CompareFacesUnmatchList(output.UnmatchedFaces, context) : undefined, }; }; var deserializeAws_json1_1CompareFacesUnmatchList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1ComparedFace(entry, context); }); }; var deserializeAws_json1_1ContentModerationDetection = function (output, context) { return { __type: "ContentModerationDetection", ModerationLabel: output.ModerationLabel !== undefined && output.ModerationLabel !== null ? deserializeAws_json1_1ModerationLabel(output.ModerationLabel, context) : undefined, Timestamp: output.Timestamp !== undefined && output.Timestamp !== null ? output.Timestamp : undefined, }; }; var deserializeAws_json1_1ContentModerationDetections = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1ContentModerationDetection(entry, context); }); }; var deserializeAws_json1_1CreateCollectionResponse = function (output, context) { return { __type: "CreateCollectionResponse", CollectionArn: output.CollectionArn !== undefined && output.CollectionArn !== null ? output.CollectionArn : undefined, FaceModelVersion: output.FaceModelVersion !== undefined && output.FaceModelVersion !== null ? output.FaceModelVersion : undefined, StatusCode: output.StatusCode !== undefined && output.StatusCode !== null ? output.StatusCode : undefined, }; }; var deserializeAws_json1_1CreateProjectResponse = function (output, context) { return { __type: "CreateProjectResponse", ProjectArn: output.ProjectArn !== undefined && output.ProjectArn !== null ? output.ProjectArn : undefined, }; }; var deserializeAws_json1_1CreateProjectVersionResponse = function (output, context) { return { __type: "CreateProjectVersionResponse", ProjectVersionArn: output.ProjectVersionArn !== undefined && output.ProjectVersionArn !== null ? output.ProjectVersionArn : undefined, }; }; var deserializeAws_json1_1CreateStreamProcessorResponse = function (output, context) { return { __type: "CreateStreamProcessorResponse", StreamProcessorArn: output.StreamProcessorArn !== undefined && output.StreamProcessorArn !== null ? output.StreamProcessorArn : undefined, }; }; var deserializeAws_json1_1CustomLabel = function (output, context) { return { __type: "CustomLabel", Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Geometry: output.Geometry !== undefined && output.Geometry !== null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined, Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, }; }; var deserializeAws_json1_1CustomLabels = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1CustomLabel(entry, context); }); }; var deserializeAws_json1_1DeleteCollectionResponse = function (output, context) { return { __type: "DeleteCollectionResponse", StatusCode: output.StatusCode !== undefined && output.StatusCode !== null ? output.StatusCode : undefined, }; }; var deserializeAws_json1_1DeleteFacesResponse = function (output, context) { return { __type: "DeleteFacesResponse", DeletedFaces: output.DeletedFaces !== undefined && output.DeletedFaces !== null ? deserializeAws_json1_1FaceIdList(output.DeletedFaces, context) : undefined, }; }; var deserializeAws_json1_1DeleteProjectResponse = function (output, context) { return { __type: "DeleteProjectResponse", Status: output.Status !== undefined && output.Status !== null ? output.Status : undefined, }; }; var deserializeAws_json1_1DeleteProjectVersionResponse = function (output, context) { return { __type: "DeleteProjectVersionResponse", Status: output.Status !== undefined && output.Status !== null ? output.Status : undefined, }; }; var deserializeAws_json1_1DeleteStreamProcessorResponse = function (output, context) { return { __type: "DeleteStreamProcessorResponse", }; }; var deserializeAws_json1_1DescribeCollectionResponse = function (output, context) { return { __type: "DescribeCollectionResponse", CollectionARN: output.CollectionARN !== undefined && output.CollectionARN !== null ? output.CollectionARN : undefined, CreationTimestamp: output.CreationTimestamp !== undefined && output.CreationTimestamp !== null ? new Date(Math.round(output.CreationTimestamp * 1000)) : undefined, FaceCount: output.FaceCount !== undefined && output.FaceCount !== null ? output.FaceCount : undefined, FaceModelVersion: output.FaceModelVersion !== undefined && output.FaceModelVersion !== null ? output.FaceModelVersion : undefined, }; }; var deserializeAws_json1_1DescribeProjectsResponse = function (output, context) { return { __type: "DescribeProjectsResponse", NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, ProjectDescriptions: output.ProjectDescriptions !== undefined && output.ProjectDescriptions !== null ? deserializeAws_json1_1ProjectDescriptions(output.ProjectDescriptions, context) : undefined, }; }; var deserializeAws_json1_1DescribeProjectVersionsResponse = function (output, context) { return { __type: "DescribeProjectVersionsResponse", NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, ProjectVersionDescriptions: output.ProjectVersionDescriptions !== undefined && output.ProjectVersionDescriptions !== null ? deserializeAws_json1_1ProjectVersionDescriptions(output.ProjectVersionDescriptions, context) : undefined, }; }; var deserializeAws_json1_1DescribeStreamProcessorResponse = function (output, context) { return { __type: "DescribeStreamProcessorResponse", CreationTimestamp: output.CreationTimestamp !== undefined && output.CreationTimestamp !== null ? new Date(Math.round(output.CreationTimestamp * 1000)) : undefined, Input: output.Input !== undefined && output.Input !== null ? deserializeAws_json1_1StreamProcessorInput(output.Input, context) : undefined, LastUpdateTimestamp: output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null ? new Date(Math.round(output.LastUpdateTimestamp * 1000)) : undefined, Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, Output: output.Output !== undefined && output.Output !== null ? deserializeAws_json1_1StreamProcessorOutput(output.Output, context) : undefined, RoleArn: output.RoleArn !== undefined && output.RoleArn !== null ? output.RoleArn : undefined, Settings: output.Settings !== undefined && output.Settings !== null ? deserializeAws_json1_1StreamProcessorSettings(output.Settings, context) : undefined, Status: output.Status !== undefined && output.Status !== null ? output.Status : undefined, StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined, StreamProcessorArn: output.StreamProcessorArn !== undefined && output.StreamProcessorArn !== null ? output.StreamProcessorArn : undefined, }; }; var deserializeAws_json1_1DetectCustomLabelsResponse = function (output, context) { return { __type: "DetectCustomLabelsResponse", CustomLabels: output.CustomLabels !== undefined && output.CustomLabels !== null ? deserializeAws_json1_1CustomLabels(output.CustomLabels, context) : undefined, }; }; var deserializeAws_json1_1DetectFacesResponse = function (output, context) { return { __type: "DetectFacesResponse", FaceDetails: output.FaceDetails !== undefined && output.FaceDetails !== null ? deserializeAws_json1_1FaceDetailList(output.FaceDetails, context) : undefined, OrientationCorrection: output.OrientationCorrection !== undefined && output.OrientationCorrection !== null ? output.OrientationCorrection : undefined, }; }; var deserializeAws_json1_1DetectLabelsResponse = function (output, context) { return { __type: "DetectLabelsResponse", LabelModelVersion: output.LabelModelVersion !== undefined && output.LabelModelVersion !== null ? output.LabelModelVersion : undefined, Labels: output.Labels !== undefined && output.Labels !== null ? deserializeAws_json1_1Labels(output.Labels, context) : undefined, OrientationCorrection: output.OrientationCorrection !== undefined && output.OrientationCorrection !== null ? output.OrientationCorrection : undefined, }; }; var deserializeAws_json1_1DetectModerationLabelsResponse = function (output, context) { return { __type: "DetectModerationLabelsResponse", HumanLoopActivationOutput: output.HumanLoopActivationOutput !== undefined && output.HumanLoopActivationOutput !== null ? deserializeAws_json1_1HumanLoopActivationOutput(output.HumanLoopActivationOutput, context) : undefined, ModerationLabels: output.ModerationLabels !== undefined && output.ModerationLabels !== null ? deserializeAws_json1_1ModerationLabels(output.ModerationLabels, context) : undefined, ModerationModelVersion: output.ModerationModelVersion !== undefined && output.ModerationModelVersion !== null ? output.ModerationModelVersion : undefined, }; }; var deserializeAws_json1_1DetectTextResponse = function (output, context) { return { __type: "DetectTextResponse", TextDetections: output.TextDetections !== undefined && output.TextDetections !== null ? deserializeAws_json1_1TextDetectionList(output.TextDetections, context) : undefined, TextModelVersion: output.TextModelVersion !== undefined && output.TextModelVersion !== null ? output.TextModelVersion : undefined, }; }; var deserializeAws_json1_1Emotion = function (output, context) { return { __type: "Emotion", Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, }; }; var deserializeAws_json1_1Emotions = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Emotion(entry, context); }); }; var deserializeAws_json1_1EvaluationResult = function (output, context) { return { __type: "EvaluationResult", F1Score: output.F1Score !== undefined && output.F1Score !== null ? output.F1Score : undefined, Summary: output.Summary !== undefined && output.Summary !== null ? deserializeAws_json1_1Summary(output.Summary, context) : undefined, }; }; var deserializeAws_json1_1Eyeglasses = function (output, context) { return { __type: "Eyeglasses", Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined, }; }; var deserializeAws_json1_1EyeOpen = function (output, context) { return { __type: "EyeOpen", Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined, }; }; var deserializeAws_json1_1Face = function (output, context) { return { __type: "Face", BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, ExternalImageId: output.ExternalImageId !== undefined && output.ExternalImageId !== null ? output.ExternalImageId : undefined, FaceId: output.FaceId !== undefined && output.FaceId !== null ? output.FaceId : undefined, ImageId: output.ImageId !== undefined && output.ImageId !== null ? output.ImageId : undefined, }; }; var deserializeAws_json1_1FaceDetail = function (output, context) { return { __type: "FaceDetail", AgeRange: output.AgeRange !== undefined && output.AgeRange !== null ? deserializeAws_json1_1AgeRange(output.AgeRange, context) : undefined, Beard: output.Beard !== undefined && output.Beard !== null ? deserializeAws_json1_1Beard(output.Beard, context) : undefined, BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Emotions: output.Emotions !== undefined && output.Emotions !== null ? deserializeAws_json1_1Emotions(output.Emotions, context) : undefined, Eyeglasses: output.Eyeglasses !== undefined && output.Eyeglasses !== null ? deserializeAws_json1_1Eyeglasses(output.Eyeglasses, context) : undefined, EyesOpen: output.EyesOpen !== undefined && output.EyesOpen !== null ? deserializeAws_json1_1EyeOpen(output.EyesOpen, context) : undefined, Gender: output.Gender !== undefined && output.Gender !== null ? deserializeAws_json1_1Gender(output.Gender, context) : undefined, Landmarks: output.Landmarks !== undefined && output.Landmarks !== null ? deserializeAws_json1_1Landmarks(output.Landmarks, context) : undefined, MouthOpen: output.MouthOpen !== undefined && output.MouthOpen !== null ? deserializeAws_json1_1MouthOpen(output.MouthOpen, context) : undefined, Mustache: output.Mustache !== undefined && output.Mustache !== null ? deserializeAws_json1_1Mustache(output.Mustache, context) : undefined, Pose: output.Pose !== undefined && output.Pose !== null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined, Quality: output.Quality !== undefined && output.Quality !== null ? deserializeAws_json1_1ImageQuality(output.Quality, context) : undefined, Smile: output.Smile !== undefined && output.Smile !== null ? deserializeAws_json1_1Smile(output.Smile, context) : undefined, Sunglasses: output.Sunglasses !== undefined && output.Sunglasses !== null ? deserializeAws_json1_1Sunglasses(output.Sunglasses, context) : undefined, }; }; var deserializeAws_json1_1FaceDetailList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1FaceDetail(entry, context); }); }; var deserializeAws_json1_1FaceDetection = function (output, context) { return { __type: "FaceDetection", Face: output.Face !== undefined && output.Face !== null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined, Timestamp: output.Timestamp !== undefined && output.Timestamp !== null ? output.Timestamp : undefined, }; }; var deserializeAws_json1_1FaceDetections = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1FaceDetection(entry, context); }); }; var deserializeAws_json1_1FaceIdList = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1FaceList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Face(entry, context); }); }; var deserializeAws_json1_1FaceMatch = function (output, context) { return { __type: "FaceMatch", Face: output.Face !== undefined && output.Face !== null ? deserializeAws_json1_1Face(output.Face, context) : undefined, Similarity: output.Similarity !== undefined && output.Similarity !== null ? output.Similarity : undefined, }; }; var deserializeAws_json1_1FaceMatchList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1FaceMatch(entry, context); }); }; var deserializeAws_json1_1FaceModelVersionList = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1FaceRecord = function (output, context) { return { __type: "FaceRecord", Face: output.Face !== undefined && output.Face !== null ? deserializeAws_json1_1Face(output.Face, context) : undefined, FaceDetail: output.FaceDetail !== undefined && output.FaceDetail !== null ? deserializeAws_json1_1FaceDetail(output.FaceDetail, context) : undefined, }; }; var deserializeAws_json1_1FaceRecordList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1FaceRecord(entry, context); }); }; var deserializeAws_json1_1FaceSearchSettings = function (output, context) { return { __type: "FaceSearchSettings", CollectionId: output.CollectionId !== undefined && output.CollectionId !== null ? output.CollectionId : undefined, FaceMatchThreshold: output.FaceMatchThreshold !== undefined && output.FaceMatchThreshold !== null ? output.FaceMatchThreshold : undefined, }; }; var deserializeAws_json1_1Gender = function (output, context) { return { __type: "Gender", Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined, }; }; var deserializeAws_json1_1Geometry = function (output, context) { return { __type: "Geometry", BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, Polygon: output.Polygon !== undefined && output.Polygon !== null ? deserializeAws_json1_1Polygon(output.Polygon, context) : undefined, }; }; var deserializeAws_json1_1GetCelebrityInfoResponse = function (output, context) { return { __type: "GetCelebrityInfoResponse", Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, Urls: output.Urls !== undefined && output.Urls !== null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined, }; }; var deserializeAws_json1_1GetCelebrityRecognitionResponse = function (output, context) { return { __type: "GetCelebrityRecognitionResponse", Celebrities: output.Celebrities !== undefined && output.Celebrities !== null ? deserializeAws_json1_1CelebrityRecognitions(output.Celebrities, context) : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined, VideoMetadata: output.VideoMetadata !== undefined && output.VideoMetadata !== null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined, }; }; var deserializeAws_json1_1GetContentModerationResponse = function (output, context) { return { __type: "GetContentModerationResponse", JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, ModerationLabels: output.ModerationLabels !== undefined && output.ModerationLabels !== null ? deserializeAws_json1_1ContentModerationDetections(output.ModerationLabels, context) : undefined, ModerationModelVersion: output.ModerationModelVersion !== undefined && output.ModerationModelVersion !== null ? output.ModerationModelVersion : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined, VideoMetadata: output.VideoMetadata !== undefined && output.VideoMetadata !== null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined, }; }; var deserializeAws_json1_1GetFaceDetectionResponse = function (output, context) { return { __type: "GetFaceDetectionResponse", Faces: output.Faces !== undefined && output.Faces !== null ? deserializeAws_json1_1FaceDetections(output.Faces, context) : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined, VideoMetadata: output.VideoMetadata !== undefined && output.VideoMetadata !== null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined, }; }; var deserializeAws_json1_1GetFaceSearchResponse = function (output, context) { return { __type: "GetFaceSearchResponse", JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, Persons: output.Persons !== undefined && output.Persons !== null ? deserializeAws_json1_1PersonMatches(output.Persons, context) : undefined, StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined, VideoMetadata: output.VideoMetadata !== undefined && output.VideoMetadata !== null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined, }; }; var deserializeAws_json1_1GetLabelDetectionResponse = function (output, context) { return { __type: "GetLabelDetectionResponse", JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, LabelModelVersion: output.LabelModelVersion !== undefined && output.LabelModelVersion !== null ? output.LabelModelVersion : undefined, Labels: output.Labels !== undefined && output.Labels !== null ? deserializeAws_json1_1LabelDetections(output.Labels, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined, VideoMetadata: output.VideoMetadata !== undefined && output.VideoMetadata !== null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined, }; }; var deserializeAws_json1_1GetPersonTrackingResponse = function (output, context) { return { __type: "GetPersonTrackingResponse", JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, Persons: output.Persons !== undefined && output.Persons !== null ? deserializeAws_json1_1PersonDetections(output.Persons, context) : undefined, StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined, VideoMetadata: output.VideoMetadata !== undefined && output.VideoMetadata !== null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined, }; }; var deserializeAws_json1_1GetSegmentDetectionResponse = function (output, context) { return { __type: "GetSegmentDetectionResponse", AudioMetadata: output.AudioMetadata !== undefined && output.AudioMetadata !== null ? deserializeAws_json1_1AudioMetadataList(output.AudioMetadata, context) : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, Segments: output.Segments !== undefined && output.Segments !== null ? deserializeAws_json1_1SegmentDetections(output.Segments, context) : undefined, SelectedSegmentTypes: output.SelectedSegmentTypes !== undefined && output.SelectedSegmentTypes !== null ? deserializeAws_json1_1SegmentTypesInfo(output.SelectedSegmentTypes, context) : undefined, StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined, VideoMetadata: output.VideoMetadata !== undefined && output.VideoMetadata !== null ? deserializeAws_json1_1VideoMetadataList(output.VideoMetadata, context) : undefined, }; }; var deserializeAws_json1_1GetTextDetectionResponse = function (output, context) { return { __type: "GetTextDetectionResponse", JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined, TextDetections: output.TextDetections !== undefined && output.TextDetections !== null ? deserializeAws_json1_1TextDetectionResults(output.TextDetections, context) : undefined, TextModelVersion: output.TextModelVersion !== undefined && output.TextModelVersion !== null ? output.TextModelVersion : undefined, VideoMetadata: output.VideoMetadata !== undefined && output.VideoMetadata !== null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined, }; }; var deserializeAws_json1_1GroundTruthManifest = function (output, context) { return { __type: "GroundTruthManifest", S3Object: output.S3Object !== undefined && output.S3Object !== null ? deserializeAws_json1_1S3Object(output.S3Object, context) : undefined, }; }; var deserializeAws_json1_1HumanLoopActivationOutput = function (output, context) { return { __type: "HumanLoopActivationOutput", HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults !== undefined && output.HumanLoopActivationConditionsEvaluationResults !== null ? new _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["LazyJsonString"](output.HumanLoopActivationConditionsEvaluationResults) : undefined, HumanLoopActivationReasons: output.HumanLoopActivationReasons !== undefined && output.HumanLoopActivationReasons !== null ? deserializeAws_json1_1HumanLoopActivationReasons(output.HumanLoopActivationReasons, context) : undefined, HumanLoopArn: output.HumanLoopArn !== undefined && output.HumanLoopArn !== null ? output.HumanLoopArn : undefined, }; }; var deserializeAws_json1_1HumanLoopActivationReasons = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1HumanLoopQuotaExceededException = function (output, context) { return { __type: "HumanLoopQuotaExceededException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, QuotaCode: output.QuotaCode !== undefined && output.QuotaCode !== null ? output.QuotaCode : undefined, ResourceType: output.ResourceType !== undefined && output.ResourceType !== null ? output.ResourceType : undefined, ServiceCode: output.ServiceCode !== undefined && output.ServiceCode !== null ? output.ServiceCode : undefined, }; }; var deserializeAws_json1_1IdempotentParameterMismatchException = function (output, context) { return { __type: "IdempotentParameterMismatchException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1ImageQuality = function (output, context) { return { __type: "ImageQuality", Brightness: output.Brightness !== undefined && output.Brightness !== null ? output.Brightness : undefined, Sharpness: output.Sharpness !== undefined && output.Sharpness !== null ? output.Sharpness : undefined, }; }; var deserializeAws_json1_1ImageTooLargeException = function (output, context) { return { __type: "ImageTooLargeException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1IndexFacesResponse = function (output, context) { return { __type: "IndexFacesResponse", FaceModelVersion: output.FaceModelVersion !== undefined && output.FaceModelVersion !== null ? output.FaceModelVersion : undefined, FaceRecords: output.FaceRecords !== undefined && output.FaceRecords !== null ? deserializeAws_json1_1FaceRecordList(output.FaceRecords, context) : undefined, OrientationCorrection: output.OrientationCorrection !== undefined && output.OrientationCorrection !== null ? output.OrientationCorrection : undefined, UnindexedFaces: output.UnindexedFaces !== undefined && output.UnindexedFaces !== null ? deserializeAws_json1_1UnindexedFaces(output.UnindexedFaces, context) : undefined, }; }; var deserializeAws_json1_1Instance = function (output, context) { return { __type: "Instance", BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, }; }; var deserializeAws_json1_1Instances = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Instance(entry, context); }); }; var deserializeAws_json1_1InternalServerError = function (output, context) { return { __type: "InternalServerError", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1InvalidImageFormatException = function (output, context) { return { __type: "InvalidImageFormatException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1InvalidPaginationTokenException = function (output, context) { return { __type: "InvalidPaginationTokenException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1InvalidParameterException = function (output, context) { return { __type: "InvalidParameterException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1InvalidS3ObjectException = function (output, context) { return { __type: "InvalidS3ObjectException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1KinesisDataStream = function (output, context) { return { __type: "KinesisDataStream", Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined, }; }; var deserializeAws_json1_1KinesisVideoStream = function (output, context) { return { __type: "KinesisVideoStream", Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined, }; }; var deserializeAws_json1_1Label = function (output, context) { return { __type: "Label", Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Instances: output.Instances !== undefined && output.Instances !== null ? deserializeAws_json1_1Instances(output.Instances, context) : undefined, Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, Parents: output.Parents !== undefined && output.Parents !== null ? deserializeAws_json1_1Parents(output.Parents, context) : undefined, }; }; var deserializeAws_json1_1LabelDetection = function (output, context) { return { __type: "LabelDetection", Label: output.Label !== undefined && output.Label !== null ? deserializeAws_json1_1Label(output.Label, context) : undefined, Timestamp: output.Timestamp !== undefined && output.Timestamp !== null ? output.Timestamp : undefined, }; }; var deserializeAws_json1_1LabelDetections = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1LabelDetection(entry, context); }); }; var deserializeAws_json1_1Labels = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Label(entry, context); }); }; var deserializeAws_json1_1Landmark = function (output, context) { return { __type: "Landmark", Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, X: output.X !== undefined && output.X !== null ? output.X : undefined, Y: output.Y !== undefined && output.Y !== null ? output.Y : undefined, }; }; var deserializeAws_json1_1Landmarks = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Landmark(entry, context); }); }; var deserializeAws_json1_1LimitExceededException = function (output, context) { return { __type: "LimitExceededException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1ListCollectionsResponse = function (output, context) { return { __type: "ListCollectionsResponse", CollectionIds: output.CollectionIds !== undefined && output.CollectionIds !== null ? deserializeAws_json1_1CollectionIdList(output.CollectionIds, context) : undefined, FaceModelVersions: output.FaceModelVersions !== undefined && output.FaceModelVersions !== null ? deserializeAws_json1_1FaceModelVersionList(output.FaceModelVersions, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_json1_1ListFacesResponse = function (output, context) { return { __type: "ListFacesResponse", FaceModelVersion: output.FaceModelVersion !== undefined && output.FaceModelVersion !== null ? output.FaceModelVersion : undefined, Faces: output.Faces !== undefined && output.Faces !== null ? deserializeAws_json1_1FaceList(output.Faces, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_json1_1ListStreamProcessorsResponse = function (output, context) { return { __type: "ListStreamProcessorsResponse", NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, StreamProcessors: output.StreamProcessors !== undefined && output.StreamProcessors !== null ? deserializeAws_json1_1StreamProcessorList(output.StreamProcessors, context) : undefined, }; }; var deserializeAws_json1_1ModerationLabel = function (output, context) { return { __type: "ModerationLabel", Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, ParentName: output.ParentName !== undefined && output.ParentName !== null ? output.ParentName : undefined, }; }; var deserializeAws_json1_1ModerationLabels = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1ModerationLabel(entry, context); }); }; var deserializeAws_json1_1MouthOpen = function (output, context) { return { __type: "MouthOpen", Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined, }; }; var deserializeAws_json1_1Mustache = function (output, context) { return { __type: "Mustache", Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined, }; }; var deserializeAws_json1_1OutputConfig = function (output, context) { return { __type: "OutputConfig", S3Bucket: output.S3Bucket !== undefined && output.S3Bucket !== null ? output.S3Bucket : undefined, S3KeyPrefix: output.S3KeyPrefix !== undefined && output.S3KeyPrefix !== null ? output.S3KeyPrefix : undefined, }; }; var deserializeAws_json1_1Parent = function (output, context) { return { __type: "Parent", Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, }; }; var deserializeAws_json1_1Parents = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Parent(entry, context); }); }; var deserializeAws_json1_1PersonDetail = function (output, context) { return { __type: "PersonDetail", BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, Face: output.Face !== undefined && output.Face !== null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined, Index: output.Index !== undefined && output.Index !== null ? output.Index : undefined, }; }; var deserializeAws_json1_1PersonDetection = function (output, context) { return { __type: "PersonDetection", Person: output.Person !== undefined && output.Person !== null ? deserializeAws_json1_1PersonDetail(output.Person, context) : undefined, Timestamp: output.Timestamp !== undefined && output.Timestamp !== null ? output.Timestamp : undefined, }; }; var deserializeAws_json1_1PersonDetections = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1PersonDetection(entry, context); }); }; var deserializeAws_json1_1PersonMatch = function (output, context) { return { __type: "PersonMatch", FaceMatches: output.FaceMatches !== undefined && output.FaceMatches !== null ? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context) : undefined, Person: output.Person !== undefined && output.Person !== null ? deserializeAws_json1_1PersonDetail(output.Person, context) : undefined, Timestamp: output.Timestamp !== undefined && output.Timestamp !== null ? output.Timestamp : undefined, }; }; var deserializeAws_json1_1PersonMatches = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1PersonMatch(entry, context); }); }; var deserializeAws_json1_1Point = function (output, context) { return { __type: "Point", X: output.X !== undefined && output.X !== null ? output.X : undefined, Y: output.Y !== undefined && output.Y !== null ? output.Y : undefined, }; }; var deserializeAws_json1_1Polygon = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Point(entry, context); }); }; var deserializeAws_json1_1Pose = function (output, context) { return { __type: "Pose", Pitch: output.Pitch !== undefined && output.Pitch !== null ? output.Pitch : undefined, Roll: output.Roll !== undefined && output.Roll !== null ? output.Roll : undefined, Yaw: output.Yaw !== undefined && output.Yaw !== null ? output.Yaw : undefined, }; }; var deserializeAws_json1_1ProjectDescription = function (output, context) { return { __type: "ProjectDescription", CreationTimestamp: output.CreationTimestamp !== undefined && output.CreationTimestamp !== null ? new Date(Math.round(output.CreationTimestamp * 1000)) : undefined, ProjectArn: output.ProjectArn !== undefined && output.ProjectArn !== null ? output.ProjectArn : undefined, Status: output.Status !== undefined && output.Status !== null ? output.Status : undefined, }; }; var deserializeAws_json1_1ProjectDescriptions = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1ProjectDescription(entry, context); }); }; var deserializeAws_json1_1ProjectVersionDescription = function (output, context) { return { __type: "ProjectVersionDescription", BillableTrainingTimeInSeconds: output.BillableTrainingTimeInSeconds !== undefined && output.BillableTrainingTimeInSeconds !== null ? output.BillableTrainingTimeInSeconds : undefined, CreationTimestamp: output.CreationTimestamp !== undefined && output.CreationTimestamp !== null ? new Date(Math.round(output.CreationTimestamp * 1000)) : undefined, EvaluationResult: output.EvaluationResult !== undefined && output.EvaluationResult !== null ? deserializeAws_json1_1EvaluationResult(output.EvaluationResult, context) : undefined, MinInferenceUnits: output.MinInferenceUnits !== undefined && output.MinInferenceUnits !== null ? output.MinInferenceUnits : undefined, OutputConfig: output.OutputConfig !== undefined && output.OutputConfig !== null ? deserializeAws_json1_1OutputConfig(output.OutputConfig, context) : undefined, ProjectVersionArn: output.ProjectVersionArn !== undefined && output.ProjectVersionArn !== null ? output.ProjectVersionArn : undefined, Status: output.Status !== undefined && output.Status !== null ? output.Status : undefined, StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined, TestingDataResult: output.TestingDataResult !== undefined && output.TestingDataResult !== null ? deserializeAws_json1_1TestingDataResult(output.TestingDataResult, context) : undefined, TrainingDataResult: output.TrainingDataResult !== undefined && output.TrainingDataResult !== null ? deserializeAws_json1_1TrainingDataResult(output.TrainingDataResult, context) : undefined, TrainingEndTimestamp: output.TrainingEndTimestamp !== undefined && output.TrainingEndTimestamp !== null ? new Date(Math.round(output.TrainingEndTimestamp * 1000)) : undefined, }; }; var deserializeAws_json1_1ProjectVersionDescriptions = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1ProjectVersionDescription(entry, context); }); }; var deserializeAws_json1_1ProvisionedThroughputExceededException = function (output, context) { return { __type: "ProvisionedThroughputExceededException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1Reasons = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1RecognizeCelebritiesResponse = function (output, context) { return { __type: "RecognizeCelebritiesResponse", CelebrityFaces: output.CelebrityFaces !== undefined && output.CelebrityFaces !== null ? deserializeAws_json1_1CelebrityList(output.CelebrityFaces, context) : undefined, OrientationCorrection: output.OrientationCorrection !== undefined && output.OrientationCorrection !== null ? output.OrientationCorrection : undefined, UnrecognizedFaces: output.UnrecognizedFaces !== undefined && output.UnrecognizedFaces !== null ? deserializeAws_json1_1ComparedFaceList(output.UnrecognizedFaces, context) : undefined, }; }; var deserializeAws_json1_1ResourceAlreadyExistsException = function (output, context) { return { __type: "ResourceAlreadyExistsException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1ResourceInUseException = function (output, context) { return { __type: "ResourceInUseException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1ResourceNotFoundException = function (output, context) { return { __type: "ResourceNotFoundException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1ResourceNotReadyException = function (output, context) { return { __type: "ResourceNotReadyException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1S3Object = function (output, context) { return { __type: "S3Object", Bucket: output.Bucket !== undefined && output.Bucket !== null ? output.Bucket : undefined, Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined, }; }; var deserializeAws_json1_1SearchFacesByImageResponse = function (output, context) { return { __type: "SearchFacesByImageResponse", FaceMatches: output.FaceMatches !== undefined && output.FaceMatches !== null ? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context) : undefined, FaceModelVersion: output.FaceModelVersion !== undefined && output.FaceModelVersion !== null ? output.FaceModelVersion : undefined, SearchedFaceBoundingBox: output.SearchedFaceBoundingBox !== undefined && output.SearchedFaceBoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.SearchedFaceBoundingBox, context) : undefined, SearchedFaceConfidence: output.SearchedFaceConfidence !== undefined && output.SearchedFaceConfidence !== null ? output.SearchedFaceConfidence : undefined, }; }; var deserializeAws_json1_1SearchFacesResponse = function (output, context) { return { __type: "SearchFacesResponse", FaceMatches: output.FaceMatches !== undefined && output.FaceMatches !== null ? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context) : undefined, FaceModelVersion: output.FaceModelVersion !== undefined && output.FaceModelVersion !== null ? output.FaceModelVersion : undefined, SearchedFaceId: output.SearchedFaceId !== undefined && output.SearchedFaceId !== null ? output.SearchedFaceId : undefined, }; }; var deserializeAws_json1_1SegmentDetection = function (output, context) { return { __type: "SegmentDetection", DurationMillis: output.DurationMillis !== undefined && output.DurationMillis !== null ? output.DurationMillis : undefined, DurationSMPTE: output.DurationSMPTE !== undefined && output.DurationSMPTE !== null ? output.DurationSMPTE : undefined, EndTimecodeSMPTE: output.EndTimecodeSMPTE !== undefined && output.EndTimecodeSMPTE !== null ? output.EndTimecodeSMPTE : undefined, EndTimestampMillis: output.EndTimestampMillis !== undefined && output.EndTimestampMillis !== null ? output.EndTimestampMillis : undefined, ShotSegment: output.ShotSegment !== undefined && output.ShotSegment !== null ? deserializeAws_json1_1ShotSegment(output.ShotSegment, context) : undefined, StartTimecodeSMPTE: output.StartTimecodeSMPTE !== undefined && output.StartTimecodeSMPTE !== null ? output.StartTimecodeSMPTE : undefined, StartTimestampMillis: output.StartTimestampMillis !== undefined && output.StartTimestampMillis !== null ? output.StartTimestampMillis : undefined, TechnicalCueSegment: output.TechnicalCueSegment !== undefined && output.TechnicalCueSegment !== null ? deserializeAws_json1_1TechnicalCueSegment(output.TechnicalCueSegment, context) : undefined, Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, }; }; var deserializeAws_json1_1SegmentDetections = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1SegmentDetection(entry, context); }); }; var deserializeAws_json1_1SegmentTypeInfo = function (output, context) { return { __type: "SegmentTypeInfo", ModelVersion: output.ModelVersion !== undefined && output.ModelVersion !== null ? output.ModelVersion : undefined, Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, }; }; var deserializeAws_json1_1SegmentTypesInfo = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1SegmentTypeInfo(entry, context); }); }; var deserializeAws_json1_1ShotSegment = function (output, context) { return { __type: "ShotSegment", Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Index: output.Index !== undefined && output.Index !== null ? output.Index : undefined, }; }; var deserializeAws_json1_1Smile = function (output, context) { return { __type: "Smile", Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined, }; }; var deserializeAws_json1_1StartCelebrityRecognitionResponse = function (output, context) { return { __type: "StartCelebrityRecognitionResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, }; }; var deserializeAws_json1_1StartContentModerationResponse = function (output, context) { return { __type: "StartContentModerationResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, }; }; var deserializeAws_json1_1StartFaceDetectionResponse = function (output, context) { return { __type: "StartFaceDetectionResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, }; }; var deserializeAws_json1_1StartFaceSearchResponse = function (output, context) { return { __type: "StartFaceSearchResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, }; }; var deserializeAws_json1_1StartLabelDetectionResponse = function (output, context) { return { __type: "StartLabelDetectionResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, }; }; var deserializeAws_json1_1StartPersonTrackingResponse = function (output, context) { return { __type: "StartPersonTrackingResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, }; }; var deserializeAws_json1_1StartProjectVersionResponse = function (output, context) { return { __type: "StartProjectVersionResponse", Status: output.Status !== undefined && output.Status !== null ? output.Status : undefined, }; }; var deserializeAws_json1_1StartSegmentDetectionResponse = function (output, context) { return { __type: "StartSegmentDetectionResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, }; }; var deserializeAws_json1_1StartStreamProcessorResponse = function (output, context) { return { __type: "StartStreamProcessorResponse", }; }; var deserializeAws_json1_1StartTextDetectionResponse = function (output, context) { return { __type: "StartTextDetectionResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, }; }; var deserializeAws_json1_1StopProjectVersionResponse = function (output, context) { return { __type: "StopProjectVersionResponse", Status: output.Status !== undefined && output.Status !== null ? output.Status : undefined, }; }; var deserializeAws_json1_1StopStreamProcessorResponse = function (output, context) { return { __type: "StopStreamProcessorResponse", }; }; var deserializeAws_json1_1StreamProcessor = function (output, context) { return { __type: "StreamProcessor", Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, Status: output.Status !== undefined && output.Status !== null ? output.Status : undefined, }; }; var deserializeAws_json1_1StreamProcessorInput = function (output, context) { return { __type: "StreamProcessorInput", KinesisVideoStream: output.KinesisVideoStream !== undefined && output.KinesisVideoStream !== null ? deserializeAws_json1_1KinesisVideoStream(output.KinesisVideoStream, context) : undefined, }; }; var deserializeAws_json1_1StreamProcessorList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1StreamProcessor(entry, context); }); }; var deserializeAws_json1_1StreamProcessorOutput = function (output, context) { return { __type: "StreamProcessorOutput", KinesisDataStream: output.KinesisDataStream !== undefined && output.KinesisDataStream !== null ? deserializeAws_json1_1KinesisDataStream(output.KinesisDataStream, context) : undefined, }; }; var deserializeAws_json1_1StreamProcessorSettings = function (output, context) { return { __type: "StreamProcessorSettings", FaceSearch: output.FaceSearch !== undefined && output.FaceSearch !== null ? deserializeAws_json1_1FaceSearchSettings(output.FaceSearch, context) : undefined, }; }; var deserializeAws_json1_1Summary = function (output, context) { return { __type: "Summary", S3Object: output.S3Object !== undefined && output.S3Object !== null ? deserializeAws_json1_1S3Object(output.S3Object, context) : undefined, }; }; var deserializeAws_json1_1Sunglasses = function (output, context) { return { __type: "Sunglasses", Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined, }; }; var deserializeAws_json1_1TechnicalCueSegment = function (output, context) { return { __type: "TechnicalCueSegment", Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, }; }; var deserializeAws_json1_1TestingData = function (output, context) { return { __type: "TestingData", Assets: output.Assets !== undefined && output.Assets !== null ? deserializeAws_json1_1Assets(output.Assets, context) : undefined, AutoCreate: output.AutoCreate !== undefined && output.AutoCreate !== null ? output.AutoCreate : undefined, }; }; var deserializeAws_json1_1TestingDataResult = function (output, context) { return { __type: "TestingDataResult", Input: output.Input !== undefined && output.Input !== null ? deserializeAws_json1_1TestingData(output.Input, context) : undefined, Output: output.Output !== undefined && output.Output !== null ? deserializeAws_json1_1TestingData(output.Output, context) : undefined, }; }; var deserializeAws_json1_1TextDetection = function (output, context) { return { __type: "TextDetection", Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, DetectedText: output.DetectedText !== undefined && output.DetectedText !== null ? output.DetectedText : undefined, Geometry: output.Geometry !== undefined && output.Geometry !== null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, ParentId: output.ParentId !== undefined && output.ParentId !== null ? output.ParentId : undefined, Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, }; }; var deserializeAws_json1_1TextDetectionList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1TextDetection(entry, context); }); }; var deserializeAws_json1_1TextDetectionResult = function (output, context) { return { __type: "TextDetectionResult", TextDetection: output.TextDetection !== undefined && output.TextDetection !== null ? deserializeAws_json1_1TextDetection(output.TextDetection, context) : undefined, Timestamp: output.Timestamp !== undefined && output.Timestamp !== null ? output.Timestamp : undefined, }; }; var deserializeAws_json1_1TextDetectionResults = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1TextDetectionResult(entry, context); }); }; var deserializeAws_json1_1ThrottlingException = function (output, context) { return { __type: "ThrottlingException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1TrainingData = function (output, context) { return { __type: "TrainingData", Assets: output.Assets !== undefined && output.Assets !== null ? deserializeAws_json1_1Assets(output.Assets, context) : undefined, }; }; var deserializeAws_json1_1TrainingDataResult = function (output, context) { return { __type: "TrainingDataResult", Input: output.Input !== undefined && output.Input !== null ? deserializeAws_json1_1TrainingData(output.Input, context) : undefined, Output: output.Output !== undefined && output.Output !== null ? deserializeAws_json1_1TrainingData(output.Output, context) : undefined, }; }; var deserializeAws_json1_1UnindexedFace = function (output, context) { return { __type: "UnindexedFace", FaceDetail: output.FaceDetail !== undefined && output.FaceDetail !== null ? deserializeAws_json1_1FaceDetail(output.FaceDetail, context) : undefined, Reasons: output.Reasons !== undefined && output.Reasons !== null ? deserializeAws_json1_1Reasons(output.Reasons, context) : undefined, }; }; var deserializeAws_json1_1UnindexedFaces = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1UnindexedFace(entry, context); }); }; var deserializeAws_json1_1Urls = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1VideoMetadata = function (output, context) { return { __type: "VideoMetadata", Codec: output.Codec !== undefined && output.Codec !== null ? output.Codec : undefined, DurationMillis: output.DurationMillis !== undefined && output.DurationMillis !== null ? output.DurationMillis : undefined, Format: output.Format !== undefined && output.Format !== null ? output.Format : undefined, FrameHeight: output.FrameHeight !== undefined && output.FrameHeight !== null ? output.FrameHeight : undefined, FrameRate: output.FrameRate !== undefined && output.FrameRate !== null ? output.FrameRate : undefined, FrameWidth: output.FrameWidth !== undefined && output.FrameWidth !== null ? output.FrameWidth : undefined, }; }; var deserializeAws_json1_1VideoMetadataList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1VideoMetadata(entry, context); }); }; var deserializeAws_json1_1VideoTooLargeException = function (output, context) { return { __type: "VideoTooLargeException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Logref: output.Logref !== undefined && output.Logref !== null ? output.Logref : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeMetadata = function (output) { return ({ httpStatusCode: output.statusCode, httpHeaders: output.headers, requestId: output.headers["x-amzn-requestid"], }); }; // Collect low-level response body stream to Uint8Array. var collectBody = function (streamBody, context) { if (streamBody === void 0) { streamBody = new Uint8Array(); } if (streamBody instanceof Uint8Array) { return Promise.resolve(streamBody); } return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); }; // Encode Uint8Array data into string with utf-8. var collectBodyString = function (streamBody, context) { return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); }); }; var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var _a, hostname, _b, protocol, port, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; contents = { protocol: protocol, hostname: hostname, port: port, method: "POST", path: path, headers: headers, }; if (resolvedHostname !== undefined) { contents.hostname = resolvedHostname; } if (body !== undefined) { contents.body = body; } return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"](contents)]; } }); }); }; var parseBody = function (streamBody, context) { return collectBodyString(streamBody, context).then(function (encoded) { if (encoded.length) { return JSON.parse(encoded); } return {}; }); }; //# sourceMappingURL=Aws_json1_1.js.map /***/ }), /***/ "Tujd": /*!******************************************************************************!*\ !*** ./node_modules/@aws-amplify/analytics/lib-esm/Providers/EventBuffer.js ***! \******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/client-pinpoint */ "NTFb"); /* harmony import */ var _utils_AppUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/AppUtils */ "3wNH"); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (undefined && undefined.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('EventsBuffer'); var RETRYABLE_CODES = [429, 500]; var ACCEPTED_CODES = [202]; var EventsBuffer = /** @class */ (function () { function EventsBuffer(client, config) { this._pause = false; this._flush = false; logger.debug('Instantiating buffer with config:', config); this._buffer = []; this._client = client; this._config = config; this._sendBatch = this._sendBatch.bind(this); this._startLoop(); } EventsBuffer.prototype.push = function (event) { var _a; if (this._buffer > this._config.bufferSize) { logger.debug('Exceeded analytics events buffer size'); return event.handlers.reject(new Error('Exceeded the size of analytics events buffer')); } var eventId = event.params.event.eventId; var bufferElement = (_a = {}, _a[eventId] = event, _a); this._buffer.push(bufferElement); }; EventsBuffer.prototype.pause = function () { this._pause = true; }; EventsBuffer.prototype.resume = function () { this._pause = false; }; EventsBuffer.prototype.updateClient = function (client) { this._client = client; }; EventsBuffer.prototype.flush = function () { this._flush = true; }; EventsBuffer.prototype._startLoop = function () { if (this._interval) { clearInterval(this._interval); } var flushInterval = this._config.flushInterval; this._interval = setInterval(this._sendBatch, flushInterval); }; EventsBuffer.prototype._sendBatch = function () { var bufferLength = this._buffer.length; if (this._flush && !bufferLength) { clearInterval(this._interval); } // Do not send the batch of events if // the Buffer is paused or is empty or the App is not in the foreground // Apps should be in the foreground since // the OS may restrict access to the network in the background if (this._pause || !bufferLength || !Object(_utils_AppUtils__WEBPACK_IMPORTED_MODULE_2__["isAppInForeground"])()) { return; } var flushSize = this._config.flushSize; var batchSize = Math.min(flushSize, bufferLength); var bufferSubset = this._buffer.splice(0, batchSize); this._putEvents(bufferSubset); }; EventsBuffer.prototype._putEvents = function (buffer) { return __awaiter(this, void 0, void 0, function () { var eventMap, batchEventParams, command, data, err_1; return __generator(this, function (_a) { switch (_a.label) { case 0: eventMap = this._bufferToMap(buffer); batchEventParams = this._generateBatchEventParams(eventMap); _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); command = new _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__["PutEventsCommand"](batchEventParams); return [4 /*yield*/, this._client.send(command)]; case 2: data = _a.sent(); this._processPutEventsSuccessResponse(data, eventMap); return [3 /*break*/, 4]; case 3: err_1 = _a.sent(); return [2 /*return*/, this._handlePutEventsFailure(err_1, eventMap)]; case 4: return [2 /*return*/]; } }); }); }; EventsBuffer.prototype._generateBatchEventParams = function (eventMap) { var batchEventParams = { ApplicationId: '', EventsRequest: { BatchItem: {}, }, }; Object.values(eventMap).forEach(function (item) { var params = item.params; var event = params.event, timestamp = params.timestamp, config = params.config; var name = event.name, attributes = event.attributes, metrics = event.metrics, eventId = event.eventId, session = event.session; var appId = config.appId, endpointId = config.endpointId; var batchItem = batchEventParams.EventsRequest.BatchItem; batchEventParams.ApplicationId = batchEventParams.ApplicationId || appId; if (!batchItem[endpointId]) { batchItem[endpointId] = { Endpoint: {}, Events: {}, }; } batchItem[endpointId].Events[eventId] = { EventType: name, Timestamp: new Date(timestamp).toISOString(), Attributes: attributes, Metrics: metrics, Session: session, }; }); return batchEventParams; }; EventsBuffer.prototype._handlePutEventsFailure = function (err, eventMap) { logger.debug('_putEvents Failed: ', err); var statusCode = err.$metadata && err.$metadata.httpStatusCode; if (RETRYABLE_CODES.includes(statusCode)) { var retryableEvents = Object.values(eventMap); this._retry(retryableEvents); return; } }; EventsBuffer.prototype._processPutEventsSuccessResponse = function (data, eventMap) { var Results = data.EventsResponse.Results; var retryableEvents = []; Object.entries(Results).forEach(function (_a) { var _b = __read(_a, 2), endpointId = _b[0], endpointValues = _b[1]; var responses = endpointValues.EventsItemResponse; Object.entries(responses).forEach(function (_a) { var _b, _c; var _d = __read(_a, 2), eventId = _d[0], _e = _d[1], StatusCode = _e.StatusCode, Message = _e.Message; var eventObject = eventMap[eventId]; // manually crafting handlers response to keep API consistant var response = { EventsResponse: { Results: (_b = {}, _b[endpointId] = { EventsItemResponse: (_c = {}, _c[eventId] = { StatusCode: StatusCode, Message: Message }, _c), }, _b), }, }; if (ACCEPTED_CODES.includes(StatusCode)) { eventObject.handlers.resolve(response); return; } if (RETRYABLE_CODES.includes(StatusCode)) { retryableEvents.push(eventObject); return; } var name = eventObject.params.event.name; logger.error("event " + eventId + " : " + name + " failed with error: " + Message); return eventObject.handlers.reject(response); }); }); if (retryableEvents.length) { this._retry(retryableEvents); } }; EventsBuffer.prototype._retry = function (retryableEvents) { var _a; // retryable events that haven't reached the resendLimit var eligibleEvents = []; retryableEvents.forEach(function (event) { var _a; var params = event.params; var _b = params.event, eventId = _b.eventId, name = _b.name; if (params.resendLimit-- > 0) { logger.debug("resending event " + eventId + " : " + name + " with " + params.resendLimit + " retry attempts remaining"); eligibleEvents.push((_a = {}, _a[eventId] = event, _a)); return; } logger.debug("no retry attempts remaining for event " + eventId + " : " + name); }); // add the events to the front of the buffer (_a = this._buffer).unshift.apply(_a, __spread(eligibleEvents)); }; // convert buffer to map, i.e. { eventId1: { params, handler }, eventId2: { params, handlers } } // this allows us to easily access the handlers after receiving a batch response EventsBuffer.prototype._bufferToMap = function (buffer) { return buffer.reduce(function (acc, curVal) { var _a = __read(Object.entries(curVal), 1), _b = __read(_a[0], 2), key = _b[0], value = _b[1]; acc[key] = value; return acc; }, {}); }; return EventsBuffer; }()); /* harmony default export */ __webpack_exports__["default"] = (EventsBuffer); //# sourceMappingURL=EventBuffer.js.map /***/ }), /***/ "Tz93": /*!********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-firehose/dist/es/commands/TagDeliveryStreamCommand.js ***! \********************************************************************************************/ /*! exports provided: TagDeliveryStreamCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamCommand", function() { return TagDeliveryStreamCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "qPic"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "IZqD"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var TagDeliveryStreamCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TagDeliveryStreamCommand, _super); // Start section: command_properties // End section: command_properties function TagDeliveryStreamCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } TagDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["TagDeliveryStreamInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["TagDeliveryStreamOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; TagDeliveryStreamCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1TagDeliveryStreamCommand"])(input, context); }; TagDeliveryStreamCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1TagDeliveryStreamCommand"])(output, context); }; return TagDeliveryStreamCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=TagDeliveryStreamCommand.js.map /***/ }), /***/ "Tzvz": /*!****************************************!*\ !*** ./node_modules/graphql/index.mjs ***! \****************************************/ /*! exports provided: graphql, graphqlSync, GraphQLSchema, GraphQLScalarType, GraphQLObjectType, GraphQLInterfaceType, GraphQLUnionType, GraphQLEnumType, GraphQLInputObjectType, GraphQLList, GraphQLNonNull, GraphQLDirective, TypeKind, specifiedScalarTypes, GraphQLInt, GraphQLFloat, GraphQLString, GraphQLBoolean, GraphQLID, specifiedDirectives, GraphQLIncludeDirective, GraphQLSkipDirective, GraphQLDeprecatedDirective, DEFAULT_DEPRECATION_REASON, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, introspectionTypes, __Schema, __Directive, __DirectiveLocation, __Type, __Field, __InputValue, __EnumValue, __TypeKind, isSchema, isDirective, isType, isScalarType, isObjectType, isInterfaceType, isUnionType, isEnumType, isInputObjectType, isListType, isNonNullType, isInputType, isOutputType, isLeafType, isCompositeType, isAbstractType, isWrappingType, isNullableType, isNamedType, isRequiredArgument, isRequiredInputField, isSpecifiedScalarType, isIntrospectionType, isSpecifiedDirective, assertType, assertScalarType, assertObjectType, assertInterfaceType, assertUnionType, assertEnumType, assertInputObjectType, assertListType, assertNonNullType, assertInputType, assertOutputType, assertLeafType, assertCompositeType, assertAbstractType, assertWrappingType, assertNullableType, assertNamedType, getNullableType, getNamedType, validateSchema, assertValidSchema, Source, getLocation, parse, parseValue, parseType, print, visit, visitInParallel, visitWithTypeInfo, getVisitFn, Kind, TokenKind, DirectiveLocation, BREAK, isDefinitionNode, isExecutableDefinitionNode, isSelectionNode, isValueNode, isTypeNode, isTypeSystemDefinitionNode, isTypeDefinitionNode, isTypeSystemExtensionNode, isTypeExtensionNode, execute, defaultFieldResolver, responsePathAsArray, getDirectiveValues, subscribe, createSourceEventStream, validate, ValidationContext, specifiedRules, FieldsOnCorrectTypeRule, FragmentsOnCompositeTypesRule, KnownArgumentNamesRule, KnownDirectivesRule, KnownFragmentNamesRule, KnownTypeNamesRule, LoneAnonymousOperationRule, NoFragmentCyclesRule, NoUndefinedVariablesRule, NoUnusedFragmentsRule, NoUnusedVariablesRule, OverlappingFieldsCanBeMergedRule, PossibleFragmentSpreadsRule, ProvidedRequiredArgumentsRule, ScalarLeafsRule, SingleFieldSubscriptionsRule, UniqueArgumentNamesRule, UniqueDirectivesPerLocationRule, UniqueFragmentNamesRule, UniqueInputFieldNamesRule, UniqueOperationNamesRule, UniqueVariableNamesRule, ValuesOfCorrectTypeRule, VariablesAreInputTypesRule, VariablesInAllowedPositionRule, GraphQLError, formatError, printError, getIntrospectionQuery, introspectionQuery, getOperationAST, getOperationRootType, introspectionFromSchema, buildClientSchema, buildASTSchema, buildSchema, getDescription, extendSchema, lexicographicSortSchema, printSchema, printIntrospectionSchema, printType, typeFromAST, valueFromAST, valueFromASTUntyped, astFromValue, TypeInfo, coerceValue, isValidJSValue, isValidLiteralValue, concatAST, separateOperations, isEqualType, isTypeSubTypeOf, doTypesOverlap, assertValidName, isValidNameError, findBreakingChanges, findDangerousChanges, BreakingChangeType, DangerousChangeType, findDeprecatedUsages */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _graphql__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./graphql */ "3Aid"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "graphql", function() { return _graphql__WEBPACK_IMPORTED_MODULE_0__["graphql"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "graphqlSync", function() { return _graphql__WEBPACK_IMPORTED_MODULE_0__["graphqlSync"]; }); /* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./type */ "IGlU"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLSchema", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLSchema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLScalarType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLScalarType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLObjectType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLObjectType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLInterfaceType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLInterfaceType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLUnionType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLUnionType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLEnumType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLEnumType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLInputObjectType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLInputObjectType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLList", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLList"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLNonNull", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLNonNull"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLDirective", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLDirective"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TypeKind", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["TypeKind"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "specifiedScalarTypes", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["specifiedScalarTypes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLInt", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLInt"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLFloat", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLFloat"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLString", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLString"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLBoolean", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLBoolean"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLID", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLID"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "specifiedDirectives", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["specifiedDirectives"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLIncludeDirective", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLIncludeDirective"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLSkipDirective", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLSkipDirective"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLDeprecatedDirective", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["GraphQLDeprecatedDirective"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_DEPRECATION_REASON", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_DEPRECATION_REASON"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SchemaMetaFieldDef", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["SchemaMetaFieldDef"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TypeMetaFieldDef", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["TypeMetaFieldDef"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TypeNameMetaFieldDef", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["TypeNameMetaFieldDef"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "introspectionTypes", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["introspectionTypes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__Schema", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["__Schema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__Directive", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["__Directive"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__DirectiveLocation", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["__DirectiveLocation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__Type", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["__Type"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__Field", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["__Field"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__InputValue", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["__InputValue"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__EnumValue", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["__EnumValue"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__TypeKind", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["__TypeKind"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isSchema", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isSchema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isDirective", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isDirective"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isScalarType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isScalarType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isObjectType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isObjectType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isInterfaceType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isInterfaceType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isUnionType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isUnionType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isEnumType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isEnumType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isInputObjectType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isInputObjectType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isListType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isListType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isNonNullType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isNonNullType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isInputType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isInputType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isOutputType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isOutputType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isLeafType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isLeafType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isCompositeType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isCompositeType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isAbstractType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isAbstractType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isWrappingType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isWrappingType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isNullableType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isNullableType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isNamedType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isNamedType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isRequiredArgument", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isRequiredArgument"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isRequiredInputField", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isRequiredInputField"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isSpecifiedScalarType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isSpecifiedScalarType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isIntrospectionType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isIntrospectionType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isSpecifiedDirective", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["isSpecifiedDirective"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertScalarType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertScalarType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertObjectType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertObjectType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertInterfaceType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertInterfaceType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertUnionType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertUnionType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertEnumType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertEnumType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertInputObjectType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertInputObjectType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertListType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertListType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertNonNullType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertNonNullType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertInputType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertInputType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertOutputType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertOutputType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertLeafType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertLeafType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertCompositeType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertCompositeType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertAbstractType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertAbstractType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertWrappingType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertWrappingType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertNullableType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertNullableType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertNamedType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertNamedType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNullableType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["getNullableType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNamedType", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["getNamedType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "validateSchema", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["validateSchema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertValidSchema", function() { return _type__WEBPACK_IMPORTED_MODULE_1__["assertValidSchema"]; }); /* harmony import */ var _language__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./language */ "83Xd"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Source", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["Source"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLocation", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["getLocation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["parse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseValue", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["parseValue"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseType", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["parseType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "print", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["print"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "visit", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["visit"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "visitInParallel", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["visitInParallel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "visitWithTypeInfo", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["visitWithTypeInfo"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getVisitFn", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["getVisitFn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Kind", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["Kind"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TokenKind", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["TokenKind"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DirectiveLocation", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BREAK", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["BREAK"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isDefinitionNode", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["isDefinitionNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isExecutableDefinitionNode", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["isExecutableDefinitionNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isSelectionNode", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["isSelectionNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isValueNode", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["isValueNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isTypeNode", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["isTypeNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isTypeSystemDefinitionNode", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["isTypeSystemDefinitionNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isTypeDefinitionNode", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["isTypeDefinitionNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isTypeSystemExtensionNode", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["isTypeSystemExtensionNode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isTypeExtensionNode", function() { return _language__WEBPACK_IMPORTED_MODULE_2__["isTypeExtensionNode"]; }); /* harmony import */ var _execution__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./execution */ "Gw1A"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "execute", function() { return _execution__WEBPACK_IMPORTED_MODULE_3__["execute"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultFieldResolver", function() { return _execution__WEBPACK_IMPORTED_MODULE_3__["defaultFieldResolver"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "responsePathAsArray", function() { return _execution__WEBPACK_IMPORTED_MODULE_3__["responsePathAsArray"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDirectiveValues", function() { return _execution__WEBPACK_IMPORTED_MODULE_3__["getDirectiveValues"]; }); /* harmony import */ var _subscription__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./subscription */ "2Ir5"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "subscribe", function() { return _subscription__WEBPACK_IMPORTED_MODULE_4__["subscribe"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createSourceEventStream", function() { return _subscription__WEBPACK_IMPORTED_MODULE_4__["createSourceEventStream"]; }); /* harmony import */ var _validation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./validation */ "uj9t"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "validate", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["validate"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ValidationContext", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["ValidationContext"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "specifiedRules", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["specifiedRules"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FieldsOnCorrectTypeRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["FieldsOnCorrectTypeRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FragmentsOnCompositeTypesRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["FragmentsOnCompositeTypesRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KnownArgumentNamesRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["KnownArgumentNamesRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KnownDirectivesRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["KnownDirectivesRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KnownFragmentNamesRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["KnownFragmentNamesRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KnownTypeNamesRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["KnownTypeNamesRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoneAnonymousOperationRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["LoneAnonymousOperationRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NoFragmentCyclesRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["NoFragmentCyclesRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NoUndefinedVariablesRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["NoUndefinedVariablesRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NoUnusedFragmentsRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["NoUnusedFragmentsRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NoUnusedVariablesRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["NoUnusedVariablesRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OverlappingFieldsCanBeMergedRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["OverlappingFieldsCanBeMergedRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PossibleFragmentSpreadsRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["PossibleFragmentSpreadsRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProvidedRequiredArgumentsRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["ProvidedRequiredArgumentsRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScalarLeafsRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["ScalarLeafsRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SingleFieldSubscriptionsRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["SingleFieldSubscriptionsRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UniqueArgumentNamesRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["UniqueArgumentNamesRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UniqueDirectivesPerLocationRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["UniqueDirectivesPerLocationRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UniqueFragmentNamesRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["UniqueFragmentNamesRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UniqueInputFieldNamesRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["UniqueInputFieldNamesRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UniqueOperationNamesRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["UniqueOperationNamesRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UniqueVariableNamesRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["UniqueVariableNamesRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ValuesOfCorrectTypeRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["ValuesOfCorrectTypeRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VariablesAreInputTypesRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["VariablesAreInputTypesRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VariablesInAllowedPositionRule", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__["VariablesInAllowedPositionRule"]; }); /* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./error */ "miOx"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLError", function() { return _error__WEBPACK_IMPORTED_MODULE_6__["GraphQLError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatError", function() { return _error__WEBPACK_IMPORTED_MODULE_6__["formatError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "printError", function() { return _error__WEBPACK_IMPORTED_MODULE_6__["printError"]; }); /* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utilities */ "XPij"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getIntrospectionQuery", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["getIntrospectionQuery"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "introspectionQuery", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["introspectionQuery"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getOperationAST", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["getOperationAST"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getOperationRootType", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["getOperationRootType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "introspectionFromSchema", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["introspectionFromSchema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildClientSchema", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["buildClientSchema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildASTSchema", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["buildASTSchema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildSchema", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["buildSchema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDescription", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["getDescription"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extendSchema", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["extendSchema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lexicographicSortSchema", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["lexicographicSortSchema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "printSchema", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["printSchema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "printIntrospectionSchema", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["printIntrospectionSchema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "printType", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["printType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "typeFromAST", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["typeFromAST"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "valueFromAST", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["valueFromAST"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "valueFromASTUntyped", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["valueFromASTUntyped"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "astFromValue", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["astFromValue"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TypeInfo", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["TypeInfo"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "coerceValue", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["coerceValue"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isValidJSValue", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["isValidJSValue"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isValidLiteralValue", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["isValidLiteralValue"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "concatAST", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["concatAST"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "separateOperations", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["separateOperations"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isEqualType", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["isEqualType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isTypeSubTypeOf", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["isTypeSubTypeOf"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "doTypesOverlap", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["doTypesOverlap"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertValidName", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["assertValidName"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isValidNameError", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["isValidNameError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findBreakingChanges", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["findBreakingChanges"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findDangerousChanges", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["findDangerousChanges"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BreakingChangeType", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["BreakingChangeType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DangerousChangeType", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["DangerousChangeType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findDeprecatedUsages", function() { return _utilities__WEBPACK_IMPORTED_MODULE_7__["findDeprecatedUsages"]; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * GraphQL.js provides a reference implementation for the GraphQL specification * but is also a useful utility for operating on GraphQL files and building * sophisticated tools. * * This primary module exports a general purpose function for fulfilling all * steps of the GraphQL specification in a single operation, but also includes * utilities for every part of the GraphQL specification: * * - Parsing the GraphQL language. * - Building a GraphQL type schema. * - Validating a GraphQL request against a type schema. * - Executing a GraphQL request against a type schema. * * This also includes utility functions for operating on GraphQL types and * GraphQL documents to facilitate building tools. * * You may also import from each sub-directory directly. For example, the * following two import statements are equivalent: * * import { parse } from 'graphql'; * import { parse } from 'graphql/language'; */ // The primary entry point into fulfilling a GraphQL request. // Create and operate on GraphQL type definitions and schema. // Parse and operate on GraphQL language source files. // Execute GraphQL queries. // Validate GraphQL queries. // Create, format, and print GraphQL errors. // Utilities for operating on GraphQL type schema and parsed sources. /***/ }), /***/ "U+Wk": /*!**********************************************************************!*\ !*** ./node_modules/@aws-amplify/predictions/lib-esm/Predictions.js ***! \**********************************************************************/ /*! exports provided: PredictionsClass, Predictions */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PredictionsClass", function() { return PredictionsClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Predictions", function() { return Predictions; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (undefined && undefined.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('Predictions'); var PredictionsClass = /** @class */ (function () { /** * Initialize Predictions with AWS configurations * @param {PredictionsOptions} options - Configuration object for Predictions */ function PredictionsClass(options) { this._options = options; this._convertPluggables = []; this._identifyPluggables = []; this._interpretPluggables = []; } PredictionsClass.prototype.getModuleName = function () { return 'Predictions'; }; /** * add plugin/pluggable into Predictions category * @param {Object} pluggable - an instance of the plugin/pluggable **/ PredictionsClass.prototype.addPluggable = function (pluggable) { if (this.getPluggable(pluggable.getProviderName())) { throw new Error("Pluggable with name " + pluggable.getProviderName() + " has already been added."); } var pluggableAdded = false; if (this.implementsConvertPluggable(pluggable)) { this._convertPluggables.push(pluggable); pluggableAdded = true; } if (this.implementsIdentifyPluggable(pluggable)) { this._identifyPluggables.push(pluggable); pluggableAdded = true; } if (this.implementsInterpretPluggable(pluggable)) { this._interpretPluggables.push(pluggable); pluggableAdded = true; } if (pluggableAdded) { this.configurePluggable(pluggable); } }; /** * Get the plugin object * @param providerName - the name of the plugin */ PredictionsClass.prototype.getPluggable = function (providerName) { var pluggable = this.getAllProviders().find(function (pluggable) { return pluggable.getProviderName() === providerName; }); if (pluggable === undefined) { logger.debug('No plugin found with providerName=>', providerName); return null; } else return pluggable; }; /** * Remove the plugin object * @param providerName - the name of the plugin */ PredictionsClass.prototype.removePluggable = function (providerName) { this._convertPluggables = this._convertPluggables.filter(function (pluggable) { return pluggable.getProviderName() !== providerName; }); this._identifyPluggables = this._identifyPluggables.filter(function (pluggable) { return pluggable.getProviderName() !== providerName; }); this._interpretPluggables = this._interpretPluggables.filter(function (pluggable) { return pluggable.getProviderName() !== providerName; }); return; }; /** * To make both top level providers and category level providers work with same interface and configuration * this method duplicates Predictions config into parent level config (for top level provider) and * category level config (such as convert, identify etc) and pass both to each provider. */ PredictionsClass.prototype.configure = function (options) { var _this = this; var predictionsConfig = options ? options.predictions || options : {}; predictionsConfig = __assign(__assign({}, predictionsConfig), options); this._options = Object.assign({}, this._options, predictionsConfig); logger.debug('configure Predictions', this._options); this.getAllProviders().forEach(function (pluggable) { return _this.configurePluggable(pluggable); }); }; PredictionsClass.prototype.interpret = function (input, options) { var pluggableToExecute = this.getPluggableToExecute(this._interpretPluggables, options); return pluggableToExecute.interpret(input); }; PredictionsClass.prototype.convert = function (input, options) { var pluggableToExecute = this.getPluggableToExecute(this._convertPluggables, options); return pluggableToExecute.convert(input); }; PredictionsClass.prototype.identify = function (input, options) { var pluggableToExecute = this.getPluggableToExecute(this._identifyPluggables, options); return pluggableToExecute.identify(input); }; // tslint:disable-next-line: max-line-length PredictionsClass.prototype.getPluggableToExecute = function (pluggables, providerOptions) { // Give preference to provider name first since it is more specific to this call, even if // there is only one provider configured to error out if the name provided is not the one matched. if (providerOptions && providerOptions.providerName) { return __spread(pluggables).find(function (pluggable) { return pluggable.getProviderName() === providerOptions.providerName; }); } else { if (pluggables.length === 1) { return pluggables[0]; } else { throw new Error('More than one or no providers are configured, ' + 'Either specify a provider name or configure exactly one provider'); } } }; PredictionsClass.prototype.getAllProviders = function () { return __spread(this._convertPluggables, this._identifyPluggables, this._interpretPluggables); }; PredictionsClass.prototype.configurePluggable = function (pluggable) { var categoryConfig = Object.assign({}, this._options['predictions'], // Parent predictions config for the top level provider this._options[pluggable.getCategory().toLowerCase()] // Actual category level config ); pluggable.configure(categoryConfig); }; PredictionsClass.prototype.implementsConvertPluggable = function (obj) { return obj && typeof obj.convert === 'function'; }; PredictionsClass.prototype.implementsIdentifyPluggable = function (obj) { return obj && typeof obj.identify === 'function'; }; PredictionsClass.prototype.implementsInterpretPluggable = function (obj) { return obj && typeof obj.interpret === 'function'; }; return PredictionsClass; }()); var Predictions = new PredictionsClass({}); _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Amplify"].register(Predictions); //# sourceMappingURL=Predictions.js.map /***/ }), /***/ "U1Cx": /*!*******************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/lib-esm/sync/utils.js ***! \*******************************************************************/ /*! exports provided: TransformerMutationType, getMetadataFields, getAuthorizationRules, buildSubscriptionGraphQLOperation, buildGraphQLOperation, createMutationInstanceFromModelOperation, predicateToGraphQLCondition */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransformerMutationType", function() { return TransformerMutationType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMetadataFields", function() { return getMetadataFields; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAuthorizationRules", function() { return getAuthorizationRules; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildSubscriptionGraphQLOperation", function() { return buildSubscriptionGraphQLOperation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildGraphQLOperation", function() { return buildGraphQLOperation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createMutationInstanceFromModelOperation", function() { return createMutationInstanceFromModelOperation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "predicateToGraphQLCondition", function() { return predicateToGraphQLCondition; }); /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../types */ "+eag"); /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "wr5y"); var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var GraphQLOperationType; (function (GraphQLOperationType) { GraphQLOperationType["LIST"] = "query"; GraphQLOperationType["CREATE"] = "mutation"; GraphQLOperationType["UPDATE"] = "mutation"; GraphQLOperationType["DELETE"] = "mutation"; GraphQLOperationType["GET"] = "query"; })(GraphQLOperationType || (GraphQLOperationType = {})); var TransformerMutationType; (function (TransformerMutationType) { TransformerMutationType["CREATE"] = "Create"; TransformerMutationType["UPDATE"] = "Update"; TransformerMutationType["DELETE"] = "Delete"; TransformerMutationType["GET"] = "Get"; })(TransformerMutationType || (TransformerMutationType = {})); var dummyMetadata = { _version: undefined, _lastChangedAt: undefined, _deleted: undefined, }; var metadataFields = (Object.keys(dummyMetadata)); function getMetadataFields() { return metadataFields; } function generateSelectionSet(namespace, modelDefinition) { var scalarFields = getScalarFields(modelDefinition); var nonModelFields = getNonModelFields(namespace, modelDefinition); var scalarAndMetadataFields = Object.values(scalarFields) .map(function (_a) { var name = _a.name; return name; }) .concat(nonModelFields); if (Object(_types__WEBPACK_IMPORTED_MODULE_0__["isSchemaModel"])(modelDefinition)) { scalarAndMetadataFields = scalarAndMetadataFields .concat(getMetadataFields()) .concat(getConnectionFields(modelDefinition)); } var result = scalarAndMetadataFields.join('\n'); return result; } function getScalarFields(modelDefinition) { var fields = modelDefinition.fields; var result = Object.values(fields) .filter(function (field) { if (Object(_types__WEBPACK_IMPORTED_MODULE_0__["isGraphQLScalarType"])(field.type) || Object(_types__WEBPACK_IMPORTED_MODULE_0__["isEnumFieldType"])(field.type)) { return true; } return false; }) .reduce(function (acc, field) { acc[field.name] = field; return acc; }, {}); return result; } function getConnectionFields(modelDefinition) { var result = []; Object.values(modelDefinition.fields) .filter(function (_a) { var association = _a.association; return association && Object.keys(association).length; }) .forEach(function (_a) { var name = _a.name, association = _a.association; var connectionType = association.connectionType; switch (connectionType) { case 'HAS_ONE': case 'HAS_MANY': // Intentionally blank break; case 'BELONGS_TO': if (Object(_types__WEBPACK_IMPORTED_MODULE_0__["isTargetNameAssociation"])(association)) { result.push(name + " { id _deleted }"); } break; default: Object(_util__WEBPACK_IMPORTED_MODULE_1__["exhaustiveCheck"])(connectionType); } }); return result; } function getNonModelFields(namespace, modelDefinition) { var result = []; Object.values(modelDefinition.fields).forEach(function (_a) { var name = _a.name, type = _a.type; if (Object(_types__WEBPACK_IMPORTED_MODULE_0__["isNonModelFieldType"])(type)) { var typeDefinition = namespace.nonModels[type.nonModel]; var scalarFields = Object.values(getScalarFields(typeDefinition)).map(function (_a) { var name = _a.name; return name; }); var nested_1 = []; Object.values(typeDefinition.fields).forEach(function (field) { var type = field.type, name = field.name; if (Object(_types__WEBPACK_IMPORTED_MODULE_0__["isNonModelFieldType"])(type)) { var typeDefinition_1 = namespace.nonModels[type.nonModel]; nested_1.push(name + " { " + generateSelectionSet(namespace, typeDefinition_1) + " }"); } }); result.push(name + " { " + scalarFields.join(' ') + " " + nested_1.join(' ') + " }"); } }); return result; } function getAuthorizationRules(modelDefinition) { // Searching for owner authorization on attributes var authConfig = [] .concat(modelDefinition.attributes) .find(function (attr) { return attr && attr.type === 'auth'; }); var _a = (authConfig || {}).properties, _b = (_a === void 0 ? {} : _a).rules, rules = _b === void 0 ? [] : _b; var resultRules = []; // Multiple rules can be declared for allow: owner rules.forEach(function (rule) { // setting defaults for backwards compatibility with old cli var _a = rule.identityClaim, identityClaim = _a === void 0 ? 'cognito:username' : _a, _b = rule.ownerField, ownerField = _b === void 0 ? 'owner' : _b, _c = rule.operations, operations = _c === void 0 ? ['create', 'update', 'delete', 'read'] : _c, _d = rule.provider, provider = _d === void 0 ? 'userPools' : _d, _e = rule.groupClaim, groupClaim = _e === void 0 ? 'cognito:groups' : _e, _f = rule.allow, authStrategy = _f === void 0 ? 'iam' : _f, _g = rule.groups, groups = _g === void 0 ? [] : _g; var isReadAuthorized = operations.includes('read'); var isOwnerAuth = authStrategy === 'owner'; if (!isReadAuthorized && !isOwnerAuth) { return; } var authRule = { identityClaim: identityClaim, ownerField: ownerField, provider: provider, groupClaim: groupClaim, authStrategy: authStrategy, groups: groups, areSubscriptionsPublic: false, }; if (isOwnerAuth) { // look for the subscription level override // only pay attention to the public level var modelConfig = [] .concat(modelDefinition.attributes) .find(function (attr) { return attr && attr.type === 'model'; }); // find the subscriptions level. ON is default var _h = (modelConfig || {}).properties, _j = (_h === void 0 ? {} : _h).subscriptions, _k = (_j === void 0 ? {} : _j).level, level = _k === void 0 ? 'on' : _k; // treat subscriptions as public for owner auth with unprotected reads // when `read` is omitted from `operations` authRule.areSubscriptionsPublic = !operations.includes('read') || level === 'public'; } if (isOwnerAuth) { // owner rules has least priority resultRules.push(authRule); return; } resultRules.unshift(authRule); }); return resultRules; } function buildSubscriptionGraphQLOperation(namespace, modelDefinition, transformerMutationType, isOwnerAuthorization, ownerField) { var selectionSet = generateSelectionSet(namespace, modelDefinition); var typeName = modelDefinition.name, pluralTypeName = modelDefinition.pluralName; var opName = "on" + transformerMutationType + typeName; var docArgs = ''; var opArgs = ''; if (isOwnerAuthorization) { docArgs = "($" + ownerField + ": String!)"; opArgs = "(" + ownerField + ": $" + ownerField + ")"; } return [ transformerMutationType, opName, "subscription operation" + docArgs + "{\n\t\t\t" + opName + opArgs + "{\n\t\t\t\t" + selectionSet + "\n\t\t\t}\n\t\t}", ]; } function buildGraphQLOperation(namespace, modelDefinition, graphQLOpType) { var selectionSet = generateSelectionSet(namespace, modelDefinition); var typeName = modelDefinition.name, pluralTypeName = modelDefinition.pluralName; var operation; var documentArgs = ' '; var operationArgs = ' '; var transformerMutationType; switch (graphQLOpType) { case 'LIST': operation = "sync" + pluralTypeName; documentArgs = "($limit: Int, $nextToken: String, $lastSync: AWSTimestamp)"; operationArgs = '(limit: $limit, nextToken: $nextToken, lastSync: $lastSync)'; selectionSet = "items {\n\t\t\t\t\t\t\t" + selectionSet + "\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnextToken\n\t\t\t\t\t\tstartedAt"; break; case 'CREATE': operation = "create" + typeName; documentArgs = "($input: Create" + typeName + "Input!)"; operationArgs = '(input: $input)'; transformerMutationType = TransformerMutationType.CREATE; break; case 'UPDATE': operation = "update" + typeName; documentArgs = "($input: Update" + typeName + "Input!, $condition: Model" + typeName + "ConditionInput)"; operationArgs = '(input: $input, condition: $condition)'; transformerMutationType = TransformerMutationType.UPDATE; break; case 'DELETE': operation = "delete" + typeName; documentArgs = "($input: Delete" + typeName + "Input!, $condition: Model" + typeName + "ConditionInput)"; operationArgs = '(input: $input, condition: $condition)'; transformerMutationType = TransformerMutationType.DELETE; break; case 'GET': operation = "get" + typeName; documentArgs = "($id: ID!)"; operationArgs = '(id: $id)'; transformerMutationType = TransformerMutationType.GET; break; default: Object(_util__WEBPACK_IMPORTED_MODULE_1__["exhaustiveCheck"])(graphQLOpType); } return [ [ transformerMutationType, operation, GraphQLOperationType[graphQLOpType] + " operation" + documentArgs + "{\n\t\t" + operation + operationArgs + "{\n\t\t\t" + selectionSet + "\n\t\t}\n\t}", ], ]; } function createMutationInstanceFromModelOperation(relationships, modelDefinition, opType, model, element, condition, MutationEventConstructor, modelInstanceCreator, id) { var operation; switch (opType) { case _types__WEBPACK_IMPORTED_MODULE_0__["OpType"].INSERT: operation = TransformerMutationType.CREATE; break; case _types__WEBPACK_IMPORTED_MODULE_0__["OpType"].UPDATE: operation = TransformerMutationType.UPDATE; break; case _types__WEBPACK_IMPORTED_MODULE_0__["OpType"].DELETE: operation = TransformerMutationType.DELETE; break; default: Object(_util__WEBPACK_IMPORTED_MODULE_1__["exhaustiveCheck"])(opType); } var mutationEvent = modelInstanceCreator(MutationEventConstructor, __assign(__assign({}, (id ? { id: id } : {})), { data: JSON.stringify(element), modelId: element.id, model: model.name, operation: operation, condition: JSON.stringify(condition) })); return mutationEvent; } function predicateToGraphQLCondition(predicate) { var result = {}; if (!predicate || !Array.isArray(predicate.predicates)) { return result; } predicate.predicates.forEach(function (p) { var _a; if (Object(_types__WEBPACK_IMPORTED_MODULE_0__["isPredicateObj"])(p)) { var field = p.field, operator = p.operator, operand = p.operand; if (field === 'id') { return; } result[field] = (_a = {}, _a[operator] = operand, _a); } else { result[p.type] = predicateToGraphQLCondition(p); } }); return result; } //# sourceMappingURL=utils.js.map /***/ }), /***/ "U4FY": /*!***********************************************************************!*\ !*** ./node_modules/graphql/validation/rules/UniqueVariableNames.mjs ***! \***********************************************************************/ /*! exports provided: duplicateVariableMessage, UniqueVariableNames */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "duplicateVariableMessage", function() { return duplicateVariableMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UniqueVariableNames", function() { return UniqueVariableNames; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function duplicateVariableMessage(variableName) { return "There can be only one variable named \"".concat(variableName, "\"."); } /** * Unique variable names * * A GraphQL operation is only valid if all its variables are uniquely named. */ function UniqueVariableNames(context) { var knownVariableNames = Object.create(null); return { OperationDefinition: function OperationDefinition() { knownVariableNames = Object.create(null); }, VariableDefinition: function VariableDefinition(node) { var variableName = node.variable.name.value; if (knownVariableNames[variableName]) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](duplicateVariableMessage(variableName), [knownVariableNames[variableName], node.variable.name])); } else { knownVariableNames[variableName] = node.variable.name; } } }; } /***/ }), /***/ "UF2x": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/DescribeIdentityPoolCommand.js ***! \*******************************************************************************************************/ /*! exports provided: DescribeIdentityPoolCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeIdentityPoolCommand", function() { return DescribeIdentityPoolCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DescribeIdentityPoolCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeIdentityPoolCommand, _super); // Start section: command_properties // End section: command_properties function DescribeIdentityPoolCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DescribeIdentityPoolCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__["getAwsAuthPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeIdentityPoolInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["IdentityPool"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DescribeIdentityPoolCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeIdentityPoolCommand"])(input, context); }; DescribeIdentityPoolCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeIdentityPoolCommand"])(output, context); }; return DescribeIdentityPoolCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=DescribeIdentityPoolCommand.js.map /***/ }), /***/ "UFnQ": /*!*******************************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/ServiceWorker/ServiceWorker.js ***! \*******************************************************************************/ /*! exports provided: ServiceWorkerClass, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServiceWorkerClass", function() { return ServiceWorkerClass; }); /* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Logger */ "RCJS"); /* harmony import */ var _JS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../JS */ "HzrR"); /* harmony import */ var _Amplify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Amplify */ "fQM2"); /** * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ /** * Provides a means to registering a service worker in the browser * and communicating with it via postMessage events. * https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/ * * postMessage events are currently not supported in all browsers. See: * https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API * * At the minmum this class will register the service worker and listen * and attempt to dispatch messages on state change and record analytics * events based on the service worker lifecycle. */ var ServiceWorkerClass = /** @class */ (function () { function ServiceWorkerClass() { // The AWS Amplify logger this._logger = new _Logger__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('ServiceWorker'); } Object.defineProperty(ServiceWorkerClass.prototype, "serviceWorker", { /** * Get the currently active service worker */ get: function () { return this._serviceWorker; }, enumerable: true, configurable: true }); /** * Register the service-worker.js file in the browser * Make sure the service-worker.js is part of the build * for example with Angular, modify the angular-cli.json file * and add to "assets" array "service-worker.js" * @param {string} - (optional) Service worker file. Defaults to "/service-worker.js" * @param {string} - (optional) The service worker scope. Defaults to "/" * - API Doc: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/register * @returns {Promise} * - resolve(ServiceWorkerRegistration) * - reject(Error) **/ ServiceWorkerClass.prototype.register = function (filePath, scope) { var _this = this; if (filePath === void 0) { filePath = '/service-worker.js'; } if (scope === void 0) { scope = '/'; } this._logger.debug("registering " + filePath); this._logger.debug("registering service worker with scope " + scope); return new Promise(function (resolve, reject) { if (navigator && 'serviceWorker' in navigator) { navigator.serviceWorker .register(filePath, { scope: scope, }) .then(function (registration) { if (registration.installing) { _this._serviceWorker = registration.installing; } else if (registration.waiting) { _this._serviceWorker = registration.waiting; } else if (registration.active) { _this._serviceWorker = registration.active; } _this._registration = registration; _this._setupListeners(); _this._logger.debug("Service Worker Registration Success: " + registration); return resolve(registration); }) .catch(function (error) { _this._logger.debug("Service Worker Registration Failed " + error); return reject(error); }); } else { return reject(new Error('Service Worker not available')); } }); }; /** * Enable web push notifications. If not subscribed, a new subscription will * be created and registered. * Test Push Server: https://web-push-codelab.glitch.me/ * Push Server Libraries: https://github.com/web-push-libs/ * API Doc: https://developers.google.com/web/fundamentals/codelabs/push-notifications/ * @param publicKey * @returns {Promise} * - resolve(PushSubscription) * - reject(Error) */ ServiceWorkerClass.prototype.enablePush = function (publicKey) { var _this = this; if (!this._registration) throw new Error('Service Worker not registered'); this._publicKey = publicKey; return new Promise(function (resolve, reject) { if (Object(_JS__WEBPACK_IMPORTED_MODULE_1__["browserOrNode"])().isBrowser) { _this._registration.pushManager.getSubscription().then(function (subscription) { if (subscription) { _this._subscription = subscription; _this._logger.debug("User is subscribed to push: " + JSON.stringify(subscription)); resolve(subscription); } else { _this._logger.debug("User is NOT subscribed to push"); return _this._registration.pushManager .subscribe({ userVisibleOnly: true, applicationServerKey: _this._urlB64ToUint8Array(publicKey), }) .then(function (subscription) { _this._subscription = subscription; _this._logger.debug("User subscribed: " + JSON.stringify(subscription)); resolve(subscription); }) .catch(function (error) { _this._logger.error(error); }); } }); } else { return reject(new Error('Service Worker not available')); } }); }; /** * Convert a base64 encoded string to a Uint8 array for the push server key * @param base64String */ ServiceWorkerClass.prototype._urlB64ToUint8Array = function (base64String) { var padding = '='.repeat((4 - (base64String.length % 4)) % 4); var base64 = (base64String + padding) .replace(/\-/g, '+') .replace(/_/g, '/'); var rawData = window.atob(base64); var outputArray = new Uint8Array(rawData.length); for (var i = 0; i < rawData.length; ++i) { outputArray[i] = rawData.charCodeAt(i); } return outputArray; }; /** * Send a message to the service worker. The service worker needs * to implement `self.addEventListener('message') to handle the * message. This ***currently*** does not work in Safari or IE. * @param {object | string} - An arbitrary JSON object or string message to send to the service worker * - see: https://developer.mozilla.org/en-US/docs/Web/API/Transferable * @returns {Promise} **/ ServiceWorkerClass.prototype.send = function (message) { if (this._serviceWorker) { this._serviceWorker.postMessage(typeof message === 'object' ? JSON.stringify(message) : message); } }; /** * Listen for service worker state change and message events * https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/state **/ ServiceWorkerClass.prototype._setupListeners = function () { var _this = this; this._serviceWorker.addEventListener('statechange', function (event) { var currentState = _this._serviceWorker.state; _this._logger.debug("ServiceWorker statechange: " + currentState); if (_Amplify__WEBPACK_IMPORTED_MODULE_2__["Amplify"].Analytics && typeof _Amplify__WEBPACK_IMPORTED_MODULE_2__["Amplify"].Analytics.record === 'function') { _Amplify__WEBPACK_IMPORTED_MODULE_2__["Amplify"].Analytics.record({ name: 'ServiceWorker', attributes: { state: currentState, }, }); } }); this._serviceWorker.addEventListener('message', function (event) { _this._logger.debug("ServiceWorker message event: " + event); }); }; return ServiceWorkerClass; }()); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (ServiceWorkerClass); //# sourceMappingURL=ServiceWorker.js.map /***/ }), /***/ "UG2K": /*!******************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/RNComponents/index.js ***! \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); var JS_1 = __webpack_require__(/*! ../JS */ "eIkY"); var StorageHelper_1 = __webpack_require__(/*! ../StorageHelper */ "iaL4"); exports.Linking = {}; exports.AppState = { addEventListener: function (action, handler) { return undefined; }, }; // if not in react native, just use local storage exports.AsyncStorage = JS_1.browserOrNode().isBrowser ? new StorageHelper_1.StorageHelper().getStorage() : undefined; //# sourceMappingURL=index.js.map /***/ }), /***/ "UGaM": /*!**************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/publishBehavior.js ***! \**************************************************************************/ /*! exports provided: publishBehavior */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "publishBehavior", function() { return publishBehavior; }); /* harmony import */ var _BehaviorSubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../BehaviorSubject */ "2Vo4"); /* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./multicast */ "oB13"); function publishBehavior(value) { return (source) => Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(new _BehaviorSubject__WEBPACK_IMPORTED_MODULE_0__["BehaviorSubject"](value))(source); } //# sourceMappingURL=publishBehavior.js.map /***/ }), /***/ "UHnt": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyStateCommand.js ***! \*********************************************************************************************/ /*! exports provided: UpdateJourneyStateCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateCommand", function() { return UpdateJourneyStateCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UpdateJourneyStateCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateJourneyStateCommand, _super); // Start section: command_properties // End section: command_properties function UpdateJourneyStateCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UpdateJourneyStateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyStateRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyStateResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UpdateJourneyStateCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateJourneyStateCommand"])(input, context); }; UpdateJourneyStateCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateJourneyStateCommand"])(output, context); }; return UpdateJourneyStateCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=UpdateJourneyStateCommand.js.map /***/ }), /***/ "UHp3": /*!*********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/windowTime.js ***! \*********************************************************************/ /*! exports provided: windowTime */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "windowTime", function() { return windowTime; }); /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subject */ "XNiG"); /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scheduler/async */ "D0XW"); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); /* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/isNumeric */ "Y7HM"); /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro"); function windowTime(windowTimeSpan) { let scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"]; let windowCreationInterval = null; let maxWindowSize = Number.POSITIVE_INFINITY; if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_4__["isScheduler"])(arguments[3])) { scheduler = arguments[3]; } if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_4__["isScheduler"])(arguments[2])) { scheduler = arguments[2]; } else if (Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_3__["isNumeric"])(arguments[2])) { maxWindowSize = Number(arguments[2]); } if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_4__["isScheduler"])(arguments[1])) { scheduler = arguments[1]; } else if (Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_3__["isNumeric"])(arguments[1])) { windowCreationInterval = Number(arguments[1]); } return function windowTimeOperatorFunction(source) { return source.lift(new WindowTimeOperator(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler)); }; } class WindowTimeOperator { constructor(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler) { this.windowTimeSpan = windowTimeSpan; this.windowCreationInterval = windowCreationInterval; this.maxWindowSize = maxWindowSize; this.scheduler = scheduler; } call(subscriber, source) { return source.subscribe(new WindowTimeSubscriber(subscriber, this.windowTimeSpan, this.windowCreationInterval, this.maxWindowSize, this.scheduler)); } } class CountedSubject extends _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"] { constructor() { super(...arguments); this._numberOfNextedValues = 0; } next(value) { this._numberOfNextedValues++; super.next(value); } get numberOfNextedValues() { return this._numberOfNextedValues; } } class WindowTimeSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_2__["Subscriber"] { constructor(destination, windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler) { super(destination); this.destination = destination; this.windowTimeSpan = windowTimeSpan; this.windowCreationInterval = windowCreationInterval; this.maxWindowSize = maxWindowSize; this.scheduler = scheduler; this.windows = []; const window = this.openWindow(); if (windowCreationInterval !== null && windowCreationInterval >= 0) { const closeState = { subscriber: this, window, context: null }; const creationState = { windowTimeSpan, windowCreationInterval, subscriber: this, scheduler }; this.add(scheduler.schedule(dispatchWindowClose, windowTimeSpan, closeState)); this.add(scheduler.schedule(dispatchWindowCreation, windowCreationInterval, creationState)); } else { const timeSpanOnlyState = { subscriber: this, window, windowTimeSpan }; this.add(scheduler.schedule(dispatchWindowTimeSpanOnly, windowTimeSpan, timeSpanOnlyState)); } } _next(value) { const windows = this.windows; const len = windows.length; for (let i = 0; i < len; i++) { const window = windows[i]; if (!window.closed) { window.next(value); if (window.numberOfNextedValues >= this.maxWindowSize) { this.closeWindow(window); } } } } _error(err) { const windows = this.windows; while (windows.length > 0) { windows.shift().error(err); } this.destination.error(err); } _complete() { const windows = this.windows; while (windows.length > 0) { const window = windows.shift(); if (!window.closed) { window.complete(); } } this.destination.complete(); } openWindow() { const window = new CountedSubject(); this.windows.push(window); const destination = this.destination; destination.next(window); return window; } closeWindow(window) { window.complete(); const windows = this.windows; windows.splice(windows.indexOf(window), 1); } } function dispatchWindowTimeSpanOnly(state) { const { subscriber, windowTimeSpan, window } = state; if (window) { subscriber.closeWindow(window); } state.window = subscriber.openWindow(); this.schedule(state, windowTimeSpan); } function dispatchWindowCreation(state) { const { windowTimeSpan, subscriber, scheduler, windowCreationInterval } = state; const window = subscriber.openWindow(); const action = this; let context = { action, subscription: null }; const timeSpanState = { subscriber, window, context }; context.subscription = scheduler.schedule(dispatchWindowClose, windowTimeSpan, timeSpanState); action.add(context.subscription); action.schedule(state, windowCreationInterval); } function dispatchWindowClose(state) { const { subscriber, window, context } = state; if (context && context.action && context.subscription) { context.action.remove(context.subscription); } subscriber.closeWindow(window); } //# sourceMappingURL=windowTime.js.map /***/ }), /***/ "UKJ6": /*!**************************************************************************************!*\ !*** ./node_modules/@aws-sdk/credential-provider-cognito-identity/dist/es/Logins.js ***! \**************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Logins.js.map /***/ }), /***/ "UKow": /*!***********************************************************************!*\ !*** ./node_modules/amazon-cognito-identity-js/es/CognitoJwtToken.js ***! \***********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CognitoJwtToken; }); /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! buffer */ "r0jy"); /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_0__); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ /** @class */ var CognitoJwtToken = /*#__PURE__*/function () { /** * Constructs a new CognitoJwtToken object * @param {string=} token The JWT token. */ function CognitoJwtToken(token) { // Assign object this.jwtToken = token || ''; this.payload = this.decodePayload(); } /** * @returns {string} the record's token. */ var _proto = CognitoJwtToken.prototype; _proto.getJwtToken = function getJwtToken() { return this.jwtToken; } /** * @returns {int} the token's expiration (exp member). */ ; _proto.getExpiration = function getExpiration() { return this.payload.exp; } /** * @returns {int} the token's "issued at" (iat member). */ ; _proto.getIssuedAt = function getIssuedAt() { return this.payload.iat; } /** * @returns {object} the token's payload. */ ; _proto.decodePayload = function decodePayload() { var payload = this.jwtToken.split('.')[1]; try { return JSON.parse(buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].from(payload, 'base64').toString('utf8')); } catch (err) { return {}; } }; return CognitoJwtToken; }(); /***/ }), /***/ "UMev": /*!*****************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-retry/dist/es/index.js ***! \*****************************************************************/ /*! exports provided: retryMiddleware, retryMiddlewareOptions, getRetryPlugin, DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, StandardRetryStrategy, ENV_MAX_ATTEMPTS, CONFIG_MAX_ATTEMPTS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, ENV_RETRY_MODE, CONFIG_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, defaultDelayDecider, defaultRetryDecider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _retryMiddleware__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./retryMiddleware */ "vMpj"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "retryMiddleware", function() { return _retryMiddleware__WEBPACK_IMPORTED_MODULE_0__["retryMiddleware"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "retryMiddlewareOptions", function() { return _retryMiddleware__WEBPACK_IMPORTED_MODULE_0__["retryMiddlewareOptions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getRetryPlugin", function() { return _retryMiddleware__WEBPACK_IMPORTED_MODULE_0__["getRetryPlugin"]; }); /* harmony import */ var _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./defaultStrategy */ "GnFd"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_MAX_ATTEMPTS", function() { return _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_MAX_ATTEMPTS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_RETRY_MODE", function() { return _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_RETRY_MODE"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StandardRetryStrategy", function() { return _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__["StandardRetryStrategy"]; }); /* harmony import */ var _configurations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./configurations */ "4DXh"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ENV_MAX_ATTEMPTS", function() { return _configurations__WEBPACK_IMPORTED_MODULE_2__["ENV_MAX_ATTEMPTS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CONFIG_MAX_ATTEMPTS", function() { return _configurations__WEBPACK_IMPORTED_MODULE_2__["CONFIG_MAX_ATTEMPTS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NODE_MAX_ATTEMPT_CONFIG_OPTIONS", function() { return _configurations__WEBPACK_IMPORTED_MODULE_2__["NODE_MAX_ATTEMPT_CONFIG_OPTIONS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveRetryConfig", function() { return _configurations__WEBPACK_IMPORTED_MODULE_2__["resolveRetryConfig"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ENV_RETRY_MODE", function() { return _configurations__WEBPACK_IMPORTED_MODULE_2__["ENV_RETRY_MODE"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CONFIG_RETRY_MODE", function() { return _configurations__WEBPACK_IMPORTED_MODULE_2__["CONFIG_RETRY_MODE"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NODE_RETRY_MODE_CONFIG_OPTIONS", function() { return _configurations__WEBPACK_IMPORTED_MODULE_2__["NODE_RETRY_MODE_CONFIG_OPTIONS"]; }); /* harmony import */ var _delayDecider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./delayDecider */ "RmbW"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultDelayDecider", function() { return _delayDecider__WEBPACK_IMPORTED_MODULE_3__["defaultDelayDecider"]; }); /* harmony import */ var _retryDecider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./retryDecider */ "AgSZ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultRetryDecider", function() { return _retryDecider__WEBPACK_IMPORTED_MODULE_4__["defaultRetryDecider"]; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLGdCQUFnQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vcmV0cnlNaWRkbGV3YXJlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kZWZhdWx0U3RyYXRlZ3lcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2NvbmZpZ3VyYXRpb25zXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kZWxheURlY2lkZXJcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3JldHJ5RGVjaWRlclwiO1xuIl19 /***/ }), /***/ "UNi/": /*!*******************************************!*\ !*** ./node_modules/lodash/_baseTimes.js ***! \*******************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * The base implementation of `_.times` without support for iteratee shorthands * or max array length checks. * * @private * @param {number} n The number of times to invoke `iteratee`. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the array of results. */ function baseTimes(n, iteratee) { var index = -1, result = Array(n); while (++index < n) { result[index] = iteratee(index); } return result; } module.exports = baseTimes; /***/ }), /***/ "UOWG": /*!*************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyCommand.js ***! \*************************************************************************************/ /*! exports provided: GetJourneyCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyCommand", function() { return GetJourneyCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetJourneyCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetJourneyCommand, _super); // Start section: command_properties // End section: command_properties function GetJourneyCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetJourneyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetJourneyRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetJourneyResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetJourneyCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetJourneyCommand"])(input, context); }; GetJourneyCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetJourneyCommand"])(output, context); }; return GetJourneyCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetJourneyCommand.js.map /***/ }), /***/ "UXVc": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/TagResourceCommand.js ***! \**********************************************************************************************/ /*! exports provided: TagResourceCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagResourceCommand", function() { return TagResourceCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var TagResourceCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TagResourceCommand, _super); // Start section: command_properties // End section: command_properties function TagResourceCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__["getAwsAuthPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["TagResourceInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["TagResourceResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; TagResourceCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1TagResourceCommand"])(input, context); }; TagResourceCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1TagResourceCommand"])(output, context); }; return TagResourceCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=TagResourceCommand.js.map /***/ }), /***/ "UXbc": /*!*********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/mergeMapTo.js ***! \*********************************************************************/ /*! exports provided: mergeMapTo */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeMapTo", function() { return mergeMapTo; }); /* harmony import */ var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mergeMap */ "5+tZ"); function mergeMapTo(innerObservable, resultSelector, concurrent = Number.POSITIVE_INFINITY) { if (typeof resultSelector === 'function') { return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__["mergeMap"])(() => innerObservable, resultSelector, concurrent); } if (typeof resultSelector === 'number') { concurrent = resultSelector; } return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__["mergeMap"])(() => innerObservable, concurrent); } //# sourceMappingURL=mergeMapTo.js.map /***/ }), /***/ "UXun": /*!**********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/shareReplay.js ***! \**********************************************************************/ /*! exports provided: shareReplay */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shareReplay", function() { return shareReplay; }); /* harmony import */ var _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ReplaySubject */ "jtHE"); function shareReplay(configOrBufferSize, windowTime, scheduler) { let config; if (configOrBufferSize && typeof configOrBufferSize === 'object') { config = configOrBufferSize; } else { config = { bufferSize: configOrBufferSize, windowTime, refCount: false, scheduler }; } return (source) => source.lift(shareReplayOperator(config)); } function shareReplayOperator({ bufferSize = Number.POSITIVE_INFINITY, windowTime = Number.POSITIVE_INFINITY, refCount: useRefCount, scheduler }) { let subject; let refCount = 0; let subscription; let hasError = false; let isComplete = false; return function shareReplayOperation(source) { refCount++; let innerSub; if (!subject || hasError) { hasError = false; subject = new _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__["ReplaySubject"](bufferSize, windowTime, scheduler); innerSub = subject.subscribe(this); subscription = source.subscribe({ next(value) { subject.next(value); }, error(err) { hasError = true; subject.error(err); }, complete() { isComplete = true; subscription = undefined; subject.complete(); }, }); } else { innerSub = subject.subscribe(this); } this.add(() => { refCount--; innerSub.unsubscribe(); if (subscription && !isComplete && useRefCount && refCount === 0) { subscription.unsubscribe(); subscription = undefined; subject = undefined; } }); }; } //# sourceMappingURL=shareReplay.js.map /***/ }), /***/ "UgyO": /*!********************************************************************************************!*\ !*** ./node_modules/@aws-amplify/analytics/lib-esm/Providers/AmazonPersonalizeProvider.js ***! \********************************************************************************************/ /*! exports provided: AmazonPersonalizeProvider, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmazonPersonalizeProvider", function() { return AmazonPersonalizeProvider; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _aws_sdk_client_personalize_events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/client-personalize-events */ "DzY2"); /* harmony import */ var _AmazonPersonalizeHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AmazonPersonalizeHelper */ "JiFG"); /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/get */ "mwIZ"); /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isEmpty */ "E+oP"); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEqual */ "Y+p1"); /* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_5__); /* * Copyright 2019-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AmazonPersonalizeProvider'); // events buffer var FLUSH_SIZE = 5; var FLUSH_SIZE_THRESHHOLD = 10; var FLUSH_INTERVAL = 5 * 1000; // 5s var IDENTIFY_EVENT = 'Identify'; var AmazonPersonalizeProvider = /** @class */ (function () { function AmazonPersonalizeProvider(config) { this._buffer = []; this._config = config ? config : {}; this._config.flushSize = this._config.flushSize > 0 && this._config.flushSize <= FLUSH_SIZE_THRESHHOLD ? this._config.flushSize : FLUSH_SIZE; this._config.flushInterval = this._config.flushInterval || FLUSH_INTERVAL; this._sessionManager = new _AmazonPersonalizeHelper__WEBPACK_IMPORTED_MODULE_2__["SessionInfoManager"](); if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(this._config.trackingId)) { this._sessionInfo = this._sessionManager.retrieveSessionInfo(this._config.trackingId); } this._isBrowser = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].browserOrNode().isBrowser; // flush event buffer this._setupTimer(); } AmazonPersonalizeProvider.prototype._setupTimer = function () { if (this._timer) { clearInterval(this._timer); } var flushInterval = this._config.flushInterval; var that = this; this._timer = setInterval(function () { that._sendFromBuffer(); }, flushInterval); }; /** * Record event * @param eventType - type of the event action. e.g. "Click" * @param properties - properties of the event * @return Promise */ AmazonPersonalizeProvider.prototype.record = function (params) { return __awaiter(this, void 0, void 0, function () { var credentials, _a, eventType, properties, requestParams, isLoaded; return __generator(this, function (_b) { switch (_b.label) { case 0: return [4 /*yield*/, this._getCredentials()]; case 1: credentials = _b.sent(); if (!credentials) return [2 /*return*/, Promise.resolve(false)]; Object.assign(params, { config: this._config, credentials: credentials, sentAt: new Date(), }); _a = params.event, eventType = _a.eventType, properties = _a.properties; if (eventType === IDENTIFY_EVENT) { this._sessionManager.updateSessionInfo(properties && properties.userId ? properties.userId : '', this._sessionInfo); return [2 /*return*/]; } else if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(params.event.userId)) { this._sessionManager.updateSessionInfo(params.event.userId, this._sessionInfo); } requestParams = this.generateRequestParams(params, this._sessionInfo); if (!(eventType === 'MediaAutoTrack')) return [3 /*break*/, 7]; if (!this._isBrowser) return [3 /*break*/, 5]; if (!!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(lodash_get__WEBPACK_IMPORTED_MODULE_3___default()(requestParams, 'eventData.properties.domElementId', null))) return [3 /*break*/, 3]; return [4 /*yield*/, this.isElementFullyLoaded(this.loadElement, requestParams.eventData.properties['domElementId'], 500, 5)]; case 2: isLoaded = _b.sent(); if (isLoaded) { new _AmazonPersonalizeHelper__WEBPACK_IMPORTED_MODULE_2__["MediaAutoTrack"](requestParams, this); } else { logger.debug('Cannot find the media element.'); } return [3 /*break*/, 4]; case 3: logger.debug("Missing domElementId field in 'properties' for MediaAutoTrack event type."); _b.label = 4; case 4: return [3 /*break*/, 6]; case 5: logger.debug('MediaAutoTrack only for browser'); _b.label = 6; case 6: return [2 /*return*/]; case 7: return [2 /*return*/, this.putToBuffer(requestParams)]; } }); }); }; AmazonPersonalizeProvider.prototype.loadElement = function (domId) { return new Promise(function (resolve, reject) { if (document.getElementById(domId) && document.getElementById(domId).clientHeight) { return resolve(true); } else { return reject(true); } }); }; AmazonPersonalizeProvider.prototype.isElementFullyLoaded = function (operation, params, delay, times) { var _this = this; var wait = function (ms) { return new Promise(function (r) { return setTimeout(r, ms); }); }; return new Promise(function (resolve, reject) { return operation(params) .then(resolve) .catch(function (reason) { if (times - 1 > 0) { return wait(delay) .then(_this.isElementFullyLoaded.bind(null, operation, params, delay, times - 1)) .then(resolve) .catch(reject); } return reject(reason); }); }); }; /** * get the category of the plugin */ AmazonPersonalizeProvider.prototype.getCategory = function () { return 'Analytics'; }; /** * get provider name of the plugin */ AmazonPersonalizeProvider.prototype.getProviderName = function () { return 'AmazonPersonalize'; }; /** * configure the plugin * @param {Object} config - configuration */ AmazonPersonalizeProvider.prototype.configure = function (config) { logger.debug('configure Analytics', config); var conf = config ? config : {}; this._config = Object.assign({}, this._config, conf); if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(this._config.trackingId)) { this._sessionInfo = this._sessionManager.retrieveSessionInfo(this._config.trackingId); } this._setupTimer(); return this._config; }; /** * Generate the requestParams from customer input params and sessionInfo * @private * @param eventData - customer input for event data * @param api - api name * @return RequestParams - wrapper object with all information required for make request */ AmazonPersonalizeProvider.prototype.generateRequestParams = function (params, sessionInfo) { var requestParams = {}; var _a = params.event, eventType = _a.eventType, properties = _a.properties; requestParams.eventData = { eventType: eventType, properties: properties }; requestParams.sessionInfo = sessionInfo; requestParams.sentAt = params.sentAt; requestParams.credentials = params.credentials; requestParams.config = params.config; return requestParams; }; /** * record an event * @param {Object} params - the params of an event */ AmazonPersonalizeProvider.prototype._sendEvents = function (group) { var groupLen = group.length; if (groupLen === 0) { logger.debug('events array is empty, directly return'); return; } var _a = group[0], config = _a.config, credentials = _a.credentials, sessionInfo = _a.sessionInfo; var initClients = this._init(config, credentials); if (!initClients) return false; if (groupLen > 0) { var events = []; for (var i = 0; i < groupLen; i += 1) { var params = group.shift(); var eventPayload = this._generateSingleRecordPayload(params, sessionInfo); events.push(eventPayload); } var payload_1 = {}; payload_1.trackingId = sessionInfo.trackingId; payload_1.sessionId = sessionInfo.sessionId; payload_1.userId = sessionInfo.userId; payload_1.eventList = []; events.forEach(function (event) { // @ts-ignore payload_1.eventList.push(event); }); var command = new _aws_sdk_client_personalize_events__WEBPACK_IMPORTED_MODULE_1__["PutEventsCommand"](payload_1); this._personalize.send(command, function (err) { if (err) logger.debug('Failed to call putEvents in Personalize', err); else logger.debug('Put events'); }); } }; /** * Put event into buffer * @private * @param params - params for the event recording */ AmazonPersonalizeProvider.prototype.putToBuffer = function (params) { if (this._buffer.length < this._config.flushSize) { this._buffer.push(params); } else { this._buffer.push(params); this._sendFromBuffer(); } return Promise.resolve(true); }; /** * flush the buffer and batch sending the request * @private * @param eventsParams - the buffer for cache the payload */ AmazonPersonalizeProvider.prototype._sendFromBuffer = function () { var _this = this; var size = this._buffer.length; if (size <= 0) return; var eventsGroups = []; var preCred = null; var group = []; for (var i = 0; i < size; i += 1) { var currRequestParams = this._buffer.shift(); var cred = currRequestParams.credentials; var sessionInfo = currRequestParams.sessionInfo; if (i === 0) { group.push(currRequestParams); preCred = cred; } else { if (lodash_isEqual__WEBPACK_IMPORTED_MODULE_5___default()(sessionInfo, this._sessionInfo) && cred.sessionToken === preCred.sessionToken && cred.identityId === preCred.identityId) { logger.debug('no change for cred, put event in the same group'); group.push(currRequestParams); } else { eventsGroups.push(group); group = []; group.push(currRequestParams); preCred = cred; this._sessionInfo = sessionInfo; } } } eventsGroups.push(group); eventsGroups.map(function (group) { _this._sendEvents(group); }); }; /** * Generate the record payload for single event * @private * @param params - RequestParams */ AmazonPersonalizeProvider.prototype._generateSingleRecordPayload = function (params, sessionInfo) { var eventData = params.eventData, sentAt = params.sentAt; var trackPayload = {}; trackPayload.sentAt = sentAt; trackPayload.properties = eventData.properties && JSON.stringify(eventData.properties); trackPayload.eventId = this._sessionManager.getTimerKey() + sessionInfo.sessionId; trackPayload.eventType = eventData.eventType; return trackPayload; }; /** * Initialize the personalize client * @private * @param params - RequestParams */ AmazonPersonalizeProvider.prototype._init = function (config, credentials) { logger.debug('init clients'); if (this._personalize && this._config.credentials && this._config.credentials.sessionToken === credentials.sessionToken && this._config.credentials.identityId === credentials.identityId) { logger.debug('no change for analytics config, directly return from init'); return true; } this._config.credentials = credentials; var region = config.region; logger.debug('initialize personalize with credentials', credentials); this._personalize = new _aws_sdk_client_personalize_events__WEBPACK_IMPORTED_MODULE_1__["PersonalizeEventsClient"]({ region: region, credentials: credentials, customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["getAmplifyUserAgent"])(), }); return true; }; /** * check if current credentials exists * @private */ AmazonPersonalizeProvider.prototype._getCredentials = function () { var that = this; return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].get() .then(function (credentials) { if (!credentials) return null; logger.debug('set credentials for analytics', that._config.credentials); return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].shear(credentials); }) .catch(function (err) { logger.debug('ensure credentials error', err); return null; }); }; return AmazonPersonalizeProvider; }()); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (AmazonPersonalizeProvider); //# sourceMappingURL=AmazonPersonalizeProvider.js.map /***/ }), /***/ "Ukkh": /*!*******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAdmChannelCommand.js ***! \*******************************************************************************************/ /*! exports provided: DeleteAdmChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelCommand", function() { return DeleteAdmChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteAdmChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteAdmChannelCommand, _super); // Start section: command_properties // End section: command_properties function DeleteAdmChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteAdmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteAdmChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteAdmChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteAdmChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteAdmChannelCommand"])(input, context); }; DeleteAdmChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteAdmChannelCommand"])(output, context); }; return DeleteAdmChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteAdmChannelCommand.js.map /***/ }), /***/ "UnBK": /*!********************************************************!*\ !*** ./node_modules/axios/lib/core/dispatchRequest.js ***! \********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./../utils */ "xTJ+"); var transformData = __webpack_require__(/*! ./transformData */ "xAGQ"); var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "Lmem"); var defaults = __webpack_require__(/*! ../defaults */ "JEQr"); var isAbsoluteURL = __webpack_require__(/*! ./../helpers/isAbsoluteURL */ "2SVd"); var combineURLs = __webpack_require__(/*! ./../helpers/combineURLs */ "5oMp"); /** * Throws a `Cancel` if cancellation has been requested. */ function throwIfCancellationRequested(config) { if (config.cancelToken) { config.cancelToken.throwIfRequested(); } } /** * Dispatch a request to the server using the configured adapter. * * @param {object} config The config that is to be used for the request * @returns {Promise} The Promise to be fulfilled */ module.exports = function dispatchRequest(config) { throwIfCancellationRequested(config); // Support baseURL config if (config.baseURL && !isAbsoluteURL(config.url)) { config.url = combineURLs(config.baseURL, config.url); } // Ensure headers exist config.headers = config.headers || {}; // Transform request data config.data = transformData( config.data, config.headers, config.transformRequest ); // Flatten headers config.headers = utils.merge( config.headers.common || {}, config.headers[config.method] || {}, config.headers || {} ); utils.forEach( ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function cleanHeaderConfig(method) { delete config.headers[method]; } ); var adapter = config.adapter || defaults.adapter; return adapter(config).then(function onAdapterResolution(response) { throwIfCancellationRequested(config); // Transform response data response.data = transformData( response.data, response.headers, config.transformResponse ); return response; }, function onAdapterRejection(reason) { if (!isCancel(reason)) { throwIfCancellationRequested(config); // Transform response data if (reason && reason.response) { reason.response.data = transformData( reason.response.data, reason.response.headers, config.transformResponse ); } } return Promise.reject(reason); }); }; /***/ }), /***/ "Uou1": /*!**************************************************************************!*\ !*** ./node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri-path.js ***! \**************************************************************************/ /*! exports provided: escapeUriPath */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeUriPath", function() { return escapeUriPath; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _escape_uri__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./escape-uri */ "9niX"); function escapeUriPath(uri) { var e_1, _a; var parts = []; try { for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(uri.split("/")), _c = _b.next(); !_c.done; _c = _b.next()) { var sub = _c.value; parts.push(Object(_escape_uri__WEBPACK_IMPORTED_MODULE_1__["escapeUri"])(sub)); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return parts.join("/"); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNjYXBlLXVyaS1wYXRoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2VzY2FwZS11cmktcGF0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUN6QyxNQUFNLFVBQVUsYUFBYSxDQUFDLEdBQVc7O0lBQ3ZDLElBQU0sS0FBSyxHQUFhLEVBQUUsQ0FBQzs7UUFDM0IsS0FBa0IsSUFBQSxLQUFBLFNBQUEsR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQSxnQkFBQSw0QkFBRTtZQUE3QixJQUFNLEdBQUcsV0FBQTtZQUNaLEtBQUssQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUM7U0FDNUI7Ozs7Ozs7OztJQUNELE9BQU8sS0FBSyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUN6QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgZXNjYXBlVXJpIH0gZnJvbSBcIi4vZXNjYXBlLXVyaVwiO1xuZXhwb3J0IGZ1bmN0aW9uIGVzY2FwZVVyaVBhdGgodXJpOiBzdHJpbmcpOiBzdHJpbmcge1xuICBjb25zdCBwYXJ0czogc3RyaW5nW10gPSBbXTtcbiAgZm9yIChjb25zdCBzdWIgb2YgdXJpLnNwbGl0KFwiL1wiKSkge1xuICAgIHBhcnRzLnB1c2goZXNjYXBlVXJpKHN1YikpO1xuICB9XG4gIHJldHVybiBwYXJ0cy5qb2luKFwiL1wiKTtcbn1cbiJdfQ== /***/ }), /***/ "UyRJ": /*!**************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/Platform/index.js ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var version_1 = __webpack_require__(/*! ./version */ "q2Tz"); var BASE_USER_AGENT = "aws-amplify/" + version_1.version; exports.Platform = { userAgent: BASE_USER_AGENT + " js", product: '', navigator: null, isReactNative: false, }; if (typeof navigator !== 'undefined' && navigator.product) { exports.Platform.product = navigator.product || ''; exports.Platform.navigator = navigator || null; switch (navigator.product) { case 'ReactNative': exports.Platform.userAgent = BASE_USER_AGENT + " react-native"; exports.Platform.isReactNative = true; break; default: exports.Platform.userAgent = BASE_USER_AGENT + " js"; exports.Platform.isReactNative = false; break; } } exports.getAmplifyUserAgent = function () { return exports.Platform.userAgent; }; /** * @deprecated use named import */ exports.default = exports.Platform; //# sourceMappingURL=index.js.map /***/ }), /***/ "UzAt": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-amplify/analytics/lib-esm/Providers/AWSKinesisFirehoseProvider.js ***! \*********************************************************************************************/ /*! exports provided: AWSKinesisFirehoseProvider, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AWSKinesisFirehoseProvider", function() { return AWSKinesisFirehoseProvider; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _AWSKinesisProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AWSKinesisProvider */ "vJDS"); /* harmony import */ var _aws_sdk_client_firehose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/client-firehose */ "hLTM"); /* harmony import */ var _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "kg8h"); /* * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AWSKineisFirehoseProvider'); var AWSKinesisFirehoseProvider = /** @class */ (function (_super) { __extends(AWSKinesisFirehoseProvider, _super); function AWSKinesisFirehoseProvider(config) { return _super.call(this, config) || this; } /** * get provider name of the plugin */ AWSKinesisFirehoseProvider.prototype.getProviderName = function () { return 'AWSKinesisFirehose'; }; AWSKinesisFirehoseProvider.prototype._sendEvents = function (group) { var _this = this; if (group.length === 0) { return; } var _a = group[0], config = _a.config, credentials = _a.credentials; var initClients = this._init(config, credentials); if (!initClients) return false; var records = {}; group.map(function (params) { // split by streamName var evt = params.event; var streamName = evt.streamName, data = evt.data; if (records[streamName] === undefined) { records[streamName] = []; } var bufferData = data && typeof data !== 'string' ? JSON.stringify(data) : data; var Data = Object(_aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_3__["fromUtf8"])(bufferData); var record = { Data: Data }; records[streamName].push(record); }); Object.keys(records).map(function (streamName) { logger.debug('putting records to kinesis', streamName, 'with records', records[streamName]); _this._kinesisFirehose .send(new _aws_sdk_client_firehose__WEBPACK_IMPORTED_MODULE_2__["PutRecordBatchCommand"]({ Records: records[streamName], DeliveryStreamName: streamName, })) .then(function (res) { return logger.debug('Upload records to stream', streamName); }) .catch(function (err) { return logger.debug('Failed to upload records to Kinesis', err); }); }); }; AWSKinesisFirehoseProvider.prototype._init = function (config, credentials) { logger.debug('init clients'); if (this._kinesisFirehose && this._config.credentials && this._config.credentials.sessionToken === credentials.sessionToken && this._config.credentials.identityId === credentials.identityId) { logger.debug('no change for analytics config, directly return from init'); return true; } this._config.credentials = credentials; var region = config.region; return this._initFirehose(region, credentials); }; AWSKinesisFirehoseProvider.prototype._initFirehose = function (region, credentials) { logger.debug('initialize kinesis firehose with credentials', credentials); this._kinesisFirehose = new _aws_sdk_client_firehose__WEBPACK_IMPORTED_MODULE_2__["FirehoseClient"]({ apiVersion: '2015-08-04', region: region, credentials: credentials, }); return true; }; return AWSKinesisFirehoseProvider; }(_AWSKinesisProvider__WEBPACK_IMPORTED_MODULE_1__["AWSKinesisProvider"])); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (AWSKinesisFirehoseProvider); //# sourceMappingURL=AWSKinesisFirehoseProvider.js.map /***/ }), /***/ "V2Ok": /*!*******************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/index.js ***! \*******************************************************************/ /*! exports provided: RekognitionClient, Rekognition, CompareFacesCommand, CreateCollectionCommand, CreateProjectCommand, CreateProjectVersionCommand, CreateStreamProcessorCommand, DeleteCollectionCommand, DeleteFacesCommand, DeleteProjectCommand, DeleteProjectVersionCommand, DeleteStreamProcessorCommand, DescribeCollectionCommand, DescribeProjectsCommand, describeProjectsPaginate, DescribeProjectVersionsCommand, describeProjectVersionsPaginate, DescribeStreamProcessorCommand, DetectCustomLabelsCommand, DetectFacesCommand, DetectLabelsCommand, DetectModerationLabelsCommand, DetectTextCommand, GetCelebrityInfoCommand, GetCelebrityRecognitionCommand, getCelebrityRecognitionPaginate, GetContentModerationCommand, getContentModerationPaginate, GetFaceDetectionCommand, getFaceDetectionPaginate, GetFaceSearchCommand, getFaceSearchPaginate, GetLabelDetectionCommand, getLabelDetectionPaginate, GetPersonTrackingCommand, getPersonTrackingPaginate, GetSegmentDetectionCommand, getSegmentDetectionPaginate, GetTextDetectionCommand, getTextDetectionPaginate, IndexFacesCommand, ListCollectionsCommand, listCollectionsPaginate, ListFacesCommand, listFacesPaginate, ListStreamProcessorsCommand, listStreamProcessorsPaginate, RecognizeCelebritiesCommand, SearchFacesCommand, SearchFacesByImageCommand, StartCelebrityRecognitionCommand, StartContentModerationCommand, StartFaceDetectionCommand, StartFaceSearchCommand, StartLabelDetectionCommand, StartPersonTrackingCommand, StartProjectVersionCommand, StartSegmentDetectionCommand, StartStreamProcessorCommand, StartTextDetectionCommand, StopProjectVersionCommand, StopStreamProcessorCommand, AccessDeniedException, AgeRange, Asset, Attribute, AudioMetadata, Beard, BoundingBox, Celebrity, CelebrityDetail, CelebrityRecognition, CelebrityRecognitionSortBy, ComparedFace, ComparedSourceImageFace, CompareFacesMatch, CompareFacesRequest, CompareFacesResponse, ContentClassifier, ContentModerationDetection, ContentModerationSortBy, CreateCollectionRequest, CreateCollectionResponse, CreateProjectRequest, CreateProjectResponse, CreateProjectVersionRequest, CreateProjectVersionResponse, CreateStreamProcessorRequest, CreateStreamProcessorResponse, CustomLabel, DeleteCollectionRequest, DeleteCollectionResponse, DeleteFacesRequest, DeleteFacesResponse, DeleteProjectRequest, DeleteProjectResponse, DeleteProjectVersionRequest, DeleteProjectVersionResponse, DeleteStreamProcessorRequest, DeleteStreamProcessorResponse, DescribeCollectionRequest, DescribeCollectionResponse, DescribeProjectsRequest, DescribeProjectsResponse, DescribeProjectVersionsRequest, DescribeProjectVersionsResponse, DescribeStreamProcessorRequest, DescribeStreamProcessorResponse, DetectCustomLabelsRequest, DetectCustomLabelsResponse, DetectFacesRequest, DetectFacesResponse, DetectionFilter, DetectLabelsRequest, DetectLabelsResponse, DetectModerationLabelsRequest, DetectModerationLabelsResponse, DetectTextFilters, DetectTextRequest, DetectTextResponse, Emotion, EvaluationResult, Eyeglasses, EyeOpen, Face, FaceAttributes, FaceDetail, FaceDetection, FaceMatch, FaceRecord, FaceSearchSettings, FaceSearchSortBy, Gender, GenderType, Geometry, GetCelebrityInfoRequest, GetCelebrityInfoResponse, GetCelebrityRecognitionRequest, GetCelebrityRecognitionResponse, GetContentModerationRequest, GetContentModerationResponse, GetFaceDetectionRequest, GetFaceDetectionResponse, GetFaceSearchRequest, GetFaceSearchResponse, GetLabelDetectionRequest, GetLabelDetectionResponse, GetPersonTrackingRequest, GetPersonTrackingResponse, GetSegmentDetectionRequest, GetSegmentDetectionResponse, GetTextDetectionRequest, GetTextDetectionResponse, GroundTruthManifest, HumanLoopActivationOutput, HumanLoopConfig, HumanLoopDataAttributes, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, Image, ImageQuality, ImageTooLargeException, IndexFacesRequest, IndexFacesResponse, Instance, InternalServerError, InvalidImageFormatException, InvalidPaginationTokenException, InvalidParameterException, InvalidS3ObjectException, KinesisDataStream, KinesisVideoStream, Label, LabelDetection, LabelDetectionSortBy, Landmark, LandmarkType, LimitExceededException, ListCollectionsRequest, ListCollectionsResponse, ListFacesRequest, ListFacesResponse, ListStreamProcessorsRequest, ListStreamProcessorsResponse, ModerationLabel, MouthOpen, Mustache, NotificationChannel, OrientationCorrection, OutputConfig, Parent, PersonDetail, PersonDetection, PersonMatch, PersonTrackingSortBy, Point, Pose, ProjectDescription, ProjectStatus, ProjectVersionDescription, ProjectVersionStatus, ProvisionedThroughputExceededException, QualityFilter, Reason, RecognizeCelebritiesRequest, RecognizeCelebritiesResponse, RegionOfInterest, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, S3Object, SearchFacesByImageRequest, SearchFacesByImageResponse, SearchFacesRequest, SearchFacesResponse, SegmentDetection, SegmentType, SegmentTypeInfo, ShotSegment, Smile, StartCelebrityRecognitionRequest, StartCelebrityRecognitionResponse, StartContentModerationRequest, StartContentModerationResponse, StartFaceDetectionRequest, StartFaceDetectionResponse, StartFaceSearchRequest, StartFaceSearchResponse, StartLabelDetectionRequest, StartLabelDetectionResponse, StartPersonTrackingRequest, StartPersonTrackingResponse, StartProjectVersionRequest, StartProjectVersionResponse, StartSegmentDetectionFilters, StartSegmentDetectionRequest, StartSegmentDetectionResponse, StartShotDetectionFilter, StartStreamProcessorRequest, StartStreamProcessorResponse, StartTechnicalCueDetectionFilter, StartTextDetectionFilters, StartTextDetectionRequest, StartTextDetectionResponse, StopProjectVersionRequest, StopProjectVersionResponse, StopStreamProcessorRequest, StopStreamProcessorResponse, StreamProcessor, StreamProcessorInput, StreamProcessorOutput, StreamProcessorSettings, StreamProcessorStatus, Summary, Sunglasses, TechnicalCueSegment, TechnicalCueType, TestingData, TestingDataResult, TextDetection, TextDetectionResult, TextTypes, ThrottlingException, TrainingData, TrainingDataResult, UnindexedFace, Video, VideoJobStatus, VideoMetadata, VideoTooLargeException */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _RekognitionClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RekognitionClient */ "YOij"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RekognitionClient", function() { return _RekognitionClient__WEBPACK_IMPORTED_MODULE_0__["RekognitionClient"]; }); /* harmony import */ var _Rekognition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Rekognition */ "MjkZ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Rekognition", function() { return _Rekognition__WEBPACK_IMPORTED_MODULE_1__["Rekognition"]; }); /* harmony import */ var _commands_CompareFacesCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/CompareFacesCommand */ "XofR"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompareFacesCommand", function() { return _commands_CompareFacesCommand__WEBPACK_IMPORTED_MODULE_2__["CompareFacesCommand"]; }); /* harmony import */ var _commands_CreateCollectionCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/CreateCollectionCommand */ "Nvd9"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateCollectionCommand", function() { return _commands_CreateCollectionCommand__WEBPACK_IMPORTED_MODULE_3__["CreateCollectionCommand"]; }); /* harmony import */ var _commands_CreateProjectCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/CreateProjectCommand */ "Je4A"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateProjectCommand", function() { return _commands_CreateProjectCommand__WEBPACK_IMPORTED_MODULE_4__["CreateProjectCommand"]; }); /* harmony import */ var _commands_CreateProjectVersionCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/CreateProjectVersionCommand */ "rF6z"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateProjectVersionCommand", function() { return _commands_CreateProjectVersionCommand__WEBPACK_IMPORTED_MODULE_5__["CreateProjectVersionCommand"]; }); /* harmony import */ var _commands_CreateStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/CreateStreamProcessorCommand */ "IeH0"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateStreamProcessorCommand", function() { return _commands_CreateStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_6__["CreateStreamProcessorCommand"]; }); /* harmony import */ var _commands_DeleteCollectionCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/DeleteCollectionCommand */ "CajK"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteCollectionCommand", function() { return _commands_DeleteCollectionCommand__WEBPACK_IMPORTED_MODULE_7__["DeleteCollectionCommand"]; }); /* harmony import */ var _commands_DeleteFacesCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/DeleteFacesCommand */ "j8sq"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteFacesCommand", function() { return _commands_DeleteFacesCommand__WEBPACK_IMPORTED_MODULE_8__["DeleteFacesCommand"]; }); /* harmony import */ var _commands_DeleteProjectCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/DeleteProjectCommand */ "xTwE"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteProjectCommand", function() { return _commands_DeleteProjectCommand__WEBPACK_IMPORTED_MODULE_9__["DeleteProjectCommand"]; }); /* harmony import */ var _commands_DeleteProjectVersionCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/DeleteProjectVersionCommand */ "shiI"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteProjectVersionCommand", function() { return _commands_DeleteProjectVersionCommand__WEBPACK_IMPORTED_MODULE_10__["DeleteProjectVersionCommand"]; }); /* harmony import */ var _commands_DeleteStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/DeleteStreamProcessorCommand */ "RVjW"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamProcessorCommand", function() { return _commands_DeleteStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_11__["DeleteStreamProcessorCommand"]; }); /* harmony import */ var _commands_DescribeCollectionCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/DescribeCollectionCommand */ "+VsY"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeCollectionCommand", function() { return _commands_DescribeCollectionCommand__WEBPACK_IMPORTED_MODULE_12__["DescribeCollectionCommand"]; }); /* harmony import */ var _commands_DescribeProjectsCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/DescribeProjectsCommand */ "GhKt"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeProjectsCommand", function() { return _commands_DescribeProjectsCommand__WEBPACK_IMPORTED_MODULE_13__["DescribeProjectsCommand"]; }); /* harmony import */ var _pagination_DescribeProjectsPaginator__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./pagination/DescribeProjectsPaginator */ "TcwO"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "describeProjectsPaginate", function() { return _pagination_DescribeProjectsPaginator__WEBPACK_IMPORTED_MODULE_14__["describeProjectsPaginate"]; }); /* harmony import */ var _commands_DescribeProjectVersionsCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/DescribeProjectVersionsCommand */ "anbC"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeProjectVersionsCommand", function() { return _commands_DescribeProjectVersionsCommand__WEBPACK_IMPORTED_MODULE_15__["DescribeProjectVersionsCommand"]; }); /* harmony import */ var _pagination_DescribeProjectVersionsPaginator__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./pagination/DescribeProjectVersionsPaginator */ "xFJi"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "describeProjectVersionsPaginate", function() { return _pagination_DescribeProjectVersionsPaginator__WEBPACK_IMPORTED_MODULE_16__["describeProjectVersionsPaginate"]; }); /* harmony import */ var _commands_DescribeStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/DescribeStreamProcessorCommand */ "WGKf"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamProcessorCommand", function() { return _commands_DescribeStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_17__["DescribeStreamProcessorCommand"]; }); /* harmony import */ var _commands_DetectCustomLabelsCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/DetectCustomLabelsCommand */ "bpfF"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectCustomLabelsCommand", function() { return _commands_DetectCustomLabelsCommand__WEBPACK_IMPORTED_MODULE_18__["DetectCustomLabelsCommand"]; }); /* harmony import */ var _commands_DetectFacesCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/DetectFacesCommand */ "zl4K"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectFacesCommand", function() { return _commands_DetectFacesCommand__WEBPACK_IMPORTED_MODULE_19__["DetectFacesCommand"]; }); /* harmony import */ var _commands_DetectLabelsCommand__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./commands/DetectLabelsCommand */ "tiHn"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectLabelsCommand", function() { return _commands_DetectLabelsCommand__WEBPACK_IMPORTED_MODULE_20__["DetectLabelsCommand"]; }); /* harmony import */ var _commands_DetectModerationLabelsCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/DetectModerationLabelsCommand */ "D38H"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectModerationLabelsCommand", function() { return _commands_DetectModerationLabelsCommand__WEBPACK_IMPORTED_MODULE_21__["DetectModerationLabelsCommand"]; }); /* harmony import */ var _commands_DetectTextCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/DetectTextCommand */ "3wOB"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectTextCommand", function() { return _commands_DetectTextCommand__WEBPACK_IMPORTED_MODULE_22__["DetectTextCommand"]; }); /* harmony import */ var _commands_GetCelebrityInfoCommand__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./commands/GetCelebrityInfoCommand */ "SUoz"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCelebrityInfoCommand", function() { return _commands_GetCelebrityInfoCommand__WEBPACK_IMPORTED_MODULE_23__["GetCelebrityInfoCommand"]; }); /* harmony import */ var _commands_GetCelebrityRecognitionCommand__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./commands/GetCelebrityRecognitionCommand */ "aCkC"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCelebrityRecognitionCommand", function() { return _commands_GetCelebrityRecognitionCommand__WEBPACK_IMPORTED_MODULE_24__["GetCelebrityRecognitionCommand"]; }); /* harmony import */ var _pagination_GetCelebrityRecognitionPaginator__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./pagination/GetCelebrityRecognitionPaginator */ "yVvE"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getCelebrityRecognitionPaginate", function() { return _pagination_GetCelebrityRecognitionPaginator__WEBPACK_IMPORTED_MODULE_25__["getCelebrityRecognitionPaginate"]; }); /* harmony import */ var _commands_GetContentModerationCommand__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./commands/GetContentModerationCommand */ "jQbL"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetContentModerationCommand", function() { return _commands_GetContentModerationCommand__WEBPACK_IMPORTED_MODULE_26__["GetContentModerationCommand"]; }); /* harmony import */ var _pagination_GetContentModerationPaginator__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./pagination/GetContentModerationPaginator */ "7GqI"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getContentModerationPaginate", function() { return _pagination_GetContentModerationPaginator__WEBPACK_IMPORTED_MODULE_27__["getContentModerationPaginate"]; }); /* harmony import */ var _commands_GetFaceDetectionCommand__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./commands/GetFaceDetectionCommand */ "aMBS"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetFaceDetectionCommand", function() { return _commands_GetFaceDetectionCommand__WEBPACK_IMPORTED_MODULE_28__["GetFaceDetectionCommand"]; }); /* harmony import */ var _pagination_GetFaceDetectionPaginator__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./pagination/GetFaceDetectionPaginator */ "waWj"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFaceDetectionPaginate", function() { return _pagination_GetFaceDetectionPaginator__WEBPACK_IMPORTED_MODULE_29__["getFaceDetectionPaginate"]; }); /* harmony import */ var _commands_GetFaceSearchCommand__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./commands/GetFaceSearchCommand */ "37TR"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetFaceSearchCommand", function() { return _commands_GetFaceSearchCommand__WEBPACK_IMPORTED_MODULE_30__["GetFaceSearchCommand"]; }); /* harmony import */ var _pagination_GetFaceSearchPaginator__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./pagination/GetFaceSearchPaginator */ "o2FX"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFaceSearchPaginate", function() { return _pagination_GetFaceSearchPaginator__WEBPACK_IMPORTED_MODULE_31__["getFaceSearchPaginate"]; }); /* harmony import */ var _commands_GetLabelDetectionCommand__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./commands/GetLabelDetectionCommand */ "4wFL"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetLabelDetectionCommand", function() { return _commands_GetLabelDetectionCommand__WEBPACK_IMPORTED_MODULE_32__["GetLabelDetectionCommand"]; }); /* harmony import */ var _pagination_GetLabelDetectionPaginator__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./pagination/GetLabelDetectionPaginator */ "+57j"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLabelDetectionPaginate", function() { return _pagination_GetLabelDetectionPaginator__WEBPACK_IMPORTED_MODULE_33__["getLabelDetectionPaginate"]; }); /* harmony import */ var _commands_GetPersonTrackingCommand__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./commands/GetPersonTrackingCommand */ "TLcn"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPersonTrackingCommand", function() { return _commands_GetPersonTrackingCommand__WEBPACK_IMPORTED_MODULE_34__["GetPersonTrackingCommand"]; }); /* harmony import */ var _pagination_GetPersonTrackingPaginator__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./pagination/GetPersonTrackingPaginator */ "axZC"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getPersonTrackingPaginate", function() { return _pagination_GetPersonTrackingPaginator__WEBPACK_IMPORTED_MODULE_35__["getPersonTrackingPaginate"]; }); /* harmony import */ var _commands_GetSegmentDetectionCommand__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./commands/GetSegmentDetectionCommand */ "oZY4"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentDetectionCommand", function() { return _commands_GetSegmentDetectionCommand__WEBPACK_IMPORTED_MODULE_36__["GetSegmentDetectionCommand"]; }); /* harmony import */ var _pagination_GetSegmentDetectionPaginator__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./pagination/GetSegmentDetectionPaginator */ "NAJP"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getSegmentDetectionPaginate", function() { return _pagination_GetSegmentDetectionPaginator__WEBPACK_IMPORTED_MODULE_37__["getSegmentDetectionPaginate"]; }); /* harmony import */ var _commands_GetTextDetectionCommand__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./commands/GetTextDetectionCommand */ "pfJv"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetTextDetectionCommand", function() { return _commands_GetTextDetectionCommand__WEBPACK_IMPORTED_MODULE_38__["GetTextDetectionCommand"]; }); /* harmony import */ var _pagination_GetTextDetectionPaginator__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./pagination/GetTextDetectionPaginator */ "d0mk"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getTextDetectionPaginate", function() { return _pagination_GetTextDetectionPaginator__WEBPACK_IMPORTED_MODULE_39__["getTextDetectionPaginate"]; }); /* harmony import */ var _commands_IndexFacesCommand__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./commands/IndexFacesCommand */ "Xyjb"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IndexFacesCommand", function() { return _commands_IndexFacesCommand__WEBPACK_IMPORTED_MODULE_40__["IndexFacesCommand"]; }); /* harmony import */ var _commands_ListCollectionsCommand__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./commands/ListCollectionsCommand */ "cEH/"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListCollectionsCommand", function() { return _commands_ListCollectionsCommand__WEBPACK_IMPORTED_MODULE_41__["ListCollectionsCommand"]; }); /* harmony import */ var _pagination_ListCollectionsPaginator__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./pagination/ListCollectionsPaginator */ "DotL"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "listCollectionsPaginate", function() { return _pagination_ListCollectionsPaginator__WEBPACK_IMPORTED_MODULE_42__["listCollectionsPaginate"]; }); /* harmony import */ var _commands_ListFacesCommand__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./commands/ListFacesCommand */ "fZP1"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListFacesCommand", function() { return _commands_ListFacesCommand__WEBPACK_IMPORTED_MODULE_43__["ListFacesCommand"]; }); /* harmony import */ var _pagination_ListFacesPaginator__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./pagination/ListFacesPaginator */ "DLyB"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "listFacesPaginate", function() { return _pagination_ListFacesPaginator__WEBPACK_IMPORTED_MODULE_44__["listFacesPaginate"]; }); /* harmony import */ var _commands_ListStreamProcessorsCommand__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./commands/ListStreamProcessorsCommand */ "weia"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamProcessorsCommand", function() { return _commands_ListStreamProcessorsCommand__WEBPACK_IMPORTED_MODULE_45__["ListStreamProcessorsCommand"]; }); /* harmony import */ var _pagination_ListStreamProcessorsPaginator__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./pagination/ListStreamProcessorsPaginator */ "eRTg"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "listStreamProcessorsPaginate", function() { return _pagination_ListStreamProcessorsPaginator__WEBPACK_IMPORTED_MODULE_46__["listStreamProcessorsPaginate"]; }); /* harmony import */ var _commands_RecognizeCelebritiesCommand__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./commands/RecognizeCelebritiesCommand */ "0gvd"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecognizeCelebritiesCommand", function() { return _commands_RecognizeCelebritiesCommand__WEBPACK_IMPORTED_MODULE_47__["RecognizeCelebritiesCommand"]; }); /* harmony import */ var _commands_SearchFacesCommand__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./commands/SearchFacesCommand */ "/0mR"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SearchFacesCommand", function() { return _commands_SearchFacesCommand__WEBPACK_IMPORTED_MODULE_48__["SearchFacesCommand"]; }); /* harmony import */ var _commands_SearchFacesByImageCommand__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./commands/SearchFacesByImageCommand */ "xTIa"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SearchFacesByImageCommand", function() { return _commands_SearchFacesByImageCommand__WEBPACK_IMPORTED_MODULE_49__["SearchFacesByImageCommand"]; }); /* harmony import */ var _commands_StartCelebrityRecognitionCommand__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./commands/StartCelebrityRecognitionCommand */ "7fx8"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartCelebrityRecognitionCommand", function() { return _commands_StartCelebrityRecognitionCommand__WEBPACK_IMPORTED_MODULE_50__["StartCelebrityRecognitionCommand"]; }); /* harmony import */ var _commands_StartContentModerationCommand__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./commands/StartContentModerationCommand */ "ljlb"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartContentModerationCommand", function() { return _commands_StartContentModerationCommand__WEBPACK_IMPORTED_MODULE_51__["StartContentModerationCommand"]; }); /* harmony import */ var _commands_StartFaceDetectionCommand__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./commands/StartFaceDetectionCommand */ "j+72"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartFaceDetectionCommand", function() { return _commands_StartFaceDetectionCommand__WEBPACK_IMPORTED_MODULE_52__["StartFaceDetectionCommand"]; }); /* harmony import */ var _commands_StartFaceSearchCommand__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./commands/StartFaceSearchCommand */ "kgou"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartFaceSearchCommand", function() { return _commands_StartFaceSearchCommand__WEBPACK_IMPORTED_MODULE_53__["StartFaceSearchCommand"]; }); /* harmony import */ var _commands_StartLabelDetectionCommand__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./commands/StartLabelDetectionCommand */ "eIcr"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartLabelDetectionCommand", function() { return _commands_StartLabelDetectionCommand__WEBPACK_IMPORTED_MODULE_54__["StartLabelDetectionCommand"]; }); /* harmony import */ var _commands_StartPersonTrackingCommand__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./commands/StartPersonTrackingCommand */ "ckW+"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartPersonTrackingCommand", function() { return _commands_StartPersonTrackingCommand__WEBPACK_IMPORTED_MODULE_55__["StartPersonTrackingCommand"]; }); /* harmony import */ var _commands_StartProjectVersionCommand__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./commands/StartProjectVersionCommand */ "X6NG"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartProjectVersionCommand", function() { return _commands_StartProjectVersionCommand__WEBPACK_IMPORTED_MODULE_56__["StartProjectVersionCommand"]; }); /* harmony import */ var _commands_StartSegmentDetectionCommand__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./commands/StartSegmentDetectionCommand */ "fnsL"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartSegmentDetectionCommand", function() { return _commands_StartSegmentDetectionCommand__WEBPACK_IMPORTED_MODULE_57__["StartSegmentDetectionCommand"]; }); /* harmony import */ var _commands_StartStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./commands/StartStreamProcessorCommand */ "XlVz"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartStreamProcessorCommand", function() { return _commands_StartStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_58__["StartStreamProcessorCommand"]; }); /* harmony import */ var _commands_StartTextDetectionCommand__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./commands/StartTextDetectionCommand */ "6T2O"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartTextDetectionCommand", function() { return _commands_StartTextDetectionCommand__WEBPACK_IMPORTED_MODULE_59__["StartTextDetectionCommand"]; }); /* harmony import */ var _commands_StopProjectVersionCommand__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./commands/StopProjectVersionCommand */ "WwzQ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopProjectVersionCommand", function() { return _commands_StopProjectVersionCommand__WEBPACK_IMPORTED_MODULE_60__["StopProjectVersionCommand"]; }); /* harmony import */ var _commands_StopStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./commands/StopStreamProcessorCommand */ "tPz/"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopStreamProcessorCommand", function() { return _commands_StopStreamProcessorCommand__WEBPACK_IMPORTED_MODULE_61__["StopStreamProcessorCommand"]; }); /* harmony import */ var _pagination_Interfaces__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./pagination/Interfaces */ "8ImK"); /* empty/unused harmony star reexport *//* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./models/index */ "wUEh"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AccessDeniedException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["AccessDeniedException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AgeRange", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["AgeRange"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Asset", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Asset"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Attribute", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Attribute"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AudioMetadata", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["AudioMetadata"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Beard", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Beard"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BoundingBox", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["BoundingBox"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Celebrity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Celebrity"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CelebrityDetail", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["CelebrityDetail"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CelebrityRecognition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["CelebrityRecognition"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CelebrityRecognitionSortBy", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["CelebrityRecognitionSortBy"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComparedFace", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ComparedFace"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComparedSourceImageFace", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ComparedSourceImageFace"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompareFacesMatch", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["CompareFacesMatch"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompareFacesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["CompareFacesRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompareFacesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["CompareFacesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContentClassifier", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ContentClassifier"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContentModerationDetection", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ContentModerationDetection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContentModerationSortBy", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ContentModerationSortBy"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateCollectionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["CreateCollectionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateCollectionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["CreateCollectionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateProjectRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["CreateProjectRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateProjectResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["CreateProjectResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateProjectVersionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["CreateProjectVersionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateProjectVersionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["CreateProjectVersionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateStreamProcessorRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["CreateStreamProcessorRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateStreamProcessorResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["CreateStreamProcessorResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomLabel", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["CustomLabel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteCollectionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DeleteCollectionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteCollectionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DeleteCollectionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteFacesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DeleteFacesRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteFacesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DeleteFacesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteProjectRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DeleteProjectRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteProjectResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DeleteProjectResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteProjectVersionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DeleteProjectVersionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteProjectVersionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DeleteProjectVersionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamProcessorRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DeleteStreamProcessorRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamProcessorResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DeleteStreamProcessorResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeCollectionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DescribeCollectionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeCollectionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DescribeCollectionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeProjectsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DescribeProjectsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeProjectsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DescribeProjectsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeProjectVersionsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DescribeProjectVersionsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeProjectVersionsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DescribeProjectVersionsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamProcessorRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DescribeStreamProcessorRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamProcessorResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DescribeStreamProcessorResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectCustomLabelsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DetectCustomLabelsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectCustomLabelsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DetectCustomLabelsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectFacesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DetectFacesRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectFacesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DetectFacesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectionFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DetectionFilter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectLabelsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DetectLabelsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectLabelsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DetectLabelsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectModerationLabelsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DetectModerationLabelsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectModerationLabelsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DetectModerationLabelsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectTextFilters", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DetectTextFilters"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectTextRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DetectTextRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetectTextResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["DetectTextResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Emotion", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Emotion"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EvaluationResult", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["EvaluationResult"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Eyeglasses", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Eyeglasses"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EyeOpen", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["EyeOpen"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Face", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Face"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FaceAttributes", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["FaceAttributes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FaceDetail", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["FaceDetail"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FaceDetection", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["FaceDetection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FaceMatch", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["FaceMatch"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FaceRecord", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["FaceRecord"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FaceSearchSettings", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["FaceSearchSettings"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FaceSearchSortBy", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["FaceSearchSortBy"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Gender", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Gender"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GenderType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GenderType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Geometry", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Geometry"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCelebrityInfoRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetCelebrityInfoRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCelebrityInfoResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetCelebrityInfoResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCelebrityRecognitionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetCelebrityRecognitionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCelebrityRecognitionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetCelebrityRecognitionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetContentModerationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetContentModerationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetContentModerationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetContentModerationResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetFaceDetectionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetFaceDetectionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetFaceDetectionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetFaceDetectionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetFaceSearchRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetFaceSearchRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetFaceSearchResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetFaceSearchResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetLabelDetectionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetLabelDetectionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetLabelDetectionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetLabelDetectionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPersonTrackingRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetPersonTrackingRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPersonTrackingResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetPersonTrackingResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentDetectionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetSegmentDetectionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentDetectionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetSegmentDetectionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetTextDetectionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetTextDetectionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetTextDetectionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GetTextDetectionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroundTruthManifest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["GroundTruthManifest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HumanLoopActivationOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["HumanLoopActivationOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HumanLoopConfig", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["HumanLoopConfig"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HumanLoopDataAttributes", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["HumanLoopDataAttributes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HumanLoopQuotaExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["HumanLoopQuotaExceededException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IdempotentParameterMismatchException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["IdempotentParameterMismatchException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Image", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Image"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImageQuality", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ImageQuality"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImageTooLargeException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ImageTooLargeException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IndexFacesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["IndexFacesRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IndexFacesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["IndexFacesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Instance", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Instance"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InternalServerError", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["InternalServerError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidImageFormatException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["InvalidImageFormatException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidPaginationTokenException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["InvalidPaginationTokenException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidParameterException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["InvalidParameterException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidS3ObjectException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["InvalidS3ObjectException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KinesisDataStream", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["KinesisDataStream"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KinesisVideoStream", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["KinesisVideoStream"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Label", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Label"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LabelDetection", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["LabelDetection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LabelDetectionSortBy", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["LabelDetectionSortBy"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Landmark", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Landmark"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LandmarkType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["LandmarkType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["LimitExceededException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListCollectionsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ListCollectionsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListCollectionsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ListCollectionsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListFacesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ListFacesRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListFacesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ListFacesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamProcessorsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ListStreamProcessorsRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamProcessorsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ListStreamProcessorsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModerationLabel", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ModerationLabel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MouthOpen", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["MouthOpen"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Mustache", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Mustache"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationChannel", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["NotificationChannel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrientationCorrection", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["OrientationCorrection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OutputConfig", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["OutputConfig"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Parent", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Parent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonDetail", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["PersonDetail"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonDetection", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["PersonDetection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonMatch", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["PersonMatch"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonTrackingSortBy", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["PersonTrackingSortBy"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Point", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Point"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Pose", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Pose"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProjectDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ProjectDescription"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProjectStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ProjectStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProjectVersionDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ProjectVersionDescription"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProjectVersionStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ProjectVersionStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProvisionedThroughputExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ProvisionedThroughputExceededException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QualityFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["QualityFilter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Reason", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Reason"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecognizeCelebritiesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["RecognizeCelebritiesRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecognizeCelebritiesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["RecognizeCelebritiesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RegionOfInterest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["RegionOfInterest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceAlreadyExistsException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ResourceAlreadyExistsException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceInUseException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ResourceInUseException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ResourceNotFoundException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotReadyException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ResourceNotReadyException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3Object", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["S3Object"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SearchFacesByImageRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["SearchFacesByImageRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SearchFacesByImageResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["SearchFacesByImageResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SearchFacesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["SearchFacesRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SearchFacesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["SearchFacesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentDetection", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["SegmentDetection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["SegmentType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentTypeInfo", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["SegmentTypeInfo"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShotSegment", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ShotSegment"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Smile", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Smile"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartCelebrityRecognitionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartCelebrityRecognitionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartCelebrityRecognitionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartCelebrityRecognitionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartContentModerationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartContentModerationRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartContentModerationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartContentModerationResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartFaceDetectionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartFaceDetectionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartFaceDetectionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartFaceDetectionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartFaceSearchRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartFaceSearchRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartFaceSearchResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartFaceSearchResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartLabelDetectionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartLabelDetectionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartLabelDetectionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartLabelDetectionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartPersonTrackingRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartPersonTrackingRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartPersonTrackingResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartPersonTrackingResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartProjectVersionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartProjectVersionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartProjectVersionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartProjectVersionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartSegmentDetectionFilters", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartSegmentDetectionFilters"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartSegmentDetectionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartSegmentDetectionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartSegmentDetectionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartSegmentDetectionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartShotDetectionFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartShotDetectionFilter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartStreamProcessorRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartStreamProcessorRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartStreamProcessorResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartStreamProcessorResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartTechnicalCueDetectionFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartTechnicalCueDetectionFilter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartTextDetectionFilters", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartTextDetectionFilters"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartTextDetectionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartTextDetectionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartTextDetectionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StartTextDetectionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopProjectVersionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StopProjectVersionRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopProjectVersionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StopProjectVersionResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopStreamProcessorRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StopStreamProcessorRequest"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopStreamProcessorResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StopStreamProcessorResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamProcessor", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StreamProcessor"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamProcessorInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StreamProcessorInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamProcessorOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StreamProcessorOutput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamProcessorSettings", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StreamProcessorSettings"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamProcessorStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["StreamProcessorStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Summary", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Summary"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Sunglasses", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Sunglasses"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TechnicalCueSegment", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["TechnicalCueSegment"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TechnicalCueType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["TechnicalCueType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TestingData", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["TestingData"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TestingDataResult", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["TestingDataResult"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextDetection", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["TextDetection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextDetectionResult", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["TextDetectionResult"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextTypes", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["TextTypes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThrottlingException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["ThrottlingException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TrainingData", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["TrainingData"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TrainingDataResult", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["TrainingDataResult"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UnindexedFace", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["UnindexedFace"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Video", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["Video"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VideoJobStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["VideoJobStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VideoMetadata", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["VideoMetadata"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VideoTooLargeException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_63__["VideoTooLargeException"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "V3C2": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/SelectObjectContentCommand.js ***! \****************************************************************************************/ /*! exports provided: SelectObjectContentCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectObjectContentCommand", function() { return SelectObjectContentCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_ssec__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-ssec */ "CXEx"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var SelectObjectContentCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SelectObjectContentCommand, _super); // Start section: command_properties // End section: command_properties function SelectObjectContentCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } SelectObjectContentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_ssec__WEBPACK_IMPORTED_MODULE_5__["getSsecPlugin"])(configuration)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["SelectObjectContentRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["SelectObjectContentOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; SelectObjectContentCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlSelectObjectContentCommand"])(input, context); }; SelectObjectContentCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlSelectObjectContentCommand"])(output, context); }; return SelectObjectContentCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__["Command"])); //# sourceMappingURL=SelectObjectContentCommand.js.map /***/ }), /***/ "V4mh": /*!*************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/I18n/I18n.js ***! \*************************************************************/ /*! exports provided: I18n */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I18n", function() { return I18n; }); /* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Logger */ "RCJS"); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var logger = new _Logger__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('I18n'); /** * Language transition class */ var I18n = /** @class */ (function () { /** * @constructor * Initialize with configurations * @param {Object} options */ function I18n(options) { /** * @private */ this._options = null; /** * @private */ this._lang = null; /** * @private */ this._dict = {}; this._options = Object.assign({}, options); this._lang = this._options.language; if (!this._lang && typeof window !== 'undefined' && window && window.navigator) { this._lang = window.navigator.language; } logger.debug(this._lang); } /** * @method * Explicitly setting language * @param {String} lang */ I18n.prototype.setLanguage = function (lang) { this._lang = lang; }; /** * @method * Get value * @param {String} key * @param {String} defVal - Default value */ I18n.prototype.get = function (key, defVal) { if (defVal === void 0) { defVal = undefined; } if (!this._lang) { return typeof defVal !== 'undefined' ? defVal : key; } var lang = this._lang; var val = this.getByLanguage(key, lang); if (val) { return val; } if (lang.indexOf('-') > 0) { val = this.getByLanguage(key, lang.split('-')[0]); } if (val) { return val; } return typeof defVal !== 'undefined' ? defVal : key; }; /** * @method * Get value according to specified language * @param {String} key * @param {String} language - Specified langurage to be used * @param {String} defVal - Default value */ I18n.prototype.getByLanguage = function (key, language, defVal) { if (defVal === void 0) { defVal = null; } if (!language) { return defVal; } var lang_dict = this._dict[language]; if (!lang_dict) { return defVal; } return lang_dict[key]; }; /** * @method * Add vocabularies for one language * @param {String} language - Language of the dictionary * @param {Object} vocabularies - Object that has key-value as dictionary entry */ I18n.prototype.putVocabulariesForLanguage = function (language, vocabularies) { var lang_dict = this._dict[language]; if (!lang_dict) { lang_dict = this._dict[language] = {}; } Object.assign(lang_dict, vocabularies); }; /** * @method * Add vocabularies for one language * @param {Object} vocabularies - Object that has language as key, * vocabularies of each language as value */ I18n.prototype.putVocabularies = function (vocabularies) { var _this = this; Object.keys(vocabularies).map(function (key) { _this.putVocabulariesForLanguage(key, vocabularies[key]); }); }; return I18n; }()); //# sourceMappingURL=I18n.js.map /***/ }), /***/ "V6Ve": /*!********************************************!*\ !*** ./node_modules/lodash/_nativeKeys.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__(/*! ./_overArg */ "kekF"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys = overArg(Object.keys, Object); module.exports = nativeKeys; /***/ }), /***/ "VDiX": /*!******************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/runtimeConfig.shared.js ***! \******************************************************************************/ /*! exports provided: ClientSharedValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientSharedValues", function() { return ClientSharedValues; }); /* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "FGGy"); var ClientSharedValues = { apiVersion: "2013-12-02", disableHostPrefix: false, regionInfoProvider: _endpoints__WEBPACK_IMPORTED_MODULE_0__["defaultRegionInfoProvider"], signingName: "kinesis", }; //# sourceMappingURL=runtimeConfig.shared.js.map /***/ }), /***/ "VHNH": /*!***********************************************************!*\ !*** ./node_modules/@aws-amplify/pubsub/lib-esm/index.js ***! \***********************************************************/ /*! exports provided: AbstractPubSubProvider, AWSAppSyncProvider, AWSAppSyncRealTimeProvider, AWSIoTProvider, mqttTopicMatch, MqttOverWSProvider, PubSub, CONTROL_MSG, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONTROL_MSG", function() { return CONTROL_MSG; }); /* harmony import */ var _PubSub__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PubSub */ "sjhW"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PubSub", function() { return _PubSub__WEBPACK_IMPORTED_MODULE_0__["PubSub"]; }); /* harmony import */ var _Providers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Providers */ "mpvu"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AbstractPubSubProvider", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["AbstractPubSubProvider"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSAppSyncProvider", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["AWSAppSyncProvider"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSAppSyncRealTimeProvider", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["AWSAppSyncRealTimeProvider"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSIoTProvider", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["AWSIoTProvider"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mqttTopicMatch", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["mqttTopicMatch"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MqttOverWSProvider", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["MqttOverWSProvider"]; }); /* * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var CONTROL_MSG; (function (CONTROL_MSG) { CONTROL_MSG["CONNECTION_CLOSED"] = "Connection closed"; CONTROL_MSG["TIMEOUT_DISCONNECT"] = "Timeout disconnect"; CONTROL_MSG["SUBSCRIPTION_ACK"] = "Subscription ack"; })(CONTROL_MSG || (CONTROL_MSG = {})); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (_PubSub__WEBPACK_IMPORTED_MODULE_0__["PubSub"]); //# sourceMappingURL=index.js.map /***/ }), /***/ "VIpU": /*!************************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/lib-esm/predicates/sort.js ***! \************************************************************************/ /*! exports provided: ModelSortPredicateCreator */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ModelSortPredicateCreator", function() { return ModelSortPredicateCreator; }); var ModelSortPredicateCreator = /** @class */ (function () { function ModelSortPredicateCreator() { } ModelSortPredicateCreator.createPredicateBuilder = function (modelDefinition) { var modelName = modelDefinition.name; var fieldNames = new Set(Object.keys(modelDefinition.fields)); var handler; var predicate = new Proxy({}, (handler = { get: function (_target, propertyKey, receiver) { var field = propertyKey; if (!fieldNames.has(field)) { throw new Error("Invalid field for model. field: " + field + ", model: " + modelName); } var result = function (sortDirection) { ModelSortPredicateCreator.sortPredicateGroupsMap .get(receiver) .push({ field: field, sortDirection: sortDirection }); return receiver; }; return result; }, })); ModelSortPredicateCreator.sortPredicateGroupsMap.set(predicate, []); return predicate; }; ModelSortPredicateCreator.isValidPredicate = function (predicate) { return ModelSortPredicateCreator.sortPredicateGroupsMap.has(predicate); }; ModelSortPredicateCreator.getPredicates = function (predicate, throwOnInvalid) { if (throwOnInvalid === void 0) { throwOnInvalid = true; } if (throwOnInvalid && !ModelSortPredicateCreator.isValidPredicate(predicate)) { throw new Error('The predicate is not valid'); } return ModelSortPredicateCreator.sortPredicateGroupsMap.get(predicate); }; // transforms cb-style predicate into Proxy ModelSortPredicateCreator.createFromExisting = function (modelDefinition, existing) { if (!existing || !modelDefinition) { return undefined; } return existing(ModelSortPredicateCreator.createPredicateBuilder(modelDefinition)); }; ModelSortPredicateCreator.sortPredicateGroupsMap = new WeakMap(); return ModelSortPredicateCreator; }()); //# sourceMappingURL=sort.js.map /***/ }), /***/ "VIrK": /*!***************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-textract/dist/es/commands/GetDocumentTextDetectionCommand.js ***! \***************************************************************************************************/ /*! exports provided: GetDocumentTextDetectionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetDocumentTextDetectionCommand", function() { return GetDocumentTextDetectionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "glqB"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "doVe"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetDocumentTextDetectionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetDocumentTextDetectionCommand, _super); // Start section: command_properties // End section: command_properties function GetDocumentTextDetectionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetDocumentTextDetectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetDocumentTextDetectionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetDocumentTextDetectionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetDocumentTextDetectionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetDocumentTextDetectionCommand"])(input, context); }; GetDocumentTextDetectionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetDocumentTextDetectionCommand"])(output, context); }; return GetDocumentTextDetectionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetDocumentTextDetectionCommand.js.map /***/ }), /***/ "VP/o": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/runtimeConfig.browser.js ***! \**********************************************************************************/ /*! exports provided: ClientDefaultValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientDefaultValues", function() { return ClientDefaultValues; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./package.json */ "ZD8D"); var _package_json__WEBPACK_IMPORTED_MODULE_1___namespace = /*#__PURE__*/__webpack_require__.t(/*! ./package.json */ "ZD8D", 1); /* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-crypto/sha256-browser */ "viNG"); /* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/fetch-http-handler */ "LUnR"); /* harmony import */ var _aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/invalid-dependency */ "J2eM"); /* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "UMev"); /* harmony import */ var _aws_sdk_url_parser_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/url-parser-browser */ "c14h"); /* harmony import */ var _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/util-base64-browser */ "S3Uu"); /* harmony import */ var _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/util-body-length-browser */ "N9sX"); /* harmony import */ var _aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/util-user-agent-browser */ "wU8f"); /* harmony import */ var _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "kg8h"); /* harmony import */ var _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./runtimeConfig.shared */ "wgZB"); var ClientDefaultValues = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__["ClientSharedValues"]), { runtime: "browser", base64Decoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__["fromBase64"], base64Encoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__["toBase64"], bodyLengthChecker: _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_8__["calculateBodyLength"], credentialDefaultProvider: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__["invalidFunction"])("Credential is missing"), defaultUserAgent: Object(_aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_9__["defaultUserAgent"])(_package_json__WEBPACK_IMPORTED_MODULE_1__["name"], _package_json__WEBPACK_IMPORTED_MODULE_1__["version"]), maxAttempts: _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__["DEFAULT_MAX_ATTEMPTS"], region: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__["invalidFunction"])("Region is missing"), requestHandler: new _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["FetchHttpHandler"](), sha256: _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__["Sha256"], streamCollector: _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["streamCollector"], urlParser: _aws_sdk_url_parser_browser__WEBPACK_IMPORTED_MODULE_6__["parseUrl"], utf8Decoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__["fromUtf8"], utf8Encoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__["toUtf8"] }); //# sourceMappingURL=runtimeConfig.browser.js.map /***/ }), /***/ "VRyK": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/merge.js ***! \*****************************************************************/ /*! exports provided: merge */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return merge; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro"); /* harmony import */ var _operators_mergeAll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operators/mergeAll */ "bHdf"); /* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fromArray */ "yCtX"); function merge(...observables) { let concurrent = Number.POSITIVE_INFINITY; let scheduler = null; let last = observables[observables.length - 1]; if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_1__["isScheduler"])(last)) { scheduler = observables.pop(); if (observables.length > 1 && typeof observables[observables.length - 1] === 'number') { concurrent = observables.pop(); } } else if (typeof last === 'number') { concurrent = observables.pop(); } if (scheduler === null && observables.length === 1 && observables[0] instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]) { return observables[0]; } return Object(_operators_mergeAll__WEBPACK_IMPORTED_MODULE_2__["mergeAll"])(concurrent)(Object(_fromArray__WEBPACK_IMPORTED_MODULE_3__["fromArray"])(observables, scheduler)); } //# sourceMappingURL=merge.js.map /***/ }), /***/ "VaNO": /*!******************************************!*\ !*** ./node_modules/lodash/_stackHas.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Checks if a stack value for `key` exists. * * @private * @name has * @memberOf Stack * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function stackHas(key) { return this.__data__.has(key); } module.exports = stackHas; /***/ }), /***/ "Vfus": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/BatchDetectSyntaxCommand.js ***! \**********************************************************************************************/ /*! exports provided: BatchDetectSyntaxCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatchDetectSyntaxCommand", function() { return BatchDetectSyntaxCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var BatchDetectSyntaxCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BatchDetectSyntaxCommand, _super); // Start section: command_properties // End section: command_properties function BatchDetectSyntaxCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } BatchDetectSyntaxCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["BatchDetectSyntaxRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["BatchDetectSyntaxResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; BatchDetectSyntaxCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1BatchDetectSyntaxCommand"])(input, context); }; BatchDetectSyntaxCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1BatchDetectSyntaxCommand"])(output, context); }; return BatchDetectSyntaxCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=BatchDetectSyntaxCommand.js.map /***/ }), /***/ "Vh5H": /*!****************************************************************!*\ !*** ./node_modules/@aws-amplify/api-graphql/lib-esm/index.js ***! \****************************************************************/ /*! exports provided: GRAPHQL_AUTH_MODE, GraphQLAPI, GraphQLAPIClass, graphqlOperation, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _GraphQLAPI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GraphQLAPI */ "awqx"); /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./types */ "tjUy"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GRAPHQL_AUTH_MODE", function() { return _types__WEBPACK_IMPORTED_MODULE_1__["GRAPHQL_AUTH_MODE"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLAPI", function() { return _GraphQLAPI__WEBPACK_IMPORTED_MODULE_0__["GraphQLAPI"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphQLAPIClass", function() { return _GraphQLAPI__WEBPACK_IMPORTED_MODULE_0__["GraphQLAPIClass"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "graphqlOperation", function() { return _GraphQLAPI__WEBPACK_IMPORTED_MODULE_0__["graphqlOperation"]; }); /* empty/unused harmony star reexport *//* * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ /* harmony default export */ __webpack_exports__["default"] = (_GraphQLAPI__WEBPACK_IMPORTED_MODULE_0__["GraphQLAPI"]); //# sourceMappingURL=index.js.map /***/ }), /***/ "VlWk": /*!*******************************************************************!*\ !*** ./node_modules/graphql/validation/rules/KnownDirectives.mjs ***! \*******************************************************************/ /*! exports provided: unknownDirectiveMessage, misplacedDirectiveMessage, KnownDirectives */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unknownDirectiveMessage", function() { return unknownDirectiveMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "misplacedDirectiveMessage", function() { return misplacedDirectiveMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KnownDirectives", function() { return KnownDirectives; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /* harmony import */ var _language_kinds__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../language/kinds */ "/jXB"); /* harmony import */ var _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../language/directiveLocation */ "F8X2"); /* harmony import */ var _type_directives__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../type/directives */ "4suF"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function unknownDirectiveMessage(directiveName) { return "Unknown directive \"".concat(directiveName, "\"."); } function misplacedDirectiveMessage(directiveName, location) { return "Directive \"".concat(directiveName, "\" may not be used on ").concat(location, "."); } /** * Known directives * * A GraphQL document is only valid if all `@directives` are known by the * schema and legally positioned. */ function KnownDirectives(context) { var locationsMap = Object.create(null); var schema = context.getSchema(); var definedDirectives = schema ? schema.getDirectives() : _type_directives__WEBPACK_IMPORTED_MODULE_3__["specifiedDirectives"]; var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = definedDirectives[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var directive = _step.value; locationsMap[directive.name] = directive.locations; } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } var astDefinitions = context.getDocument().definitions; var _iteratorNormalCompletion2 = true; var _didIteratorError2 = false; var _iteratorError2 = undefined; try { for (var _iterator2 = astDefinitions[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { var def = _step2.value; if (def.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].DIRECTIVE_DEFINITION) { locationsMap[def.name.value] = def.locations.map(function (name) { return name.value; }); } } } catch (err) { _didIteratorError2 = true; _iteratorError2 = err; } finally { try { if (!_iteratorNormalCompletion2 && _iterator2.return != null) { _iterator2.return(); } } finally { if (_didIteratorError2) { throw _iteratorError2; } } } return { Directive: function Directive(node, key, parent, path, ancestors) { var name = node.name.value; var locations = locationsMap[name]; if (!locations) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](unknownDirectiveMessage(name), [node])); return; } var candidateLocation = getDirectiveLocationForASTPath(ancestors); if (candidateLocation && locations.indexOf(candidateLocation) === -1) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](misplacedDirectiveMessage(name, candidateLocation), [node])); } } }; } function getDirectiveLocationForASTPath(ancestors) { var appliedTo = ancestors[ancestors.length - 1]; if (!Array.isArray(appliedTo)) { switch (appliedTo.kind) { case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].OPERATION_DEFINITION: switch (appliedTo.operation) { case 'query': return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].QUERY; case 'mutation': return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].MUTATION; case 'subscription': return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].SUBSCRIPTION; } break; case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].FIELD: return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].FIELD; case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].FRAGMENT_SPREAD: return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].FRAGMENT_SPREAD; case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].INLINE_FRAGMENT: return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].INLINE_FRAGMENT; case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].FRAGMENT_DEFINITION: return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].FRAGMENT_DEFINITION; case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].VARIABLE_DEFINITION: return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].VARIABLE_DEFINITION; case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].SCHEMA_DEFINITION: case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].SCHEMA_EXTENSION: return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].SCHEMA; case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].SCALAR_TYPE_DEFINITION: case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].SCALAR_TYPE_EXTENSION: return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].SCALAR; case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].OBJECT_TYPE_DEFINITION: case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].OBJECT_TYPE_EXTENSION: return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].OBJECT; case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].FIELD_DEFINITION: return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].FIELD_DEFINITION; case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].INTERFACE_TYPE_DEFINITION: case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].INTERFACE_TYPE_EXTENSION: return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].INTERFACE; case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].UNION_TYPE_DEFINITION: case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].UNION_TYPE_EXTENSION: return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].UNION; case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].ENUM_TYPE_DEFINITION: case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].ENUM_TYPE_EXTENSION: return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].ENUM; case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].ENUM_VALUE_DEFINITION: return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].ENUM_VALUE; case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].INPUT_OBJECT_TYPE_DEFINITION: case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].INPUT_OBJECT_TYPE_EXTENSION: return _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].INPUT_OBJECT; case _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].INPUT_VALUE_DEFINITION: var parentNode = ancestors[ancestors.length - 3]; return parentNode.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].INPUT_OBJECT_TYPE_DEFINITION ? _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].INPUT_FIELD_DEFINITION : _language_directiveLocation__WEBPACK_IMPORTED_MODULE_2__["DirectiveLocation"].ARGUMENT_DEFINITION; } } } /***/ }), /***/ "VmW6": /*!*********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/DescribeEntitiesDetectionJobCommand.js ***! \*********************************************************************************************************/ /*! exports provided: DescribeEntitiesDetectionJobCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeEntitiesDetectionJobCommand", function() { return DescribeEntitiesDetectionJobCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DescribeEntitiesDetectionJobCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeEntitiesDetectionJobCommand, _super); // Start section: command_properties // End section: command_properties function DescribeEntitiesDetectionJobCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DescribeEntitiesDetectionJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeEntitiesDetectionJobRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeEntitiesDetectionJobResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DescribeEntitiesDetectionJobCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeEntitiesDetectionJobCommand"])(input, context); }; DescribeEntitiesDetectionJobCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeEntitiesDetectionJobCommand"])(output, context); }; return DescribeEntitiesDetectionJobCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DescribeEntitiesDetectionJobCommand.js.map /***/ }), /***/ "Vmp2": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/lib-esm/storage/adapter/getDefaultAdapter/index.js ***! \************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); var getDefaultAdapter = function () { var isBrowser = Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["browserOrNode"])().isBrowser; if ((isBrowser && window.indexedDB) || (Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["isWebWorker"])() && self.indexedDB)) { return __webpack_require__(/*! ../indexeddb */ "9Hor").default; } var AsyncStorageAdapter = __webpack_require__(/*! ../asyncstorage */ "Daal").AsyncStorageAdapter; return new AsyncStorageAdapter(); }; /* harmony default export */ __webpack_exports__["default"] = (getDefaultAdapter); //# sourceMappingURL=index.js.map /***/ }), /***/ "Vpsf": /*!*******************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/scheduler/AnimationFrameAction.js ***! \*******************************************************************************/ /*! exports provided: AnimationFrameAction */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationFrameAction", function() { return AnimationFrameAction; }); /* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncAction */ "3N8a"); class AnimationFrameAction extends _AsyncAction__WEBPACK_IMPORTED_MODULE_0__["AsyncAction"] { constructor(scheduler, work) { super(scheduler, work); this.scheduler = scheduler; this.work = work; } requestAsyncId(scheduler, id, delay = 0) { if (delay !== null && delay > 0) { return super.requestAsyncId(scheduler, id, delay); } scheduler.actions.push(this); return scheduler.scheduled || (scheduler.scheduled = requestAnimationFrame(() => scheduler.flush(null))); } recycleAsyncId(scheduler, id, delay = 0) { if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) { return super.recycleAsyncId(scheduler, id, delay); } if (scheduler.actions.length === 0) { cancelAnimationFrame(id); scheduler.scheduled = undefined; } return undefined; } } //# sourceMappingURL=AnimationFrameAction.js.map /***/ }), /***/ "VtXw": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamConsumersCommand.js ***! \*********************************************************************************************/ /*! exports provided: ListStreamConsumersCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersCommand", function() { return ListStreamConsumersCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListStreamConsumersCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListStreamConsumersCommand, _super); // Start section: command_properties // End section: command_properties function ListStreamConsumersCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListStreamConsumersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListStreamConsumersInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListStreamConsumersOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListStreamConsumersCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListStreamConsumersCommand"])(input, context); }; ListStreamConsumersCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListStreamConsumersCommand"])(output, context); }; return ListStreamConsumersCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListStreamConsumersCommand.js.map /***/ }), /***/ "Vu3y": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-lex-runtime-service/dist/es/models/index.js ***! \**********************************************************************************/ /*! exports provided: BadGatewayException, BadRequestException, Button, ConfirmationStatus, ConflictException, ContentType, DeleteSessionRequest, DeleteSessionResponse, DependencyFailedException, DialogAction, DialogActionType, DialogState, FulfillmentState, GenericAttachment, GetSessionRequest, GetSessionResponse, IntentSummary, InternalFailureException, LimitExceededException, LoopDetectedException, MessageFormatType, NotAcceptableException, NotFoundException, PostContentRequest, PostContentResponse, PostTextRequest, PostTextResponse, PutSessionRequest, PutSessionResponse, RequestTimeoutException, ResponseCard, SentimentResponse, UnsupportedMediaTypeException */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BadGatewayException", function() { return BadGatewayException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BadRequestException", function() { return BadRequestException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return Button; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfirmationStatus", function() { return ConfirmationStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConflictException", function() { return ConflictException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContentType", function() { return ContentType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSessionRequest", function() { return DeleteSessionRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSessionResponse", function() { return DeleteSessionResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DependencyFailedException", function() { return DependencyFailedException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DialogAction", function() { return DialogAction; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DialogActionType", function() { return DialogActionType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DialogState", function() { return DialogState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FulfillmentState", function() { return FulfillmentState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericAttachment", function() { return GenericAttachment; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSessionRequest", function() { return GetSessionRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSessionResponse", function() { return GetSessionResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntentSummary", function() { return IntentSummary; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InternalFailureException", function() { return InternalFailureException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return LimitExceededException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoopDetectedException", function() { return LoopDetectedException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageFormatType", function() { return MessageFormatType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotAcceptableException", function() { return NotAcceptableException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotFoundException", function() { return NotFoundException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PostContentRequest", function() { return PostContentRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PostContentResponse", function() { return PostContentResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PostTextRequest", function() { return PostTextRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PostTextResponse", function() { return PostTextResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutSessionRequest", function() { return PutSessionRequest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutSessionResponse", function() { return PutSessionResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequestTimeoutException", function() { return RequestTimeoutException; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResponseCard", function() { return ResponseCard; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SentimentResponse", function() { return SentimentResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnsupportedMediaTypeException", function() { return UnsupportedMediaTypeException; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var BadGatewayException; (function (BadGatewayException) { BadGatewayException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; BadGatewayException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BadGatewayException"); }; })(BadGatewayException || (BadGatewayException = {})); var BadRequestException; (function (BadRequestException) { BadRequestException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; BadRequestException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "BadRequestException"); }; })(BadRequestException || (BadRequestException = {})); var Button; (function (Button) { Button.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; Button.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "Button"); }; })(Button || (Button = {})); var ConfirmationStatus; (function (ConfirmationStatus) { ConfirmationStatus["CONFIRMED"] = "Confirmed"; ConfirmationStatus["DENIED"] = "Denied"; ConfirmationStatus["NONE"] = "None"; })(ConfirmationStatus || (ConfirmationStatus = {})); var ConflictException; (function (ConflictException) { ConflictException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ConflictException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ConflictException"); }; })(ConflictException || (ConflictException = {})); var ContentType; (function (ContentType) { ContentType["GENERIC"] = "application/vnd.amazonaws.card.generic"; })(ContentType || (ContentType = {})); var DeleteSessionRequest; (function (DeleteSessionRequest) { DeleteSessionRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DeleteSessionRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DeleteSessionRequest"); }; })(DeleteSessionRequest || (DeleteSessionRequest = {})); var DeleteSessionResponse; (function (DeleteSessionResponse) { DeleteSessionResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DeleteSessionResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DeleteSessionResponse"); }; })(DeleteSessionResponse || (DeleteSessionResponse = {})); var DependencyFailedException; (function (DependencyFailedException) { DependencyFailedException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; DependencyFailedException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DependencyFailedException"); }; })(DependencyFailedException || (DependencyFailedException = {})); var DialogAction; (function (DialogAction) { DialogAction.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.message && { message: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] })), (obj.slots && { slots: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; DialogAction.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "DialogAction"); }; })(DialogAction || (DialogAction = {})); var DialogActionType; (function (DialogActionType) { DialogActionType["CLOSE"] = "Close"; DialogActionType["CONFIRM_INTENT"] = "ConfirmIntent"; DialogActionType["DELEGATE"] = "Delegate"; DialogActionType["ELICIT_INTENT"] = "ElicitIntent"; DialogActionType["ELICIT_SLOT"] = "ElicitSlot"; })(DialogActionType || (DialogActionType = {})); var DialogState; (function (DialogState) { DialogState["CONFIRM_INTENT"] = "ConfirmIntent"; DialogState["ELICIT_INTENT"] = "ElicitIntent"; DialogState["ELICIT_SLOT"] = "ElicitSlot"; DialogState["FAILED"] = "Failed"; DialogState["FULFILLED"] = "Fulfilled"; DialogState["READY_FOR_FULFILLMENT"] = "ReadyForFulfillment"; })(DialogState || (DialogState = {})); var FulfillmentState; (function (FulfillmentState) { FulfillmentState["FAILED"] = "Failed"; FulfillmentState["FULFILLED"] = "Fulfilled"; FulfillmentState["READY_FOR_FULFILLMENT"] = "ReadyForFulfillment"; })(FulfillmentState || (FulfillmentState = {})); var GenericAttachment; (function (GenericAttachment) { GenericAttachment.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; GenericAttachment.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "GenericAttachment"); }; })(GenericAttachment || (GenericAttachment = {})); var GetSessionRequest; (function (GetSessionRequest) { GetSessionRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; GetSessionRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "GetSessionRequest"); }; })(GetSessionRequest || (GetSessionRequest = {})); var GetSessionResponse; (function (GetSessionResponse) { GetSessionResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.dialogAction && { dialogAction: DialogAction.filterSensitiveLog(obj.dialogAction) })), (obj.recentIntentSummaryView && { recentIntentSummaryView: obj.recentIntentSummaryView.map(function (item) { return IntentSummary.filterSensitiveLog(item); }), })), (obj.sessionAttributes && { sessionAttributes: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; GetSessionResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "GetSessionResponse"); }; })(GetSessionResponse || (GetSessionResponse = {})); var IntentSummary; (function (IntentSummary) { IntentSummary.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.slots && { slots: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; IntentSummary.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "IntentSummary"); }; })(IntentSummary || (IntentSummary = {})); var InternalFailureException; (function (InternalFailureException) { InternalFailureException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; InternalFailureException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "InternalFailureException"); }; })(InternalFailureException || (InternalFailureException = {})); var LimitExceededException; (function (LimitExceededException) { LimitExceededException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; LimitExceededException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "LimitExceededException"); }; })(LimitExceededException || (LimitExceededException = {})); var LoopDetectedException; (function (LoopDetectedException) { LoopDetectedException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; LoopDetectedException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "LoopDetectedException"); }; })(LoopDetectedException || (LoopDetectedException = {})); var MessageFormatType; (function (MessageFormatType) { MessageFormatType["COMPOSITE"] = "Composite"; MessageFormatType["CUSTOM_PAYLOAD"] = "CustomPayload"; MessageFormatType["PLAIN_TEXT"] = "PlainText"; MessageFormatType["SSML"] = "SSML"; })(MessageFormatType || (MessageFormatType = {})); var NotAcceptableException; (function (NotAcceptableException) { NotAcceptableException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; NotAcceptableException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "NotAcceptableException"); }; })(NotAcceptableException || (NotAcceptableException = {})); var NotFoundException; (function (NotFoundException) { NotFoundException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; NotFoundException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "NotFoundException"); }; })(NotFoundException || (NotFoundException = {})); var PostContentRequest; (function (PostContentRequest) { PostContentRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.sessionAttributes && { sessionAttributes: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] })), (obj.requestAttributes && { requestAttributes: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; PostContentRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "PostContentRequest"); }; })(PostContentRequest || (PostContentRequest = {})); var PostContentResponse; (function (PostContentResponse) { PostContentResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.message && { message: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; PostContentResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "PostContentResponse"); }; })(PostContentResponse || (PostContentResponse = {})); var PostTextRequest; (function (PostTextRequest) { PostTextRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.inputText && { inputText: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] })), (obj.sessionAttributes && { sessionAttributes: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] })), (obj.requestAttributes && { requestAttributes: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; PostTextRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "PostTextRequest"); }; })(PostTextRequest || (PostTextRequest = {})); var PostTextResponse; (function (PostTextResponse) { PostTextResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.message && { message: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] })), (obj.slots && { slots: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] })), (obj.sessionAttributes && { sessionAttributes: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; PostTextResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "PostTextResponse"); }; })(PostTextResponse || (PostTextResponse = {})); var PutSessionRequest; (function (PutSessionRequest) { PutSessionRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.dialogAction && { dialogAction: DialogAction.filterSensitiveLog(obj.dialogAction) })), (obj.recentIntentSummaryView && { recentIntentSummaryView: obj.recentIntentSummaryView.map(function (item) { return IntentSummary.filterSensitiveLog(item); }), })), (obj.sessionAttributes && { sessionAttributes: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; PutSessionRequest.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "PutSessionRequest"); }; })(PutSessionRequest || (PutSessionRequest = {})); var PutSessionResponse; (function (PutSessionResponse) { PutSessionResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.message && { message: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); }; PutSessionResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "PutSessionResponse"); }; })(PutSessionResponse || (PutSessionResponse = {})); var RequestTimeoutException; (function (RequestTimeoutException) { RequestTimeoutException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; RequestTimeoutException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "RequestTimeoutException"); }; })(RequestTimeoutException || (RequestTimeoutException = {})); var ResponseCard; (function (ResponseCard) { ResponseCard.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; ResponseCard.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "ResponseCard"); }; })(ResponseCard || (ResponseCard = {})); var SentimentResponse; (function (SentimentResponse) { SentimentResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; SentimentResponse.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "SentimentResponse"); }; })(SentimentResponse || (SentimentResponse = {})); var UnsupportedMediaTypeException; (function (UnsupportedMediaTypeException) { UnsupportedMediaTypeException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); }; UnsupportedMediaTypeException.isa = function (o) { return Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["isa"])(o, "UnsupportedMediaTypeException"); }; })(UnsupportedMediaTypeException || (UnsupportedMediaTypeException = {})); //# sourceMappingURL=index.js.map /***/ }), /***/ "Vuqn": /*!*****************************************************************************!*\ !*** ./node_modules/graphql/validation/rules/ProvidedRequiredArguments.mjs ***! \*****************************************************************************/ /*! exports provided: missingFieldArgMessage, missingDirectiveArgMessage, ProvidedRequiredArguments, ProvidedRequiredArgumentsOnDirectives */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "missingFieldArgMessage", function() { return missingFieldArgMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "missingDirectiveArgMessage", function() { return missingDirectiveArgMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProvidedRequiredArguments", function() { return ProvidedRequiredArguments; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProvidedRequiredArgumentsOnDirectives", function() { return ProvidedRequiredArgumentsOnDirectives; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /* harmony import */ var _language_kinds__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../language/kinds */ "/jXB"); /* harmony import */ var _jsutils_inspect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../jsutils/inspect */ "rWdj"); /* harmony import */ var _jsutils_keyMap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../jsutils/keyMap */ "kBjl"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../type/definition */ "axIb"); /* harmony import */ var _language_printer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../language/printer */ "dQau"); /* harmony import */ var _type_directives__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../type/directives */ "4suF"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function missingFieldArgMessage(fieldName, argName, type) { return "Field \"".concat(fieldName, "\" argument \"").concat(argName, "\" of type ") + "\"".concat(type, "\" is required but not provided."); } function missingDirectiveArgMessage(directiveName, argName, type) { return "Directive \"@".concat(directiveName, "\" argument \"").concat(argName, "\" of type ") + "\"".concat(type, "\" is required but not provided."); } /** * Provided required arguments * * A field or directive is only valid if all required (non-null without a * default value) field arguments have been provided. */ function ProvidedRequiredArguments(context) { return _objectSpread({}, ProvidedRequiredArgumentsOnDirectives(context), { Field: { // Validate on leave to allow for deeper errors to appear first. leave: function leave(fieldNode) { var fieldDef = context.getFieldDef(); if (!fieldDef) { return false; } var argNodes = fieldNode.arguments || []; var argNodeMap = Object(_jsutils_keyMap__WEBPACK_IMPORTED_MODULE_3__["default"])(argNodes, function (arg) { return arg.name.value; }); var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = fieldDef.args[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var argDef = _step.value; var argNode = argNodeMap[argDef.name]; if (!argNode && Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isRequiredArgument"])(argDef)) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](missingFieldArgMessage(fieldDef.name, argDef.name, Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_2__["default"])(argDef.type)), [fieldNode])); } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } } } }); } // @internal function ProvidedRequiredArgumentsOnDirectives(context) { var requiredArgsMap = Object.create(null); var schema = context.getSchema(); var definedDirectives = schema ? schema.getDirectives() : _type_directives__WEBPACK_IMPORTED_MODULE_6__["specifiedDirectives"]; var _iteratorNormalCompletion2 = true; var _didIteratorError2 = false; var _iteratorError2 = undefined; try { for (var _iterator2 = definedDirectives[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { var directive = _step2.value; requiredArgsMap[directive.name] = Object(_jsutils_keyMap__WEBPACK_IMPORTED_MODULE_3__["default"])(directive.args.filter(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isRequiredArgument"]), function (arg) { return arg.name; }); } } catch (err) { _didIteratorError2 = true; _iteratorError2 = err; } finally { try { if (!_iteratorNormalCompletion2 && _iterator2.return != null) { _iterator2.return(); } } finally { if (_didIteratorError2) { throw _iteratorError2; } } } var astDefinitions = context.getDocument().definitions; var _iteratorNormalCompletion3 = true; var _didIteratorError3 = false; var _iteratorError3 = undefined; try { for (var _iterator3 = astDefinitions[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { var def = _step3.value; if (def.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].DIRECTIVE_DEFINITION) { requiredArgsMap[def.name.value] = Object(_jsutils_keyMap__WEBPACK_IMPORTED_MODULE_3__["default"])(def.arguments ? def.arguments.filter(isRequiredArgumentNode) : [], function (arg) { return arg.name.value; }); } } } catch (err) { _didIteratorError3 = true; _iteratorError3 = err; } finally { try { if (!_iteratorNormalCompletion3 && _iterator3.return != null) { _iterator3.return(); } } finally { if (_didIteratorError3) { throw _iteratorError3; } } } return { Directive: { // Validate on leave to allow for deeper errors to appear first. leave: function leave(directiveNode) { var directiveName = directiveNode.name.value; var requiredArgs = requiredArgsMap[directiveName]; if (requiredArgs) { var argNodes = directiveNode.arguments || []; var argNodeMap = Object(_jsutils_keyMap__WEBPACK_IMPORTED_MODULE_3__["default"])(argNodes, function (arg) { return arg.name.value; }); var _arr = Object.keys(requiredArgs); for (var _i = 0; _i < _arr.length; _i++) { var argName = _arr[_i]; if (!argNodeMap[argName]) { var argType = requiredArgs[argName].type; context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](missingDirectiveArgMessage(directiveName, argName, Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isType"])(argType) ? Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_2__["default"])(argType) : Object(_language_printer__WEBPACK_IMPORTED_MODULE_5__["print"])(argType)), directiveNode)); } } } } } }; } function isRequiredArgumentNode(arg) { return arg.type.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].NON_NULL_TYPE && arg.defaultValue == null; } /***/ }), /***/ "Vxrz": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipChannelCommand.js ***! \*********************************************************************************************/ /*! exports provided: GetApnsVoipChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelCommand", function() { return GetApnsVoipChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetApnsVoipChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetApnsVoipChannelCommand, _super); // Start section: command_properties // End section: command_properties function GetApnsVoipChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetApnsVoipChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetApnsVoipChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetApnsVoipChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetApnsVoipChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetApnsVoipChannelCommand"])(input, context); }; GetApnsVoipChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetApnsVoipChannelCommand"])(output, context); }; return GetApnsVoipChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetApnsVoipChannelCommand.js.map /***/ }), /***/ "W1j4": /*!******************************************************************************!*\ !*** ./node_modules/@aws-amplify/pubsub/lib-esm/Providers/PubSubProvider.js ***! \******************************************************************************/ /*! exports provided: AbstractPubSubProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AbstractPubSubProvider", function() { return AbstractPubSubProvider; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AbstractPubSubProvider'); var AbstractPubSubProvider = /** @class */ (function () { function AbstractPubSubProvider(options) { if (options === void 0) { options = {}; } this._config = options; } AbstractPubSubProvider.prototype.configure = function (config) { if (config === void 0) { config = {}; } this._config = __assign(__assign({}, config), this._config); logger.debug("configure " + this.getProviderName(), this._config); return this.options; }; AbstractPubSubProvider.prototype.getCategory = function () { return 'PubSub'; }; Object.defineProperty(AbstractPubSubProvider.prototype, "options", { get: function () { return __assign({}, this._config); }, enumerable: true, configurable: true }); return AbstractPubSubProvider; }()); //# sourceMappingURL=PubSubProvider.js.map /***/ }), /***/ "W5Sr": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-crypto/sha256-browser/node_modules/@aws-crypto/sha256-js/build/constants.js ***! \*******************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MAX_HASHABLE_LENGTH = exports.INIT = exports.KEY = exports.DIGEST_LENGTH = exports.BLOCK_SIZE = void 0; /** * @internal */ exports.BLOCK_SIZE = 64; /** * @internal */ exports.DIGEST_LENGTH = 32; /** * @internal */ exports.KEY = new Uint32Array([ 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2 ]); /** * @internal */ exports.INIT = [ 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 ]; /** * @internal */ exports.MAX_HASHABLE_LENGTH = Math.pow(2, 53) - 1; //# sourceMappingURL=constants.js.map /***/ }), /***/ "W7TT": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSegmentCommand.js ***! \****************************************************************************************/ /*! exports provided: DeleteSegmentCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentCommand", function() { return DeleteSegmentCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteSegmentCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteSegmentCommand, _super); // Start section: command_properties // End section: command_properties function DeleteSegmentCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteSegmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteSegmentRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteSegmentResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteSegmentCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteSegmentCommand"])(input, context); }; DeleteSegmentCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteSegmentCommand"])(output, context); }; return DeleteSegmentCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteSegmentCommand.js.map /***/ }), /***/ "WFqI": /*!***********************************************************!*\ !*** ./node_modules/@aws-amplify/auth/lib/OAuth/OAuth.js ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result["default"] = mod; return result; }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var url_1 = __webpack_require__(/*! url */ "CxY0"); // Used for OAuth parsing of Cognito Hosted UI var urlOpener_1 = __webpack_require__(/*! ./urlOpener */ "5b7z"); var oAuthStorage = __importStar(__webpack_require__(/*! ./oauthStorage */ "1y/n")); var Auth_1 = __webpack_require__(/*! ../types/Auth */ "30Lp"); var core_1 = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); var sha256_1 = __importDefault(__webpack_require__(/*! crypto-js/sha256 */ "lPiR")); var enc_base64_1 = __importDefault(__webpack_require__(/*! crypto-js/enc-base64 */ "ETIr")); var AMPLIFY_SYMBOL = (typeof Symbol !== 'undefined' && typeof Symbol.for === 'function' ? Symbol.for('amplify_default') : '@@amplify_default'); var dispatchAuthEvent = function (event, data, message) { core_1.Hub.dispatch('auth', { event: event, data: data, message: message }, 'Auth', AMPLIFY_SYMBOL); }; var logger = new core_1.ConsoleLogger('OAuth'); var OAuth = /** @class */ (function () { function OAuth(_a) { var config = _a.config, cognitoClientId = _a.cognitoClientId, _b = _a.scopes, scopes = _b === void 0 ? [] : _b; this._urlOpener = config.urlOpener || urlOpener_1.launchUri; this._config = config; this._cognitoClientId = cognitoClientId; if (!this.isValidScopes(scopes)) throw Error('scopes must be a String Array'); this._scopes = scopes; } OAuth.prototype.isValidScopes = function (scopes) { return (Array.isArray(scopes) && scopes.every(function (scope) { return typeof scope === 'string'; })); }; OAuth.prototype.oauthSignIn = function (responseType, domain, redirectSignIn, clientId, provider, customState) { if (responseType === void 0) { responseType = 'code'; } if (provider === void 0) { provider = Auth_1.CognitoHostedUIIdentityProvider.Cognito; } var generatedState = this._generateState(32); /* encodeURIComponent is not URL safe, use urlSafeEncode instead. Cognito single-encodes/decodes url on first sign in and double-encodes/decodes url when user already signed in. Using encodeURIComponent, Base32, Base64 add characters % or = which on further encoding becomes unsafe. '=' create issue for parsing query params. Refer: https://github.com/aws-amplify/amplify-js/issues/5218 */ var state = customState ? generatedState + "-" + core_1.urlSafeEncode(customState) : generatedState; oAuthStorage.setState(state); var pkce_key = this._generateRandom(128); oAuthStorage.setPKCE(pkce_key); var code_challenge = this._generateChallenge(pkce_key); var code_challenge_method = 'S256'; var scopesString = this._scopes.join(' '); var queryString = Object.entries(__assign(__assign({ redirect_uri: redirectSignIn, response_type: responseType, client_id: clientId, identity_provider: provider, scope: scopesString, state: state }, (responseType === 'code' ? { code_challenge: code_challenge } : {})), (responseType === 'code' ? { code_challenge_method: code_challenge_method } : {}))) .map(function (_a) { var _b = __read(_a, 2), k = _b[0], v = _b[1]; return encodeURIComponent(k) + "=" + encodeURIComponent(v); }) .join('&'); var URL = "https://" + domain + "/oauth2/authorize?" + queryString; logger.debug("Redirecting to " + URL); this._urlOpener(URL, redirectSignIn); }; OAuth.prototype._handleCodeFlow = function (currentUrl) { return __awaiter(this, void 0, void 0, function () { var code, oAuthTokenEndpoint, client_id, redirect_uri, code_verifier, oAuthTokenBody, body, _a, access_token, refresh_token, id_token, error; return __generator(this, function (_b) { switch (_b.label) { case 0: code = (url_1.parse(currentUrl).query || '') .split('&') .map(function (pairings) { return pairings.split('='); }) .reduce(function (accum, _a) { var _b; var _c = __read(_a, 2), k = _c[0], v = _c[1]; return (__assign(__assign({}, accum), (_b = {}, _b[k] = v, _b))); }, { code: undefined }).code; if (!code) { return [2 /*return*/]; } oAuthTokenEndpoint = 'https://' + this._config.domain + '/oauth2/token'; dispatchAuthEvent('codeFlow', {}, "Retrieving tokens from " + oAuthTokenEndpoint); client_id = Auth_1.isCognitoHostedOpts(this._config) ? this._cognitoClientId : this._config.clientID; redirect_uri = Auth_1.isCognitoHostedOpts(this._config) ? this._config.redirectSignIn : this._config.redirectUri; code_verifier = oAuthStorage.getPKCE(); oAuthTokenBody = __assign({ grant_type: 'authorization_code', code: code, client_id: client_id, redirect_uri: redirect_uri }, (code_verifier ? { code_verifier: code_verifier } : {})); logger.debug("Calling token endpoint: " + oAuthTokenEndpoint + " with", oAuthTokenBody); body = Object.entries(oAuthTokenBody) .map(function (_a) { var _b = __read(_a, 2), k = _b[0], v = _b[1]; return encodeURIComponent(k) + "=" + encodeURIComponent(v); }) .join('&'); return [4 /*yield*/, fetch(oAuthTokenEndpoint, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: body, })]; case 1: return [4 /*yield*/, (_b.sent()).json()]; case 2: _a = _b.sent(), access_token = _a.access_token, refresh_token = _a.refresh_token, id_token = _a.id_token, error = _a.error; if (error) { throw new Error(error); } return [2 /*return*/, { accessToken: access_token, refreshToken: refresh_token, idToken: id_token, }]; } }); }); }; OAuth.prototype._handleImplicitFlow = function (currentUrl) { return __awaiter(this, void 0, void 0, function () { var _a, id_token, access_token; return __generator(this, function (_b) { _a = (url_1.parse(currentUrl).hash || '#') .substr(1) // Remove # from returned code .split('&') .map(function (pairings) { return pairings.split('='); }) .reduce(function (accum, _a) { var _b; var _c = __read(_a, 2), k = _c[0], v = _c[1]; return (__assign(__assign({}, accum), (_b = {}, _b[k] = v, _b))); }, { id_token: undefined, access_token: undefined, }), id_token = _a.id_token, access_token = _a.access_token; dispatchAuthEvent('implicitFlow', {}, "Got tokens from " + currentUrl); logger.debug("Retrieving implicit tokens from " + currentUrl + " with"); return [2 /*return*/, { accessToken: access_token, idToken: id_token, refreshToken: null, }]; }); }); }; OAuth.prototype.handleAuthResponse = function (currentUrl) { return __awaiter(this, void 0, void 0, function () { var urlParams, error, error_description, state, _a, _b, e_1; return __generator(this, function (_c) { switch (_c.label) { case 0: _c.trys.push([0, 5, , 6]); urlParams = currentUrl ? __assign(__assign({}, (url_1.parse(currentUrl).hash || '#') .substr(1) .split('&') .map(function (entry) { return entry.split('='); }) .reduce(function (acc, _a) { var _b = __read(_a, 2), k = _b[0], v = _b[1]; return ((acc[k] = v), acc); }, {})), (url_1.parse(currentUrl).query || '') .split('&') .map(function (entry) { return entry.split('='); }) .reduce(function (acc, _a) { var _b = __read(_a, 2), k = _b[0], v = _b[1]; return ((acc[k] = v), acc); }, {})) : {}; error = urlParams.error, error_description = urlParams.error_description; if (error) { throw new Error(error_description); } state = this._validateState(urlParams); logger.debug("Starting " + this._config.responseType + " flow with " + currentUrl); if (!(this._config.responseType === 'code')) return [3 /*break*/, 2]; _a = [{}]; return [4 /*yield*/, this._handleCodeFlow(currentUrl)]; case 1: return [2 /*return*/, __assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_c.sent())])), { state: state }])]; case 2: _b = [{}]; return [4 /*yield*/, this._handleImplicitFlow(currentUrl)]; case 3: return [2 /*return*/, __assign.apply(void 0, [__assign.apply(void 0, _b.concat([(_c.sent())])), { state: state }])]; case 4: return [3 /*break*/, 6]; case 5: e_1 = _c.sent(); logger.error("Error handling auth response.", e_1); throw e_1; case 6: return [2 /*return*/]; } }); }); }; OAuth.prototype._validateState = function (urlParams) { if (!urlParams) { return; } var savedState = oAuthStorage.getState(); var returnedState = urlParams.state; // This is because savedState only exists if the flow was initiated by Amplify if (savedState && savedState !== returnedState) { throw new Error('Invalid state in OAuth flow'); } return returnedState; }; OAuth.prototype.signOut = function () { return __awaiter(this, void 0, void 0, function () { var oAuthLogoutEndpoint, client_id, signout_uri; return __generator(this, function (_a) { oAuthLogoutEndpoint = 'https://' + this._config.domain + '/logout?'; client_id = Auth_1.isCognitoHostedOpts(this._config) ? this._cognitoClientId : this._config.oauth.clientID; signout_uri = Auth_1.isCognitoHostedOpts(this._config) ? this._config.redirectSignOut : this._config.returnTo; oAuthLogoutEndpoint += Object.entries({ client_id: client_id, logout_uri: encodeURIComponent(signout_uri), }) .map(function (_a) { var _b = __read(_a, 2), k = _b[0], v = _b[1]; return k + "=" + v; }) .join('&'); dispatchAuthEvent('oAuthSignOut', { oAuth: 'signOut' }, "Signing out from " + oAuthLogoutEndpoint); logger.debug("Signing out from " + oAuthLogoutEndpoint); return [2 /*return*/, this._urlOpener(oAuthLogoutEndpoint)]; }); }); }; OAuth.prototype._generateState = function (length) { var result = ''; var i = length; var chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; for (; i > 0; --i) result += chars[Math.round(Math.random() * (chars.length - 1))]; return result; }; OAuth.prototype._generateChallenge = function (code) { return this._base64URL(sha256_1.default(code)); }; OAuth.prototype._base64URL = function (string) { return string .toString(enc_base64_1.default) .replace(/=/g, '') .replace(/\+/g, '-') .replace(/\//g, '_'); }; OAuth.prototype._generateRandom = function (size) { var CHARSET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~'; var buffer = new Uint8Array(size); if (typeof window !== 'undefined' && !!window.crypto) { window.crypto.getRandomValues(buffer); } else { for (var i = 0; i < size; i += 1) { buffer[i] = (Math.random() * CHARSET.length) | 0; } } return this._bufferToString(buffer); }; OAuth.prototype._bufferToString = function (buffer) { var CHARSET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; var state = []; for (var i = 0; i < buffer.byteLength; i += 1) { var index = buffer[i] % CHARSET.length; state.push(CHARSET[index]); } return state.join(''); }; return OAuth; }()); exports.default = OAuth; //# sourceMappingURL=OAuth.js.map /***/ }), /***/ "WFqU": /*!********************************************!*\ !*** ./node_modules/lodash/_freeGlobal.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; module.exports = freeGlobal; /***/ }), /***/ "WGKf": /*!*****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/DescribeStreamProcessorCommand.js ***! \*****************************************************************************************************/ /*! exports provided: DescribeStreamProcessorCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamProcessorCommand", function() { return DescribeStreamProcessorCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DescribeStreamProcessorCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeStreamProcessorCommand, _super); // Start section: command_properties // End section: command_properties function DescribeStreamProcessorCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DescribeStreamProcessorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamProcessorRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamProcessorResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DescribeStreamProcessorCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeStreamProcessorCommand"])(input, context); }; DescribeStreamProcessorCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeStreamProcessorCommand"])(output, context); }; return DescribeStreamProcessorCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DescribeStreamProcessorCommand.js.map /***/ }), /***/ "WIb/": /*!*********************************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-sdk-s3/dist/es/validate-bucket-name.js ***! \*********************************************************************************/ /*! exports provided: validateBucketNameMiddleware, validateBucketNameMiddlewareOptions, getValidateBucketNamePlugin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateBucketNameMiddleware", function() { return validateBucketNameMiddleware; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateBucketNameMiddlewareOptions", function() { return validateBucketNameMiddlewareOptions; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValidateBucketNamePlugin", function() { return getValidateBucketNamePlugin; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_util_arn_parser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/util-arn-parser */ "BBLe"); function validateBucketNameMiddleware() { var _this = this; return function (next) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () { var Bucket, err; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { Bucket = args.input.Bucket; if (typeof Bucket === "string" && !Object(_aws_sdk_util_arn_parser__WEBPACK_IMPORTED_MODULE_1__["validate"])(Bucket) && Bucket.indexOf("/") >= 0) { err = new Error("Bucket name shouldn't contain '/', received '" + Bucket + "'"); err.name = "InvalidBucketName"; throw err; } return [2 /*return*/, next(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, args))]; }); }); }; }; } var validateBucketNameMiddlewareOptions = { step: "initialize", tags: ["VALIDATE_BUCKET_NAME"], name: "validateBucketNameMiddleware", }; // eslint-disable-next-line @typescript-eslint/no-unused-vars var getValidateBucketNamePlugin = function (unused) { return ({ applyToStack: function (clientStack) { clientStack.add(validateBucketNameMiddleware(), validateBucketNameMiddlewareOptions); }, }); }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGUtYnVja2V0LW5hbWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdmFsaWRhdGUtYnVja2V0LW5hbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQVNBLE9BQU8sRUFBRSxRQUFRLElBQUksV0FBVyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFFbkUsTUFBTSxVQUFVLDRCQUE0QjtJQUE1QyxpQkFnQkM7SUFmQyxPQUFPLFVBQ0wsSUFBb0MsSUFDRCxPQUFBLFVBQ25DLElBQXFDOzs7WUFHMUIsTUFBTSxHQUNiLElBQUksYUFEUyxDQUNSO1lBQ1QsSUFBSSxPQUFPLE1BQU0sS0FBSyxRQUFRLElBQUksQ0FBQyxXQUFXLENBQUMsTUFBTSxDQUFDLElBQUksTUFBTSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLEVBQUU7Z0JBQzVFLEdBQUcsR0FBRyxJQUFJLEtBQUssQ0FBQyxrREFBZ0QsTUFBTSxNQUFHLENBQUMsQ0FBQztnQkFDakYsR0FBRyxDQUFDLElBQUksR0FBRyxtQkFBbUIsQ0FBQztnQkFDL0IsTUFBTSxHQUFHLENBQUM7YUFDWDtZQUNELHNCQUFPLElBQUksY0FBTSxJQUFJLEVBQUcsRUFBQzs7U0FDMUIsRUFab0MsQ0FZcEMsQ0FBQztBQUNKLENBQUM7QUFFRCxNQUFNLENBQUMsSUFBTSxtQ0FBbUMsR0FBNkI7SUFDM0UsSUFBSSxFQUFFLFlBQVk7SUFDbEIsSUFBSSxFQUFFLENBQUMsc0JBQXNCLENBQUM7SUFDOUIsSUFBSSxFQUFFLDhCQUE4QjtDQUNyQyxDQUFDO0FBRUYsNkRBQTZEO0FBQzdELE1BQU0sQ0FBQyxJQUFNLDJCQUEyQixHQUFHLFVBQUMsTUFBVyxJQUEwQixPQUFBLENBQUM7SUFDaEYsWUFBWSxFQUFFLFVBQUMsV0FBVztRQUN4QixXQUFXLENBQUMsR0FBRyxDQUFDLDRCQUE0QixFQUFFLEVBQUUsbUNBQW1DLENBQUMsQ0FBQztJQUN2RixDQUFDO0NBQ0YsQ0FBQyxFQUorRSxDQUkvRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgSW5pdGlhbGl6ZUhhbmRsZXIsXG4gIEluaXRpYWxpemVIYW5kbGVyQXJndW1lbnRzLFxuICBJbml0aWFsaXplSGFuZGxlck9wdGlvbnMsXG4gIEluaXRpYWxpemVIYW5kbGVyT3V0cHV0LFxuICBJbml0aWFsaXplTWlkZGxld2FyZSxcbiAgTWV0YWRhdGFCZWFyZXIsXG4gIFBsdWdnYWJsZSxcbn0gZnJvbSBcIkBhd3Mtc2RrL3R5cGVzXCI7XG5pbXBvcnQgeyB2YWxpZGF0ZSBhcyB2YWxpZGF0ZUFybiB9IGZyb20gXCJAYXdzLXNkay91dGlsLWFybi1wYXJzZXJcIjtcblxuZXhwb3J0IGZ1bmN0aW9uIHZhbGlkYXRlQnVja2V0TmFtZU1pZGRsZXdhcmUoKTogSW5pdGlhbGl6ZU1pZGRsZXdhcmU8YW55LCBhbnk+IHtcbiAgcmV0dXJuIDxPdXRwdXQgZXh0ZW5kcyBNZXRhZGF0YUJlYXJlcj4oXG4gICAgbmV4dDogSW5pdGlhbGl6ZUhhbmRsZXI8YW55LCBPdXRwdXQ+XG4gICk6IEluaXRpYWxpemVIYW5kbGVyPGFueSwgT3V0cHV0PiA9PiBhc3luYyAoXG4gICAgYXJnczogSW5pdGlhbGl6ZUhhbmRsZXJBcmd1bWVudHM8YW55PlxuICApOiBQcm9taXNlPEluaXRpYWxpemVIYW5kbGVyT3V0cHV0PE91dHB1dD4+ID0+IHtcbiAgICBjb25zdCB7XG4gICAgICBpbnB1dDogeyBCdWNrZXQgfSxcbiAgICB9ID0gYXJncztcbiAgICBpZiAodHlwZW9mIEJ1Y2tldCA9PT0gXCJzdHJpbmdcIiAmJiAhdmFsaWRhdGVBcm4oQnVja2V0KSAmJiBCdWNrZXQuaW5kZXhPZihcIi9cIikgPj0gMCkge1xuICAgICAgY29uc3QgZXJyID0gbmV3IEVycm9yKGBCdWNrZXQgbmFtZSBzaG91bGRuJ3QgY29udGFpbiAnLycsIHJlY2VpdmVkICcke0J1Y2tldH0nYCk7XG4gICAgICBlcnIubmFtZSA9IFwiSW52YWxpZEJ1Y2tldE5hbWVcIjtcbiAgICAgIHRocm93IGVycjtcbiAgICB9XG4gICAgcmV0dXJuIG5leHQoeyAuLi5hcmdzIH0pO1xuICB9O1xufVxuXG5leHBvcnQgY29uc3QgdmFsaWRhdGVCdWNrZXROYW1lTWlkZGxld2FyZU9wdGlvbnM6IEluaXRpYWxpemVIYW5kbGVyT3B0aW9ucyA9IHtcbiAgc3RlcDogXCJpbml0aWFsaXplXCIsXG4gIHRhZ3M6IFtcIlZBTElEQVRFX0JVQ0tFVF9OQU1FXCJdLFxuICBuYW1lOiBcInZhbGlkYXRlQnVja2V0TmFtZU1pZGRsZXdhcmVcIixcbn07XG5cbi8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tdW51c2VkLXZhcnNcbmV4cG9ydCBjb25zdCBnZXRWYWxpZGF0ZUJ1Y2tldE5hbWVQbHVnaW4gPSAodW51c2VkOiBhbnkpOiBQbHVnZ2FibGU8YW55LCBhbnk+ID0+ICh7XG4gIGFwcGx5VG9TdGFjazogKGNsaWVudFN0YWNrKSA9PiB7XG4gICAgY2xpZW50U3RhY2suYWRkKHZhbGlkYXRlQnVja2V0TmFtZU1pZGRsZXdhcmUoKSwgdmFsaWRhdGVCdWNrZXROYW1lTWlkZGxld2FyZU9wdGlvbnMpO1xuICB9LFxufSk7XG4iXX0= /***/ }), /***/ "WKOl": /*!*********************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/OAuthHelper/index.js ***! \*********************************************************************/ /*! exports provided: GoogleOAuth, FacebookOAuth */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GoogleOAuth", function() { return GoogleOAuth; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FacebookOAuth", function() { return FacebookOAuth; }); /* harmony import */ var _GoogleOAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GoogleOAuth */ "ILrs"); /* harmony import */ var _FacebookOAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FacebookOAuth */ "fpfY"); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var GoogleOAuth = new _GoogleOAuth__WEBPACK_IMPORTED_MODULE_0__["GoogleOAuth"](); var FacebookOAuth = new _FacebookOAuth__WEBPACK_IMPORTED_MODULE_1__["FacebookOAuth"](); //# sourceMappingURL=index.js.map /***/ }), /***/ "WMd4": /*!*************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/Notification.js ***! \*************************************************************/ /*! exports provided: NotificationKind, Notification */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationKind", function() { return NotificationKind; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Notification", function() { return Notification; }); /* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./observable/empty */ "EY2u"); /* harmony import */ var _observable_of__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./observable/of */ "LRne"); /* harmony import */ var _observable_throwError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./observable/throwError */ "z6cu"); var NotificationKind; (function (NotificationKind) { NotificationKind["NEXT"] = "N"; NotificationKind["ERROR"] = "E"; NotificationKind["COMPLETE"] = "C"; })(NotificationKind || (NotificationKind = {})); class Notification { constructor(kind, value, error) { this.kind = kind; this.value = value; this.error = error; this.hasValue = kind === 'N'; } observe(observer) { switch (this.kind) { case 'N': return observer.next && observer.next(this.value); case 'E': return observer.error && observer.error(this.error); case 'C': return observer.complete && observer.complete(); } } do(next, error, complete) { const kind = this.kind; switch (kind) { case 'N': return next && next(this.value); case 'E': return error && error(this.error); case 'C': return complete && complete(); } } accept(nextOrObserver, error, complete) { if (nextOrObserver && typeof nextOrObserver.next === 'function') { return this.observe(nextOrObserver); } else { return this.do(nextOrObserver, error, complete); } } toObservable() { const kind = this.kind; switch (kind) { case 'N': return Object(_observable_of__WEBPACK_IMPORTED_MODULE_1__["of"])(this.value); case 'E': return Object(_observable_throwError__WEBPACK_IMPORTED_MODULE_2__["throwError"])(this.error); case 'C': return Object(_observable_empty__WEBPACK_IMPORTED_MODULE_0__["empty"])(); } throw new Error('unexpected notification kind value'); } static createNext(value) { if (typeof value !== 'undefined') { return new Notification('N', value); } return Notification.undefinedValueNotification; } static createError(err) { return new Notification('E', undefined, err); } static createComplete() { return Notification.completeNotification; } } Notification.completeNotification = new Notification('C'); Notification.undefinedValueNotification = new Notification('N', undefined); //# sourceMappingURL=Notification.js.map /***/ }), /***/ "WNFi": /*!*******************************************************************!*\ !*** ./node_modules/@aws-amplify/auth/lib-esm/OAuth/urlOpener.js ***! \*******************************************************************/ /*! exports provided: launchUri */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "launchUri", function() { return launchUri; }); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var SELF = '_self'; var launchUri = function (url) { var windowProxy = window.open(url, SELF); if (windowProxy) { return Promise.resolve(windowProxy); } else { return Promise.reject(); } }; //# sourceMappingURL=urlOpener.js.map /***/ }), /***/ "WNWs": /*!*****************************************************************!*\ !*** ./node_modules/@aws-amplify/cache/lib-esm/StorageCache.js ***! \*****************************************************************/ /*! exports provided: StorageCache, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StorageCache", function() { return StorageCache; }); /* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils */ "u5wP"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('StorageCache'); /** * Initialization of the cache * */ var StorageCache = /** @class */ (function () { /** * Initialize the cache * @param config - the configuration of the cache */ function StorageCache(config) { this.config = Object.assign({}, config); this.cacheCurSizeKey = this.config.keyPrefix + 'CurSize'; this.checkConfig(); } StorageCache.prototype.getModuleName = function () { return 'Cache'; }; StorageCache.prototype.checkConfig = function () { // check configuration if (!Object(_Utils__WEBPACK_IMPORTED_MODULE_0__["isInteger"])(this.config.capacityInBytes)) { logger.error('Invalid parameter: capacityInBytes. It should be an Integer. Setting back to default.'); this.config.capacityInBytes = _Utils__WEBPACK_IMPORTED_MODULE_0__["defaultConfig"].capacityInBytes; } if (!Object(_Utils__WEBPACK_IMPORTED_MODULE_0__["isInteger"])(this.config.itemMaxSize)) { logger.error('Invalid parameter: itemMaxSize. It should be an Integer. Setting back to default.'); this.config.itemMaxSize = _Utils__WEBPACK_IMPORTED_MODULE_0__["defaultConfig"].itemMaxSize; } if (!Object(_Utils__WEBPACK_IMPORTED_MODULE_0__["isInteger"])(this.config.defaultTTL)) { logger.error('Invalid parameter: defaultTTL. It should be an Integer. Setting back to default.'); this.config.defaultTTL = _Utils__WEBPACK_IMPORTED_MODULE_0__["defaultConfig"].defaultTTL; } if (!Object(_Utils__WEBPACK_IMPORTED_MODULE_0__["isInteger"])(this.config.defaultPriority)) { logger.error('Invalid parameter: defaultPriority. It should be an Integer. Setting back to default.'); this.config.defaultPriority = _Utils__WEBPACK_IMPORTED_MODULE_0__["defaultConfig"].defaultPriority; } if (this.config.itemMaxSize > this.config.capacityInBytes) { logger.error('Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default.'); this.config.itemMaxSize = _Utils__WEBPACK_IMPORTED_MODULE_0__["defaultConfig"].itemMaxSize; } if (this.config.defaultPriority > 5 || this.config.defaultPriority < 1) { logger.error('Invalid parameter: defaultPriority. It should be between 1 and 5. Setting back to default.'); this.config.defaultPriority = _Utils__WEBPACK_IMPORTED_MODULE_0__["defaultConfig"].defaultPriority; } if (Number(this.config.warningThreshold) > 1 || Number(this.config.warningThreshold) < 0) { logger.error('Invalid parameter: warningThreshold. It should be between 0 and 1. Setting back to default.'); this.config.warningThreshold = _Utils__WEBPACK_IMPORTED_MODULE_0__["defaultConfig"].warningThreshold; } // set 5MB limit var cacheLimit = 5 * 1024 * 1024; if (this.config.capacityInBytes > cacheLimit) { logger.error('Cache Capacity should be less than 5MB. Setting back to default. Setting back to default.'); this.config.capacityInBytes = _Utils__WEBPACK_IMPORTED_MODULE_0__["defaultConfig"].capacityInBytes; } }; /** * produce a JSON object with meta-data and data value * @param value - the value of the item * @param options - optional, the specified meta-data * * @return - the item which has the meta-data and the value */ StorageCache.prototype.fillCacheItem = function (key, value, options) { var ret = { key: key, data: value, timestamp: Object(_Utils__WEBPACK_IMPORTED_MODULE_0__["getCurrTime"])(), visitedTime: Object(_Utils__WEBPACK_IMPORTED_MODULE_0__["getCurrTime"])(), priority: options.priority, expires: options.expires, type: typeof value, byteSize: 0, }; ret.byteSize = Object(_Utils__WEBPACK_IMPORTED_MODULE_0__["getByteLength"])(JSON.stringify(ret)); // for accurate size ret.byteSize = Object(_Utils__WEBPACK_IMPORTED_MODULE_0__["getByteLength"])(JSON.stringify(ret)); return ret; }; /** * set cache with customized configuration * @param config - customized configuration * * @return - the current configuration */ StorageCache.prototype.configure = function (config) { if (!config) { return this.config; } if (config.keyPrefix) { logger.warn("Don't try to configure keyPrefix!"); } this.config = Object.assign({}, this.config, config, config.Cache); this.checkConfig(); return this.config; }; return StorageCache; }()); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (StorageCache); //# sourceMappingURL=StorageCache.js.map /***/ }), /***/ "WOLP": /*!********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-translate/dist/es/runtimeConfig.shared.js ***! \********************************************************************************/ /*! exports provided: ClientSharedValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientSharedValues", function() { return ClientSharedValues; }); /* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "gtSv"); var ClientSharedValues = { apiVersion: "2017-07-01", disableHostPrefix: false, regionInfoProvider: _endpoints__WEBPACK_IMPORTED_MODULE_0__["defaultRegionInfoProvider"], signingName: "translate", }; //# sourceMappingURL=runtimeConfig.shared.js.map /***/ }), /***/ "WPMC": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/generate.js ***! \********************************************************************/ /*! exports provided: generate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generate", function() { return generate; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/identity */ "SpAZ"); /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro"); function generate(initialStateOrOptions, condition, iterate, resultSelectorOrObservable, scheduler) { let resultSelector; let initialState; if (arguments.length == 1) { const options = initialStateOrOptions; initialState = options.initialState; condition = options.condition; iterate = options.iterate; resultSelector = options.resultSelector || _util_identity__WEBPACK_IMPORTED_MODULE_1__["identity"]; scheduler = options.scheduler; } else if (resultSelectorOrObservable === undefined || Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_2__["isScheduler"])(resultSelectorOrObservable)) { initialState = initialStateOrOptions; resultSelector = _util_identity__WEBPACK_IMPORTED_MODULE_1__["identity"]; scheduler = resultSelectorOrObservable; } else { initialState = initialStateOrOptions; resultSelector = resultSelectorOrObservable; } return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => { let state = initialState; if (scheduler) { return scheduler.schedule(dispatch, 0, { subscriber, iterate, condition, resultSelector, state }); } do { if (condition) { let conditionResult; try { conditionResult = condition(state); } catch (err) { subscriber.error(err); return undefined; } if (!conditionResult) { subscriber.complete(); break; } } let value; try { value = resultSelector(state); } catch (err) { subscriber.error(err); return undefined; } subscriber.next(value); if (subscriber.closed) { break; } try { state = iterate(state); } catch (err) { subscriber.error(err); return undefined; } } while (true); return undefined; }); } function dispatch(state) { const { subscriber, condition } = state; if (subscriber.closed) { return undefined; } if (state.needIterate) { try { state.state = state.iterate(state.state); } catch (err) { subscriber.error(err); return undefined; } } else { state.needIterate = true; } if (condition) { let conditionResult; try { conditionResult = condition(state.state); } catch (err) { subscriber.error(err); return undefined; } if (!conditionResult) { subscriber.complete(); return undefined; } if (subscriber.closed) { return undefined; } } let value; try { value = state.resultSelector(state.state); } catch (err) { subscriber.error(err); return undefined; } if (subscriber.closed) { return undefined; } subscriber.next(value); if (subscriber.closed) { return undefined; } return this.schedule(state); } //# sourceMappingURL=generate.js.map /***/ }), /***/ "WTPI": /*!*****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/DeleteDocumentClassifierCommand.js ***! \*****************************************************************************************************/ /*! exports provided: DeleteDocumentClassifierCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteDocumentClassifierCommand", function() { return DeleteDocumentClassifierCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteDocumentClassifierCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteDocumentClassifierCommand, _super); // Start section: command_properties // End section: command_properties function DeleteDocumentClassifierCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteDocumentClassifierCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteDocumentClassifierRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteDocumentClassifierResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteDocumentClassifierCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DeleteDocumentClassifierCommand"])(input, context); }; DeleteDocumentClassifierCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DeleteDocumentClassifierCommand"])(output, context); }; return DeleteDocumentClassifierCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteDocumentClassifierCommand.js.map /***/ }), /***/ "WXJZ": /*!****************************************************!*\ !*** ./node_modules/graphql/jsutils/keyValMap.mjs ***! \****************************************************/ /*! exports provided: default */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return keyValMap; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Creates a keyed JS object from an array, given a function to produce the keys * and a function to produce the values from each item in the array. * * const phoneBook = [ * { name: 'Jon', num: '555-1234' }, * { name: 'Jenny', num: '867-5309' } * ] * * // { Jon: '555-1234', Jenny: '867-5309' } * const phonesByName = keyValMap( * phoneBook, * entry => entry.name, * entry => entry.num * ) * */ function keyValMap(list, keyFn, valFn) { return list.reduce(function (map, item) { return map[keyFn(item)] = valFn(item), map; }, Object.create(null)); } /***/ }), /***/ "WYAk": /*!****************************************!*\ !*** ./node_modules/crypto-js/hmac.js ***! \****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { ;(function (root, factory) { if (true) { // CommonJS module.exports = exports = factory(__webpack_require__(/*! ./core */ "Ib8C")); } else {} }(this, function (CryptoJS) { (function () { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var Base = C_lib.Base; var C_enc = C.enc; var Utf8 = C_enc.Utf8; var C_algo = C.algo; /** * HMAC algorithm. */ var HMAC = C_algo.HMAC = Base.extend({ /** * Initializes a newly created HMAC. * * @param {Hasher} hasher The hash algorithm to use. * @param {WordArray|string} key The secret key. * * @example * * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key); */ init: function (hasher, key) { // Init hasher hasher = this._hasher = new hasher.init(); // Convert string to WordArray, else assume WordArray already if (typeof key == 'string') { key = Utf8.parse(key); } // Shortcuts var hasherBlockSize = hasher.blockSize; var hasherBlockSizeBytes = hasherBlockSize * 4; // Allow arbitrary length keys if (key.sigBytes > hasherBlockSizeBytes) { key = hasher.finalize(key); } // Clamp excess bits key.clamp(); // Clone key for inner and outer pads var oKey = this._oKey = key.clone(); var iKey = this._iKey = key.clone(); // Shortcuts var oKeyWords = oKey.words; var iKeyWords = iKey.words; // XOR keys with pad constants for (var i = 0; i < hasherBlockSize; i++) { oKeyWords[i] ^= 0x5c5c5c5c; iKeyWords[i] ^= 0x36363636; } oKey.sigBytes = iKey.sigBytes = hasherBlockSizeBytes; // Set initial values this.reset(); }, /** * Resets this HMAC to its initial state. * * @example * * hmacHasher.reset(); */ reset: function () { // Shortcut var hasher = this._hasher; // Reset hasher.reset(); hasher.update(this._iKey); }, /** * Updates this HMAC with a message. * * @param {WordArray|string} messageUpdate The message to append. * * @return {HMAC} This HMAC instance. * * @example * * hmacHasher.update('message'); * hmacHasher.update(wordArray); */ update: function (messageUpdate) { this._hasher.update(messageUpdate); // Chainable return this; }, /** * Finalizes the HMAC computation. * Note that the finalize operation is effectively a destructive, read-once operation. * * @param {WordArray|string} messageUpdate (Optional) A final message update. * * @return {WordArray} The HMAC. * * @example * * var hmac = hmacHasher.finalize(); * var hmac = hmacHasher.finalize('message'); * var hmac = hmacHasher.finalize(wordArray); */ finalize: function (messageUpdate) { // Shortcut var hasher = this._hasher; // Compute HMAC var innerHash = hasher.finalize(messageUpdate); hasher.reset(); var hmac = hasher.finalize(this._oKey.clone().concat(innerHash)); return hmac; } }); }()); })); /***/ }), /***/ "Wb+S": /*!********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEventStreamCommand.js ***! \********************************************************************************************/ /*! exports provided: DeleteEventStreamCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamCommand", function() { return DeleteEventStreamCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteEventStreamCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteEventStreamCommand, _super); // Start section: command_properties // End section: command_properties function DeleteEventStreamCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteEventStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteEventStreamRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteEventStreamResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteEventStreamCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteEventStreamCommand"])(input, context); }; DeleteEventStreamCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteEventStreamCommand"])(output, context); }; return DeleteEventStreamCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteEventStreamCommand.js.map /***/ }), /***/ "WeYW": /*!**************************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/ListDominantLanguageDetectionJobsCommand.js ***! \**************************************************************************************************************/ /*! exports provided: ListDominantLanguageDetectionJobsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListDominantLanguageDetectionJobsCommand", function() { return ListDominantLanguageDetectionJobsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListDominantLanguageDetectionJobsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListDominantLanguageDetectionJobsCommand, _super); // Start section: command_properties // End section: command_properties function ListDominantLanguageDetectionJobsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListDominantLanguageDetectionJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListDominantLanguageDetectionJobsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListDominantLanguageDetectionJobsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListDominantLanguageDetectionJobsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListDominantLanguageDetectionJobsCommand"])(input, context); }; ListDominantLanguageDetectionJobsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListDominantLanguageDetectionJobsCommand"])(output, context); }; return ListDominantLanguageDetectionJobsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListDominantLanguageDetectionJobsCommand.js.map /***/ }), /***/ "Wfc6": /*!***************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/DeleteEntityRecognizerCommand.js ***! \***************************************************************************************************/ /*! exports provided: DeleteEntityRecognizerCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEntityRecognizerCommand", function() { return DeleteEntityRecognizerCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteEntityRecognizerCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteEntityRecognizerCommand, _super); // Start section: command_properties // End section: command_properties function DeleteEntityRecognizerCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteEntityRecognizerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteEntityRecognizerRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteEntityRecognizerResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteEntityRecognizerCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DeleteEntityRecognizerCommand"])(input, context); }; DeleteEntityRecognizerCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DeleteEntityRecognizerCommand"])(output, context); }; return DeleteEntityRecognizerCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteEntityRecognizerCommand.js.map /***/ }), /***/ "Wm0+": /*!*********************************************!*\ !*** ./node_modules/ulid/dist/index.esm.js ***! \*********************************************/ /*! exports provided: replaceCharAt, incrementBase32, randomChar, encodeTime, encodeRandom, decodeTime, detectPrng, factory, monotonicFactory, ulid */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "replaceCharAt", function() { return replaceCharAt; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "incrementBase32", function() { return incrementBase32; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "randomChar", function() { return randomChar; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "encodeTime", function() { return encodeTime; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "encodeRandom", function() { return encodeRandom; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "decodeTime", function() { return decodeTime; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "detectPrng", function() { return detectPrng; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "factory", function() { return factory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monotonicFactory", function() { return monotonicFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ulid", function() { return ulid; }); function createError(message) { var err = new Error(message); err.source = "ulid"; return err; } // These values should NEVER change. If // they do, we're no longer making ulids! var ENCODING = "0123456789ABCDEFGHJKMNPQRSTVWXYZ"; // Crockford's Base32 var ENCODING_LEN = ENCODING.length; var TIME_MAX = Math.pow(2, 48) - 1; var TIME_LEN = 10; var RANDOM_LEN = 16; function replaceCharAt(str, index, char) { if (index > str.length - 1) { return str; } return str.substr(0, index) + char + str.substr(index + 1); } function incrementBase32(str) { var done = undefined; var index = str.length; var char = void 0; var charIndex = void 0; var maxCharIndex = ENCODING_LEN - 1; while (!done && index-- >= 0) { char = str[index]; charIndex = ENCODING.indexOf(char); if (charIndex === -1) { throw createError("incorrectly encoded string"); } if (charIndex === maxCharIndex) { str = replaceCharAt(str, index, ENCODING[0]); continue; } done = replaceCharAt(str, index, ENCODING[charIndex + 1]); } if (typeof done === "string") { return done; } throw createError("cannot increment this string"); } function randomChar(prng) { var rand = Math.floor(prng() * ENCODING_LEN); if (rand === ENCODING_LEN) { rand = ENCODING_LEN - 1; } return ENCODING.charAt(rand); } function encodeTime(now, len) { if (isNaN(now)) { throw new Error(now + " must be a number"); } if (now > TIME_MAX) { throw createError("cannot encode time greater than " + TIME_MAX); } if (now < 0) { throw createError("time must be positive"); } if (Number.isInteger(now) === false) { throw createError("time must be an integer"); } var mod = void 0; var str = ""; for (; len > 0; len--) { mod = now % ENCODING_LEN; str = ENCODING.charAt(mod) + str; now = (now - mod) / ENCODING_LEN; } return str; } function encodeRandom(len, prng) { var str = ""; for (; len > 0; len--) { str = randomChar(prng) + str; } return str; } function decodeTime(id) { if (id.length !== TIME_LEN + RANDOM_LEN) { throw createError("malformed ulid"); } var time = id.substr(0, TIME_LEN).split("").reverse().reduce(function (carry, char, index) { var encodingIndex = ENCODING.indexOf(char); if (encodingIndex === -1) { throw createError("invalid character found: " + char); } return carry += encodingIndex * Math.pow(ENCODING_LEN, index); }, 0); if (time > TIME_MAX) { throw createError("malformed ulid, timestamp too large"); } return time; } function detectPrng() { var allowInsecure = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; var root = arguments[1]; if (!root) { root = typeof window !== "undefined" ? window : null; } var browserCrypto = root && (root.crypto || root.msCrypto); if (browserCrypto) { return function () { var buffer = new Uint8Array(1); browserCrypto.getRandomValues(buffer); return buffer[0] / 0xff; }; } else { try { var nodeCrypto = __webpack_require__(/*! crypto */ "v6W9"); return function () { return nodeCrypto.randomBytes(1).readUInt8() / 0xff; }; } catch (e) {} } if (allowInsecure) { try { console.error("secure crypto unusable, falling back to insecure Math.random()!"); } catch (e) {} return function () { return Math.random(); }; } throw createError("secure crypto unusable, insecure Math.random not allowed"); } function factory(currPrng) { if (!currPrng) { currPrng = detectPrng(); } return function ulid(seedTime) { if (isNaN(seedTime)) { seedTime = Date.now(); } return encodeTime(seedTime, TIME_LEN) + encodeRandom(RANDOM_LEN, currPrng); }; } function monotonicFactory(currPrng) { if (!currPrng) { currPrng = detectPrng(); } var lastTime = 0; var lastRandom = void 0; return function ulid(seedTime) { if (isNaN(seedTime)) { seedTime = Date.now(); } if (seedTime <= lastTime) { var incrementedRandom = lastRandom = incrementBase32(lastRandom); return encodeTime(lastTime, TIME_LEN) + incrementedRandom; } lastTime = seedTime; var newRandom = lastRandom = encodeRandom(RANDOM_LEN, currPrng); return encodeTime(seedTime, TIME_LEN) + newRandom; }; } var ulid = factory(); /***/ }), /***/ "Wmdc": /*!************************************************************************!*\ !*** ./node_modules/@aws-amplify/cache/lib-esm/BrowserStorageCache.js ***! \************************************************************************/ /*! exports provided: BrowserStorageCacheClass, BrowserStorageCache, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserStorageCacheClass", function() { return BrowserStorageCacheClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserStorageCache", function() { return BrowserStorageCache; }); /* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils */ "u5wP"); /* harmony import */ var _StorageCache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./StorageCache */ "WNWs"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["ConsoleLogger"]('Cache'); /** * Customized storage based on the SessionStorage or LocalStorage with LRU implemented */ var BrowserStorageCacheClass = /** @class */ (function (_super) { __extends(BrowserStorageCacheClass, _super); /** * initialize the cache * @param config - the configuration of the cache */ function BrowserStorageCacheClass(config) { var _this = this; var cacheConfig = config ? Object.assign({}, _Utils__WEBPACK_IMPORTED_MODULE_0__["defaultConfig"], config) : _Utils__WEBPACK_IMPORTED_MODULE_0__["defaultConfig"]; _this = _super.call(this, cacheConfig) || this; _this.config.storage = cacheConfig.storage; _this.getItem = _this.getItem.bind(_this); _this.setItem = _this.setItem.bind(_this); _this.removeItem = _this.removeItem.bind(_this); return _this; } /** * decrease current size of the cache * * @private * @param amount - the amount of the cache size which needs to be decreased */ BrowserStorageCacheClass.prototype._decreaseCurSizeInBytes = function (amount) { var curSize = this.getCacheCurSize(); this.config.storage.setItem(this.cacheCurSizeKey, (curSize - amount).toString()); }; /** * increase current size of the cache * * @private * @param amount - the amount of the cache szie which need to be increased */ BrowserStorageCacheClass.prototype._increaseCurSizeInBytes = function (amount) { var curSize = this.getCacheCurSize(); this.config.storage.setItem(this.cacheCurSizeKey, (curSize + amount).toString()); }; /** * update the visited time if item has been visited * * @private * @param item - the item which need to be refreshed * @param prefixedKey - the key of the item * * @return the refreshed item */ BrowserStorageCacheClass.prototype._refreshItem = function (item, prefixedKey) { item.visitedTime = Object(_Utils__WEBPACK_IMPORTED_MODULE_0__["getCurrTime"])(); this.config.storage.setItem(prefixedKey, JSON.stringify(item)); return item; }; /** * check wether item is expired * * @private * @param key - the key of the item * * @return true if the item is expired. */ BrowserStorageCacheClass.prototype._isExpired = function (key) { var text = this.config.storage.getItem(key); var item = JSON.parse(text); if (Object(_Utils__WEBPACK_IMPORTED_MODULE_0__["getCurrTime"])() >= item.expires) { return true; } return false; }; /** * delete item from cache * * @private * @param prefixedKey - the key of the item * @param size - optional, the byte size of the item */ BrowserStorageCacheClass.prototype._removeItem = function (prefixedKey, size) { var itemSize = size ? size : JSON.parse(this.config.storage.getItem(prefixedKey)).byteSize; this._decreaseCurSizeInBytes(itemSize); // remove the cache item this.config.storage.removeItem(prefixedKey); }; /** * put item into cache * * @private * @param prefixedKey - the key of the item * @param itemData - the value of the item * @param itemSizeInBytes - the byte size of the item */ BrowserStorageCacheClass.prototype._setItem = function (prefixedKey, item) { // update the cache size this._increaseCurSizeInBytes(item.byteSize); try { this.config.storage.setItem(prefixedKey, JSON.stringify(item)); } catch (setItemErr) { // if failed, we need to rollback the cache size this._decreaseCurSizeInBytes(item.byteSize); logger.error("Failed to set item " + setItemErr); } }; /** * total space needed when poping out items * * @private * @param itemSize * * @return total space needed */ BrowserStorageCacheClass.prototype._sizeToPop = function (itemSize) { var spaceItemNeed = this.getCacheCurSize() + itemSize - this.config.capacityInBytes; var cacheThresholdSpace = (1 - this.config.warningThreshold) * this.config.capacityInBytes; return spaceItemNeed > cacheThresholdSpace ? spaceItemNeed : cacheThresholdSpace; }; /** * see whether cache is full * * @private * @param itemSize * * @return true if cache is full */ BrowserStorageCacheClass.prototype._isCacheFull = function (itemSize) { return itemSize + this.getCacheCurSize() > this.config.capacityInBytes; }; /** * scan the storage and find out all the keys owned by this cache * also clean the expired keys while scanning * * @private * * @return array of keys */ BrowserStorageCacheClass.prototype._findValidKeys = function () { var keys = []; var keyInCache = []; // get all keys in Storage for (var i = 0; i < this.config.storage.length; i += 1) { keyInCache.push(this.config.storage.key(i)); } // find those items which belong to our cache and also clean those expired items for (var i = 0; i < keyInCache.length; i += 1) { var key = keyInCache[i]; if (key.indexOf(this.config.keyPrefix) === 0 && key !== this.cacheCurSizeKey) { if (this._isExpired(key)) { this._removeItem(key); } else { keys.push(key); } } } return keys; }; /** * get all the items we have, sort them by their priority, * if priority is same, sort them by their last visited time * pop out items from the low priority (5 is the lowest) * * @private * @param keys - all the keys in this cache * @param sizeToPop - the total size of the items which needed to be poped out */ BrowserStorageCacheClass.prototype._popOutItems = function (keys, sizeToPop) { var items = []; var remainedSize = sizeToPop; // get the items from Storage for (var i = 0; i < keys.length; i += 1) { var val = this.config.storage.getItem(keys[i]); if (val != null) { var item = JSON.parse(val); items.push(item); } } // first compare priority // then compare visited time items.sort(function (a, b) { if (a.priority > b.priority) { return -1; } else if (a.priority < b.priority) { return 1; } else { if (a.visitedTime < b.visitedTime) { return -1; } else return 1; } }); for (var i = 0; i < items.length; i += 1) { // pop out items until we have enough room for new item this._removeItem(items[i].key, items[i].byteSize); remainedSize -= items[i].byteSize; if (remainedSize <= 0) { return; } } }; /** * Set item into cache. You can put number, string, boolean or object. * The cache will first check whether has the same key. * If it has, it will delete the old item and then put the new item in * The cache will pop out items if it is full * You can specify the cache item options. The cache will abort and output a warning: * If the key is invalid * If the size of the item exceeds itemMaxSize. * If the value is undefined * If incorrect cache item configuration * If error happened with browser storage * * @param key - the key of the item * @param value - the value of the item * @param {Object} [options] - optional, the specified meta-data */ BrowserStorageCacheClass.prototype.setItem = function (key, value, options) { logger.log("Set item: key is " + key + ", value is " + value + " with options: " + options); var prefixedKey = this.config.keyPrefix + key; // invalid keys if (prefixedKey === this.config.keyPrefix || prefixedKey === this.cacheCurSizeKey) { logger.warn("Invalid key: should not be empty or 'CurSize'"); return; } if (typeof value === 'undefined') { logger.warn("The value of item should not be undefined!"); return; } var cacheItemOptions = { priority: options && options.priority !== undefined ? options.priority : this.config.defaultPriority, expires: options && options.expires !== undefined ? options.expires : this.config.defaultTTL + Object(_Utils__WEBPACK_IMPORTED_MODULE_0__["getCurrTime"])(), }; if (cacheItemOptions.priority < 1 || cacheItemOptions.priority > 5) { logger.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5."); return; } var item = this.fillCacheItem(prefixedKey, value, cacheItemOptions); // check wether this item is too big; if (item.byteSize > this.config.itemMaxSize) { logger.warn("Item with key: " + key + " you are trying to put into is too big!"); return; } try { // first look into the storage, if it exists, delete it. var val = this.config.storage.getItem(prefixedKey); if (val) { this._removeItem(prefixedKey, JSON.parse(val).byteSize); } // check whether the cache is full if (this._isCacheFull(item.byteSize)) { var validKeys = this._findValidKeys(); // check again and then pop out items if (this._isCacheFull(item.byteSize)) { var sizeToPop = this._sizeToPop(item.byteSize); this._popOutItems(validKeys, sizeToPop); } } // put item in the cache // may failed due to storage full this._setItem(prefixedKey, item); } catch (e) { logger.warn("setItem failed! " + e); } }; /** * Get item from cache. It will return null if item doesn’t exist or it has been expired. * If you specified callback function in the options, * then the function will be executed if no such item in the cache * and finally put the return value into cache. * Please make sure the callback function will return the value you want to put into the cache. * The cache will abort output a warning: * If the key is invalid * If error happened with browser storage * * @param key - the key of the item * @param {Object} [options] - the options of callback function * * @return - return the value of the item */ BrowserStorageCacheClass.prototype.getItem = function (key, options) { logger.log("Get item: key is " + key + " with options " + options); var ret = null; var prefixedKey = this.config.keyPrefix + key; if (prefixedKey === this.config.keyPrefix || prefixedKey === this.cacheCurSizeKey) { logger.warn("Invalid key: should not be empty or 'CurSize'"); return null; } try { ret = this.config.storage.getItem(prefixedKey); if (ret != null) { if (this._isExpired(prefixedKey)) { // if expired, remove that item and return null this._removeItem(prefixedKey, JSON.parse(ret).byteSize); ret = null; } else { // if not expired, great, return the value and refresh it var item = JSON.parse(ret); item = this._refreshItem(item, prefixedKey); return item.data; } } if (options && options.callback !== undefined) { var val = options.callback(); if (val !== null) { this.setItem(key, val, options); } return val; } return null; } catch (e) { logger.warn("getItem failed! " + e); return null; } }; /** * remove item from the cache * The cache will abort output a warning: * If error happened with browser storage * @param key - the key of the item */ BrowserStorageCacheClass.prototype.removeItem = function (key) { logger.log("Remove item: key is " + key); var prefixedKey = this.config.keyPrefix + key; if (prefixedKey === this.config.keyPrefix || prefixedKey === this.cacheCurSizeKey) { return; } try { var val = this.config.storage.getItem(prefixedKey); if (val) { this._removeItem(prefixedKey, JSON.parse(val).byteSize); } } catch (e) { logger.warn("removeItem failed! " + e); } }; /** * clear the entire cache * The cache will abort output a warning: * If error happened with browser storage */ BrowserStorageCacheClass.prototype.clear = function () { logger.log("Clear Cache"); var keysToRemove = []; for (var i = 0; i < this.config.storage.length; i += 1) { var key = this.config.storage.key(i); if (key.indexOf(this.config.keyPrefix) === 0) { keysToRemove.push(key); } } try { for (var i = 0; i < keysToRemove.length; i += 1) { this.config.storage.removeItem(keysToRemove[i]); } } catch (e) { logger.warn("clear failed! " + e); } }; /** * Return all the keys in the cache. * * @return - all keys in the cache */ BrowserStorageCacheClass.prototype.getAllKeys = function () { var keys = []; for (var i = 0; i < this.config.storage.length; i += 1) { var key = this.config.storage.key(i); if (key.indexOf(this.config.keyPrefix) === 0 && key !== this.cacheCurSizeKey) { keys.push(key.substring(this.config.keyPrefix.length)); } } return keys; }; /** * return the current size of the cache * * @return - current size of the cache */ BrowserStorageCacheClass.prototype.getCacheCurSize = function () { var ret = this.config.storage.getItem(this.cacheCurSizeKey); if (!ret) { this.config.storage.setItem(this.cacheCurSizeKey, '0'); ret = '0'; } return Number(ret); }; /** * Return a new instance of cache with customized configuration. * @param config - the customized configuration * * @return - new instance of Cache */ BrowserStorageCacheClass.prototype.createInstance = function (config) { if (!config.keyPrefix || config.keyPrefix === _Utils__WEBPACK_IMPORTED_MODULE_0__["defaultConfig"].keyPrefix) { logger.error('invalid keyPrefix, setting keyPrefix with timeStamp'); config.keyPrefix = _Utils__WEBPACK_IMPORTED_MODULE_0__["getCurrTime"].toString(); } return new BrowserStorageCacheClass(config); }; return BrowserStorageCacheClass; }(_StorageCache__WEBPACK_IMPORTED_MODULE_1__["StorageCache"])); var BrowserStorageCache = new BrowserStorageCacheClass(); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (BrowserStorageCache); //# sourceMappingURL=BrowserStorageCache.js.map /***/ }), /***/ "WnBX": /*!****************************************************!*\ !*** ./node_modules/@aws-amplify/auth/lib/Auth.js ***! \****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var types_1 = __webpack_require__(/*! ./types */ "RF0m"); var core_1 = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); var amazon_cognito_identity_js_1 = __webpack_require__(/*! amazon-cognito-identity-js */ "TESy"); var url_1 = __webpack_require__(/*! url */ "CxY0"); var OAuth_1 = __importDefault(__webpack_require__(/*! ./OAuth/OAuth */ "WFqI")); var urlListener_1 = __importDefault(__webpack_require__(/*! ./urlListener */ "jHS0")); var Errors_1 = __webpack_require__(/*! ./Errors */ "DFAg"); var Auth_1 = __webpack_require__(/*! ./types/Auth */ "30Lp"); var logger = new core_1.ConsoleLogger('AuthClass'); var USER_ADMIN_SCOPE = 'aws.cognito.signin.user.admin'; // 10 sec, following this guide https://www.nngroup.com/articles/response-times-3-important-limits/ var OAUTH_FLOW_MS_TIMEOUT = 10 * 1000; var AMPLIFY_SYMBOL = (typeof Symbol !== 'undefined' && typeof Symbol.for === 'function' ? Symbol.for('amplify_default') : '@@amplify_default'); var dispatchAuthEvent = function (event, data, message) { core_1.Hub.dispatch('auth', { event: event, data: data, message: message }, 'Auth', AMPLIFY_SYMBOL); }; /** * Provide authentication steps */ var AuthClass = /** @class */ (function () { /** * Initialize Auth with AWS configurations * @param {Object} config - Configuration of the Auth */ function AuthClass(config) { var _this = this; this.userPool = null; this.user = null; this.oAuthFlowInProgress = false; this.Credentials = core_1.Credentials; this.configure(config); this.currentCredentials = this.currentCredentials.bind(this); this.currentUserCredentials = this.currentUserCredentials.bind(this); core_1.Hub.listen('auth', function (_a) { var payload = _a.payload; var event = payload.event; switch (event) { case 'signIn': _this._storage.setItem('amplify-signin-with-hostedUI', 'false'); break; case 'signOut': _this._storage.removeItem('amplify-signin-with-hostedUI'); break; case 'cognitoHostedUI': _this._storage.setItem('amplify-signin-with-hostedUI', 'true'); break; } }); } AuthClass.prototype.getModuleName = function () { return 'Auth'; }; AuthClass.prototype.configure = function (config) { var _this = this; if (!config) return this._config || {}; logger.debug('configure Auth'); var conf = Object.assign({}, this._config, core_1.Parser.parseMobilehubConfig(config).Auth, config); this._config = conf; var _a = this._config, userPoolId = _a.userPoolId, userPoolWebClientId = _a.userPoolWebClientId, cookieStorage = _a.cookieStorage, oauth = _a.oauth, region = _a.region, identityPoolId = _a.identityPoolId, mandatorySignIn = _a.mandatorySignIn, refreshHandlers = _a.refreshHandlers, identityPoolRegion = _a.identityPoolRegion, clientMetadata = _a.clientMetadata, endpoint = _a.endpoint; if (!this._config.storage) { // backward compatability if (cookieStorage) this._storage = new amazon_cognito_identity_js_1.CookieStorage(cookieStorage); else { this._storage = config.ssr ? new core_1.UniversalStorage() : new core_1.StorageHelper().getStorage(); } } else { if (!this._isValidAuthStorage(this._config.storage)) { logger.error('The storage in the Auth config is not valid!'); throw new Error('Empty storage object'); } this._storage = this._config.storage; } this._storageSync = Promise.resolve(); if (typeof this._storage['sync'] === 'function') { this._storageSync = this._storage['sync'](); } if (userPoolId) { var userPoolData = { UserPoolId: userPoolId, ClientId: userPoolWebClientId, endpoint: endpoint, }; userPoolData.Storage = this._storage; this.userPool = new amazon_cognito_identity_js_1.CognitoUserPool(userPoolData); } this.Credentials.configure({ mandatorySignIn: mandatorySignIn, region: identityPoolRegion || region, userPoolId: userPoolId, identityPoolId: identityPoolId, refreshHandlers: refreshHandlers, storage: this._storage, }); // initiailize cognitoauth client if hosted ui options provided // to keep backward compatibility: var cognitoHostedUIConfig = oauth ? types_1.isCognitoHostedOpts(this._config.oauth) ? oauth : oauth.awsCognito : undefined; if (cognitoHostedUIConfig) { var cognitoAuthParams = Object.assign({ cognitoClientId: userPoolWebClientId, UserPoolId: userPoolId, domain: cognitoHostedUIConfig['domain'], scopes: cognitoHostedUIConfig['scope'], redirectSignIn: cognitoHostedUIConfig['redirectSignIn'], redirectSignOut: cognitoHostedUIConfig['redirectSignOut'], responseType: cognitoHostedUIConfig['responseType'], Storage: this._storage, urlOpener: cognitoHostedUIConfig['urlOpener'], clientMetadata: clientMetadata, }, cognitoHostedUIConfig['options']); this._oAuthHandler = new OAuth_1.default({ scopes: cognitoAuthParams.scopes, config: cognitoAuthParams, cognitoClientId: cognitoAuthParams.cognitoClientId, }); // **NOTE** - Remove this in a future major release as it is a breaking change // Prevents _handleAuthResponse from being called multiple times in Expo // See https://github.com/aws-amplify/amplify-js/issues/4388 var usedResponseUrls_1 = {}; urlListener_1.default(function (_a) { var url = _a.url; if (usedResponseUrls_1[url]) { return; } usedResponseUrls_1[url] = true; _this._handleAuthResponse(url); }); } dispatchAuthEvent('configured', null, "The Auth category has been configured successfully"); return this._config; }; /** * Sign up with username, password and other attributes like phone, email * @param {String | object} params - The user attributes used for signin * @param {String[]} restOfAttrs - for the backward compatability * @return - A promise resolves callback data if success */ AuthClass.prototype.signUp = function (params) { var _this = this; var restOfAttrs = []; for (var _i = 1; _i < arguments.length; _i++) { restOfAttrs[_i - 1] = arguments[_i]; } if (!this.userPool) { return this.rejectNoUserPool(); } var username = null; var password = null; var attributes = []; var validationData = null; var clientMetadata; if (params && typeof params === 'string') { username = params; password = restOfAttrs ? restOfAttrs[0] : null; var email = restOfAttrs ? restOfAttrs[1] : null; var phone_number = restOfAttrs ? restOfAttrs[2] : null; if (email) attributes.push({ Name: 'email', Value: email }); if (phone_number) attributes.push({ Name: 'phone_number', Value: phone_number }); } else if (params && typeof params === 'object') { username = params['username']; password = params['password']; if (params && params.clientMetadata) { clientMetadata = params.clientMetadata; } else if (this._config.clientMetadata) { clientMetadata = this._config.clientMetadata; } var attrs_1 = params['attributes']; if (attrs_1) { Object.keys(attrs_1).map(function (key) { var ele = { Name: key, Value: attrs_1[key] }; attributes.push(ele); }); } validationData = params['validationData'] || null; } else { return this.rejectAuthError(Auth_1.AuthErrorTypes.SignUpError); } if (!username) { return this.rejectAuthError(Auth_1.AuthErrorTypes.EmptyUsername); } if (!password) { return this.rejectAuthError(Auth_1.AuthErrorTypes.EmptyPassword); } logger.debug('signUp attrs:', attributes); logger.debug('signUp validation data:', validationData); return new Promise(function (resolve, reject) { _this.userPool.signUp(username, password, attributes, validationData, function (err, data) { if (err) { dispatchAuthEvent('signUp_failure', err, username + " failed to signup"); reject(err); } else { dispatchAuthEvent('signUp', data, username + " has signed up successfully"); resolve(data); } }, clientMetadata); }); }; /** * Send the verfication code to confirm sign up * @param {String} username - The username to be confirmed * @param {String} code - The verification code * @param {ConfirmSignUpOptions} options - other options for confirm signup * @return - A promise resolves callback data if success */ AuthClass.prototype.confirmSignUp = function (username, code, options) { if (!this.userPool) { return this.rejectNoUserPool(); } if (!username) { return this.rejectAuthError(Auth_1.AuthErrorTypes.EmptyUsername); } if (!code) { return this.rejectAuthError(Auth_1.AuthErrorTypes.EmptyCode); } var user = this.createCognitoUser(username); var forceAliasCreation = options && typeof options.forceAliasCreation === 'boolean' ? options.forceAliasCreation : true; var clientMetadata; if (options && options.clientMetadata) { clientMetadata = options.clientMetadata; } else if (this._config.clientMetadata) { clientMetadata = this._config.clientMetadata; } return new Promise(function (resolve, reject) { user.confirmRegistration(code, forceAliasCreation, function (err, data) { if (err) { reject(err); } else { resolve(data); } }, clientMetadata); }); }; /** * Resend the verification code * @param {String} username - The username to be confirmed * @param {ClientMetadata} clientMetadata - Metadata to be passed to Cognito Lambda triggers * @return - A promise resolves code delivery details if successful */ AuthClass.prototype.resendSignUp = function (username, clientMetadata) { if (clientMetadata === void 0) { clientMetadata = this._config.clientMetadata; } if (!this.userPool) { return this.rejectNoUserPool(); } if (!username) { return this.rejectAuthError(Auth_1.AuthErrorTypes.EmptyUsername); } var user = this.createCognitoUser(username); return new Promise(function (resolve, reject) { user.resendConfirmationCode(function (err, data) { if (err) { reject(err); } else { resolve(data); } }, clientMetadata); }); }; /** * Sign in * @param {String | SignInOpts} usernameOrSignInOpts - The username to be signed in or the sign in options * @param {String} password - The password of the username * @return - A promise resolves the CognitoUser */ AuthClass.prototype.signIn = function (usernameOrSignInOpts, pw, clientMetadata) { if (clientMetadata === void 0) { clientMetadata = this._config.clientMetadata; } if (!this.userPool) { return this.rejectNoUserPool(); } var username = null; var password = null; var validationData = {}; // for backward compatibility if (typeof usernameOrSignInOpts === 'string') { username = usernameOrSignInOpts; password = pw; } else if (types_1.isUsernamePasswordOpts(usernameOrSignInOpts)) { if (typeof pw !== 'undefined') { logger.warn('The password should be defined under the first parameter object!'); } username = usernameOrSignInOpts.username; password = usernameOrSignInOpts.password; validationData = usernameOrSignInOpts.validationData; } else { return this.rejectAuthError(Auth_1.AuthErrorTypes.InvalidUsername); } if (!username) { return this.rejectAuthError(Auth_1.AuthErrorTypes.EmptyUsername); } var authDetails = new amazon_cognito_identity_js_1.AuthenticationDetails({ Username: username, Password: password, ValidationData: validationData, ClientMetadata: clientMetadata, }); if (password) { return this.signInWithPassword(authDetails); } else { return this.signInWithoutPassword(authDetails); } }; /** * Return an object with the authentication callbacks * @param {CognitoUser} user - the cognito user object * @param {} resolve - function called when resolving the current step * @param {} reject - function called when rejecting the current step * @return - an object with the callback methods for user authentication */ AuthClass.prototype.authCallbacks = function (user, resolve, reject) { var _this = this; var that = this; return { onSuccess: function (session) { return __awaiter(_this, void 0, void 0, function () { var cred, e_1, currentUser, e_2; return __generator(this, function (_a) { switch (_a.label) { case 0: logger.debug(session); delete user['challengeName']; delete user['challengeParam']; _a.label = 1; case 1: _a.trys.push([1, 4, 5, 9]); return [4 /*yield*/, this.Credentials.clear()]; case 2: _a.sent(); return [4 /*yield*/, this.Credentials.set(session, 'session')]; case 3: cred = _a.sent(); logger.debug('succeed to get cognito credentials', cred); return [3 /*break*/, 9]; case 4: e_1 = _a.sent(); logger.debug('cannot get cognito credentials', e_1); return [3 /*break*/, 9]; case 5: _a.trys.push([5, 7, , 8]); return [4 /*yield*/, this.currentUserPoolUser()]; case 6: currentUser = _a.sent(); that.user = currentUser; dispatchAuthEvent('signIn', currentUser, "A user " + user.getUsername() + " has been signed in"); resolve(currentUser); return [3 /*break*/, 8]; case 7: e_2 = _a.sent(); logger.error('Failed to get the signed in user', e_2); reject(e_2); return [3 /*break*/, 8]; case 8: return [7 /*endfinally*/]; case 9: return [2 /*return*/]; } }); }); }, onFailure: function (err) { logger.debug('signIn failure', err); dispatchAuthEvent('signIn_failure', err, user.getUsername() + " failed to signin"); reject(err); }, customChallenge: function (challengeParam) { logger.debug('signIn custom challenge answer required'); user['challengeName'] = 'CUSTOM_CHALLENGE'; user['challengeParam'] = challengeParam; resolve(user); }, mfaRequired: function (challengeName, challengeParam) { logger.debug('signIn MFA required'); user['challengeName'] = challengeName; user['challengeParam'] = challengeParam; resolve(user); }, mfaSetup: function (challengeName, challengeParam) { logger.debug('signIn mfa setup', challengeName); user['challengeName'] = challengeName; user['challengeParam'] = challengeParam; resolve(user); }, newPasswordRequired: function (userAttributes, requiredAttributes) { logger.debug('signIn new password'); user['challengeName'] = 'NEW_PASSWORD_REQUIRED'; user['challengeParam'] = { userAttributes: userAttributes, requiredAttributes: requiredAttributes, }; resolve(user); }, totpRequired: function (challengeName, challengeParam) { logger.debug('signIn totpRequired'); user['challengeName'] = challengeName; user['challengeParam'] = challengeParam; resolve(user); }, selectMFAType: function (challengeName, challengeParam) { logger.debug('signIn selectMFAType', challengeName); user['challengeName'] = challengeName; user['challengeParam'] = challengeParam; resolve(user); }, }; }; /** * Sign in with a password * @private * @param {AuthenticationDetails} authDetails - the user sign in data * @return - A promise resolves the CognitoUser object if success or mfa required */ AuthClass.prototype.signInWithPassword = function (authDetails) { var _this = this; var user = this.createCognitoUser(authDetails.getUsername()); return new Promise(function (resolve, reject) { user.authenticateUser(authDetails, _this.authCallbacks(user, resolve, reject)); }); }; /** * Sign in without a password * @private * @param {AuthenticationDetails} authDetails - the user sign in data * @return - A promise resolves the CognitoUser object if success or mfa required */ AuthClass.prototype.signInWithoutPassword = function (authDetails) { var _this = this; var user = this.createCognitoUser(authDetails.getUsername()); user.setAuthenticationFlowType('CUSTOM_AUTH'); return new Promise(function (resolve, reject) { user.initiateAuth(authDetails, _this.authCallbacks(user, resolve, reject)); }); }; /** * get user current preferred mfa option * this method doesn't work with totp, we need to deprecate it. * @deprecated * @param {CognitoUser} user - the current user * @return - A promise resolves the current preferred mfa option if success */ AuthClass.prototype.getMFAOptions = function (user) { return new Promise(function (res, rej) { user.getMFAOptions(function (err, mfaOptions) { if (err) { logger.debug('get MFA Options failed', err); rej(err); return; } logger.debug('get MFA options success', mfaOptions); res(mfaOptions); return; }); }); }; /** * get preferred mfa method * @param {CognitoUser} user - the current cognito user * @param {GetPreferredMFAOpts} params - options for getting the current user preferred MFA */ AuthClass.prototype.getPreferredMFA = function (user, params) { var that = this; return new Promise(function (res, rej) { var bypassCache = params ? params.bypassCache : false; user.getUserData(function (err, data) { if (err) { logger.debug('getting preferred mfa failed', err); rej(err); return; } var mfaType = that._getMfaTypeFromUserData(data); if (!mfaType) { rej('invalid MFA Type'); return; } else { res(mfaType); return; } }, { bypassCache: bypassCache }); }); }; AuthClass.prototype._getMfaTypeFromUserData = function (data) { var ret = null; var preferredMFA = data.PreferredMfaSetting; // if the user has used Auth.setPreferredMFA() to setup the mfa type // then the "PreferredMfaSetting" would exist in the response if (preferredMFA) { ret = preferredMFA; } else { // if mfaList exists but empty, then its noMFA var mfaList = data.UserMFASettingList; if (!mfaList) { // if SMS was enabled by using Auth.enableSMS(), // the response would contain MFAOptions // as for now Cognito only supports for SMS, so we will say it is 'SMS_MFA' // if it does not exist, then it should be NOMFA var MFAOptions = data.MFAOptions; if (MFAOptions) { ret = 'SMS_MFA'; } else { ret = 'NOMFA'; } } else if (mfaList.length === 0) { ret = 'NOMFA'; } else { logger.debug('invalid case for getPreferredMFA', data); } } return ret; }; AuthClass.prototype._getUserData = function (user, params) { return new Promise(function (res, rej) { user.getUserData(function (err, data) { if (err) { logger.debug('getting user data failed', err); rej(err); return; } else { res(data); return; } }, params); }); }; /** * set preferred MFA method * @param {CognitoUser} user - the current Cognito user * @param {string} mfaMethod - preferred mfa method * @return - A promise resolve if success */ AuthClass.prototype.setPreferredMFA = function (user, mfaMethod) { return __awaiter(this, void 0, void 0, function () { var userData, smsMfaSettings, totpMfaSettings, _a, mfaList, currentMFAType, that; return __generator(this, function (_b) { switch (_b.label) { case 0: return [4 /*yield*/, this._getUserData(user, { bypassCache: true, })]; case 1: userData = _b.sent(); smsMfaSettings = null; totpMfaSettings = null; _a = mfaMethod; switch (_a) { case 'TOTP' || false: return [3 /*break*/, 2]; case 'SMS' || false: return [3 /*break*/, 3]; case 'NOMFA': return [3 /*break*/, 4]; } return [3 /*break*/, 6]; case 2: totpMfaSettings = { PreferredMfa: true, Enabled: true, }; return [3 /*break*/, 7]; case 3: smsMfaSettings = { PreferredMfa: true, Enabled: true, }; return [3 /*break*/, 7]; case 4: mfaList = userData['UserMFASettingList']; return [4 /*yield*/, this._getMfaTypeFromUserData(userData)]; case 5: currentMFAType = _b.sent(); if (currentMFAType === 'NOMFA') { return [2 /*return*/, Promise.resolve('No change for mfa type')]; } else if (currentMFAType === 'SMS_MFA') { smsMfaSettings = { PreferredMfa: false, Enabled: false, }; } else if (currentMFAType === 'SOFTWARE_TOKEN_MFA') { totpMfaSettings = { PreferredMfa: false, Enabled: false, }; } else { return [2 /*return*/, this.rejectAuthError(Auth_1.AuthErrorTypes.InvalidMFA)]; } // if there is a UserMFASettingList in the response // we need to disable every mfa type in that list if (mfaList && mfaList.length !== 0) { // to disable SMS or TOTP if exists in that list mfaList.forEach(function (mfaType) { if (mfaType === 'SMS_MFA') { smsMfaSettings = { PreferredMfa: false, Enabled: false, }; } else if (mfaType === 'SOFTWARE_TOKEN_MFA') { totpMfaSettings = { PreferredMfa: false, Enabled: false, }; } }); } return [3 /*break*/, 7]; case 6: logger.debug('no validmfa method provided'); return [2 /*return*/, this.rejectAuthError(Auth_1.AuthErrorTypes.NoMFA)]; case 7: that = this; return [2 /*return*/, new Promise(function (res, rej) { user.setUserMfaPreference(smsMfaSettings, totpMfaSettings, function (err, result) { if (err) { logger.debug('Set user mfa preference error', err); return rej(err); } logger.debug('Set user mfa success', result); logger.debug('Caching the latest user data into local'); // cache the latest result into user data user.getUserData(function (err, data) { if (err) { logger.debug('getting user data failed', err); return rej(err); } else { return res(result); } }, { bypassCache: true }); }); })]; } }); }); }; /** * diable SMS * @deprecated * @param {CognitoUser} user - the current user * @return - A promise resolves is success */ AuthClass.prototype.disableSMS = function (user) { return new Promise(function (res, rej) { user.disableMFA(function (err, data) { if (err) { logger.debug('disable mfa failed', err); rej(err); return; } logger.debug('disable mfa succeed', data); res(data); return; }); }); }; /** * enable SMS * @deprecated * @param {CognitoUser} user - the current user * @return - A promise resolves is success */ AuthClass.prototype.enableSMS = function (user) { return new Promise(function (res, rej) { user.enableMFA(function (err, data) { if (err) { logger.debug('enable mfa failed', err); rej(err); return; } logger.debug('enable mfa succeed', data); res(data); return; }); }); }; /** * Setup TOTP * @param {CognitoUser} user - the current user * @return - A promise resolves with the secret code if success */ AuthClass.prototype.setupTOTP = function (user) { return new Promise(function (res, rej) { user.associateSoftwareToken({ onFailure: function (err) { logger.debug('associateSoftwareToken failed', err); rej(err); return; }, associateSecretCode: function (secretCode) { logger.debug('associateSoftwareToken sucess', secretCode); res(secretCode); return; }, }); }); }; /** * verify TOTP setup * @param {CognitoUser} user - the current user * @param {string} challengeAnswer - challenge answer * @return - A promise resolves is success */ AuthClass.prototype.verifyTotpToken = function (user, challengeAnswer) { logger.debug('verfication totp token', user, challengeAnswer); return new Promise(function (res, rej) { user.verifySoftwareToken(challengeAnswer, 'My TOTP device', { onFailure: function (err) { logger.debug('verifyTotpToken failed', err); rej(err); return; }, onSuccess: function (data) { logger.debug('verifyTotpToken success', data); res(data); return; }, }); }); }; /** * Send MFA code to confirm sign in * @param {Object} user - The CognitoUser object * @param {String} code - The confirmation code */ AuthClass.prototype.confirmSignIn = function (user, code, mfaType, clientMetadata) { var _this = this; if (clientMetadata === void 0) { clientMetadata = this._config.clientMetadata; } if (!code) { return this.rejectAuthError(Auth_1.AuthErrorTypes.EmptyCode); } var that = this; return new Promise(function (resolve, reject) { user.sendMFACode(code, { onSuccess: function (session) { return __awaiter(_this, void 0, void 0, function () { var cred, e_3; return __generator(this, function (_a) { switch (_a.label) { case 0: logger.debug(session); _a.label = 1; case 1: _a.trys.push([1, 4, 5, 6]); return [4 /*yield*/, this.Credentials.clear()]; case 2: _a.sent(); return [4 /*yield*/, this.Credentials.set(session, 'session')]; case 3: cred = _a.sent(); logger.debug('succeed to get cognito credentials', cred); return [3 /*break*/, 6]; case 4: e_3 = _a.sent(); logger.debug('cannot get cognito credentials', e_3); return [3 /*break*/, 6]; case 5: that.user = user; dispatchAuthEvent('signIn', user, user + " has signed in"); resolve(user); return [7 /*endfinally*/]; case 6: return [2 /*return*/]; } }); }); }, onFailure: function (err) { logger.debug('confirm signIn failure', err); reject(err); }, }, mfaType, clientMetadata); }); }; AuthClass.prototype.completeNewPassword = function (user, password, requiredAttributes, clientMetadata) { var _this = this; if (requiredAttributes === void 0) { requiredAttributes = {}; } if (clientMetadata === void 0) { clientMetadata = this._config.clientMetadata; } if (!password) { return this.rejectAuthError(Auth_1.AuthErrorTypes.EmptyPassword); } var that = this; return new Promise(function (resolve, reject) { user.completeNewPasswordChallenge(password, requiredAttributes, { onSuccess: function (session) { return __awaiter(_this, void 0, void 0, function () { var cred, e_4; return __generator(this, function (_a) { switch (_a.label) { case 0: logger.debug(session); _a.label = 1; case 1: _a.trys.push([1, 4, 5, 6]); return [4 /*yield*/, this.Credentials.clear()]; case 2: _a.sent(); return [4 /*yield*/, this.Credentials.set(session, 'session')]; case 3: cred = _a.sent(); logger.debug('succeed to get cognito credentials', cred); return [3 /*break*/, 6]; case 4: e_4 = _a.sent(); logger.debug('cannot get cognito credentials', e_4); return [3 /*break*/, 6]; case 5: that.user = user; dispatchAuthEvent('signIn', user, user + " has signed in"); resolve(user); return [7 /*endfinally*/]; case 6: return [2 /*return*/]; } }); }); }, onFailure: function (err) { logger.debug('completeNewPassword failure', err); dispatchAuthEvent('completeNewPassword_failure', err, _this.user + " failed to complete the new password flow"); reject(err); }, mfaRequired: function (challengeName, challengeParam) { logger.debug('signIn MFA required'); user['challengeName'] = challengeName; user['challengeParam'] = challengeParam; resolve(user); }, mfaSetup: function (challengeName, challengeParam) { logger.debug('signIn mfa setup', challengeName); user['challengeName'] = challengeName; user['challengeParam'] = challengeParam; resolve(user); }, totpRequired: function (challengeName, challengeParam) { logger.debug('signIn mfa setup', challengeName); user['challengeName'] = challengeName; user['challengeParam'] = challengeParam; resolve(user); }, }, clientMetadata); }); }; /** * Send the answer to a custom challenge * @param {CognitoUser} user - The CognitoUser object * @param {String} challengeResponses - The confirmation code */ AuthClass.prototype.sendCustomChallengeAnswer = function (user, challengeResponses, clientMetadata) { var _this = this; if (clientMetadata === void 0) { clientMetadata = this._config.clientMetadata; } if (!this.userPool) { return this.rejectNoUserPool(); } if (!challengeResponses) { return this.rejectAuthError(Auth_1.AuthErrorTypes.EmptyChallengeResponse); } var that = this; return new Promise(function (resolve, reject) { user.sendCustomChallengeAnswer(challengeResponses, _this.authCallbacks(user, resolve, reject), clientMetadata); }); }; /** * Update an authenticated users' attributes * @param {CognitoUser} - The currently logged in user object * @return {Promise} **/ AuthClass.prototype.updateUserAttributes = function (user, attributes, clientMetadata) { if (clientMetadata === void 0) { clientMetadata = this._config.clientMetadata; } var attributeList = []; var that = this; return new Promise(function (resolve, reject) { that.userSession(user).then(function (session) { for (var key in attributes) { if (key !== 'sub' && key.indexOf('_verified') < 0) { var attr = { Name: key, Value: attributes[key], }; attributeList.push(attr); } } user.updateAttributes(attributeList, function (err, result) { if (err) { return reject(err); } else { return resolve(result); } }, clientMetadata); }); }); }; /** * Return user attributes * @param {Object} user - The CognitoUser object * @return - A promise resolves to user attributes if success */ AuthClass.prototype.userAttributes = function (user) { var _this = this; return new Promise(function (resolve, reject) { _this.userSession(user).then(function (session) { user.getUserAttributes(function (err, attributes) { if (err) { reject(err); } else { resolve(attributes); } }); }); }); }; AuthClass.prototype.verifiedContact = function (user) { var that = this; return this.userAttributes(user).then(function (attributes) { var attrs = that.attributesToObject(attributes); var unverified = {}; var verified = {}; if (attrs['email']) { if (attrs['email_verified']) { verified['email'] = attrs['email']; } else { unverified['email'] = attrs['email']; } } if (attrs['phone_number']) { if (attrs['phone_number_verified']) { verified['phone_number'] = attrs['phone_number']; } else { unverified['phone_number'] = attrs['phone_number']; } } return { verified: verified, unverified: unverified, }; }); }; /** * Get current authenticated user * @return - A promise resolves to current authenticated CognitoUser if success */ AuthClass.prototype.currentUserPoolUser = function (params) { var _this = this; if (!this.userPool) { return this.rejectNoUserPool(); } return new Promise(function (res, rej) { _this._storageSync .then(function () { return __awaiter(_this, void 0, void 0, function () { var user; var _this = this; return __generator(this, function (_a) { switch (_a.label) { case 0: if (!this.isOAuthInProgress()) return [3 /*break*/, 2]; logger.debug('OAuth signIn in progress, waiting for resolution...'); return [4 /*yield*/, new Promise(function (res) { var timeoutId = setTimeout(function () { logger.debug('OAuth signIn in progress timeout'); core_1.Hub.remove('auth', hostedUISignCallback); res(); }, OAUTH_FLOW_MS_TIMEOUT); core_1.Hub.listen('auth', hostedUISignCallback); function hostedUISignCallback(_a) { var payload = _a.payload; var event = payload.event; if (event === 'cognitoHostedUI' || event === 'cognitoHostedUI_failure') { logger.debug("OAuth signIn resolved: " + event); clearTimeout(timeoutId); core_1.Hub.remove('auth', hostedUISignCallback); res(); } } })]; case 1: _a.sent(); _a.label = 2; case 2: user = this.userPool.getCurrentUser(); if (!user) { logger.debug('Failed to get user from user pool'); rej('No current user'); return [2 /*return*/]; } // refresh the session if the session expired. user.getSession(function (err, session) { return __awaiter(_this, void 0, void 0, function () { var bypassCache, _a, scope; var _this = this; return __generator(this, function (_b) { switch (_b.label) { case 0: if (err) { logger.debug('Failed to get the user session', err); rej(err); return [2 /*return*/]; } bypassCache = params ? params.bypassCache : false; if (!bypassCache) return [3 /*break*/, 2]; return [4 /*yield*/, this.Credentials.clear()]; case 1: _b.sent(); _b.label = 2; case 2: _a = session.getAccessToken().decodePayload().scope, scope = _a === void 0 ? '' : _a; if (scope.split(' ').includes(USER_ADMIN_SCOPE)) { user.getUserData(function (err, data) { if (err) { logger.debug('getting user data failed', err); // Make sure the user is still valid if (err.message === 'User is disabled.' || err.message === 'User does not exist.' || err.message === 'Access Token has been revoked' // Session revoked by another app ) { rej(err); } else { // the error may also be thrown when lack of permissions to get user info etc // in that case we just bypass the error res(user); } return; } var preferredMFA = data.PreferredMfaSetting || 'NOMFA'; var attributeList = []; for (var i = 0; i < data.UserAttributes.length; i++) { var attribute = { Name: data.UserAttributes[i].Name, Value: data.UserAttributes[i].Value, }; var userAttribute = new amazon_cognito_identity_js_1.CognitoUserAttribute(attribute); attributeList.push(userAttribute); } var attributes = _this.attributesToObject(attributeList); Object.assign(user, { attributes: attributes, preferredMFA: preferredMFA }); return res(user); }, { bypassCache: bypassCache }); } else { logger.debug("Unable to get the user data because the " + USER_ADMIN_SCOPE + " " + "is not in the scopes of the access token"); return [2 /*return*/, res(user)]; } return [2 /*return*/]; } }); }); }); return [2 /*return*/]; } }); }); }) .catch(function (e) { logger.debug('Failed to sync cache info into memory', e); return rej(e); }); }); }; AuthClass.prototype.isOAuthInProgress = function () { return this.oAuthFlowInProgress; }; /** * Get current authenticated user * @param {CurrentUserOpts} - options for getting the current user * @return - A promise resolves to current authenticated CognitoUser if success */ AuthClass.prototype.currentAuthenticatedUser = function (params) { return __awaiter(this, void 0, void 0, function () { var federatedUser, e_5, federatedInfo, user, e_6; return __generator(this, function (_a) { switch (_a.label) { case 0: logger.debug('getting current authenticated user'); federatedUser = null; _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); return [4 /*yield*/, this._storageSync]; case 2: _a.sent(); return [3 /*break*/, 4]; case 3: e_5 = _a.sent(); logger.debug('Failed to sync cache info into memory', e_5); throw e_5; case 4: try { federatedInfo = JSON.parse(this._storage.getItem('aws-amplify-federatedInfo')); if (federatedInfo) { federatedUser = __assign(__assign({}, federatedInfo.user), { token: federatedInfo.token }); } } catch (e) { logger.debug('cannot load federated user from auth storage'); } if (!federatedUser) return [3 /*break*/, 5]; this.user = federatedUser; logger.debug('get current authenticated federated user', this.user); return [2 /*return*/, this.user]; case 5: logger.debug('get current authenticated userpool user'); user = null; _a.label = 6; case 6: _a.trys.push([6, 8, , 9]); return [4 /*yield*/, this.currentUserPoolUser(params)]; case 7: user = _a.sent(); return [3 /*break*/, 9]; case 8: e_6 = _a.sent(); if (e_6 === 'No userPool') { logger.error('Cannot get the current user because the user pool is missing. ' + 'Please make sure the Auth module is configured with a valid Cognito User Pool ID'); } logger.debug('The user is not authenticated by the error', e_6); throw 'not authenticated'; case 9: this.user = user; return [2 /*return*/, this.user]; } }); }); }; /** * Get current user's session * @return - A promise resolves to session object if success */ AuthClass.prototype.currentSession = function () { var that = this; logger.debug('Getting current session'); // Purposely not calling the reject method here because we don't need a console error if (!this.userPool) { return Promise.reject(); } return new Promise(function (res, rej) { that .currentUserPoolUser() .then(function (user) { that .userSession(user) .then(function (session) { res(session); return; }) .catch(function (e) { logger.debug('Failed to get the current session', e); rej(e); return; }); }) .catch(function (e) { logger.debug('Failed to get the current user', e); rej(e); return; }); }); }; /** * Get the corresponding user session * @param {Object} user - The CognitoUser object * @return - A promise resolves to the session */ AuthClass.prototype.userSession = function (user) { if (!user) { logger.debug('the user is null'); return this.rejectAuthError(Auth_1.AuthErrorTypes.NoUserSession); } return new Promise(function (resolve, reject) { logger.debug('Getting the session from this user:', user); user.getSession(function (err, session) { if (err) { logger.debug('Failed to get the session from user', user); reject(err); return; } else { logger.debug('Succeed to get the user session', session); resolve(session); return; } }); }); }; /** * Get authenticated credentials of current user. * @return - A promise resolves to be current user's credentials */ AuthClass.prototype.currentUserCredentials = function () { return __awaiter(this, void 0, void 0, function () { var e_7, federatedInfo; var _this = this; return __generator(this, function (_a) { switch (_a.label) { case 0: logger.debug('Getting current user credentials'); _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); return [4 /*yield*/, this._storageSync]; case 2: _a.sent(); return [3 /*break*/, 4]; case 3: e_7 = _a.sent(); logger.debug('Failed to sync cache info into memory', e_7); throw e_7; case 4: federatedInfo = null; try { federatedInfo = JSON.parse(this._storage.getItem('aws-amplify-federatedInfo')); } catch (e) { logger.debug('failed to get or parse item aws-amplify-federatedInfo', e); } if (federatedInfo) { // refresh the jwt token here if necessary return [2 /*return*/, this.Credentials.refreshFederatedToken(federatedInfo)]; } else { return [2 /*return*/, this.currentSession() .then(function (session) { logger.debug('getting session success', session); return _this.Credentials.set(session, 'session'); }) .catch(function (error) { logger.debug('getting session failed', error); return _this.Credentials.set(null, 'guest'); })]; } return [2 /*return*/]; } }); }); }; AuthClass.prototype.currentCredentials = function () { logger.debug('getting current credentials'); return this.Credentials.get(); }; /** * Initiate an attribute confirmation request * @param {Object} user - The CognitoUser * @param {Object} attr - The attributes to be verified * @return - A promise resolves to callback data if success */ AuthClass.prototype.verifyUserAttribute = function (user, attr, clientMetadata) { if (clientMetadata === void 0) { clientMetadata = this._config.clientMetadata; } return new Promise(function (resolve, reject) { user.getAttributeVerificationCode(attr, { onSuccess: function () { return resolve(); }, onFailure: function (err) { return reject(err); }, clientMetadata: clientMetadata, }); }); }; /** * Confirm an attribute using a confirmation code * @param {Object} user - The CognitoUser * @param {Object} attr - The attribute to be verified * @param {String} code - The confirmation code * @return - A promise resolves to callback data if success */ AuthClass.prototype.verifyUserAttributeSubmit = function (user, attr, code) { if (!code) { return this.rejectAuthError(Auth_1.AuthErrorTypes.EmptyCode); } return new Promise(function (resolve, reject) { user.verifyAttribute(attr, code, { onSuccess: function (data) { resolve(data); return; }, onFailure: function (err) { reject(err); return; }, }); }); }; AuthClass.prototype.verifyCurrentUserAttribute = function (attr) { var that = this; return that .currentUserPoolUser() .then(function (user) { return that.verifyUserAttribute(user, attr); }); }; /** * Confirm current user's attribute using a confirmation code * @param {Object} attr - The attribute to be verified * @param {String} code - The confirmation code * @return - A promise resolves to callback data if success */ AuthClass.prototype.verifyCurrentUserAttributeSubmit = function (attr, code) { var that = this; return that .currentUserPoolUser() .then(function (user) { return that.verifyUserAttributeSubmit(user, attr, code); }); }; AuthClass.prototype.cognitoIdentitySignOut = function (opts, user) { return __awaiter(this, void 0, void 0, function () { var e_8, isSignedInHostedUI; var _this = this; return __generator(this, function (_a) { switch (_a.label) { case 0: _a.trys.push([0, 2, , 3]); return [4 /*yield*/, this._storageSync]; case 1: _a.sent(); return [3 /*break*/, 3]; case 2: e_8 = _a.sent(); logger.debug('Failed to sync cache info into memory', e_8); throw e_8; case 3: isSignedInHostedUI = this._oAuthHandler && this._storage.getItem('amplify-signin-with-hostedUI') === 'true'; return [2 /*return*/, new Promise(function (res, rej) { if (opts && opts.global) { logger.debug('user global sign out', user); // in order to use global signout // we must validate the user as an authenticated user by using getSession user.getSession(function (err, result) { if (err) { logger.debug('failed to get the user session', err); return rej(err); } user.globalSignOut({ onSuccess: function (data) { logger.debug('global sign out success'); if (isSignedInHostedUI) { _this.oAuthSignOutRedirect(res, rej); } else { return res(); } }, onFailure: function (err) { logger.debug('global sign out failed', err); return rej(err); }, }); }); } else { logger.debug('user sign out', user); user.signOut(); if (isSignedInHostedUI) { _this.oAuthSignOutRedirect(res, rej); } else { return res(); } } })]; } }); }); }; AuthClass.prototype.oAuthSignOutRedirect = function (resolve, reject) { var isBrowser = core_1.JS.browserOrNode().isBrowser; if (isBrowser) { this.oAuthSignOutRedirectOrReject(reject); } else { this.oAuthSignOutAndResolve(resolve); } }; AuthClass.prototype.oAuthSignOutAndResolve = function (resolve) { this._oAuthHandler.signOut(); resolve(); }; AuthClass.prototype.oAuthSignOutRedirectOrReject = function (reject) { this._oAuthHandler.signOut(); // this method redirects url // App should be redirected to another url otherwise it will reject setTimeout(function () { return reject('Signout timeout fail'); }, 3000); }; /** * Sign out method * @ * @return - A promise resolved if success */ AuthClass.prototype.signOut = function (opts) { return __awaiter(this, void 0, void 0, function () { var e_9, user; return __generator(this, function (_a) { switch (_a.label) { case 0: _a.trys.push([0, 2, , 3]); return [4 /*yield*/, this.cleanCachedItems()]; case 1: _a.sent(); return [3 /*break*/, 3]; case 2: e_9 = _a.sent(); logger.debug('failed to clear cached items'); return [3 /*break*/, 3]; case 3: if (!this.userPool) return [3 /*break*/, 7]; user = this.userPool.getCurrentUser(); if (!user) return [3 /*break*/, 5]; return [4 /*yield*/, this.cognitoIdentitySignOut(opts, user)]; case 4: _a.sent(); return [3 /*break*/, 6]; case 5: logger.debug('no current Cognito user'); _a.label = 6; case 6: return [3 /*break*/, 8]; case 7: logger.debug('no Congito User pool'); _a.label = 8; case 8: /** * Note for future refactor - no reliable way to get username with * Cognito User Pools vs Identity when federating with Social Providers * This is why we need a well structured session object that can be inspected * and information passed back in the message below for Hub dispatch */ dispatchAuthEvent('signOut', this.user, "A user has been signed out"); this.user = null; return [2 /*return*/]; } }); }); }; AuthClass.prototype.cleanCachedItems = function () { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: // clear cognito cached item return [4 /*yield*/, this.Credentials.clear()]; case 1: // clear cognito cached item _a.sent(); return [2 /*return*/]; } }); }); }; /** * Change a password for an authenticated user * @param {Object} user - The CognitoUser object * @param {String} oldPassword - the current password * @param {String} newPassword - the requested new password * @return - A promise resolves if success */ AuthClass.prototype.changePassword = function (user, oldPassword, newPassword, clientMetadata) { var _this = this; if (clientMetadata === void 0) { clientMetadata = this._config.clientMetadata; } return new Promise(function (resolve, reject) { _this.userSession(user).then(function (session) { user.changePassword(oldPassword, newPassword, function (err, data) { if (err) { logger.debug('change password failure', err); return reject(err); } else { return resolve(data); } }, clientMetadata); }); }); }; /** * Initiate a forgot password request * @param {String} username - the username to change password * @return - A promise resolves if success */ AuthClass.prototype.forgotPassword = function (username, clientMetadata) { if (clientMetadata === void 0) { clientMetadata = this._config.clientMetadata; } if (!this.userPool) { return this.rejectNoUserPool(); } if (!username) { return this.rejectAuthError(Auth_1.AuthErrorTypes.EmptyUsername); } var user = this.createCognitoUser(username); return new Promise(function (resolve, reject) { user.forgotPassword({ onSuccess: function () { resolve(); return; }, onFailure: function (err) { logger.debug('forgot password failure', err); dispatchAuthEvent('forgotPassword_failure', err, username + " forgotPassword failed"); reject(err); return; }, inputVerificationCode: function (data) { dispatchAuthEvent('forgotPassword', user, username + " has initiated forgot password flow"); resolve(data); return; }, }, clientMetadata); }); }; /** * Confirm a new password using a confirmation Code * @param {String} username - The username * @param {String} code - The confirmation code * @param {String} password - The new password * @return - A promise that resolves if success */ AuthClass.prototype.forgotPasswordSubmit = function (username, code, password, clientMetadata) { if (clientMetadata === void 0) { clientMetadata = this._config.clientMetadata; } if (!this.userPool) { return this.rejectNoUserPool(); } if (!username) { return this.rejectAuthError(Auth_1.AuthErrorTypes.EmptyUsername); } if (!code) { return this.rejectAuthError(Auth_1.AuthErrorTypes.EmptyCode); } if (!password) { return this.rejectAuthError(Auth_1.AuthErrorTypes.EmptyPassword); } var user = this.createCognitoUser(username); return new Promise(function (resolve, reject) { user.confirmPassword(code, password, { onSuccess: function () { dispatchAuthEvent('forgotPasswordSubmit', user, username + " forgotPasswordSubmit successful"); resolve(); return; }, onFailure: function (err) { dispatchAuthEvent('forgotPasswordSubmit_failure', err, username + " forgotPasswordSubmit failed"); reject(err); return; }, }, clientMetadata); }); }; /** * Get user information * @async * @return {Object }- current User's information */ AuthClass.prototype.currentUserInfo = function () { return __awaiter(this, void 0, void 0, function () { var source, user, attributes, userAttrs, credentials, e_10, info, err_1, user; return __generator(this, function (_a) { switch (_a.label) { case 0: source = this.Credentials.getCredSource(); if (!(!source || source === 'aws' || source === 'userPool')) return [3 /*break*/, 9]; return [4 /*yield*/, this.currentUserPoolUser().catch(function (err) { return logger.debug(err); })]; case 1: user = _a.sent(); if (!user) { return [2 /*return*/, null]; } _a.label = 2; case 2: _a.trys.push([2, 8, , 9]); return [4 /*yield*/, this.userAttributes(user)]; case 3: attributes = _a.sent(); userAttrs = this.attributesToObject(attributes); credentials = null; _a.label = 4; case 4: _a.trys.push([4, 6, , 7]); return [4 /*yield*/, this.currentCredentials()]; case 5: credentials = _a.sent(); return [3 /*break*/, 7]; case 6: e_10 = _a.sent(); logger.debug('Failed to retrieve credentials while getting current user info', e_10); return [3 /*break*/, 7]; case 7: info = { id: credentials ? credentials.identityId : undefined, username: user.getUsername(), attributes: userAttrs, }; return [2 /*return*/, info]; case 8: err_1 = _a.sent(); logger.debug('currentUserInfo error', err_1); return [2 /*return*/, {}]; case 9: if (source === 'federated') { user = this.user; return [2 /*return*/, user ? user : {}]; } return [2 /*return*/]; } }); }); }; AuthClass.prototype.federatedSignIn = function (providerOrOptions, response, user) { return __awaiter(this, void 0, void 0, function () { var options, provider, customState, client_id, redirect_uri, provider, loggedInUser, token, identity_id, expires_at, credentials, currentUser; return __generator(this, function (_a) { switch (_a.label) { case 0: if (!this._config.identityPoolId && !this._config.userPoolId) { throw new Error("Federation requires either a User Pool or Identity Pool in config"); } // Ensure backwards compatability if (typeof providerOrOptions === 'undefined') { if (this._config.identityPoolId && !this._config.userPoolId) { throw new Error("Federation with Identity Pools requires tokens passed as arguments"); } } if (!(types_1.isFederatedSignInOptions(providerOrOptions) || types_1.isFederatedSignInOptionsCustom(providerOrOptions) || types_1.hasCustomState(providerOrOptions) || typeof providerOrOptions === 'undefined')) return [3 /*break*/, 1]; options = providerOrOptions || { provider: Auth_1.CognitoHostedUIIdentityProvider.Cognito, }; provider = types_1.isFederatedSignInOptions(options) ? options.provider : options.customProvider; customState = types_1.isFederatedSignInOptions(options) ? options.customState : options.customState; if (this._config.userPoolId) { client_id = types_1.isCognitoHostedOpts(this._config.oauth) ? this._config.userPoolWebClientId : this._config.oauth.clientID; redirect_uri = types_1.isCognitoHostedOpts(this._config.oauth) ? this._config.oauth.redirectSignIn : this._config.oauth.redirectUri; this._oAuthHandler.oauthSignIn(this._config.oauth.responseType, this._config.oauth.domain, redirect_uri, client_id, provider, customState); } return [3 /*break*/, 4]; case 1: provider = providerOrOptions; // To check if the user is already logged in try { loggedInUser = JSON.stringify(JSON.parse(this._storage.getItem('aws-amplify-federatedInfo')).user); if (loggedInUser) { logger.warn("There is already a signed in user: " + loggedInUser + " in your app.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tYou should not call Auth.federatedSignIn method again as it may cause unexpected behavior."); } } catch (e) { } token = response.token, identity_id = response.identity_id, expires_at = response.expires_at; return [4 /*yield*/, this.Credentials.set({ provider: provider, token: token, identity_id: identity_id, user: user, expires_at: expires_at }, 'federation')]; case 2: credentials = _a.sent(); return [4 /*yield*/, this.currentAuthenticatedUser()]; case 3: currentUser = _a.sent(); dispatchAuthEvent('signIn', currentUser, "A user " + currentUser.username + " has been signed in"); logger.debug('federated sign in credentials', credentials); return [2 /*return*/, credentials]; case 4: return [2 /*return*/]; } }); }); }; /** * Used to complete the OAuth flow with or without the Cognito Hosted UI * @param {String} URL - optional parameter for customers to pass in the response URL */ AuthClass.prototype._handleAuthResponse = function (URL) { return __awaiter(this, void 0, void 0, function () { var currentUrl, hasCodeOrError, hasTokenOrError, _a, accessToken, idToken, refreshToken, state, session, credentials, isCustomStateIncluded, currentUser, customState, err_2; return __generator(this, function (_b) { switch (_b.label) { case 0: if (this.oAuthFlowInProgress) { logger.debug("Skipping URL " + URL + " current flow in progress"); return [2 /*return*/]; } _b.label = 1; case 1: _b.trys.push([1, , 8, 9]); this.oAuthFlowInProgress = true; if (!this._config.userPoolId) { throw new Error("OAuth responses require a User Pool defined in config"); } dispatchAuthEvent('parsingCallbackUrl', { url: URL }, "The callback url is being parsed"); currentUrl = URL || (core_1.JS.browserOrNode().isBrowser ? window.location.href : ''); hasCodeOrError = !!(url_1.parse(currentUrl).query || '') .split('&') .map(function (entry) { return entry.split('='); }) .find(function (_a) { var _b = __read(_a, 1), k = _b[0]; return k === 'code' || k === 'error'; }); hasTokenOrError = !!(url_1.parse(currentUrl).hash || '#') .substr(1) .split('&') .map(function (entry) { return entry.split('='); }) .find(function (_a) { var _b = __read(_a, 1), k = _b[0]; return k === 'access_token' || k === 'error'; }); if (!(hasCodeOrError || hasTokenOrError)) return [3 /*break*/, 7]; this._storage.setItem('amplify-redirected-from-hosted-ui', 'true'); _b.label = 2; case 2: _b.trys.push([2, 6, , 7]); return [4 /*yield*/, this._oAuthHandler.handleAuthResponse(currentUrl)]; case 3: _a = _b.sent(), accessToken = _a.accessToken, idToken = _a.idToken, refreshToken = _a.refreshToken, state = _a.state; session = new amazon_cognito_identity_js_1.CognitoUserSession({ IdToken: new amazon_cognito_identity_js_1.CognitoIdToken({ IdToken: idToken }), RefreshToken: new amazon_cognito_identity_js_1.CognitoRefreshToken({ RefreshToken: refreshToken, }), AccessToken: new amazon_cognito_identity_js_1.CognitoAccessToken({ AccessToken: accessToken, }), }); credentials = void 0; if (!this._config.identityPoolId) return [3 /*break*/, 5]; return [4 /*yield*/, this.Credentials.set(session, 'session')]; case 4: credentials = _b.sent(); logger.debug('AWS credentials', credentials); _b.label = 5; case 5: isCustomStateIncluded = /-/.test(state); currentUser = this.createCognitoUser(session.getIdToken().decodePayload()['cognito:username']); // This calls cacheTokens() in Cognito SDK currentUser.setSignInUserSession(session); if (window && typeof window.history !== 'undefined') { window.history.replaceState({}, null, this._config.oauth.redirectSignIn); } dispatchAuthEvent('signIn', currentUser, "A user " + currentUser.getUsername() + " has been signed in"); dispatchAuthEvent('cognitoHostedUI', currentUser, "A user " + currentUser.getUsername() + " has been signed in via Cognito Hosted UI"); if (isCustomStateIncluded) { customState = state .split('-') .splice(1) .join('-'); dispatchAuthEvent('customOAuthState', core_1.urlSafeDecode(customState), "State for user " + currentUser.getUsername()); } //#endregion return [2 /*return*/, credentials]; case 6: err_2 = _b.sent(); logger.debug('Error in cognito hosted auth response', err_2); dispatchAuthEvent('signIn_failure', err_2, "The OAuth response flow failed"); dispatchAuthEvent('cognitoHostedUI_failure', err_2, "A failure occurred when returning to the Cognito Hosted UI"); dispatchAuthEvent('customState_failure', err_2, "A failure occurred when returning state"); return [3 /*break*/, 7]; case 7: return [3 /*break*/, 9]; case 8: this.oAuthFlowInProgress = false; return [7 /*endfinally*/]; case 9: return [2 /*return*/]; } }); }); }; /** * Compact version of credentials * @param {Object} credentials * @return {Object} - Credentials */ AuthClass.prototype.essentialCredentials = function (credentials) { return { accessKeyId: credentials.accessKeyId, sessionToken: credentials.sessionToken, secretAccessKey: credentials.secretAccessKey, identityId: credentials.identityId, authenticated: credentials.authenticated, }; }; AuthClass.prototype.attributesToObject = function (attributes) { var obj = {}; if (attributes) { attributes.map(function (attribute) { if (attribute.Name === 'email_verified' || attribute.Name === 'phone_number_verified') { obj[attribute.Name] = attribute.Value === 'true' || attribute.Value === true; } else { obj[attribute.Name] = attribute.Value; } }); } return obj; }; AuthClass.prototype.createCognitoUser = function (username) { var userData = { Username: username, Pool: this.userPool, }; userData.Storage = this._storage; var authenticationFlowType = this._config.authenticationFlowType; var user = new amazon_cognito_identity_js_1.CognitoUser(userData); if (authenticationFlowType) { user.setAuthenticationFlowType(authenticationFlowType); } return user; }; AuthClass.prototype._isValidAuthStorage = function (obj) { // We need to check if the obj has the functions of Storage return (!!obj && typeof obj.getItem === 'function' && typeof obj.setItem === 'function' && typeof obj.removeItem === 'function' && typeof obj.clear === 'function'); }; AuthClass.prototype.noUserPoolErrorHandler = function (config) { if (config) { if (!config.userPoolId || !config.identityPoolId) { return Auth_1.AuthErrorTypes.MissingAuthConfig; } } return Auth_1.AuthErrorTypes.NoConfig; }; AuthClass.prototype.rejectAuthError = function (type) { return Promise.reject(new Errors_1.AuthError(type)); }; AuthClass.prototype.rejectNoUserPool = function () { var type = this.noUserPoolErrorHandler(this._config); return Promise.reject(new Errors_1.NoUserPoolError(type)); }; return AuthClass; }()); exports.AuthClass = AuthClass; exports.Auth = new AuthClass(null); core_1.Amplify.register(exports.Auth); //# sourceMappingURL=Auth.js.map /***/ }), /***/ "Wp+8": /*!************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordCommand.js ***! \************************************************************************************/ /*! exports provided: PutRecordCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordCommand", function() { return PutRecordCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "qPic"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "IZqD"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutRecordCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutRecordCommand, _super); // Start section: command_properties // End section: command_properties function PutRecordCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutRecordCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutRecordInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutRecordOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutRecordCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1PutRecordCommand"])(input, context); }; PutRecordCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1PutRecordCommand"])(output, context); }; return PutRecordCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=PutRecordCommand.js.map /***/ }), /***/ "WqcR": /*!******************************************************************!*\ !*** ./node_modules/@aws-sdk/smithy-client/dist/es/sdk-error.js ***! \******************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2RrLWVycm9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3Nkay1lcnJvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTWV0YWRhdGFCZWFyZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuaW1wb3J0IHsgU21pdGh5RXhjZXB0aW9uIH0gZnJvbSBcIi4vZXhjZXB0aW9uXCI7XG5cbmV4cG9ydCB0eXBlIFNka0Vycm9yID0gRXJyb3IgJiBTbWl0aHlFeGNlcHRpb24gJiBNZXRhZGF0YUJlYXJlcjtcbiJdfQ== /***/ }), /***/ "WwzQ": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/StopProjectVersionCommand.js ***! \************************************************************************************************/ /*! exports provided: StopProjectVersionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopProjectVersionCommand", function() { return StopProjectVersionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StopProjectVersionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StopProjectVersionCommand, _super); // Start section: command_properties // End section: command_properties function StopProjectVersionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StopProjectVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StopProjectVersionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StopProjectVersionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StopProjectVersionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StopProjectVersionCommand"])(input, context); }; StopProjectVersionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StopProjectVersionCommand"])(output, context); }; return StopProjectVersionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StopProjectVersionCommand.js.map /***/ }), /***/ "WyKG": /*!******************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/toSubscriber.js ***! \******************************************************************/ /*! exports provided: toSubscriber */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toSubscriber", function() { return toSubscriber; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); /* harmony import */ var _symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../symbol/rxSubscriber */ "2QA8"); /* harmony import */ var _Observer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Observer */ "gRHU"); function toSubscriber(nextOrObserver, error, complete) { if (nextOrObserver) { if (nextOrObserver instanceof _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]) { return nextOrObserver; } if (nextOrObserver[_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_1__["rxSubscriber"]]) { return nextOrObserver[_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_1__["rxSubscriber"]](); } } if (!nextOrObserver && !error && !complete) { return new _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"](_Observer__WEBPACK_IMPORTED_MODULE_2__["empty"]); } return new _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"](nextOrObserver, error, complete); } //# sourceMappingURL=toSubscriber.js.map /***/ }), /***/ "X4IK": /*!********************************************************************!*\ !*** ./node_modules/graphql/utilities/lexicographicSortSchema.mjs ***! \********************************************************************/ /*! exports provided: lexicographicSortSchema */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lexicographicSortSchema", function() { return lexicographicSortSchema; }); /* harmony import */ var _jsutils_keyValMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/keyValMap */ "WXJZ"); /* harmony import */ var _jsutils_objectValues__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/objectValues */ "S4Ci"); /* harmony import */ var _type_schema__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../type/schema */ "51nL"); /* harmony import */ var _type_directives__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../type/directives */ "4suF"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../type/definition */ "axIb"); /* harmony import */ var _type_scalars__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../type/scalars */ "19Hc"); /* harmony import */ var _type_introspection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../type/introspection */ "LViu"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Sort GraphQLSchema. */ function lexicographicSortSchema(schema) { var cache = Object.create(null); var sortMaybeType = function sortMaybeType(maybeType) { return maybeType && sortNamedType(maybeType); }; return new _type_schema__WEBPACK_IMPORTED_MODULE_2__["GraphQLSchema"]({ types: sortTypes(Object(_jsutils_objectValues__WEBPACK_IMPORTED_MODULE_1__["default"])(schema.getTypeMap())), directives: sortByName(schema.getDirectives()).map(sortDirective), query: sortMaybeType(schema.getQueryType()), mutation: sortMaybeType(schema.getMutationType()), subscription: sortMaybeType(schema.getSubscriptionType()), astNode: schema.astNode }); function sortDirective(directive) { return new _type_directives__WEBPACK_IMPORTED_MODULE_3__["GraphQLDirective"]({ name: directive.name, description: directive.description, locations: sortBy(directive.locations, function (x) { return x; }), args: sortArgs(directive.args), astNode: directive.astNode }); } function sortArgs(args) { return Object(_jsutils_keyValMap__WEBPACK_IMPORTED_MODULE_0__["default"])(sortByName(args), function (arg) { return arg.name; }, function (arg) { return _objectSpread({}, arg, { type: sortType(arg.type) }); }); } function sortFields(fieldsMap) { return sortObjMap(fieldsMap, function (field) { return { type: sortType(field.type), args: sortArgs(field.args), resolve: field.resolve, subscribe: field.subscribe, deprecationReason: field.deprecationReason, description: field.description, astNode: field.astNode }; }); } function sortInputFields(fieldsMap) { return sortObjMap(fieldsMap, function (field) { return { type: sortType(field.type), defaultValue: field.defaultValue, description: field.description, astNode: field.astNode }; }); } function sortType(type) { if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isListType"])(type)) { return new _type_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLList"](sortType(type.ofType)); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isNonNullType"])(type)) { return new _type_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLNonNull"](sortType(type.ofType)); } return sortNamedType(type); } function sortTypes(arr) { return sortByName(arr).map(sortNamedType); } function sortNamedType(type) { if (Object(_type_scalars__WEBPACK_IMPORTED_MODULE_5__["isSpecifiedScalarType"])(type) || Object(_type_introspection__WEBPACK_IMPORTED_MODULE_6__["isIntrospectionType"])(type)) { return type; } var sortedType = cache[type.name]; if (!sortedType) { sortedType = sortNamedTypeImpl(type); cache[type.name] = sortedType; } return sortedType; } function sortNamedTypeImpl(type) { if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isScalarType"])(type)) { return type; } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isObjectType"])(type)) { return new _type_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLObjectType"]({ name: type.name, interfaces: function interfaces() { return sortTypes(type.getInterfaces()); }, fields: function fields() { return sortFields(type.getFields()); }, isTypeOf: type.isTypeOf, description: type.description, astNode: type.astNode, extensionASTNodes: type.extensionASTNodes }); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isInterfaceType"])(type)) { return new _type_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLInterfaceType"]({ name: type.name, fields: function fields() { return sortFields(type.getFields()); }, resolveType: type.resolveType, description: type.description, astNode: type.astNode, extensionASTNodes: type.extensionASTNodes }); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isUnionType"])(type)) { return new _type_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLUnionType"]({ name: type.name, types: function types() { return sortTypes(type.getTypes()); }, resolveType: type.resolveType, description: type.description, astNode: type.astNode }); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isEnumType"])(type)) { return new _type_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLEnumType"]({ name: type.name, values: Object(_jsutils_keyValMap__WEBPACK_IMPORTED_MODULE_0__["default"])(sortByName(type.getValues()), function (val) { return val.name; }, function (val) { return { value: val.value, deprecationReason: val.deprecationReason, description: val.description, astNode: val.astNode }; }), description: type.description, astNode: type.astNode }); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_4__["isInputObjectType"])(type)) { return new _type_definition__WEBPACK_IMPORTED_MODULE_4__["GraphQLInputObjectType"]({ name: type.name, fields: function fields() { return sortInputFields(type.getFields()); }, description: type.description, astNode: type.astNode }); } throw new Error("Unknown type: \"".concat(type, "\"")); } } function sortObjMap(map, sortValueFn) { var sortedMap = Object.create(null); var sortedKeys = sortBy(Object.keys(map), function (x) { return x; }); for (var _i = 0; _i < sortedKeys.length; _i++) { var key = sortedKeys[_i]; var value = map[key]; sortedMap[key] = sortValueFn ? sortValueFn(value) : value; } return sortedMap; } function sortByName(array) { return sortBy(array, function (obj) { return obj.name; }); } function sortBy(array, mapToKey) { return array.slice().sort(function (obj1, obj2) { var key1 = mapToKey(obj1); var key2 = mapToKey(obj2); return key1.localeCompare(key2); }); } /***/ }), /***/ "X6NG": /*!*************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/StartProjectVersionCommand.js ***! \*************************************************************************************************/ /*! exports provided: StartProjectVersionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartProjectVersionCommand", function() { return StartProjectVersionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StartProjectVersionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartProjectVersionCommand, _super); // Start section: command_properties // End section: command_properties function StartProjectVersionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StartProjectVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartProjectVersionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartProjectVersionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StartProjectVersionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartProjectVersionCommand"])(input, context); }; StartProjectVersionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartProjectVersionCommand"])(output, context); }; return StartProjectVersionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StartProjectVersionCommand.js.map /***/ }), /***/ "X7k8": /*!********************************************************************!*\ !*** ./node_modules/@aws-sdk/chunked-blob-reader/dist/es/index.js ***! \********************************************************************/ /*! exports provided: blobReader */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blobReader", function() { return blobReader; }); function blobReader(blob, onChunk, chunkSize) { if (chunkSize === void 0) { chunkSize = 1024 * 1024; } return new Promise(function (resolve, reject) { var fileReader = new FileReader(); fileReader.addEventListener("error", reject); fileReader.addEventListener("abort", reject); var size = blob.size; var totalBytesRead = 0; function read() { if (totalBytesRead >= size) { resolve(); return; } fileReader.readAsArrayBuffer(blob.slice(totalBytesRead, Math.min(size, totalBytesRead + chunkSize))); } fileReader.addEventListener("load", function (event) { var result = event.target.result; onChunk(new Uint8Array(result)); totalBytesRead += result.byteLength; // read the next block read(); }); // kick off the read read(); }); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxVQUFVLFVBQVUsQ0FDeEIsSUFBVSxFQUNWLE9BQW9DLEVBQ3BDLFNBQStCO0lBQS9CLDBCQUFBLEVBQUEsWUFBb0IsSUFBSSxHQUFHLElBQUk7SUFFL0IsT0FBTyxJQUFJLE9BQU8sQ0FBQyxVQUFDLE9BQU8sRUFBRSxNQUFNO1FBQ2pDLElBQU0sVUFBVSxHQUFHLElBQUksVUFBVSxFQUFFLENBQUM7UUFFcEMsVUFBVSxDQUFDLGdCQUFnQixDQUFDLE9BQU8sRUFBRSxNQUFNLENBQUMsQ0FBQztRQUM3QyxVQUFVLENBQUMsZ0JBQWdCLENBQUMsT0FBTyxFQUFFLE1BQU0sQ0FBQyxDQUFDO1FBRTdDLElBQU0sSUFBSSxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUM7UUFDdkIsSUFBSSxjQUFjLEdBQUcsQ0FBQyxDQUFDO1FBRXZCLFNBQVMsSUFBSTtZQUNYLElBQUksY0FBYyxJQUFJLElBQUksRUFBRTtnQkFDMUIsT0FBTyxFQUFFLENBQUM7Z0JBQ1YsT0FBTzthQUNSO1lBQ0QsVUFBVSxDQUFDLGlCQUFpQixDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsY0FBYyxFQUFFLElBQUksQ0FBQyxHQUFHLENBQUMsSUFBSSxFQUFFLGNBQWMsR0FBRyxTQUFTLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDdkcsQ0FBQztRQUVELFVBQVUsQ0FBQyxnQkFBZ0IsQ0FBQyxNQUFNLEVBQUUsVUFBQyxLQUFLO1lBQ3hDLElBQU0sTUFBTSxHQUFpQixLQUFLLENBQUMsTUFBYyxDQUFDLE1BQU0sQ0FBQztZQUN6RCxPQUFPLENBQUMsSUFBSSxVQUFVLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQztZQUNoQyxjQUFjLElBQUksTUFBTSxDQUFDLFVBQVUsQ0FBQztZQUNwQyxzQkFBc0I7WUFDdEIsSUFBSSxFQUFFLENBQUM7UUFDVCxDQUFDLENBQUMsQ0FBQztRQUVILG9CQUFvQjtRQUNwQixJQUFJLEVBQUUsQ0FBQztJQUNULENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBmdW5jdGlvbiBibG9iUmVhZGVyKFxuICBibG9iOiBCbG9iLFxuICBvbkNodW5rOiAoY2h1bms6IFVpbnQ4QXJyYXkpID0+IHZvaWQsXG4gIGNodW5rU2l6ZTogbnVtYmVyID0gMTAyNCAqIDEwMjRcbik6IFByb21pc2U8dm9pZD4ge1xuICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgIGNvbnN0IGZpbGVSZWFkZXIgPSBuZXcgRmlsZVJlYWRlcigpO1xuXG4gICAgZmlsZVJlYWRlci5hZGRFdmVudExpc3RlbmVyKFwiZXJyb3JcIiwgcmVqZWN0KTtcbiAgICBmaWxlUmVhZGVyLmFkZEV2ZW50TGlzdGVuZXIoXCJhYm9ydFwiLCByZWplY3QpO1xuXG4gICAgY29uc3Qgc2l6ZSA9IGJsb2Iuc2l6ZTtcbiAgICBsZXQgdG90YWxCeXRlc1JlYWQgPSAwO1xuXG4gICAgZnVuY3Rpb24gcmVhZCgpIHtcbiAgICAgIGlmICh0b3RhbEJ5dGVzUmVhZCA+PSBzaXplKSB7XG4gICAgICAgIHJlc29sdmUoKTtcbiAgICAgICAgcmV0dXJuO1xuICAgICAgfVxuICAgICAgZmlsZVJlYWRlci5yZWFkQXNBcnJheUJ1ZmZlcihibG9iLnNsaWNlKHRvdGFsQnl0ZXNSZWFkLCBNYXRoLm1pbihzaXplLCB0b3RhbEJ5dGVzUmVhZCArIGNodW5rU2l6ZSkpKTtcbiAgICB9XG5cbiAgICBmaWxlUmVhZGVyLmFkZEV2ZW50TGlzdGVuZXIoXCJsb2FkXCIsIChldmVudCkgPT4ge1xuICAgICAgY29uc3QgcmVzdWx0ID0gPEFycmF5QnVmZmVyPihldmVudC50YXJnZXQgYXMgYW55KS5yZXN1bHQ7XG4gICAgICBvbkNodW5rKG5ldyBVaW50OEFycmF5KHJlc3VsdCkpO1xuICAgICAgdG90YWxCeXRlc1JlYWQgKz0gcmVzdWx0LmJ5dGVMZW5ndGg7XG4gICAgICAvLyByZWFkIHRoZSBuZXh0IGJsb2NrXG4gICAgICByZWFkKCk7XG4gICAgfSk7XG5cbiAgICAvLyBraWNrIG9mZiB0aGUgcmVhZFxuICAgIHJlYWQoKTtcbiAgfSk7XG59XG4iXX0= /***/ }), /***/ "X9ko": /*!*******************************************************************!*\ !*** ./node_modules/@aws-sdk/signature-v4/dist/es/SignatureV4.js ***! \*******************************************************************/ /*! exports provided: SignatureV4 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SignatureV4", function() { return SignatureV4; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/util-hex-encoding */ "7Z+r"); /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "IkwW"); /* harmony import */ var _credentialDerivation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./credentialDerivation */ "TPAK"); /* harmony import */ var _getCanonicalHeaders__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getCanonicalHeaders */ "/WRn"); /* harmony import */ var _getCanonicalQuery__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getCanonicalQuery */ "gbrZ"); /* harmony import */ var _getPayloadHash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getPayloadHash */ "tciG"); /* harmony import */ var _hasHeader__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./hasHeader */ "fyr9"); /* harmony import */ var _moveHeadersToQuery__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./moveHeadersToQuery */ "Tp+l"); /* harmony import */ var _prepareRequest__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./prepareRequest */ "NvLO"); /* harmony import */ var _utilDate__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utilDate */ "JadV"); var SignatureV4 = /** @class */ (function () { function SignatureV4(_a) { var applyChecksum = _a.applyChecksum, credentials = _a.credentials, region = _a.region, service = _a.service, sha256 = _a.sha256, _b = _a.uriEscapePath, uriEscapePath = _b === void 0 ? true : _b; this.service = service; this.sha256 = sha256; this.uriEscapePath = uriEscapePath; // default to true if applyChecksum isn't set this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; this.regionProvider = normalizeRegionProvider(region); this.credentialProvider = normalizeCredentialsProvider(credentials); } SignatureV4.prototype.presign = function (originalRequest, options) { if (options === void 0) { options = {}; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var _a, signingDate, _b, expiresIn, unsignableHeaders, signableHeaders, signingRegion, signingService, credentials, region, _c, _d, longDate, shortDate, scope, request, canonicalHeaders, _e, _f, _g, _h, _j, _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = options.signingDate, signingDate = _a === void 0 ? new Date() : _a, _b = options.expiresIn, expiresIn = _b === void 0 ? 3600 : _b, unsignableHeaders = options.unsignableHeaders, signableHeaders = options.signableHeaders, signingRegion = options.signingRegion, signingService = options.signingService; return [4 /*yield*/, this.credentialProvider()]; case 1: credentials = _l.sent(); if (!(signingRegion !== null && signingRegion !== void 0)) return [3 /*break*/, 2]; _c = signingRegion; return [3 /*break*/, 4]; case 2: return [4 /*yield*/, this.regionProvider()]; case 3: _c = (_l.sent()); _l.label = 4; case 4: region = _c; _d = formatDate(signingDate), longDate = _d.longDate, shortDate = _d.shortDate; if (expiresIn > _constants__WEBPACK_IMPORTED_MODULE_2__["MAX_PRESIGNED_TTL"]) { return [2 /*return*/, Promise.reject("Signature version 4 presigned URLs" + " must have an expiration date less than one week in" + " the future")]; } scope = Object(_credentialDerivation__WEBPACK_IMPORTED_MODULE_3__["createScope"])(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); request = Object(_moveHeadersToQuery__WEBPACK_IMPORTED_MODULE_8__["moveHeadersToQuery"])(Object(_prepareRequest__WEBPACK_IMPORTED_MODULE_9__["prepareRequest"])(originalRequest)); if (credentials.sessionToken) { request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["TOKEN_QUERY_PARAM"]] = credentials.sessionToken; } request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["ALGORITHM_QUERY_PARAM"]] = _constants__WEBPACK_IMPORTED_MODULE_2__["ALGORITHM_IDENTIFIER"]; request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["CREDENTIAL_QUERY_PARAM"]] = credentials.accessKeyId + "/" + scope; request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["AMZ_DATE_QUERY_PARAM"]] = longDate; request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["EXPIRES_QUERY_PARAM"]] = expiresIn.toString(10); canonicalHeaders = Object(_getCanonicalHeaders__WEBPACK_IMPORTED_MODULE_4__["getCanonicalHeaders"])(request, unsignableHeaders, signableHeaders); request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["SIGNED_HEADERS_QUERY_PARAM"]] = getCanonicalHeaderList(canonicalHeaders); _e = request.query; _f = _constants__WEBPACK_IMPORTED_MODULE_2__["SIGNATURE_QUERY_PARAM"]; _g = this.getSignature; _h = [longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService)]; _j = this.createCanonicalRequest; _k = [request, canonicalHeaders]; return [4 /*yield*/, Object(_getPayloadHash__WEBPACK_IMPORTED_MODULE_6__["getPayloadHash"])(originalRequest, this.sha256)]; case 5: return [4 /*yield*/, _g.apply(this, _h.concat([_j.apply(this, _k.concat([_l.sent()]))]))]; case 6: _e[_f] = _l.sent(); return [2 /*return*/, request]; } }); }); }; SignatureV4.prototype.sign = function (toSign, options) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { if (typeof toSign === "string") { return [2 /*return*/, this.signString(toSign, options)]; } else if (toSign.headers && toSign.payload) { return [2 /*return*/, this.signEvent(toSign, options)]; } else { return [2 /*return*/, this.signRequest(toSign, options)]; } return [2 /*return*/]; }); }); }; SignatureV4.prototype.signEvent = function (_a, _b) { var headers = _a.headers, payload = _a.payload; var _c = _b.signingDate, signingDate = _c === void 0 ? new Date() : _c, priorSignature = _b.priorSignature, signingRegion = _b.signingRegion, signingService = _b.signingService; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var region, _d, _e, shortDate, longDate, scope, hashedPayload, hash, hashedHeaders, _f, stringToSign; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: if (!(signingRegion !== null && signingRegion !== void 0)) return [3 /*break*/, 1]; _d = signingRegion; return [3 /*break*/, 3]; case 1: return [4 /*yield*/, this.regionProvider()]; case 2: _d = (_g.sent()); _g.label = 3; case 3: region = _d; _e = formatDate(signingDate), shortDate = _e.shortDate, longDate = _e.longDate; scope = Object(_credentialDerivation__WEBPACK_IMPORTED_MODULE_3__["createScope"])(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); return [4 /*yield*/, Object(_getPayloadHash__WEBPACK_IMPORTED_MODULE_6__["getPayloadHash"])({ headers: {}, body: payload }, this.sha256)]; case 4: hashedPayload = _g.sent(); hash = new this.sha256(); hash.update(headers); _f = _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"]; return [4 /*yield*/, hash.digest()]; case 5: hashedHeaders = _f.apply(void 0, [_g.sent()]); stringToSign = [ _constants__WEBPACK_IMPORTED_MODULE_2__["EVENT_ALGORITHM_IDENTIFIER"], longDate, scope, priorSignature, hashedHeaders, hashedPayload, ].join("\n"); return [2 /*return*/, this.signString(stringToSign, { signingDate: signingDate, signingRegion: region, signingService: signingService })]; } }); }); }; SignatureV4.prototype.signString = function (stringToSign, _a) { var _b = _a === void 0 ? {} : _a, _c = _b.signingDate, signingDate = _c === void 0 ? new Date() : _c, signingRegion = _b.signingRegion, signingService = _b.signingService; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var credentials, region, _d, shortDate, hash, _e, _f, _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: return [4 /*yield*/, this.credentialProvider()]; case 1: credentials = _h.sent(); if (!(signingRegion !== null && signingRegion !== void 0)) return [3 /*break*/, 2]; _d = signingRegion; return [3 /*break*/, 4]; case 2: return [4 /*yield*/, this.regionProvider()]; case 3: _d = (_h.sent()); _h.label = 4; case 4: region = _d; shortDate = formatDate(signingDate).shortDate; _f = (_e = this.sha256).bind; return [4 /*yield*/, this.getSigningKey(credentials, region, shortDate, signingService)]; case 5: hash = new (_f.apply(_e, [void 0, _h.sent()]))(); hash.update(stringToSign); _g = _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"]; return [4 /*yield*/, hash.digest()]; case 6: return [2 /*return*/, _g.apply(void 0, [_h.sent()])]; } }); }); }; SignatureV4.prototype.signRequest = function (requestToSign, _a) { var _b = _a === void 0 ? {} : _a, _c = _b.signingDate, signingDate = _c === void 0 ? new Date() : _c, signableHeaders = _b.signableHeaders, unsignableHeaders = _b.unsignableHeaders, signingRegion = _b.signingRegion, signingService = _b.signingService; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var credentials, region, _d, request, _e, longDate, shortDate, scope, payloadHash, canonicalHeaders, signature; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) { switch (_f.label) { case 0: return [4 /*yield*/, this.credentialProvider()]; case 1: credentials = _f.sent(); if (!(signingRegion !== null && signingRegion !== void 0)) return [3 /*break*/, 2]; _d = signingRegion; return [3 /*break*/, 4]; case 2: return [4 /*yield*/, this.regionProvider()]; case 3: _d = (_f.sent()); _f.label = 4; case 4: region = _d; request = Object(_prepareRequest__WEBPACK_IMPORTED_MODULE_9__["prepareRequest"])(requestToSign); _e = formatDate(signingDate), longDate = _e.longDate, shortDate = _e.shortDate; scope = Object(_credentialDerivation__WEBPACK_IMPORTED_MODULE_3__["createScope"])(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); request.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["AMZ_DATE_HEADER"]] = longDate; if (credentials.sessionToken) { request.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["TOKEN_HEADER"]] = credentials.sessionToken; } return [4 /*yield*/, Object(_getPayloadHash__WEBPACK_IMPORTED_MODULE_6__["getPayloadHash"])(request, this.sha256)]; case 5: payloadHash = _f.sent(); if (!Object(_hasHeader__WEBPACK_IMPORTED_MODULE_7__["hasHeader"])(_constants__WEBPACK_IMPORTED_MODULE_2__["SHA256_HEADER"], request.headers) && this.applyChecksum) { request.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["SHA256_HEADER"]] = payloadHash; } canonicalHeaders = Object(_getCanonicalHeaders__WEBPACK_IMPORTED_MODULE_4__["getCanonicalHeaders"])(request, unsignableHeaders, signableHeaders); return [4 /*yield*/, this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash))]; case 6: signature = _f.sent(); request.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["AUTH_HEADER"]] = _constants__WEBPACK_IMPORTED_MODULE_2__["ALGORITHM_IDENTIFIER"] + " " + ("Credential=" + credentials.accessKeyId + "/" + scope + ", ") + ("SignedHeaders=" + getCanonicalHeaderList(canonicalHeaders) + ", ") + ("Signature=" + signature); return [2 /*return*/, request]; } }); }); }; SignatureV4.prototype.createCanonicalRequest = function (request, canonicalHeaders, payloadHash) { var sortedHeaders = Object.keys(canonicalHeaders).sort(); return request.method + "\n" + this.getCanonicalPath(request) + "\n" + Object(_getCanonicalQuery__WEBPACK_IMPORTED_MODULE_5__["getCanonicalQuery"])(request) + "\n" + sortedHeaders.map(function (name) { return name + ":" + canonicalHeaders[name]; }).join("\n") + "\n\n" + sortedHeaders.join(";") + "\n" + payloadHash; }; SignatureV4.prototype.createStringToSign = function (longDate, credentialScope, canonicalRequest) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var hash, hashedRequest; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: hash = new this.sha256(); hash.update(canonicalRequest); return [4 /*yield*/, hash.digest()]; case 1: hashedRequest = _a.sent(); return [2 /*return*/, _constants__WEBPACK_IMPORTED_MODULE_2__["ALGORITHM_IDENTIFIER"] + "\n" + longDate + "\n" + credentialScope + "\n" + Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"])(hashedRequest)]; } }); }); }; SignatureV4.prototype.getCanonicalPath = function (_a) { var path = _a.path; if (this.uriEscapePath) { var doubleEncoded = encodeURIComponent(path.replace(/^\//, "")); return "/" + doubleEncoded.replace(/%2F/g, "/"); } return path; }; SignatureV4.prototype.getSignature = function (longDate, credentialScope, keyPromise, canonicalRequest) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var stringToSign, hash, _a, _b, _c; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_d) { switch (_d.label) { case 0: return [4 /*yield*/, this.createStringToSign(longDate, credentialScope, canonicalRequest)]; case 1: stringToSign = _d.sent(); _b = (_a = this.sha256).bind; return [4 /*yield*/, keyPromise]; case 2: hash = new (_b.apply(_a, [void 0, _d.sent()]))(); hash.update(stringToSign); _c = _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"]; return [4 /*yield*/, hash.digest()]; case 3: return [2 /*return*/, _c.apply(void 0, [_d.sent()])]; } }); }); }; SignatureV4.prototype.getSigningKey = function (credentials, region, shortDate, service) { return Object(_credentialDerivation__WEBPACK_IMPORTED_MODULE_3__["getSigningKey"])(this.sha256, credentials, shortDate, region, service || this.service); }; return SignatureV4; }()); var formatDate = function (now) { var longDate = Object(_utilDate__WEBPACK_IMPORTED_MODULE_10__["iso8601"])(now).replace(/[\-:]/g, ""); return { longDate: longDate, shortDate: longDate.substr(0, 8), }; }; var getCanonicalHeaderList = function (headers) { return Object.keys(headers).sort().join(";"); }; var normalizeRegionProvider = function (region) { if (typeof region === "string") { var promisified_1 = Promise.resolve(region); return function () { return promisified_1; }; } else { return region; } }; var normalizeCredentialsProvider = function (credentials) { if (typeof credentials === "object") { var promisified_2 = Promise.resolve(credentials); return function () { return promisified_2; }; } else { return credentials; } }; //# sourceMappingURL=SignatureV4.js.map /***/ }), /***/ "XDbj": /*!***********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/throwIfEmpty.js ***! \***********************************************************************/ /*! exports provided: throwIfEmpty */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throwIfEmpty", function() { return throwIfEmpty; }); /* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/EmptyError */ "sVev"); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); function throwIfEmpty(errorFactory = defaultErrorFactory) { return (source) => { return source.lift(new ThrowIfEmptyOperator(errorFactory)); }; } class ThrowIfEmptyOperator { constructor(errorFactory) { this.errorFactory = errorFactory; } call(subscriber, source) { return source.subscribe(new ThrowIfEmptySubscriber(subscriber, this.errorFactory)); } } class ThrowIfEmptySubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_1__["Subscriber"] { constructor(destination, errorFactory) { super(destination); this.errorFactory = errorFactory; this.hasValue = false; } _next(value) { this.hasValue = true; this.destination.next(value); } _complete() { if (!this.hasValue) { let err; try { err = this.errorFactory(); } catch (e) { err = e; } this.destination.error(err); } else { return this.destination.complete(); } } } function defaultErrorFactory() { return new _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__["EmptyError"](); } //# sourceMappingURL=throwIfEmpty.js.map /***/ }), /***/ "XE+A": /*!*********************************************************************************!*\ !*** ./node_modules/@aws-sdk/smithy-client/dist/es/get-value-from-text-node.js ***! \*********************************************************************************/ /*! exports provided: getValueFromTextNode */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValueFromTextNode", function() { return getValueFromTextNode; }); /** * Recursively parses object and populates value is node from * "#text" key if it's available */ var getValueFromTextNode = function (obj) { var textNodeName = "#text"; for (var key in obj) { if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== undefined) { obj[key] = obj[key][textNodeName]; } else if (typeof obj[key] === "object" && obj[key] !== null) { obj[key] = getValueFromTextNode(obj[key]); } } return obj; }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LXZhbHVlLWZyb20tdGV4dC1ub2RlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2dldC12YWx1ZS1mcm9tLXRleHQtbm9kZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsSUFBTSxvQkFBb0IsR0FBRyxVQUFDLEdBQVE7SUFDM0MsSUFBTSxZQUFZLEdBQUcsT0FBTyxDQUFDO0lBQzdCLEtBQUssSUFBTSxHQUFHLElBQUksR0FBRyxFQUFFO1FBQ3JCLElBQUksR0FBRyxDQUFDLGNBQWMsQ0FBQyxHQUFHLENBQUMsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUMsWUFBWSxDQUFDLEtBQUssU0FBUyxFQUFFO1lBQ25FLEdBQUcsQ0FBQyxHQUFHLENBQUMsR0FBRyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUMsWUFBWSxDQUFDLENBQUM7U0FDbkM7YUFBTSxJQUFJLE9BQU8sR0FBRyxDQUFDLEdBQUcsQ0FBQyxLQUFLLFFBQVEsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssSUFBSSxFQUFFO1lBQzVELEdBQUcsQ0FBQyxHQUFHLENBQUMsR0FBRyxvQkFBb0IsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQztTQUMzQztLQUNGO0lBQ0QsT0FBTyxHQUFHLENBQUM7QUFDYixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFJlY3Vyc2l2ZWx5IHBhcnNlcyBvYmplY3QgYW5kIHBvcHVsYXRlcyB2YWx1ZSBpcyBub2RlIGZyb21cbiAqIFwiI3RleHRcIiBrZXkgaWYgaXQncyBhdmFpbGFibGVcbiAqL1xuZXhwb3J0IGNvbnN0IGdldFZhbHVlRnJvbVRleHROb2RlID0gKG9iajogYW55KSA9PiB7XG4gIGNvbnN0IHRleHROb2RlTmFtZSA9IFwiI3RleHRcIjtcbiAgZm9yIChjb25zdCBrZXkgaW4gb2JqKSB7XG4gICAgaWYgKG9iai5oYXNPd25Qcm9wZXJ0eShrZXkpICYmIG9ialtrZXldW3RleHROb2RlTmFtZV0gIT09IHVuZGVmaW5lZCkge1xuICAgICAgb2JqW2tleV0gPSBvYmpba2V5XVt0ZXh0Tm9kZU5hbWVdO1xuICAgIH0gZWxzZSBpZiAodHlwZW9mIG9ialtrZXldID09PSBcIm9iamVjdFwiICYmIG9ialtrZXldICE9PSBudWxsKSB7XG4gICAgICBvYmpba2V5XSA9IGdldFZhbHVlRnJvbVRleHROb2RlKG9ialtrZXldKTtcbiAgICB9XG4gIH1cbiAgcmV0dXJuIG9iajtcbn07XG4iXX0= /***/ }), /***/ "XNiG": /*!********************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/Subject.js ***! \********************************************************/ /*! exports provided: SubjectSubscriber, Subject, AnonymousSubject */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubjectSubscriber", function() { return SubjectSubscriber; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Subject", function() { return Subject; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnonymousSubject", function() { return AnonymousSubject; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Observable */ "HDdC"); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Subscriber */ "7o/Q"); /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Subscription */ "quSY"); /* harmony import */ var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util/ObjectUnsubscribedError */ "9ppp"); /* harmony import */ var _SubjectSubscription__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SubjectSubscription */ "Ylt2"); /* harmony import */ var _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../internal/symbol/rxSubscriber */ "2QA8"); class SubjectSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_1__["Subscriber"] { constructor(destination) { super(destination); this.destination = destination; } } class Subject extends _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"] { constructor() { super(); this.observers = []; this.closed = false; this.isStopped = false; this.hasError = false; this.thrownError = null; } [_internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_5__["rxSubscriber"]]() { return new SubjectSubscriber(this); } lift(operator) { const subject = new AnonymousSubject(this, this); subject.operator = operator; return subject; } next(value) { if (this.closed) { throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"](); } if (!this.isStopped) { const { observers } = this; const len = observers.length; const copy = observers.slice(); for (let i = 0; i < len; i++) { copy[i].next(value); } } } error(err) { if (this.closed) { throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"](); } this.hasError = true; this.thrownError = err; this.isStopped = true; const { observers } = this; const len = observers.length; const copy = observers.slice(); for (let i = 0; i < len; i++) { copy[i].error(err); } this.observers.length = 0; } complete() { if (this.closed) { throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"](); } this.isStopped = true; const { observers } = this; const len = observers.length; const copy = observers.slice(); for (let i = 0; i < len; i++) { copy[i].complete(); } this.observers.length = 0; } unsubscribe() { this.isStopped = true; this.closed = true; this.observers = null; } _trySubscribe(subscriber) { if (this.closed) { throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"](); } else { return super._trySubscribe(subscriber); } } _subscribe(subscriber) { if (this.closed) { throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"](); } else if (this.hasError) { subscriber.error(this.thrownError); return _Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"].EMPTY; } else if (this.isStopped) { subscriber.complete(); return _Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"].EMPTY; } else { this.observers.push(subscriber); return new _SubjectSubscription__WEBPACK_IMPORTED_MODULE_4__["SubjectSubscription"](this, subscriber); } } asObservable() { const observable = new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](); observable.source = this; return observable; } } Subject.create = (destination, source) => { return new AnonymousSubject(destination, source); }; class AnonymousSubject extends Subject { constructor(destination, source) { super(); this.destination = destination; this.source = source; } next(value) { const { destination } = this; if (destination && destination.next) { destination.next(value); } } error(err) { const { destination } = this; if (destination && destination.error) { this.destination.error(err); } } complete() { const { destination } = this; if (destination && destination.complete) { this.destination.complete(); } } _subscribe(subscriber) { const { source } = this; if (source) { return this.source.subscribe(subscriber); } else { return _Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"].EMPTY; } } } //# sourceMappingURL=Subject.js.map /***/ }), /***/ "XPSt": /*!*******************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/UploadPartCommand.js ***! \*******************************************************************************/ /*! exports provided: UploadPartCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadPartCommand", function() { return UploadPartCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_ssec__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-ssec */ "CXEx"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UploadPartCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UploadPartCommand, _super); // Start section: command_properties // End section: command_properties function UploadPartCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UploadPartCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_ssec__WEBPACK_IMPORTED_MODULE_5__["getSsecPlugin"])(configuration)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UploadPartRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UploadPartOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UploadPartCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlUploadPartCommand"])(input, context); }; UploadPartCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlUploadPartCommand"])(output, context); }; return UploadPartCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__["Command"])); //# sourceMappingURL=UploadPartCommand.js.map /***/ }), /***/ "XPij": /*!**************************************************!*\ !*** ./node_modules/graphql/utilities/index.mjs ***! \**************************************************/ /*! exports provided: getIntrospectionQuery, introspectionQuery, getOperationAST, getOperationRootType, introspectionFromSchema, buildClientSchema, buildASTSchema, buildSchema, getDescription, extendSchema, lexicographicSortSchema, printSchema, printType, printIntrospectionSchema, typeFromAST, valueFromAST, valueFromASTUntyped, astFromValue, TypeInfo, coerceValue, isValidJSValue, isValidLiteralValue, concatAST, separateOperations, isEqualType, isTypeSubTypeOf, doTypesOverlap, assertValidName, isValidNameError, BreakingChangeType, DangerousChangeType, findBreakingChanges, findDangerousChanges, findDeprecatedUsages */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _introspectionQuery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./introspectionQuery */ "PDj5"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getIntrospectionQuery", function() { return _introspectionQuery__WEBPACK_IMPORTED_MODULE_0__["getIntrospectionQuery"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "introspectionQuery", function() { return _introspectionQuery__WEBPACK_IMPORTED_MODULE_0__["introspectionQuery"]; }); /* harmony import */ var _getOperationAST__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getOperationAST */ "SYjR"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getOperationAST", function() { return _getOperationAST__WEBPACK_IMPORTED_MODULE_1__["getOperationAST"]; }); /* harmony import */ var _getOperationRootType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getOperationRootType */ "gXYT"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getOperationRootType", function() { return _getOperationRootType__WEBPACK_IMPORTED_MODULE_2__["getOperationRootType"]; }); /* harmony import */ var _introspectionFromSchema__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./introspectionFromSchema */ "FAQy"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "introspectionFromSchema", function() { return _introspectionFromSchema__WEBPACK_IMPORTED_MODULE_3__["introspectionFromSchema"]; }); /* harmony import */ var _buildClientSchema__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./buildClientSchema */ "TirB"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildClientSchema", function() { return _buildClientSchema__WEBPACK_IMPORTED_MODULE_4__["buildClientSchema"]; }); /* harmony import */ var _buildASTSchema__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./buildASTSchema */ "Yen0"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildASTSchema", function() { return _buildASTSchema__WEBPACK_IMPORTED_MODULE_5__["buildASTSchema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildSchema", function() { return _buildASTSchema__WEBPACK_IMPORTED_MODULE_5__["buildSchema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDescription", function() { return _buildASTSchema__WEBPACK_IMPORTED_MODULE_5__["getDescription"]; }); /* harmony import */ var _extendSchema__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./extendSchema */ "cbkQ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extendSchema", function() { return _extendSchema__WEBPACK_IMPORTED_MODULE_6__["extendSchema"]; }); /* harmony import */ var _lexicographicSortSchema__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lexicographicSortSchema */ "X4IK"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lexicographicSortSchema", function() { return _lexicographicSortSchema__WEBPACK_IMPORTED_MODULE_7__["lexicographicSortSchema"]; }); /* harmony import */ var _schemaPrinter__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./schemaPrinter */ "XYXw"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "printSchema", function() { return _schemaPrinter__WEBPACK_IMPORTED_MODULE_8__["printSchema"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "printType", function() { return _schemaPrinter__WEBPACK_IMPORTED_MODULE_8__["printType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "printIntrospectionSchema", function() { return _schemaPrinter__WEBPACK_IMPORTED_MODULE_8__["printIntrospectionSchema"]; }); /* harmony import */ var _typeFromAST__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./typeFromAST */ "umOc"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "typeFromAST", function() { return _typeFromAST__WEBPACK_IMPORTED_MODULE_9__["typeFromAST"]; }); /* harmony import */ var _valueFromAST__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./valueFromAST */ "Mbdf"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "valueFromAST", function() { return _valueFromAST__WEBPACK_IMPORTED_MODULE_10__["valueFromAST"]; }); /* harmony import */ var _valueFromASTUntyped__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./valueFromASTUntyped */ "ADFt"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "valueFromASTUntyped", function() { return _valueFromASTUntyped__WEBPACK_IMPORTED_MODULE_11__["valueFromASTUntyped"]; }); /* harmony import */ var _astFromValue__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./astFromValue */ "3HNt"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "astFromValue", function() { return _astFromValue__WEBPACK_IMPORTED_MODULE_12__["astFromValue"]; }); /* harmony import */ var _TypeInfo__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TypeInfo */ "4RMZ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TypeInfo", function() { return _TypeInfo__WEBPACK_IMPORTED_MODULE_13__["TypeInfo"]; }); /* harmony import */ var _coerceValue__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./coerceValue */ "1MZE"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "coerceValue", function() { return _coerceValue__WEBPACK_IMPORTED_MODULE_14__["coerceValue"]; }); /* harmony import */ var _isValidJSValue__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./isValidJSValue */ "chq2"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isValidJSValue", function() { return _isValidJSValue__WEBPACK_IMPORTED_MODULE_15__["isValidJSValue"]; }); /* harmony import */ var _isValidLiteralValue__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./isValidLiteralValue */ "tmHA"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isValidLiteralValue", function() { return _isValidLiteralValue__WEBPACK_IMPORTED_MODULE_16__["isValidLiteralValue"]; }); /* harmony import */ var _concatAST__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./concatAST */ "h5lq"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "concatAST", function() { return _concatAST__WEBPACK_IMPORTED_MODULE_17__["concatAST"]; }); /* harmony import */ var _separateOperations__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./separateOperations */ "z6zs"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "separateOperations", function() { return _separateOperations__WEBPACK_IMPORTED_MODULE_18__["separateOperations"]; }); /* harmony import */ var _typeComparators__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./typeComparators */ "sJV+"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isEqualType", function() { return _typeComparators__WEBPACK_IMPORTED_MODULE_19__["isEqualType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isTypeSubTypeOf", function() { return _typeComparators__WEBPACK_IMPORTED_MODULE_19__["isTypeSubTypeOf"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "doTypesOverlap", function() { return _typeComparators__WEBPACK_IMPORTED_MODULE_19__["doTypesOverlap"]; }); /* harmony import */ var _assertValidName__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./assertValidName */ "5PMP"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertValidName", function() { return _assertValidName__WEBPACK_IMPORTED_MODULE_20__["assertValidName"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isValidNameError", function() { return _assertValidName__WEBPACK_IMPORTED_MODULE_20__["isValidNameError"]; }); /* harmony import */ var _findBreakingChanges__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./findBreakingChanges */ "AgA1"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BreakingChangeType", function() { return _findBreakingChanges__WEBPACK_IMPORTED_MODULE_21__["BreakingChangeType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DangerousChangeType", function() { return _findBreakingChanges__WEBPACK_IMPORTED_MODULE_21__["DangerousChangeType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findBreakingChanges", function() { return _findBreakingChanges__WEBPACK_IMPORTED_MODULE_21__["findBreakingChanges"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findDangerousChanges", function() { return _findBreakingChanges__WEBPACK_IMPORTED_MODULE_21__["findDangerousChanges"]; }); /* harmony import */ var _findDeprecatedUsages__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./findDeprecatedUsages */ "hliF"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findDeprecatedUsages", function() { return _findDeprecatedUsages__WEBPACK_IMPORTED_MODULE_22__["findDeprecatedUsages"]; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ // The GraphQL query recommended for a full schema introspection. // Gets the target Operation from a Document // Gets the Type for the target Operation AST. // Convert a GraphQLSchema to an IntrospectionQuery // Build a GraphQLSchema from an introspection result. // Build a GraphQLSchema from GraphQL Schema language. // Extends an existing GraphQLSchema from a parsed GraphQL Schema language AST. // Sort a GraphQLSchema. // Print a GraphQLSchema to GraphQL Schema language. // Create a GraphQLType from a GraphQL language AST. // Create a JavaScript value from a GraphQL language AST with a type. // Create a JavaScript value from a GraphQL language AST without a type. // Create a GraphQL language AST from a JavaScript value. // A helper to use within recursive-descent visitors which need to be aware of // the GraphQL type system. // Coerces a JavaScript value to a GraphQL type, or produces errors. // @deprecated use coerceValue - will be removed in v15 // @deprecated use validation - will be removed in v15 // Concatenates multiple AST together. // Separates an AST into an AST per Operation. // Comparators for types // Asserts that a string is a valid GraphQL name // Compares two GraphQLSchemas and detects breaking changes. // Report all deprecated usage within a GraphQL document. /***/ }), /***/ "XWO8": /*!******************************************************************!*\ !*** ./node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js ***! \******************************************************************/ /*! exports provided: fromUtf8, toUtf8 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; }); /* harmony import */ var _pureJs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pureJs */ "+1HZ"); /* harmony import */ var _whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./whatwgEncodingApi */ "gTep"); var fromUtf8 = function (input) { return typeof TextEncoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["fromUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["fromUtf8"])(input); }; var toUtf8 = function (input) { return typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input); }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsSUFBSSxVQUFVLEVBQUUsTUFBTSxJQUFJLFFBQVEsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUN0RSxPQUFPLEVBQUUsUUFBUSxJQUFJLG1CQUFtQixFQUFFLE1BQU0sSUFBSSxpQkFBaUIsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBS25HLE1BQU0sQ0FBQyxJQUFNLFFBQVEsR0FBRyxVQUFDLEtBQWE7SUFDcEMsT0FBQSxPQUFPLFdBQVcsS0FBSyxVQUFVLENBQUMsQ0FBQyxDQUFDLG1CQUFtQixDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDO0FBQWxGLENBQWtGLENBQUM7QUFFckYsTUFBTSxDQUFDLElBQU0sTUFBTSxHQUFHLFVBQUMsS0FBaUI7SUFDdEMsT0FBQSxPQUFPLFdBQVcsS0FBSyxVQUFVLENBQUMsQ0FBQyxDQUFDLGlCQUFpQixDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDO0FBQTlFLENBQThFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBmcm9tVXRmOCBhcyBqc0Zyb21VdGY4LCB0b1V0ZjggYXMganNUb1V0ZjggfSBmcm9tIFwiLi9wdXJlSnNcIjtcbmltcG9ydCB7IGZyb21VdGY4IGFzIHRleHRFbmNvZGVyRnJvbVV0ZjgsIHRvVXRmOCBhcyB0ZXh0RW5jb2RlclRvVXRmOCB9IGZyb20gXCIuL3doYXR3Z0VuY29kaW5nQXBpXCI7XG5cbmRlY2xhcmUgY29uc3QgVGV4dERlY29kZXI6IEZ1bmN0aW9uIHwgdW5kZWZpbmVkO1xuZGVjbGFyZSBjb25zdCBUZXh0RW5jb2RlcjogRnVuY3Rpb24gfCB1bmRlZmluZWQ7XG5cbmV4cG9ydCBjb25zdCBmcm9tVXRmOCA9IChpbnB1dDogc3RyaW5nKTogVWludDhBcnJheSA9PlxuICB0eXBlb2YgVGV4dEVuY29kZXIgPT09IFwiZnVuY3Rpb25cIiA/IHRleHRFbmNvZGVyRnJvbVV0ZjgoaW5wdXQpIDoganNGcm9tVXRmOChpbnB1dCk7XG5cbmV4cG9ydCBjb25zdCB0b1V0ZjggPSAoaW5wdXQ6IFVpbnQ4QXJyYXkpOiBzdHJpbmcgPT5cbiAgdHlwZW9mIFRleHREZWNvZGVyID09PSBcImZ1bmN0aW9uXCIgPyB0ZXh0RW5jb2RlclRvVXRmOChpbnB1dCkgOiBqc1RvVXRmOChpbnB1dCk7XG4iXX0= /***/ }), /***/ "XYXw": /*!**********************************************************!*\ !*** ./node_modules/graphql/utilities/schemaPrinter.mjs ***! \**********************************************************/ /*! exports provided: printSchema, printIntrospectionSchema, printType */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "printSchema", function() { return printSchema; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "printIntrospectionSchema", function() { return printIntrospectionSchema; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "printType", function() { return printType; }); /* harmony import */ var _jsutils_isNullish__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/isNullish */ "das/"); /* harmony import */ var _jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/isInvalid */ "/kEc"); /* harmony import */ var _jsutils_objectValues__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../jsutils/objectValues */ "S4Ci"); /* harmony import */ var _utilities_astFromValue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utilities/astFromValue */ "3HNt"); /* harmony import */ var _language_printer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../language/printer */ "dQau"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../type/definition */ "axIb"); /* harmony import */ var _type_scalars__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../type/scalars */ "19Hc"); /* harmony import */ var _type_directives__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../type/directives */ "4suF"); /* harmony import */ var _type_introspection__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../type/introspection */ "LViu"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Accepts options as a second argument: * * - commentDescriptions: * Provide true to use preceding comments as the description. * */ function printSchema(schema, options) { return printFilteredSchema(schema, function (n) { return !Object(_type_directives__WEBPACK_IMPORTED_MODULE_7__["isSpecifiedDirective"])(n); }, isDefinedType, options); } function printIntrospectionSchema(schema, options) { return printFilteredSchema(schema, _type_directives__WEBPACK_IMPORTED_MODULE_7__["isSpecifiedDirective"], _type_introspection__WEBPACK_IMPORTED_MODULE_8__["isIntrospectionType"], options); } function isDefinedType(type) { return !Object(_type_scalars__WEBPACK_IMPORTED_MODULE_6__["isSpecifiedScalarType"])(type) && !Object(_type_introspection__WEBPACK_IMPORTED_MODULE_8__["isIntrospectionType"])(type); } function printFilteredSchema(schema, directiveFilter, typeFilter, options) { var directives = schema.getDirectives().filter(directiveFilter); var typeMap = schema.getTypeMap(); var types = Object(_jsutils_objectValues__WEBPACK_IMPORTED_MODULE_2__["default"])(typeMap).sort(function (type1, type2) { return type1.name.localeCompare(type2.name); }).filter(typeFilter); return [printSchemaDefinition(schema)].concat(directives.map(function (directive) { return printDirective(directive, options); }), types.map(function (type) { return printType(type, options); })).filter(Boolean).join('\n\n') + '\n'; } function printSchemaDefinition(schema) { if (isSchemaOfCommonNames(schema)) { return; } var operationTypes = []; var queryType = schema.getQueryType(); if (queryType) { operationTypes.push(" query: ".concat(queryType.name)); } var mutationType = schema.getMutationType(); if (mutationType) { operationTypes.push(" mutation: ".concat(mutationType.name)); } var subscriptionType = schema.getSubscriptionType(); if (subscriptionType) { operationTypes.push(" subscription: ".concat(subscriptionType.name)); } return "schema {\n".concat(operationTypes.join('\n'), "\n}"); } /** * GraphQL schema define root types for each type of operation. These types are * the same as any other type and can be named in any manner, however there is * a common naming convention: * * schema { * query: Query * mutation: Mutation * } * * When using this naming convention, the schema description can be omitted. */ function isSchemaOfCommonNames(schema) { var queryType = schema.getQueryType(); if (queryType && queryType.name !== 'Query') { return false; } var mutationType = schema.getMutationType(); if (mutationType && mutationType.name !== 'Mutation') { return false; } var subscriptionType = schema.getSubscriptionType(); if (subscriptionType && subscriptionType.name !== 'Subscription') { return false; } return true; } function printType(type, options) { if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_5__["isScalarType"])(type)) { return printScalar(type, options); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_5__["isObjectType"])(type)) { return printObject(type, options); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_5__["isInterfaceType"])(type)) { return printInterface(type, options); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_5__["isUnionType"])(type)) { return printUnion(type, options); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_5__["isEnumType"])(type)) { return printEnum(type, options); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_5__["isInputObjectType"])(type)) { return printInputObject(type, options); } /* istanbul ignore next */ throw new Error("Unknown type: ".concat(type, ".")); } function printScalar(type, options) { return printDescription(options, type) + "scalar ".concat(type.name); } function printObject(type, options) { var interfaces = type.getInterfaces(); var implementedInterfaces = interfaces.length ? ' implements ' + interfaces.map(function (i) { return i.name; }).join(' & ') : ''; return printDescription(options, type) + "type ".concat(type.name).concat(implementedInterfaces, " {\n") + printFields(options, type) + '\n' + '}'; } function printInterface(type, options) { return printDescription(options, type) + "interface ".concat(type.name, " {\n") + printFields(options, type) + '\n' + '}'; } function printUnion(type, options) { return printDescription(options, type) + "union ".concat(type.name, " = ").concat(type.getTypes().join(' | ')); } function printEnum(type, options) { return printDescription(options, type) + "enum ".concat(type.name, " {\n") + printEnumValues(type.getValues(), options) + '\n' + '}'; } function printEnumValues(values, options) { return values.map(function (value, i) { return printDescription(options, value, ' ', !i) + ' ' + value.name + printDeprecated(value); }).join('\n'); } function printInputObject(type, options) { var fields = Object(_jsutils_objectValues__WEBPACK_IMPORTED_MODULE_2__["default"])(type.getFields()); return printDescription(options, type) + "input ".concat(type.name, " {\n") + fields.map(function (f, i) { return printDescription(options, f, ' ', !i) + ' ' + printInputValue(f); }).join('\n') + '\n' + '}'; } function printFields(options, type) { var fields = Object(_jsutils_objectValues__WEBPACK_IMPORTED_MODULE_2__["default"])(type.getFields()); return fields.map(function (f, i) { return printDescription(options, f, ' ', !i) + ' ' + f.name + printArgs(options, f.args, ' ') + ': ' + String(f.type) + printDeprecated(f); }).join('\n'); } function printArgs(options, args) { var indentation = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ''; if (args.length === 0) { return ''; } // If every arg does not have a description, print them on one line. if (args.every(function (arg) { return !arg.description; })) { return '(' + args.map(printInputValue).join(', ') + ')'; } return '(\n' + args.map(function (arg, i) { return printDescription(options, arg, ' ' + indentation, !i) + ' ' + indentation + printInputValue(arg); }).join('\n') + '\n' + indentation + ')'; } function printInputValue(arg) { var argDecl = arg.name + ': ' + String(arg.type); if (!Object(_jsutils_isInvalid__WEBPACK_IMPORTED_MODULE_1__["default"])(arg.defaultValue)) { argDecl += " = ".concat(Object(_language_printer__WEBPACK_IMPORTED_MODULE_4__["print"])(Object(_utilities_astFromValue__WEBPACK_IMPORTED_MODULE_3__["astFromValue"])(arg.defaultValue, arg.type))); } return argDecl; } function printDirective(directive, options) { return printDescription(options, directive) + 'directive @' + directive.name + printArgs(options, directive.args) + ' on ' + directive.locations.join(' | '); } function printDeprecated(fieldOrEnumVal) { if (!fieldOrEnumVal.isDeprecated) { return ''; } var reason = fieldOrEnumVal.deprecationReason; if (Object(_jsutils_isNullish__WEBPACK_IMPORTED_MODULE_0__["default"])(reason) || reason === '' || reason === _type_directives__WEBPACK_IMPORTED_MODULE_7__["DEFAULT_DEPRECATION_REASON"]) { return ' @deprecated'; } return ' @deprecated(reason: ' + Object(_language_printer__WEBPACK_IMPORTED_MODULE_4__["print"])(Object(_utilities_astFromValue__WEBPACK_IMPORTED_MODULE_3__["astFromValue"])(reason, _type_scalars__WEBPACK_IMPORTED_MODULE_6__["GraphQLString"])) + ')'; } function printDescription(options, def) { var indentation = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ''; var firstInBlock = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; if (!def.description) { return ''; } var lines = descriptionLines(def.description, 120 - indentation.length); if (options && options.commentDescriptions) { return printDescriptionWithComments(lines, indentation, firstInBlock); } var description = indentation && !firstInBlock ? '\n' + indentation + '"""' : indentation + '"""'; // In some circumstances, a single line can be used for the description. if (lines.length === 1 && lines[0].length < 70 && lines[0][lines[0].length - 1] !== '"') { return description + escapeQuote(lines[0]) + '"""\n'; } // Format a multi-line block quote to account for leading space. var hasLeadingSpace = lines[0][0] === ' ' || lines[0][0] === '\t'; if (!hasLeadingSpace) { description += '\n'; } for (var i = 0; i < lines.length; i++) { if (i !== 0 || !hasLeadingSpace) { description += indentation; } description += escapeQuote(lines[i]) + '\n'; } description += indentation + '"""\n'; return description; } function escapeQuote(line) { return line.replace(/"""/g, '\\"""'); } function printDescriptionWithComments(lines, indentation, firstInBlock) { var description = indentation && !firstInBlock ? '\n' : ''; for (var i = 0; i < lines.length; i++) { if (lines[i] === '') { description += indentation + '#\n'; } else { description += indentation + '# ' + lines[i] + '\n'; } } return description; } function descriptionLines(description, maxLen) { var lines = []; var rawLines = description.split('\n'); for (var i = 0; i < rawLines.length; i++) { if (rawLines[i] === '') { lines.push(rawLines[i]); } else { // For > 120 character long lines, cut at space boundaries into sublines // of ~80 chars. var sublines = breakLine(rawLines[i], maxLen); for (var j = 0; j < sublines.length; j++) { lines.push(sublines[j]); } } } return lines; } function breakLine(line, maxLen) { if (line.length < maxLen + 5) { return [line]; } var parts = line.split(new RegExp("((?: |^).{15,".concat(maxLen - 40, "}(?= |$))"))); if (parts.length < 4) { return [line]; } var sublines = [parts[0] + parts[1] + parts[2]]; for (var i = 3; i < parts.length; i += 2) { sublines.push(parts[i].slice(1) + parts[i + 1]); } return sublines; } /***/ }), /***/ "XbPB": /*!************************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/ClientDevice/browser.js ***! \************************************************************************/ /*! exports provided: clientInfo, dimension */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clientInfo", function() { return clientInfo; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dimension", function() { return dimension; }); /* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Logger */ "RCJS"); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var logger = new _Logger__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('ClientDevice_Browser'); function clientInfo() { if (typeof window === 'undefined') { return {}; } return browserClientInfo(); } function browserClientInfo() { if (typeof window === 'undefined') { logger.warn('No window object available to get browser client info'); return {}; } var nav = window.navigator; if (!nav) { logger.warn('No navigator object available to get browser client info'); return {}; } var platform = nav.platform, product = nav.product, vendor = nav.vendor, userAgent = nav.userAgent, language = nav.language; var type = browserType(userAgent); var timezone = browserTimezone(); return { platform: platform, make: product || vendor, model: type.type, version: type.version, appVersion: [type.type, type.version].join('/'), language: language, timezone: timezone, }; } function dimension() { if (typeof window === 'undefined') { logger.warn('No window object available to get browser client info'); return { width: 320, height: 320 }; } return { width: window.innerWidth, height: window.innerHeight, }; } function browserTimezone() { var tzMatch = /\(([A-Za-z\s].*)\)/.exec(new Date().toString()); return tzMatch ? tzMatch[1] || '' : ''; } function browserType(userAgent) { var operaMatch = /.+(Opera[\s[A-Z]*|OPR[\sA-Z]*)\/([0-9\.]+).*/i.exec(userAgent); if (operaMatch) { return { type: operaMatch[1], version: operaMatch[2] }; } var ieMatch = /.+(Trident|Edge)\/([0-9\.]+).*/i.exec(userAgent); if (ieMatch) { return { type: ieMatch[1], version: ieMatch[2] }; } var cfMatch = /.+(Chrome|Firefox|FxiOS)\/([0-9\.]+).*/i.exec(userAgent); if (cfMatch) { return { type: cfMatch[1], version: cfMatch[2] }; } var sMatch = /.+(Safari)\/([0-9\.]+).*/i.exec(userAgent); if (sMatch) { return { type: sMatch[1], version: sMatch[2] }; } var awkMatch = /.+(AppleWebKit)\/([0-9\.]+).*/i.exec(userAgent); if (awkMatch) { return { type: awkMatch[1], version: awkMatch[2] }; } var anyMatch = /.*([A-Z]+)\/([0-9\.]+).*/i.exec(userAgent); if (anyMatch) { return { type: anyMatch[1], version: anyMatch[2] }; } return { type: '', version: '' }; } //# sourceMappingURL=browser.js.map /***/ }), /***/ "Xcrs": /*!********************************************************************!*\ !*** ./node_modules/@aws-sdk/smithy-client/dist/es/split-every.js ***! \********************************************************************/ /*! exports provided: splitEvery */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "splitEvery", function() { return splitEvery; }); /** * Given an input string, splits based on the delimiter after a given * number of delimiters has been encountered. * * @param value The input string to split. * @param delimiter The delimiter to split on. * @param numDelimiters The number of delimiters to have encountered to split. */ function splitEvery(value, delimiter, numDelimiters) { // Fail if we don't have a clear number to split on. if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery."); } var segments = value.split(delimiter); // Short circuit extra logic for the simple case. if (numDelimiters === 1) { return segments; } var compoundSegments = []; var currentSegment = ""; for (var i = 0; i < segments.length; i++) { if (currentSegment === "") { // Start a new segment. currentSegment = segments[i]; } else { // Compound the current segment with the delimiter. currentSegment += delimiter + segments[i]; } if ((i + 1) % numDelimiters === 0) { // We encountered the right number of delimiters, so add the entry. compoundSegments.push(currentSegment); // And reset the current segment. currentSegment = ""; } } // Handle any leftover segment portion. if (currentSegment !== "") { compoundSegments.push(currentSegment); } return compoundSegments; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BsaXQtZXZlcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc3BsaXQtZXZlcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7R0FPRztBQUNILE1BQU0sVUFBVSxVQUFVLENBQUMsS0FBYSxFQUFFLFNBQWlCLEVBQUUsYUFBcUI7SUFDaEYsb0RBQW9EO0lBQ3BELElBQUksYUFBYSxJQUFJLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxTQUFTLENBQUMsYUFBYSxDQUFDLEVBQUU7UUFDMUQsTUFBTSxJQUFJLEtBQUssQ0FBQyxnQ0FBZ0MsR0FBRyxhQUFhLEdBQUcsbUJBQW1CLENBQUMsQ0FBQztLQUN6RjtJQUVELElBQU0sUUFBUSxHQUFHLEtBQUssQ0FBQyxLQUFLLENBQUMsU0FBUyxDQUFDLENBQUM7SUFDeEMsaURBQWlEO0lBQ2pELElBQUksYUFBYSxLQUFLLENBQUMsRUFBRTtRQUN2QixPQUFPLFFBQVEsQ0FBQztLQUNqQjtJQUVELElBQU0sZ0JBQWdCLEdBQWtCLEVBQUUsQ0FBQztJQUMzQyxJQUFJLGNBQWMsR0FBRyxFQUFFLENBQUM7SUFDeEIsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLFFBQVEsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxFQUFFLEVBQUU7UUFDeEMsSUFBSSxjQUFjLEtBQUssRUFBRSxFQUFFO1lBQ3pCLHVCQUF1QjtZQUN2QixjQUFjLEdBQUcsUUFBUSxDQUFDLENBQUMsQ0FBQyxDQUFDO1NBQzlCO2FBQU07WUFDTCxtREFBbUQ7WUFDbkQsY0FBYyxJQUFJLFNBQVMsR0FBRyxRQUFRLENBQUMsQ0FBQyxDQUFDLENBQUM7U0FDM0M7UUFFRCxJQUFJLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxHQUFHLGFBQWEsS0FBSyxDQUFDLEVBQUU7WUFDakMsbUVBQW1FO1lBQ25FLGdCQUFnQixDQUFDLElBQUksQ0FBQyxjQUFjLENBQUMsQ0FBQztZQUN0QyxpQ0FBaUM7WUFDakMsY0FBYyxHQUFHLEVBQUUsQ0FBQztTQUNyQjtLQUNGO0lBRUQsdUNBQXVDO0lBQ3ZDLElBQUksY0FBYyxLQUFLLEVBQUUsRUFBRTtRQUN6QixnQkFBZ0IsQ0FBQyxJQUFJLENBQUMsY0FBYyxDQUFDLENBQUM7S0FDdkM7SUFFRCxPQUFPLGdCQUFnQixDQUFDO0FBQzFCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdpdmVuIGFuIGlucHV0IHN0cmluZywgc3BsaXRzIGJhc2VkIG9uIHRoZSBkZWxpbWl0ZXIgYWZ0ZXIgYSBnaXZlblxuICogbnVtYmVyIG9mIGRlbGltaXRlcnMgaGFzIGJlZW4gZW5jb3VudGVyZWQuXG4gKlxuICogQHBhcmFtIHZhbHVlIFRoZSBpbnB1dCBzdHJpbmcgdG8gc3BsaXQuXG4gKiBAcGFyYW0gZGVsaW1pdGVyIFRoZSBkZWxpbWl0ZXIgdG8gc3BsaXQgb24uXG4gKiBAcGFyYW0gbnVtRGVsaW1pdGVycyBUaGUgbnVtYmVyIG9mIGRlbGltaXRlcnMgdG8gaGF2ZSBlbmNvdW50ZXJlZCB0byBzcGxpdC5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIHNwbGl0RXZlcnkodmFsdWU6IHN0cmluZywgZGVsaW1pdGVyOiBzdHJpbmcsIG51bURlbGltaXRlcnM6IG51bWJlcik6IEFycmF5PHN0cmluZz4ge1xuICAvLyBGYWlsIGlmIHdlIGRvbid0IGhhdmUgYSBjbGVhciBudW1iZXIgdG8gc3BsaXQgb24uXG4gIGlmIChudW1EZWxpbWl0ZXJzIDw9IDAgfHwgIU51bWJlci5pc0ludGVnZXIobnVtRGVsaW1pdGVycykpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJJbnZhbGlkIG51bWJlciBvZiBkZWxpbWl0ZXJzIChcIiArIG51bURlbGltaXRlcnMgKyBcIikgZm9yIHNwbGl0RXZlcnkuXCIpO1xuICB9XG5cbiAgY29uc3Qgc2VnbWVudHMgPSB2YWx1ZS5zcGxpdChkZWxpbWl0ZXIpO1xuICAvLyBTaG9ydCBjaXJjdWl0IGV4dHJhIGxvZ2ljIGZvciB0aGUgc2ltcGxlIGNhc2UuXG4gIGlmIChudW1EZWxpbWl0ZXJzID09PSAxKSB7XG4gICAgcmV0dXJuIHNlZ21lbnRzO1xuICB9XG5cbiAgY29uc3QgY29tcG91bmRTZWdtZW50czogQXJyYXk8c3RyaW5nPiA9IFtdO1xuICBsZXQgY3VycmVudFNlZ21lbnQgPSBcIlwiO1xuICBmb3IgKGxldCBpID0gMDsgaSA8IHNlZ21lbnRzLmxlbmd0aDsgaSsrKSB7XG4gICAgaWYgKGN1cnJlbnRTZWdtZW50ID09PSBcIlwiKSB7XG4gICAgICAvLyBTdGFydCBhIG5ldyBzZWdtZW50LlxuICAgICAgY3VycmVudFNlZ21lbnQgPSBzZWdtZW50c1tpXTtcbiAgICB9IGVsc2Uge1xuICAgICAgLy8gQ29tcG91bmQgdGhlIGN1cnJlbnQgc2VnbWVudCB3aXRoIHRoZSBkZWxpbWl0ZXIuXG4gICAgICBjdXJyZW50U2VnbWVudCArPSBkZWxpbWl0ZXIgKyBzZWdtZW50c1tpXTtcbiAgICB9XG5cbiAgICBpZiAoKGkgKyAxKSAlIG51bURlbGltaXRlcnMgPT09IDApIHtcbiAgICAgIC8vIFdlIGVuY291bnRlcmVkIHRoZSByaWdodCBudW1iZXIgb2YgZGVsaW1pdGVycywgc28gYWRkIHRoZSBlbnRyeS5cbiAgICAgIGNvbXBvdW5kU2VnbWVudHMucHVzaChjdXJyZW50U2VnbWVudCk7XG4gICAgICAvLyBBbmQgcmVzZXQgdGhlIGN1cnJlbnQgc2VnbWVudC5cbiAgICAgIGN1cnJlbnRTZWdtZW50ID0gXCJcIjtcbiAgICB9XG4gIH1cblxuICAvLyBIYW5kbGUgYW55IGxlZnRvdmVyIHNlZ21lbnQgcG9ydGlvbi5cbiAgaWYgKGN1cnJlbnRTZWdtZW50ICE9PSBcIlwiKSB7XG4gICAgY29tcG91bmRTZWdtZW50cy5wdXNoKGN1cnJlbnRTZWdtZW50KTtcbiAgfVxuXG4gIHJldHVybiBjb21wb3VuZFNlZ21lbnRzO1xufVxuIl19 /***/ }), /***/ "XhbI": /*!**************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutBucketMetricsConfigurationCommand.js ***! \**************************************************************************************************/ /*! exports provided: PutBucketMetricsConfigurationCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutBucketMetricsConfigurationCommand", function() { return PutBucketMetricsConfigurationCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutBucketMetricsConfigurationCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutBucketMetricsConfigurationCommand, _super); // Start section: command_properties // End section: command_properties function PutBucketMetricsConfigurationCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutBucketMetricsConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutBucketMetricsConfigurationRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutBucketMetricsConfigurationCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutBucketMetricsConfigurationCommand"])(input, context); }; PutBucketMetricsConfigurationCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutBucketMetricsConfigurationCommand"])(output, context); }; return PutBucketMetricsConfigurationCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=PutBucketMetricsConfigurationCommand.js.map /***/ }), /***/ "Xi7e": /*!*******************************************!*\ !*** ./node_modules/lodash/_ListCache.js ***! \*******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "KMkd"), listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "adU4"), listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "tMB7"), listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "+6XX"), listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "Z8oC"); /** * Creates an list cache object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function ListCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `ListCache`. ListCache.prototype.clear = listCacheClear; ListCache.prototype['delete'] = listCacheDelete; ListCache.prototype.get = listCacheGet; ListCache.prototype.has = listCacheHas; ListCache.prototype.set = listCacheSet; module.exports = ListCache; /***/ }), /***/ "Xizt": /*!******************************************************!*\ !*** ./node_modules/graphql/language/predicates.mjs ***! \******************************************************/ /*! exports provided: isDefinitionNode, isExecutableDefinitionNode, isSelectionNode, isValueNode, isTypeNode, isTypeSystemDefinitionNode, isTypeDefinitionNode, isTypeSystemExtensionNode, isTypeExtensionNode */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isDefinitionNode", function() { return isDefinitionNode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isExecutableDefinitionNode", function() { return isExecutableDefinitionNode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSelectionNode", function() { return isSelectionNode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValueNode", function() { return isValueNode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTypeNode", function() { return isTypeNode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTypeSystemDefinitionNode", function() { return isTypeSystemDefinitionNode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTypeDefinitionNode", function() { return isTypeDefinitionNode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTypeSystemExtensionNode", function() { return isTypeSystemExtensionNode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTypeExtensionNode", function() { return isTypeExtensionNode; }); /* harmony import */ var _kinds__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./kinds */ "/jXB"); /** * Copyright (c) 2018-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function isDefinitionNode(node) { return isExecutableDefinitionNode(node) || isTypeSystemDefinitionNode(node) || isTypeSystemExtensionNode(node); } function isExecutableDefinitionNode(node) { return node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].OPERATION_DEFINITION || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].FRAGMENT_DEFINITION; } function isSelectionNode(node) { return node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].FIELD || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].FRAGMENT_SPREAD || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].INLINE_FRAGMENT; } function isValueNode(node) { return node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].VARIABLE || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].INT || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].FLOAT || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].STRING || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].BOOLEAN || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].NULL || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].ENUM || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].LIST || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].OBJECT; } function isTypeNode(node) { return node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].NAMED_TYPE || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].LIST_TYPE || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].NON_NULL_TYPE; } function isTypeSystemDefinitionNode(node) { return node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].SCHEMA_DEFINITION || isTypeDefinitionNode(node) || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].DIRECTIVE_DEFINITION; } function isTypeDefinitionNode(node) { return node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].SCALAR_TYPE_DEFINITION || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].OBJECT_TYPE_DEFINITION || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].INTERFACE_TYPE_DEFINITION || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].UNION_TYPE_DEFINITION || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].ENUM_TYPE_DEFINITION || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].INPUT_OBJECT_TYPE_DEFINITION; } function isTypeSystemExtensionNode(node) { return node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].SCHEMA_EXTENSION || isTypeExtensionNode(node); } function isTypeExtensionNode(node) { return node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].SCALAR_TYPE_EXTENSION || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].OBJECT_TYPE_EXTENSION || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].INTERFACE_TYPE_EXTENSION || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].UNION_TYPE_EXTENSION || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].ENUM_TYPE_EXTENSION || node.kind === _kinds__WEBPACK_IMPORTED_MODULE_0__["Kind"].INPUT_OBJECT_TYPE_EXTENSION; } /***/ }), /***/ "XlVz": /*!**************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/StartStreamProcessorCommand.js ***! \**************************************************************************************************/ /*! exports provided: StartStreamProcessorCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartStreamProcessorCommand", function() { return StartStreamProcessorCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StartStreamProcessorCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartStreamProcessorCommand, _super); // Start section: command_properties // End section: command_properties function StartStreamProcessorCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StartStreamProcessorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartStreamProcessorRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartStreamProcessorResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StartStreamProcessorCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartStreamProcessorCommand"])(input, context); }; StartStreamProcessorCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartStreamProcessorCommand"])(output, context); }; return StartStreamProcessorCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StartStreamProcessorCommand.js.map /***/ }), /***/ "XoHu": /*!**************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/isObject.js ***! \**************************************************************/ /*! exports provided: isObject */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isObject", function() { return isObject; }); function isObject(x) { return x !== null && typeof x === 'object'; } //# sourceMappingURL=isObject.js.map /***/ }), /***/ "XofR": /*!******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/CompareFacesCommand.js ***! \******************************************************************************************/ /*! exports provided: CompareFacesCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompareFacesCommand", function() { return CompareFacesCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CompareFacesCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CompareFacesCommand, _super); // Start section: command_properties // End section: command_properties function CompareFacesCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CompareFacesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CompareFacesRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CompareFacesResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CompareFacesCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1CompareFacesCommand"])(input, context); }; CompareFacesCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1CompareFacesCommand"])(output, context); }; return CompareFacesCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=CompareFacesCommand.js.map /***/ }), /***/ "XqQ8": /*!*********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/exhaustMap.js ***! \*********************************************************************/ /*! exports provided: exhaustMap */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "exhaustMap", function() { return exhaustMap; }); /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./map */ "lJxs"); /* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../observable/from */ "Cfvw"); /* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../innerSubscribe */ "zx2A"); function exhaustMap(project, resultSelector) { if (resultSelector) { return (source) => source.pipe(exhaustMap((a, i) => Object(_observable_from__WEBPACK_IMPORTED_MODULE_1__["from"])(project(a, i)).pipe(Object(_map__WEBPACK_IMPORTED_MODULE_0__["map"])((b, ii) => resultSelector(a, b, i, ii))))); } return (source) => source.lift(new ExhaustMapOperator(project)); } class ExhaustMapOperator { constructor(project) { this.project = project; } call(subscriber, source) { return source.subscribe(new ExhaustMapSubscriber(subscriber, this.project)); } } class ExhaustMapSubscriber extends _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleOuterSubscriber"] { constructor(destination, project) { super(destination); this.project = project; this.hasSubscription = false; this.hasCompleted = false; this.index = 0; } _next(value) { if (!this.hasSubscription) { this.tryNext(value); } } tryNext(value) { let result; const index = this.index++; try { result = this.project(value, index); } catch (err) { this.destination.error(err); return; } this.hasSubscription = true; this._innerSub(result); } _innerSub(result) { const innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleInnerSubscriber"](this); const destination = this.destination; destination.add(innerSubscriber); const innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["innerSubscribe"])(result, innerSubscriber); if (innerSubscription !== innerSubscriber) { destination.add(innerSubscription); } } _complete() { this.hasCompleted = true; if (!this.hasSubscription) { this.destination.complete(); } this.unsubscribe(); } notifyNext(innerValue) { this.destination.next(innerValue); } notifyError(err) { this.destination.error(err); } notifyComplete() { this.hasSubscription = false; if (this.hasCompleted) { this.destination.complete(); } } } //# sourceMappingURL=exhaustMap.js.map /***/ }), /***/ "XrWX": /*!***********************************************************************!*\ !*** ./node_modules/@aws-amplify/auth/lib/common/AuthErrorStrings.js ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var AuthErrorStrings; (function (AuthErrorStrings) { AuthErrorStrings["DEFAULT_MSG"] = "Authentication Error"; AuthErrorStrings["EMPTY_USERNAME"] = "Username cannot be empty"; AuthErrorStrings["INVALID_USERNAME"] = "The username should either be a string or one of the sign in types"; AuthErrorStrings["EMPTY_PASSWORD"] = "Password cannot be empty"; AuthErrorStrings["EMPTY_CODE"] = "Confirmation code cannot be empty"; AuthErrorStrings["SIGN_UP_ERROR"] = "Error creating account"; AuthErrorStrings["NO_MFA"] = "No valid MFA method provided"; AuthErrorStrings["INVALID_MFA"] = "Invalid MFA type"; AuthErrorStrings["EMPTY_CHALLENGE"] = "Challenge response cannot be empty"; AuthErrorStrings["NO_USER_SESSION"] = "Failed to get the session because the user is empty"; })(AuthErrorStrings = exports.AuthErrorStrings || (exports.AuthErrorStrings = {})); //# sourceMappingURL=AuthErrorStrings.js.map /***/ }), /***/ "Xyjb": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/IndexFacesCommand.js ***! \****************************************************************************************/ /*! exports provided: IndexFacesCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndexFacesCommand", function() { return IndexFacesCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var IndexFacesCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(IndexFacesCommand, _super); // Start section: command_properties // End section: command_properties function IndexFacesCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } IndexFacesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["IndexFacesRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["IndexFacesResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; IndexFacesCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1IndexFacesCommand"])(input, context); }; IndexFacesCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1IndexFacesCommand"])(output, context); }; return IndexFacesCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=IndexFacesCommand.js.map /***/ }), /***/ "Y+p1": /*!****************************************!*\ !*** ./node_modules/lodash/isEqual.js ***! \****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "wF/u"); /** * Performs a deep comparison between two values to determine if they are * equivalent. * * **Note:** This method supports comparing arrays, array buffers, booleans, * date objects, error objects, maps, numbers, `Object` objects, regexes, * sets, strings, symbols, and typed arrays. `Object` objects are compared * by their own, not inherited, enumerable properties. Functions and DOM * nodes are compared by strict equality, i.e. `===`. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.isEqual(object, other); * // => true * * object === other; * // => false */ function isEqual(value, other) { return baseIsEqual(value, other); } module.exports = isEqual; /***/ }), /***/ "Y/cZ": /*!**********************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/Scheduler.js ***! \**********************************************************/ /*! exports provided: Scheduler */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Scheduler", function() { return Scheduler; }); class Scheduler { constructor(SchedulerAction, now = Scheduler.now) { this.SchedulerAction = SchedulerAction; this.now = now; } schedule(work, delay = 0, state) { return new this.SchedulerAction(this, work).schedule(state, delay); } } Scheduler.now = () => Date.now(); //# sourceMappingURL=Scheduler.js.map /***/ }), /***/ "Y6u4": /*!******************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/TimeoutError.js ***! \******************************************************************/ /*! exports provided: TimeoutError */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeoutError", function() { return TimeoutError; }); const TimeoutErrorImpl = (() => { function TimeoutErrorImpl() { Error.call(this); this.message = 'Timeout has occurred'; this.name = 'TimeoutError'; return this; } TimeoutErrorImpl.prototype = Object.create(Error.prototype); return TimeoutErrorImpl; })(); const TimeoutError = TimeoutErrorImpl; //# sourceMappingURL=TimeoutError.js.map /***/ }), /***/ "Y6wi": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/switchAll.js ***! \********************************************************************/ /*! exports provided: switchAll */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "switchAll", function() { return switchAll; }); /* harmony import */ var _switchMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./switchMap */ "eIep"); /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/identity */ "SpAZ"); function switchAll() { return Object(_switchMap__WEBPACK_IMPORTED_MODULE_0__["switchMap"])(_util_identity__WEBPACK_IMPORTED_MODULE_1__["identity"]); } //# sourceMappingURL=switchAll.js.map /***/ }), /***/ "Y7HM": /*!***************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/isNumeric.js ***! \***************************************************************/ /*! exports provided: isNumeric */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNumeric", function() { return isNumeric; }); /* harmony import */ var _isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isArray */ "DH7j"); function isNumeric(val) { return !Object(_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(val) && (val - parseFloat(val) + 1) >= 0; } //# sourceMappingURL=isNumeric.js.map /***/ }), /***/ "Y81X": /*!*****************************************************!*\ !*** ./node_modules/fast-xml-parser/src/xmlNode.js ***! \*****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function(tagname, parent, val) { this.tagname = tagname; this.parent = parent; this.child = {}; //child tags this.attrsMap = {}; //attributes map this.val = val; //text only this.addChild = function(child) { if (Array.isArray(this.child[child.tagname])) { //already presents this.child[child.tagname].push(child); } else { this.child[child.tagname] = [child]; } }; }; /***/ }), /***/ "YDp5": /*!******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-personalize-events/dist/es/runtimeConfig.browser.js ***! \******************************************************************************************/ /*! exports provided: ClientDefaultValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientDefaultValues", function() { return ClientDefaultValues; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./package.json */ "Rs19"); var _package_json__WEBPACK_IMPORTED_MODULE_1___namespace = /*#__PURE__*/__webpack_require__.t(/*! ./package.json */ "Rs19", 1); /* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-crypto/sha256-browser */ "viNG"); /* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/fetch-http-handler */ "LUnR"); /* harmony import */ var _aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/invalid-dependency */ "J2eM"); /* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "UMev"); /* harmony import */ var _aws_sdk_url_parser_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/url-parser-browser */ "c14h"); /* harmony import */ var _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/util-base64-browser */ "S3Uu"); /* harmony import */ var _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/util-body-length-browser */ "N9sX"); /* harmony import */ var _aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/util-user-agent-browser */ "wU8f"); /* harmony import */ var _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "kg8h"); /* harmony import */ var _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./runtimeConfig.shared */ "1NSU"); var ClientDefaultValues = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__["ClientSharedValues"]), { runtime: "browser", base64Decoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__["fromBase64"], base64Encoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__["toBase64"], bodyLengthChecker: _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_8__["calculateBodyLength"], credentialDefaultProvider: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__["invalidFunction"])("Credential is missing"), defaultUserAgent: Object(_aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_9__["defaultUserAgent"])(_package_json__WEBPACK_IMPORTED_MODULE_1__["name"], _package_json__WEBPACK_IMPORTED_MODULE_1__["version"]), maxAttempts: _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__["DEFAULT_MAX_ATTEMPTS"], region: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__["invalidFunction"])("Region is missing"), requestHandler: new _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["FetchHttpHandler"](), sha256: _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__["Sha256"], streamCollector: _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["streamCollector"], urlParser: _aws_sdk_url_parser_browser__WEBPACK_IMPORTED_MODULE_6__["parseUrl"], utf8Decoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__["fromUtf8"], utf8Encoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__["toUtf8"] }); //# sourceMappingURL=runtimeConfig.browser.js.map /***/ }), /***/ "YESw": /*!**********************************************!*\ !*** ./node_modules/lodash/_nativeCreate.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__(/*! ./_getNative */ "Cwc5"); /* Built-in method references that are verified to be native. */ var nativeCreate = getNative(Object, 'create'); module.exports = nativeCreate; /***/ }), /***/ "YGUw": /*!***********************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/package.json ***! \***********************************************************************/ /*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, author, license, default */ /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"@aws-sdk/client-rekognition\",\"description\":\"@aws-sdk/client-rekognition client\",\"version\":\"1.0.0-gamma.8\",\"scripts\":{\"clean\":\"npm run remove-definitions && npm run remove-dist\",\"build-documentation\":\"npm run clean && typedoc ./\",\"prepublishOnly\":\"yarn build\",\"pretest\":\"yarn build:cjs\",\"remove-definitions\":\"rimraf ./types\",\"remove-dist\":\"rimraf ./dist\",\"remove-documentation\":\"rimraf ./docs\",\"test\":\"exit 0\",\"build:cjs\":\"tsc -p tsconfig.json\",\"build:es\":\"tsc -p tsconfig.es.json\",\"build\":\"yarn build:cjs && yarn build:es\"},\"main\":\"./dist/cjs/index.js\",\"types\":\"./types/index.d.ts\",\"module\":\"./dist/es/index.js\",\"browser\":{\"./runtimeConfig\":\"./runtimeConfig.browser\"},\"react-native\":{\"./runtimeConfig\":\"./runtimeConfig.native\"},\"sideEffects\":false,\"dependencies\":{\"@aws-crypto/sha256-browser\":\"^1.0.0-alpha.0\",\"@aws-crypto/sha256-js\":\"^1.0.0-alpha.0\",\"@aws-sdk/config-resolver\":\"1.0.0-gamma.7\",\"@aws-sdk/credential-provider-node\":\"1.0.0-gamma.7\",\"@aws-sdk/fetch-http-handler\":\"1.0.0-gamma.8\",\"@aws-sdk/hash-node\":\"1.0.0-gamma.7\",\"@aws-sdk/invalid-dependency\":\"1.0.0-gamma.5\",\"@aws-sdk/middleware-content-length\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-host-header\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-logger\":\"1.0.0-gamma.1\",\"@aws-sdk/middleware-retry\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-serde\":\"1.0.0-gamma.6\",\"@aws-sdk/middleware-signing\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-stack\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-user-agent\":\"1.0.0-gamma.7\",\"@aws-sdk/node-config-provider\":\"1.0.0-gamma.2\",\"@aws-sdk/node-http-handler\":\"1.0.0-gamma.7\",\"@aws-sdk/protocol-http\":\"1.0.0-gamma.7\",\"@aws-sdk/smithy-client\":\"1.0.0-gamma.7\",\"@aws-sdk/types\":\"1.0.0-gamma.6\",\"@aws-sdk/url-parser-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/url-parser-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-base64-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-base64-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-user-agent-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/util-user-agent-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-utf8-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-utf8-node\":\"1.0.0-gamma.6\",\"tslib\":\"^2.0.0\"},\"devDependencies\":{\"@aws-sdk/client-documentation-generator\":\"1.0.0-gamma.5\",\"@types/node\":\"^12.7.5\",\"jest\":\"^26.1.0\",\"rimraf\":\"^3.0.0\",\"typedoc\":\"^0.17.8\",\"typescript\":\"~4.0.2\"},\"engines\":{\"node\":\">=8.0.0\"},\"author\":{\"name\":\"AWS SDK for JavaScript Team\",\"url\":\"https://aws.amazon.com/javascript/\"},\"license\":\"Apache-2.0\"}"); /***/ }), /***/ "YJx7": /*!*********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutObjectAclCommand.js ***! \*********************************************************************************/ /*! exports provided: PutObjectAclCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutObjectAclCommand", function() { return PutObjectAclCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutObjectAclCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutObjectAclCommand, _super); // Start section: command_properties // End section: command_properties function PutObjectAclCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutObjectAclCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutObjectAclRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutObjectAclOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutObjectAclCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutObjectAclCommand"])(input, context); }; PutObjectAclCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutObjectAclCommand"])(output, context); }; return PutObjectAclCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=PutObjectAclCommand.js.map /***/ }), /***/ "YKlZ": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/protocols/Aws_json1_1.js ***! \**********************************************************************************/ /*! exports provided: serializeAws_json1_1BatchDetectDominantLanguageCommand, serializeAws_json1_1BatchDetectEntitiesCommand, serializeAws_json1_1BatchDetectKeyPhrasesCommand, serializeAws_json1_1BatchDetectSentimentCommand, serializeAws_json1_1BatchDetectSyntaxCommand, serializeAws_json1_1ClassifyDocumentCommand, serializeAws_json1_1CreateDocumentClassifierCommand, serializeAws_json1_1CreateEndpointCommand, serializeAws_json1_1CreateEntityRecognizerCommand, serializeAws_json1_1DeleteDocumentClassifierCommand, serializeAws_json1_1DeleteEndpointCommand, serializeAws_json1_1DeleteEntityRecognizerCommand, serializeAws_json1_1DescribeDocumentClassificationJobCommand, serializeAws_json1_1DescribeDocumentClassifierCommand, serializeAws_json1_1DescribeDominantLanguageDetectionJobCommand, serializeAws_json1_1DescribeEndpointCommand, serializeAws_json1_1DescribeEntitiesDetectionJobCommand, serializeAws_json1_1DescribeEntityRecognizerCommand, serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand, serializeAws_json1_1DescribeSentimentDetectionJobCommand, serializeAws_json1_1DescribeTopicsDetectionJobCommand, serializeAws_json1_1DetectDominantLanguageCommand, serializeAws_json1_1DetectEntitiesCommand, serializeAws_json1_1DetectKeyPhrasesCommand, serializeAws_json1_1DetectSentimentCommand, serializeAws_json1_1DetectSyntaxCommand, serializeAws_json1_1ListDocumentClassificationJobsCommand, serializeAws_json1_1ListDocumentClassifiersCommand, serializeAws_json1_1ListDominantLanguageDetectionJobsCommand, serializeAws_json1_1ListEndpointsCommand, serializeAws_json1_1ListEntitiesDetectionJobsCommand, serializeAws_json1_1ListEntityRecognizersCommand, serializeAws_json1_1ListKeyPhrasesDetectionJobsCommand, serializeAws_json1_1ListSentimentDetectionJobsCommand, serializeAws_json1_1ListTagsForResourceCommand, serializeAws_json1_1ListTopicsDetectionJobsCommand, serializeAws_json1_1StartDocumentClassificationJobCommand, serializeAws_json1_1StartDominantLanguageDetectionJobCommand, serializeAws_json1_1StartEntitiesDetectionJobCommand, serializeAws_json1_1StartKeyPhrasesDetectionJobCommand, serializeAws_json1_1StartSentimentDetectionJobCommand, serializeAws_json1_1StartTopicsDetectionJobCommand, serializeAws_json1_1StopDominantLanguageDetectionJobCommand, serializeAws_json1_1StopEntitiesDetectionJobCommand, serializeAws_json1_1StopKeyPhrasesDetectionJobCommand, serializeAws_json1_1StopSentimentDetectionJobCommand, serializeAws_json1_1StopTrainingDocumentClassifierCommand, serializeAws_json1_1StopTrainingEntityRecognizerCommand, serializeAws_json1_1TagResourceCommand, serializeAws_json1_1UntagResourceCommand, serializeAws_json1_1UpdateEndpointCommand, deserializeAws_json1_1BatchDetectDominantLanguageCommand, deserializeAws_json1_1BatchDetectEntitiesCommand, deserializeAws_json1_1BatchDetectKeyPhrasesCommand, deserializeAws_json1_1BatchDetectSentimentCommand, deserializeAws_json1_1BatchDetectSyntaxCommand, deserializeAws_json1_1ClassifyDocumentCommand, deserializeAws_json1_1CreateDocumentClassifierCommand, deserializeAws_json1_1CreateEndpointCommand, deserializeAws_json1_1CreateEntityRecognizerCommand, deserializeAws_json1_1DeleteDocumentClassifierCommand, deserializeAws_json1_1DeleteEndpointCommand, deserializeAws_json1_1DeleteEntityRecognizerCommand, deserializeAws_json1_1DescribeDocumentClassificationJobCommand, deserializeAws_json1_1DescribeDocumentClassifierCommand, deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommand, deserializeAws_json1_1DescribeEndpointCommand, deserializeAws_json1_1DescribeEntitiesDetectionJobCommand, deserializeAws_json1_1DescribeEntityRecognizerCommand, deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand, deserializeAws_json1_1DescribeSentimentDetectionJobCommand, deserializeAws_json1_1DescribeTopicsDetectionJobCommand, deserializeAws_json1_1DetectDominantLanguageCommand, deserializeAws_json1_1DetectEntitiesCommand, deserializeAws_json1_1DetectKeyPhrasesCommand, deserializeAws_json1_1DetectSentimentCommand, deserializeAws_json1_1DetectSyntaxCommand, deserializeAws_json1_1ListDocumentClassificationJobsCommand, deserializeAws_json1_1ListDocumentClassifiersCommand, deserializeAws_json1_1ListDominantLanguageDetectionJobsCommand, deserializeAws_json1_1ListEndpointsCommand, deserializeAws_json1_1ListEntitiesDetectionJobsCommand, deserializeAws_json1_1ListEntityRecognizersCommand, deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand, deserializeAws_json1_1ListSentimentDetectionJobsCommand, deserializeAws_json1_1ListTagsForResourceCommand, deserializeAws_json1_1ListTopicsDetectionJobsCommand, deserializeAws_json1_1StartDocumentClassificationJobCommand, deserializeAws_json1_1StartDominantLanguageDetectionJobCommand, deserializeAws_json1_1StartEntitiesDetectionJobCommand, deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand, deserializeAws_json1_1StartSentimentDetectionJobCommand, deserializeAws_json1_1StartTopicsDetectionJobCommand, deserializeAws_json1_1StopDominantLanguageDetectionJobCommand, deserializeAws_json1_1StopEntitiesDetectionJobCommand, deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand, deserializeAws_json1_1StopSentimentDetectionJobCommand, deserializeAws_json1_1StopTrainingDocumentClassifierCommand, deserializeAws_json1_1StopTrainingEntityRecognizerCommand, deserializeAws_json1_1TagResourceCommand, deserializeAws_json1_1UntagResourceCommand, deserializeAws_json1_1UpdateEndpointCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1BatchDetectDominantLanguageCommand", function() { return serializeAws_json1_1BatchDetectDominantLanguageCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1BatchDetectEntitiesCommand", function() { return serializeAws_json1_1BatchDetectEntitiesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1BatchDetectKeyPhrasesCommand", function() { return serializeAws_json1_1BatchDetectKeyPhrasesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1BatchDetectSentimentCommand", function() { return serializeAws_json1_1BatchDetectSentimentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1BatchDetectSyntaxCommand", function() { return serializeAws_json1_1BatchDetectSyntaxCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ClassifyDocumentCommand", function() { return serializeAws_json1_1ClassifyDocumentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1CreateDocumentClassifierCommand", function() { return serializeAws_json1_1CreateDocumentClassifierCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1CreateEndpointCommand", function() { return serializeAws_json1_1CreateEndpointCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1CreateEntityRecognizerCommand", function() { return serializeAws_json1_1CreateEntityRecognizerCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeleteDocumentClassifierCommand", function() { return serializeAws_json1_1DeleteDocumentClassifierCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeleteEndpointCommand", function() { return serializeAws_json1_1DeleteEndpointCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeleteEntityRecognizerCommand", function() { return serializeAws_json1_1DeleteEntityRecognizerCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeDocumentClassificationJobCommand", function() { return serializeAws_json1_1DescribeDocumentClassificationJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeDocumentClassifierCommand", function() { return serializeAws_json1_1DescribeDocumentClassifierCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeDominantLanguageDetectionJobCommand", function() { return serializeAws_json1_1DescribeDominantLanguageDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeEndpointCommand", function() { return serializeAws_json1_1DescribeEndpointCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeEntitiesDetectionJobCommand", function() { return serializeAws_json1_1DescribeEntitiesDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeEntityRecognizerCommand", function() { return serializeAws_json1_1DescribeEntityRecognizerCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand", function() { return serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeSentimentDetectionJobCommand", function() { return serializeAws_json1_1DescribeSentimentDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeTopicsDetectionJobCommand", function() { return serializeAws_json1_1DescribeTopicsDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DetectDominantLanguageCommand", function() { return serializeAws_json1_1DetectDominantLanguageCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DetectEntitiesCommand", function() { return serializeAws_json1_1DetectEntitiesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DetectKeyPhrasesCommand", function() { return serializeAws_json1_1DetectKeyPhrasesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DetectSentimentCommand", function() { return serializeAws_json1_1DetectSentimentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DetectSyntaxCommand", function() { return serializeAws_json1_1DetectSyntaxCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListDocumentClassificationJobsCommand", function() { return serializeAws_json1_1ListDocumentClassificationJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListDocumentClassifiersCommand", function() { return serializeAws_json1_1ListDocumentClassifiersCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListDominantLanguageDetectionJobsCommand", function() { return serializeAws_json1_1ListDominantLanguageDetectionJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListEndpointsCommand", function() { return serializeAws_json1_1ListEndpointsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListEntitiesDetectionJobsCommand", function() { return serializeAws_json1_1ListEntitiesDetectionJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListEntityRecognizersCommand", function() { return serializeAws_json1_1ListEntityRecognizersCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListKeyPhrasesDetectionJobsCommand", function() { return serializeAws_json1_1ListKeyPhrasesDetectionJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListSentimentDetectionJobsCommand", function() { return serializeAws_json1_1ListSentimentDetectionJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListTagsForResourceCommand", function() { return serializeAws_json1_1ListTagsForResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListTopicsDetectionJobsCommand", function() { return serializeAws_json1_1ListTopicsDetectionJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartDocumentClassificationJobCommand", function() { return serializeAws_json1_1StartDocumentClassificationJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartDominantLanguageDetectionJobCommand", function() { return serializeAws_json1_1StartDominantLanguageDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartEntitiesDetectionJobCommand", function() { return serializeAws_json1_1StartEntitiesDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartKeyPhrasesDetectionJobCommand", function() { return serializeAws_json1_1StartKeyPhrasesDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartSentimentDetectionJobCommand", function() { return serializeAws_json1_1StartSentimentDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartTopicsDetectionJobCommand", function() { return serializeAws_json1_1StartTopicsDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StopDominantLanguageDetectionJobCommand", function() { return serializeAws_json1_1StopDominantLanguageDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StopEntitiesDetectionJobCommand", function() { return serializeAws_json1_1StopEntitiesDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StopKeyPhrasesDetectionJobCommand", function() { return serializeAws_json1_1StopKeyPhrasesDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StopSentimentDetectionJobCommand", function() { return serializeAws_json1_1StopSentimentDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StopTrainingDocumentClassifierCommand", function() { return serializeAws_json1_1StopTrainingDocumentClassifierCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StopTrainingEntityRecognizerCommand", function() { return serializeAws_json1_1StopTrainingEntityRecognizerCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1TagResourceCommand", function() { return serializeAws_json1_1TagResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1UntagResourceCommand", function() { return serializeAws_json1_1UntagResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1UpdateEndpointCommand", function() { return serializeAws_json1_1UpdateEndpointCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1BatchDetectDominantLanguageCommand", function() { return deserializeAws_json1_1BatchDetectDominantLanguageCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1BatchDetectEntitiesCommand", function() { return deserializeAws_json1_1BatchDetectEntitiesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1BatchDetectKeyPhrasesCommand", function() { return deserializeAws_json1_1BatchDetectKeyPhrasesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1BatchDetectSentimentCommand", function() { return deserializeAws_json1_1BatchDetectSentimentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1BatchDetectSyntaxCommand", function() { return deserializeAws_json1_1BatchDetectSyntaxCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ClassifyDocumentCommand", function() { return deserializeAws_json1_1ClassifyDocumentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1CreateDocumentClassifierCommand", function() { return deserializeAws_json1_1CreateDocumentClassifierCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1CreateEndpointCommand", function() { return deserializeAws_json1_1CreateEndpointCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1CreateEntityRecognizerCommand", function() { return deserializeAws_json1_1CreateEntityRecognizerCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeleteDocumentClassifierCommand", function() { return deserializeAws_json1_1DeleteDocumentClassifierCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeleteEndpointCommand", function() { return deserializeAws_json1_1DeleteEndpointCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeleteEntityRecognizerCommand", function() { return deserializeAws_json1_1DeleteEntityRecognizerCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeDocumentClassificationJobCommand", function() { return deserializeAws_json1_1DescribeDocumentClassificationJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeDocumentClassifierCommand", function() { return deserializeAws_json1_1DescribeDocumentClassifierCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommand", function() { return deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeEndpointCommand", function() { return deserializeAws_json1_1DescribeEndpointCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeEntitiesDetectionJobCommand", function() { return deserializeAws_json1_1DescribeEntitiesDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeEntityRecognizerCommand", function() { return deserializeAws_json1_1DescribeEntityRecognizerCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand", function() { return deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeSentimentDetectionJobCommand", function() { return deserializeAws_json1_1DescribeSentimentDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeTopicsDetectionJobCommand", function() { return deserializeAws_json1_1DescribeTopicsDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DetectDominantLanguageCommand", function() { return deserializeAws_json1_1DetectDominantLanguageCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DetectEntitiesCommand", function() { return deserializeAws_json1_1DetectEntitiesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DetectKeyPhrasesCommand", function() { return deserializeAws_json1_1DetectKeyPhrasesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DetectSentimentCommand", function() { return deserializeAws_json1_1DetectSentimentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DetectSyntaxCommand", function() { return deserializeAws_json1_1DetectSyntaxCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListDocumentClassificationJobsCommand", function() { return deserializeAws_json1_1ListDocumentClassificationJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListDocumentClassifiersCommand", function() { return deserializeAws_json1_1ListDocumentClassifiersCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListDominantLanguageDetectionJobsCommand", function() { return deserializeAws_json1_1ListDominantLanguageDetectionJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListEndpointsCommand", function() { return deserializeAws_json1_1ListEndpointsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListEntitiesDetectionJobsCommand", function() { return deserializeAws_json1_1ListEntitiesDetectionJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListEntityRecognizersCommand", function() { return deserializeAws_json1_1ListEntityRecognizersCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand", function() { return deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListSentimentDetectionJobsCommand", function() { return deserializeAws_json1_1ListSentimentDetectionJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListTagsForResourceCommand", function() { return deserializeAws_json1_1ListTagsForResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListTopicsDetectionJobsCommand", function() { return deserializeAws_json1_1ListTopicsDetectionJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartDocumentClassificationJobCommand", function() { return deserializeAws_json1_1StartDocumentClassificationJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartDominantLanguageDetectionJobCommand", function() { return deserializeAws_json1_1StartDominantLanguageDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartEntitiesDetectionJobCommand", function() { return deserializeAws_json1_1StartEntitiesDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand", function() { return deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartSentimentDetectionJobCommand", function() { return deserializeAws_json1_1StartSentimentDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartTopicsDetectionJobCommand", function() { return deserializeAws_json1_1StartTopicsDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StopDominantLanguageDetectionJobCommand", function() { return deserializeAws_json1_1StopDominantLanguageDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StopEntitiesDetectionJobCommand", function() { return deserializeAws_json1_1StopEntitiesDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand", function() { return deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StopSentimentDetectionJobCommand", function() { return deserializeAws_json1_1StopSentimentDetectionJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StopTrainingDocumentClassifierCommand", function() { return deserializeAws_json1_1StopTrainingDocumentClassifierCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StopTrainingEntityRecognizerCommand", function() { return deserializeAws_json1_1StopTrainingEntityRecognizerCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1TagResourceCommand", function() { return deserializeAws_json1_1TagResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1UntagResourceCommand", function() { return deserializeAws_json1_1UntagResourceCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1UpdateEndpointCommand", function() { return deserializeAws_json1_1UpdateEndpointCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "Enk7"); /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! uuid */ "EcEN"); /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_2__); var serializeAws_json1_1BatchDetectDominantLanguageCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.BatchDetectDominantLanguage", }; body = JSON.stringify(serializeAws_json1_1BatchDetectDominantLanguageRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1BatchDetectEntitiesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.BatchDetectEntities", }; body = JSON.stringify(serializeAws_json1_1BatchDetectEntitiesRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1BatchDetectKeyPhrasesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.BatchDetectKeyPhrases", }; body = JSON.stringify(serializeAws_json1_1BatchDetectKeyPhrasesRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1BatchDetectSentimentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.BatchDetectSentiment", }; body = JSON.stringify(serializeAws_json1_1BatchDetectSentimentRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1BatchDetectSyntaxCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.BatchDetectSyntax", }; body = JSON.stringify(serializeAws_json1_1BatchDetectSyntaxRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ClassifyDocumentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.ClassifyDocument", }; body = JSON.stringify(serializeAws_json1_1ClassifyDocumentRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1CreateDocumentClassifierCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.CreateDocumentClassifier", }; body = JSON.stringify(serializeAws_json1_1CreateDocumentClassifierRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1CreateEndpointCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.CreateEndpoint", }; body = JSON.stringify(serializeAws_json1_1CreateEndpointRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1CreateEntityRecognizerCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.CreateEntityRecognizer", }; body = JSON.stringify(serializeAws_json1_1CreateEntityRecognizerRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DeleteDocumentClassifierCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DeleteDocumentClassifier", }; body = JSON.stringify(serializeAws_json1_1DeleteDocumentClassifierRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DeleteEndpointCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DeleteEndpoint", }; body = JSON.stringify(serializeAws_json1_1DeleteEndpointRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DeleteEntityRecognizerCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DeleteEntityRecognizer", }; body = JSON.stringify(serializeAws_json1_1DeleteEntityRecognizerRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeDocumentClassificationJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DescribeDocumentClassificationJob", }; body = JSON.stringify(serializeAws_json1_1DescribeDocumentClassificationJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeDocumentClassifierCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DescribeDocumentClassifier", }; body = JSON.stringify(serializeAws_json1_1DescribeDocumentClassifierRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeDominantLanguageDetectionJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DescribeDominantLanguageDetectionJob", }; body = JSON.stringify(serializeAws_json1_1DescribeDominantLanguageDetectionJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeEndpointCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DescribeEndpoint", }; body = JSON.stringify(serializeAws_json1_1DescribeEndpointRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeEntitiesDetectionJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DescribeEntitiesDetectionJob", }; body = JSON.stringify(serializeAws_json1_1DescribeEntitiesDetectionJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeEntityRecognizerCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DescribeEntityRecognizer", }; body = JSON.stringify(serializeAws_json1_1DescribeEntityRecognizerRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DescribeKeyPhrasesDetectionJob", }; body = JSON.stringify(serializeAws_json1_1DescribeKeyPhrasesDetectionJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeSentimentDetectionJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DescribeSentimentDetectionJob", }; body = JSON.stringify(serializeAws_json1_1DescribeSentimentDetectionJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeTopicsDetectionJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DescribeTopicsDetectionJob", }; body = JSON.stringify(serializeAws_json1_1DescribeTopicsDetectionJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DetectDominantLanguageCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DetectDominantLanguage", }; body = JSON.stringify(serializeAws_json1_1DetectDominantLanguageRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DetectEntitiesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DetectEntities", }; body = JSON.stringify(serializeAws_json1_1DetectEntitiesRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DetectKeyPhrasesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DetectKeyPhrases", }; body = JSON.stringify(serializeAws_json1_1DetectKeyPhrasesRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DetectSentimentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DetectSentiment", }; body = JSON.stringify(serializeAws_json1_1DetectSentimentRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DetectSyntaxCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.DetectSyntax", }; body = JSON.stringify(serializeAws_json1_1DetectSyntaxRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListDocumentClassificationJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.ListDocumentClassificationJobs", }; body = JSON.stringify(serializeAws_json1_1ListDocumentClassificationJobsRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListDocumentClassifiersCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.ListDocumentClassifiers", }; body = JSON.stringify(serializeAws_json1_1ListDocumentClassifiersRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListDominantLanguageDetectionJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.ListDominantLanguageDetectionJobs", }; body = JSON.stringify(serializeAws_json1_1ListDominantLanguageDetectionJobsRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListEndpointsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.ListEndpoints", }; body = JSON.stringify(serializeAws_json1_1ListEndpointsRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListEntitiesDetectionJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.ListEntitiesDetectionJobs", }; body = JSON.stringify(serializeAws_json1_1ListEntitiesDetectionJobsRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListEntityRecognizersCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.ListEntityRecognizers", }; body = JSON.stringify(serializeAws_json1_1ListEntityRecognizersRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.ListKeyPhrasesDetectionJobs", }; body = JSON.stringify(serializeAws_json1_1ListKeyPhrasesDetectionJobsRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListSentimentDetectionJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.ListSentimentDetectionJobs", }; body = JSON.stringify(serializeAws_json1_1ListSentimentDetectionJobsRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.ListTagsForResource", }; body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListTopicsDetectionJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.ListTopicsDetectionJobs", }; body = JSON.stringify(serializeAws_json1_1ListTopicsDetectionJobsRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartDocumentClassificationJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.StartDocumentClassificationJob", }; body = JSON.stringify(serializeAws_json1_1StartDocumentClassificationJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartDominantLanguageDetectionJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.StartDominantLanguageDetectionJob", }; body = JSON.stringify(serializeAws_json1_1StartDominantLanguageDetectionJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartEntitiesDetectionJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.StartEntitiesDetectionJob", }; body = JSON.stringify(serializeAws_json1_1StartEntitiesDetectionJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartKeyPhrasesDetectionJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.StartKeyPhrasesDetectionJob", }; body = JSON.stringify(serializeAws_json1_1StartKeyPhrasesDetectionJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartSentimentDetectionJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.StartSentimentDetectionJob", }; body = JSON.stringify(serializeAws_json1_1StartSentimentDetectionJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartTopicsDetectionJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.StartTopicsDetectionJob", }; body = JSON.stringify(serializeAws_json1_1StartTopicsDetectionJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StopDominantLanguageDetectionJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.StopDominantLanguageDetectionJob", }; body = JSON.stringify(serializeAws_json1_1StopDominantLanguageDetectionJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StopEntitiesDetectionJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.StopEntitiesDetectionJob", }; body = JSON.stringify(serializeAws_json1_1StopEntitiesDetectionJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StopKeyPhrasesDetectionJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.StopKeyPhrasesDetectionJob", }; body = JSON.stringify(serializeAws_json1_1StopKeyPhrasesDetectionJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StopSentimentDetectionJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.StopSentimentDetectionJob", }; body = JSON.stringify(serializeAws_json1_1StopSentimentDetectionJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StopTrainingDocumentClassifierCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.StopTrainingDocumentClassifier", }; body = JSON.stringify(serializeAws_json1_1StopTrainingDocumentClassifierRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StopTrainingEntityRecognizerCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.StopTrainingEntityRecognizer", }; body = JSON.stringify(serializeAws_json1_1StopTrainingEntityRecognizerRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1TagResourceCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.TagResource", }; body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1UntagResourceCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.UntagResource", }; body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1UpdateEndpointCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Comprehend_20171127.UpdateEndpoint", }; body = JSON.stringify(serializeAws_json1_1UpdateEndpointRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var deserializeAws_json1_1BatchDetectDominantLanguageCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1BatchDetectDominantLanguageCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1BatchDetectDominantLanguageResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "BatchDetectDominantLanguageResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1BatchDetectDominantLanguageCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "BatchSizeLimitExceededException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#BatchSizeLimitExceededException": return [3 /*break*/, 2]; case "InternalServerException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 6]; case "TextSizeLimitExceededException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TextSizeLimitExceededException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1BatchSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1BatchDetectEntitiesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1BatchDetectEntitiesCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1BatchDetectEntitiesResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "BatchDetectEntitiesResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1BatchDetectEntitiesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "BatchSizeLimitExceededException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#BatchSizeLimitExceededException": return [3 /*break*/, 2]; case "InternalServerException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 6]; case "TextSizeLimitExceededException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TextSizeLimitExceededException": return [3 /*break*/, 8]; case "UnsupportedLanguageException": return [3 /*break*/, 10]; case "com.amazonaws.comprehend#UnsupportedLanguageException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1BatchSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1BatchDetectKeyPhrasesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1BatchDetectKeyPhrasesCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1BatchDetectKeyPhrasesResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "BatchDetectKeyPhrasesResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1BatchDetectKeyPhrasesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "BatchSizeLimitExceededException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#BatchSizeLimitExceededException": return [3 /*break*/, 2]; case "InternalServerException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 6]; case "TextSizeLimitExceededException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TextSizeLimitExceededException": return [3 /*break*/, 8]; case "UnsupportedLanguageException": return [3 /*break*/, 10]; case "com.amazonaws.comprehend#UnsupportedLanguageException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1BatchSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1BatchDetectSentimentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1BatchDetectSentimentCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1BatchDetectSentimentResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "BatchDetectSentimentResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1BatchDetectSentimentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "BatchSizeLimitExceededException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#BatchSizeLimitExceededException": return [3 /*break*/, 2]; case "InternalServerException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 6]; case "TextSizeLimitExceededException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TextSizeLimitExceededException": return [3 /*break*/, 8]; case "UnsupportedLanguageException": return [3 /*break*/, 10]; case "com.amazonaws.comprehend#UnsupportedLanguageException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1BatchSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1BatchDetectSyntaxCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1BatchDetectSyntaxCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1BatchDetectSyntaxResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "BatchDetectSyntaxResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1BatchDetectSyntaxCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "BatchSizeLimitExceededException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#BatchSizeLimitExceededException": return [3 /*break*/, 2]; case "InternalServerException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 6]; case "TextSizeLimitExceededException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TextSizeLimitExceededException": return [3 /*break*/, 8]; case "UnsupportedLanguageException": return [3 /*break*/, 10]; case "com.amazonaws.comprehend#UnsupportedLanguageException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1BatchSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ClassifyDocumentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ClassifyDocumentCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ClassifyDocumentResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ClassifyDocumentResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ClassifyDocumentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "ResourceUnavailableException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#ResourceUnavailableException": return [3 /*break*/, 6]; case "TextSizeLimitExceededException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TextSizeLimitExceededException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1CreateDocumentClassifierCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1CreateDocumentClassifierCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1CreateDocumentClassifierResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "CreateDocumentClassifierResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1CreateDocumentClassifierCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; var _l; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) { switch (_m.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _l = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "KmsKeyValidationException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#KmsKeyValidationException": return [3 /*break*/, 6]; case "ResourceInUseException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#ResourceInUseException": return [3 /*break*/, 8]; case "ResourceLimitExceededException": return [3 /*break*/, 10]; case "com.amazonaws.comprehend#ResourceLimitExceededException": return [3 /*break*/, 10]; case "TooManyRequestsException": return [3 /*break*/, 12]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 12]; case "TooManyTagsException": return [3 /*break*/, 14]; case "com.amazonaws.comprehend#TooManyTagsException": return [3 /*break*/, 14]; case "UnsupportedLanguageException": return [3 /*break*/, 16]; case "com.amazonaws.comprehend#UnsupportedLanguageException": return [3 /*break*/, 16]; } return [3 /*break*/, 18]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1KmsKeyValidationExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 18: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _m.label = 19; case 19: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1CreateEndpointCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1CreateEndpointCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1CreateEndpointResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "CreateEndpointResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1CreateEndpointCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; var _l; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) { switch (_m.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _l = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "ResourceInUseException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#ResourceInUseException": return [3 /*break*/, 6]; case "ResourceLimitExceededException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#ResourceLimitExceededException": return [3 /*break*/, 8]; case "ResourceNotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.comprehend#ResourceNotFoundException": return [3 /*break*/, 10]; case "ResourceUnavailableException": return [3 /*break*/, 12]; case "com.amazonaws.comprehend#ResourceUnavailableException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 14]; case "TooManyTagsException": return [3 /*break*/, 16]; case "com.amazonaws.comprehend#TooManyTagsException": return [3 /*break*/, 16]; } return [3 /*break*/, 18]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 18: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _m.label = 19; case 19: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1CreateEntityRecognizerCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1CreateEntityRecognizerCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1CreateEntityRecognizerResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "CreateEntityRecognizerResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1CreateEntityRecognizerCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; var _l; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) { switch (_m.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _l = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "KmsKeyValidationException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#KmsKeyValidationException": return [3 /*break*/, 6]; case "ResourceInUseException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#ResourceInUseException": return [3 /*break*/, 8]; case "ResourceLimitExceededException": return [3 /*break*/, 10]; case "com.amazonaws.comprehend#ResourceLimitExceededException": return [3 /*break*/, 10]; case "TooManyRequestsException": return [3 /*break*/, 12]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 12]; case "TooManyTagsException": return [3 /*break*/, 14]; case "com.amazonaws.comprehend#TooManyTagsException": return [3 /*break*/, 14]; case "UnsupportedLanguageException": return [3 /*break*/, 16]; case "com.amazonaws.comprehend#UnsupportedLanguageException": return [3 /*break*/, 16]; } return [3 /*break*/, 18]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1KmsKeyValidationExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 18: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _m.label = 19; case 19: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DeleteDocumentClassifierCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DeleteDocumentClassifierCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DeleteDocumentClassifierResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DeleteDocumentClassifierResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DeleteDocumentClassifierCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "ResourceInUseException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#ResourceInUseException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#ResourceNotFoundException": return [3 /*break*/, 8]; case "ResourceUnavailableException": return [3 /*break*/, 10]; case "com.amazonaws.comprehend#ResourceUnavailableException": return [3 /*break*/, 10]; case "TooManyRequestsException": return [3 /*break*/, 12]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DeleteEndpointCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DeleteEndpointCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DeleteEndpointResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DeleteEndpointResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DeleteEndpointCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "ResourceInUseException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#ResourceInUseException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#ResourceNotFoundException": return [3 /*break*/, 8]; case "TooManyRequestsException": return [3 /*break*/, 10]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DeleteEntityRecognizerCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DeleteEntityRecognizerCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DeleteEntityRecognizerResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DeleteEntityRecognizerResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DeleteEntityRecognizerCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "ResourceInUseException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#ResourceInUseException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#ResourceNotFoundException": return [3 /*break*/, 8]; case "ResourceUnavailableException": return [3 /*break*/, 10]; case "com.amazonaws.comprehend#ResourceUnavailableException": return [3 /*break*/, 10]; case "TooManyRequestsException": return [3 /*break*/, 12]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeDocumentClassificationJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeDocumentClassificationJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DescribeDocumentClassificationJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DescribeDocumentClassificationJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeDocumentClassificationJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "JobNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#JobNotFoundException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeDocumentClassifierCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeDocumentClassifierCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DescribeDocumentClassifierResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DescribeDocumentClassifierResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeDocumentClassifierCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "ResourceNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#ResourceNotFoundException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DescribeDominantLanguageDetectionJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DescribeDominantLanguageDetectionJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "JobNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#JobNotFoundException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeEndpointCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeEndpointCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DescribeEndpointResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DescribeEndpointResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeEndpointCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "ResourceNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#ResourceNotFoundException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeEntitiesDetectionJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeEntitiesDetectionJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DescribeEntitiesDetectionJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DescribeEntitiesDetectionJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeEntitiesDetectionJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "JobNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#JobNotFoundException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeEntityRecognizerCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeEntityRecognizerCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DescribeEntityRecognizerResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DescribeEntityRecognizerResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeEntityRecognizerCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "ResourceNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#ResourceNotFoundException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DescribeKeyPhrasesDetectionJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DescribeKeyPhrasesDetectionJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "JobNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#JobNotFoundException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeSentimentDetectionJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeSentimentDetectionJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DescribeSentimentDetectionJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DescribeSentimentDetectionJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeSentimentDetectionJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "JobNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#JobNotFoundException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeTopicsDetectionJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeTopicsDetectionJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DescribeTopicsDetectionJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DescribeTopicsDetectionJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeTopicsDetectionJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "JobNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#JobNotFoundException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DetectDominantLanguageCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DetectDominantLanguageCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DetectDominantLanguageResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DetectDominantLanguageResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DetectDominantLanguageCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, parsedBody, message; var _f; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _f = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "TextSizeLimitExceededException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#TextSizeLimitExceededException": return [3 /*break*/, 6]; } return [3 /*break*/, 8]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 8: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _g.label = 9; case 9: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DetectEntitiesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DetectEntitiesCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DetectEntitiesResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DetectEntitiesResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DetectEntitiesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "ResourceUnavailableException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#ResourceUnavailableException": return [3 /*break*/, 6]; case "TextSizeLimitExceededException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TextSizeLimitExceededException": return [3 /*break*/, 8]; case "UnsupportedLanguageException": return [3 /*break*/, 10]; case "com.amazonaws.comprehend#UnsupportedLanguageException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DetectKeyPhrasesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DetectKeyPhrasesCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DetectKeyPhrasesResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DetectKeyPhrasesResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DetectKeyPhrasesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "TextSizeLimitExceededException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#TextSizeLimitExceededException": return [3 /*break*/, 6]; case "UnsupportedLanguageException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#UnsupportedLanguageException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DetectSentimentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DetectSentimentCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DetectSentimentResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DetectSentimentResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DetectSentimentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "TextSizeLimitExceededException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#TextSizeLimitExceededException": return [3 /*break*/, 6]; case "UnsupportedLanguageException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#UnsupportedLanguageException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DetectSyntaxCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DetectSyntaxCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DetectSyntaxResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DetectSyntaxResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DetectSyntaxCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "TextSizeLimitExceededException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#TextSizeLimitExceededException": return [3 /*break*/, 6]; case "UnsupportedLanguageException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#UnsupportedLanguageException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListDocumentClassificationJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListDocumentClassificationJobsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListDocumentClassificationJobsResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListDocumentClassificationJobsResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListDocumentClassificationJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidFilterException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidFilterException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListDocumentClassifiersCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListDocumentClassifiersCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListDocumentClassifiersResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListDocumentClassifiersResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListDocumentClassifiersCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidFilterException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidFilterException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListDominantLanguageDetectionJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListDominantLanguageDetectionJobsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListDominantLanguageDetectionJobsResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListDominantLanguageDetectionJobsResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListDominantLanguageDetectionJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidFilterException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidFilterException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListEndpointsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListEndpointsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListEndpointsResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListEndpointsResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListEndpointsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, parsedBody, message; var _f; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _f = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "TooManyRequestsException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 6]; } return [3 /*break*/, 8]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 8: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _g.label = 9; case 9: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListEntitiesDetectionJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListEntitiesDetectionJobsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListEntitiesDetectionJobsResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListEntitiesDetectionJobsResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListEntitiesDetectionJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidFilterException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidFilterException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListEntityRecognizersCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListEntityRecognizersCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListEntityRecognizersResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListEntityRecognizersResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListEntityRecognizersCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidFilterException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidFilterException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListKeyPhrasesDetectionJobsResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListKeyPhrasesDetectionJobsResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidFilterException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidFilterException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListSentimentDetectionJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListSentimentDetectionJobsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListSentimentDetectionJobsResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListSentimentDetectionJobsResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListSentimentDetectionJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidFilterException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidFilterException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListTagsForResourceCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListTagsForResourceResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, parsedBody, message; var _f; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _f = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "ResourceNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#ResourceNotFoundException": return [3 /*break*/, 6]; } return [3 /*break*/, 8]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 8: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _g.label = 9; case 9: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListTopicsDetectionJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListTopicsDetectionJobsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListTopicsDetectionJobsResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListTopicsDetectionJobsResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListTopicsDetectionJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidFilterException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidFilterException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartDocumentClassificationJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartDocumentClassificationJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartDocumentClassificationJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartDocumentClassificationJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartDocumentClassificationJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "KmsKeyValidationException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#KmsKeyValidationException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#ResourceNotFoundException": return [3 /*break*/, 8]; case "ResourceUnavailableException": return [3 /*break*/, 10]; case "com.amazonaws.comprehend#ResourceUnavailableException": return [3 /*break*/, 10]; case "TooManyRequestsException": return [3 /*break*/, 12]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1KmsKeyValidationExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartDominantLanguageDetectionJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartDominantLanguageDetectionJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartDominantLanguageDetectionJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartDominantLanguageDetectionJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartDominantLanguageDetectionJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "KmsKeyValidationException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#KmsKeyValidationException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1KmsKeyValidationExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartEntitiesDetectionJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartEntitiesDetectionJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartEntitiesDetectionJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartEntitiesDetectionJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartEntitiesDetectionJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "KmsKeyValidationException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#KmsKeyValidationException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#ResourceNotFoundException": return [3 /*break*/, 8]; case "ResourceUnavailableException": return [3 /*break*/, 10]; case "com.amazonaws.comprehend#ResourceUnavailableException": return [3 /*break*/, 10]; case "TooManyRequestsException": return [3 /*break*/, 12]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1KmsKeyValidationExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartKeyPhrasesDetectionJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartKeyPhrasesDetectionJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartKeyPhrasesDetectionJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartKeyPhrasesDetectionJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "KmsKeyValidationException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#KmsKeyValidationException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1KmsKeyValidationExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartSentimentDetectionJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartSentimentDetectionJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartSentimentDetectionJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartSentimentDetectionJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartSentimentDetectionJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "KmsKeyValidationException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#KmsKeyValidationException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1KmsKeyValidationExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartTopicsDetectionJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartTopicsDetectionJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartTopicsDetectionJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartTopicsDetectionJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartTopicsDetectionJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "KmsKeyValidationException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#KmsKeyValidationException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1KmsKeyValidationExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StopDominantLanguageDetectionJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StopDominantLanguageDetectionJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StopDominantLanguageDetectionJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StopDominantLanguageDetectionJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StopDominantLanguageDetectionJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, parsedBody, message; var _f; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _f = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "JobNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#JobNotFoundException": return [3 /*break*/, 6]; } return [3 /*break*/, 8]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 8: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _g.label = 9; case 9: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StopEntitiesDetectionJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StopEntitiesDetectionJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StopEntitiesDetectionJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StopEntitiesDetectionJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StopEntitiesDetectionJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, parsedBody, message; var _f; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _f = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "JobNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#JobNotFoundException": return [3 /*break*/, 6]; } return [3 /*break*/, 8]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 8: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _g.label = 9; case 9: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StopKeyPhrasesDetectionJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StopKeyPhrasesDetectionJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StopKeyPhrasesDetectionJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StopKeyPhrasesDetectionJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, parsedBody, message; var _f; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _f = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "JobNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#JobNotFoundException": return [3 /*break*/, 6]; } return [3 /*break*/, 8]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 8: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _g.label = 9; case 9: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StopSentimentDetectionJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StopSentimentDetectionJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StopSentimentDetectionJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StopSentimentDetectionJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StopSentimentDetectionJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, parsedBody, message; var _f; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _f = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "JobNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#JobNotFoundException": return [3 /*break*/, 6]; } return [3 /*break*/, 8]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 8: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _g.label = 9; case 9: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StopTrainingDocumentClassifierCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StopTrainingDocumentClassifierCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StopTrainingDocumentClassifierResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StopTrainingDocumentClassifierResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StopTrainingDocumentClassifierCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "ResourceNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#ResourceNotFoundException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StopTrainingEntityRecognizerCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StopTrainingEntityRecognizerCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StopTrainingEntityRecognizerResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StopTrainingEntityRecognizerResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StopTrainingEntityRecognizerCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "ResourceNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#ResourceNotFoundException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1TagResourceCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1TagResourceCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1TagResourceResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "TagResourceResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "ConcurrentModificationException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#ConcurrentModificationException": return [3 /*break*/, 2]; case "InternalServerException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#ResourceNotFoundException": return [3 /*break*/, 8]; case "TooManyTagsException": return [3 /*break*/, 10]; case "com.amazonaws.comprehend#TooManyTagsException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1UntagResourceCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1UntagResourceCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1UntagResourceResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "UntagResourceResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "ConcurrentModificationException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#ConcurrentModificationException": return [3 /*break*/, 2]; case "InternalServerException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#ResourceNotFoundException": return [3 /*break*/, 8]; case "TooManyTagKeysException": return [3 /*break*/, 10]; case "com.amazonaws.comprehend#TooManyTagKeysException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyTagKeysExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1UpdateEndpointCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1UpdateEndpointCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1UpdateEndpointResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "UpdateEndpointResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1UpdateEndpointCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; var _k; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) { switch (_l.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _k = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.comprehend#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.comprehend#InvalidRequestException": return [3 /*break*/, 4]; case "ResourceInUseException": return [3 /*break*/, 6]; case "com.amazonaws.comprehend#ResourceInUseException": return [3 /*break*/, 6]; case "ResourceLimitExceededException": return [3 /*break*/, 8]; case "com.amazonaws.comprehend#ResourceLimitExceededException": return [3 /*break*/, 8]; case "ResourceNotFoundException": return [3 /*break*/, 10]; case "com.amazonaws.comprehend#ResourceNotFoundException": return [3 /*break*/, 10]; case "ResourceUnavailableException": return [3 /*break*/, 12]; case "com.amazonaws.comprehend#ResourceUnavailableException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.comprehend#TooManyRequestsException": return [3 /*break*/, 14]; } return [3 /*break*/, 16]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 17]; case 16: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _l.label = 17; case 17: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1BatchSizeLimitExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1BatchSizeLimitExceededException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "BatchSizeLimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ConcurrentModificationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InternalServerException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InternalServerException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InvalidFilterExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InvalidFilterException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidFilterException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InvalidRequestException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidRequestException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1JobNotFoundExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1JobNotFoundException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "JobNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1KmsKeyValidationExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1KmsKeyValidationException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "KmsKeyValidationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ResourceInUseException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceInUseException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ResourceLimitExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ResourceLimitExceededException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceLimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ResourceUnavailableExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ResourceUnavailableException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceUnavailableException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1TextSizeLimitExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1TextSizeLimitExceededException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "TextSizeLimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1TooManyRequestsException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "TooManyRequestsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1TooManyTagKeysExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1TooManyTagKeysException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "TooManyTagKeysException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1TooManyTagsException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "TooManyTagsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1UnsupportedLanguageExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1UnsupportedLanguageException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "UnsupportedLanguageException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var serializeAws_json1_1BatchDetectDominantLanguageRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.TextList !== undefined && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context), })); }; var serializeAws_json1_1BatchDetectEntitiesRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.LanguageCode !== undefined && { LanguageCode: input.LanguageCode })), (input.TextList !== undefined && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context), })); }; var serializeAws_json1_1BatchDetectKeyPhrasesRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.LanguageCode !== undefined && { LanguageCode: input.LanguageCode })), (input.TextList !== undefined && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context), })); }; var serializeAws_json1_1BatchDetectSentimentRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.LanguageCode !== undefined && { LanguageCode: input.LanguageCode })), (input.TextList !== undefined && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context), })); }; var serializeAws_json1_1BatchDetectSyntaxRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.LanguageCode !== undefined && { LanguageCode: input.LanguageCode })), (input.TextList !== undefined && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context), })); }; var serializeAws_json1_1ClassifyDocumentRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EndpointArn !== undefined && { EndpointArn: input.EndpointArn })), (input.Text !== undefined && { Text: input.Text })); }; var serializeAws_json1_1CreateDocumentClassifierRequest = function (input, context) { var _a; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v4"])() }, (input.DataAccessRoleArn !== undefined && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.DocumentClassifierName !== undefined && { DocumentClassifierName: input.DocumentClassifierName })), (input.InputDataConfig !== undefined && { InputDataConfig: serializeAws_json1_1DocumentClassifierInputDataConfig(input.InputDataConfig, context), })), (input.LanguageCode !== undefined && { LanguageCode: input.LanguageCode })), (input.Mode !== undefined && { Mode: input.Mode })), (input.OutputDataConfig !== undefined && { OutputDataConfig: serializeAws_json1_1DocumentClassifierOutputDataConfig(input.OutputDataConfig, context), })), (input.Tags !== undefined && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VolumeKmsKeyId !== undefined && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) })); }; var serializeAws_json1_1CreateEndpointRequest = function (input, context) { var _a; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v4"])() }, (input.DesiredInferenceUnits !== undefined && { DesiredInferenceUnits: input.DesiredInferenceUnits })), (input.EndpointName !== undefined && { EndpointName: input.EndpointName })), (input.ModelArn !== undefined && { ModelArn: input.ModelArn })), (input.Tags !== undefined && { Tags: serializeAws_json1_1TagList(input.Tags, context) })); }; var serializeAws_json1_1CreateEntityRecognizerRequest = function (input, context) { var _a; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v4"])() }, (input.DataAccessRoleArn !== undefined && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined && { InputDataConfig: serializeAws_json1_1EntityRecognizerInputDataConfig(input.InputDataConfig, context), })), (input.LanguageCode !== undefined && { LanguageCode: input.LanguageCode })), (input.RecognizerName !== undefined && { RecognizerName: input.RecognizerName })), (input.Tags !== undefined && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VolumeKmsKeyId !== undefined && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) })); }; var serializeAws_json1_1CustomerInputStringList = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1DeleteDocumentClassifierRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DocumentClassifierArn !== undefined && { DocumentClassifierArn: input.DocumentClassifierArn })); }; var serializeAws_json1_1DeleteEndpointRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EndpointArn !== undefined && { EndpointArn: input.EndpointArn })); }; var serializeAws_json1_1DeleteEntityRecognizerRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EntityRecognizerArn !== undefined && { EntityRecognizerArn: input.EntityRecognizerArn })); }; var serializeAws_json1_1DescribeDocumentClassificationJobRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })); }; var serializeAws_json1_1DescribeDocumentClassifierRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DocumentClassifierArn !== undefined && { DocumentClassifierArn: input.DocumentClassifierArn })); }; var serializeAws_json1_1DescribeDominantLanguageDetectionJobRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })); }; var serializeAws_json1_1DescribeEndpointRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EndpointArn !== undefined && { EndpointArn: input.EndpointArn })); }; var serializeAws_json1_1DescribeEntitiesDetectionJobRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })); }; var serializeAws_json1_1DescribeEntityRecognizerRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EntityRecognizerArn !== undefined && { EntityRecognizerArn: input.EntityRecognizerArn })); }; var serializeAws_json1_1DescribeKeyPhrasesDetectionJobRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })); }; var serializeAws_json1_1DescribeSentimentDetectionJobRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })); }; var serializeAws_json1_1DescribeTopicsDetectionJobRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })); }; var serializeAws_json1_1DetectDominantLanguageRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Text !== undefined && { Text: input.Text })); }; var serializeAws_json1_1DetectEntitiesRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EndpointArn !== undefined && { EndpointArn: input.EndpointArn })), (input.LanguageCode !== undefined && { LanguageCode: input.LanguageCode })), (input.Text !== undefined && { Text: input.Text })); }; var serializeAws_json1_1DetectKeyPhrasesRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.LanguageCode !== undefined && { LanguageCode: input.LanguageCode })), (input.Text !== undefined && { Text: input.Text })); }; var serializeAws_json1_1DetectSentimentRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.LanguageCode !== undefined && { LanguageCode: input.LanguageCode })), (input.Text !== undefined && { Text: input.Text })); }; var serializeAws_json1_1DetectSyntaxRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.LanguageCode !== undefined && { LanguageCode: input.LanguageCode })), (input.Text !== undefined && { Text: input.Text })); }; var serializeAws_json1_1DocumentClassificationJobFilter = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobName !== undefined && { JobName: input.JobName })), (input.JobStatus !== undefined && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter !== undefined && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000), })); }; var serializeAws_json1_1DocumentClassifierFilter = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Status !== undefined && { Status: input.Status })), (input.SubmitTimeAfter !== undefined && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000), })); }; var serializeAws_json1_1DocumentClassifierInputDataConfig = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.LabelDelimiter !== undefined && { LabelDelimiter: input.LabelDelimiter })), (input.S3Uri !== undefined && { S3Uri: input.S3Uri })); }; var serializeAws_json1_1DocumentClassifierOutputDataConfig = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.KmsKeyId !== undefined && { KmsKeyId: input.KmsKeyId })), (input.S3Uri !== undefined && { S3Uri: input.S3Uri })); }; var serializeAws_json1_1DominantLanguageDetectionJobFilter = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobName !== undefined && { JobName: input.JobName })), (input.JobStatus !== undefined && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter !== undefined && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000), })); }; var serializeAws_json1_1EndpointFilter = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CreationTimeAfter !== undefined && { CreationTimeAfter: Math.round(input.CreationTimeAfter.getTime() / 1000), })), (input.CreationTimeBefore !== undefined && { CreationTimeBefore: Math.round(input.CreationTimeBefore.getTime() / 1000), })), (input.ModelArn !== undefined && { ModelArn: input.ModelArn })), (input.Status !== undefined && { Status: input.Status })); }; var serializeAws_json1_1EntitiesDetectionJobFilter = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobName !== undefined && { JobName: input.JobName })), (input.JobStatus !== undefined && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter !== undefined && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000), })); }; var serializeAws_json1_1EntityRecognizerAnnotations = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.S3Uri !== undefined && { S3Uri: input.S3Uri })); }; var serializeAws_json1_1EntityRecognizerDocuments = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.S3Uri !== undefined && { S3Uri: input.S3Uri })); }; var serializeAws_json1_1EntityRecognizerEntityList = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.S3Uri !== undefined && { S3Uri: input.S3Uri })); }; var serializeAws_json1_1EntityRecognizerFilter = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Status !== undefined && { Status: input.Status })), (input.SubmitTimeAfter !== undefined && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000), })); }; var serializeAws_json1_1EntityRecognizerInputDataConfig = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Annotations !== undefined && { Annotations: serializeAws_json1_1EntityRecognizerAnnotations(input.Annotations, context), })), (input.Documents !== undefined && { Documents: serializeAws_json1_1EntityRecognizerDocuments(input.Documents, context), })), (input.EntityList !== undefined && { EntityList: serializeAws_json1_1EntityRecognizerEntityList(input.EntityList, context), })), (input.EntityTypes !== undefined && { EntityTypes: serializeAws_json1_1EntityTypesList(input.EntityTypes, context), })); }; var serializeAws_json1_1EntityTypesList = function (input, context) { return input.map(function (entry) { return serializeAws_json1_1EntityTypesListItem(entry, context); }); }; var serializeAws_json1_1EntityTypesListItem = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Type !== undefined && { Type: input.Type })); }; var serializeAws_json1_1InputDataConfig = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.InputFormat !== undefined && { InputFormat: input.InputFormat })), (input.S3Uri !== undefined && { S3Uri: input.S3Uri })); }; var serializeAws_json1_1KeyPhrasesDetectionJobFilter = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobName !== undefined && { JobName: input.JobName })), (input.JobStatus !== undefined && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter !== undefined && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000), })); }; var serializeAws_json1_1ListDocumentClassificationJobsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Filter !== undefined && { Filter: serializeAws_json1_1DocumentClassificationJobFilter(input.Filter, context), })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1ListDocumentClassifiersRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Filter !== undefined && { Filter: serializeAws_json1_1DocumentClassifierFilter(input.Filter, context) })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1ListDominantLanguageDetectionJobsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Filter !== undefined && { Filter: serializeAws_json1_1DominantLanguageDetectionJobFilter(input.Filter, context), })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1ListEndpointsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Filter !== undefined && { Filter: serializeAws_json1_1EndpointFilter(input.Filter, context) })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1ListEntitiesDetectionJobsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Filter !== undefined && { Filter: serializeAws_json1_1EntitiesDetectionJobFilter(input.Filter, context), })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1ListEntityRecognizersRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Filter !== undefined && { Filter: serializeAws_json1_1EntityRecognizerFilter(input.Filter, context) })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1ListKeyPhrasesDetectionJobsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Filter !== undefined && { Filter: serializeAws_json1_1KeyPhrasesDetectionJobFilter(input.Filter, context), })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1ListSentimentDetectionJobsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Filter !== undefined && { Filter: serializeAws_json1_1SentimentDetectionJobFilter(input.Filter, context), })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ResourceArn !== undefined && { ResourceArn: input.ResourceArn })); }; var serializeAws_json1_1ListTopicsDetectionJobsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Filter !== undefined && { Filter: serializeAws_json1_1TopicsDetectionJobFilter(input.Filter, context) })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1OutputDataConfig = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.KmsKeyId !== undefined && { KmsKeyId: input.KmsKeyId })), (input.S3Uri !== undefined && { S3Uri: input.S3Uri })); }; var serializeAws_json1_1SecurityGroupIds = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1SentimentDetectionJobFilter = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobName !== undefined && { JobName: input.JobName })), (input.JobStatus !== undefined && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter !== undefined && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000), })); }; var serializeAws_json1_1StartDocumentClassificationJobRequest = function (input, context) { var _a; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v4"])() }, (input.DataAccessRoleArn !== undefined && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.DocumentClassifierArn !== undefined && { DocumentClassifierArn: input.DocumentClassifierArn })), (input.InputDataConfig !== undefined && { InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context), })), (input.JobName !== undefined && { JobName: input.JobName })), (input.OutputDataConfig !== undefined && { OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context), })), (input.VolumeKmsKeyId !== undefined && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) })); }; var serializeAws_json1_1StartDominantLanguageDetectionJobRequest = function (input, context) { var _a; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v4"])() }, (input.DataAccessRoleArn !== undefined && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined && { InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context), })), (input.JobName !== undefined && { JobName: input.JobName })), (input.OutputDataConfig !== undefined && { OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context), })), (input.VolumeKmsKeyId !== undefined && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) })); }; var serializeAws_json1_1StartEntitiesDetectionJobRequest = function (input, context) { var _a; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v4"])() }, (input.DataAccessRoleArn !== undefined && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.EntityRecognizerArn !== undefined && { EntityRecognizerArn: input.EntityRecognizerArn })), (input.InputDataConfig !== undefined && { InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context), })), (input.JobName !== undefined && { JobName: input.JobName })), (input.LanguageCode !== undefined && { LanguageCode: input.LanguageCode })), (input.OutputDataConfig !== undefined && { OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context), })), (input.VolumeKmsKeyId !== undefined && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) })); }; var serializeAws_json1_1StartKeyPhrasesDetectionJobRequest = function (input, context) { var _a; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v4"])() }, (input.DataAccessRoleArn !== undefined && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined && { InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context), })), (input.JobName !== undefined && { JobName: input.JobName })), (input.LanguageCode !== undefined && { LanguageCode: input.LanguageCode })), (input.OutputDataConfig !== undefined && { OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context), })), (input.VolumeKmsKeyId !== undefined && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) })); }; var serializeAws_json1_1StartSentimentDetectionJobRequest = function (input, context) { var _a; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v4"])() }, (input.DataAccessRoleArn !== undefined && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined && { InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context), })), (input.JobName !== undefined && { JobName: input.JobName })), (input.LanguageCode !== undefined && { LanguageCode: input.LanguageCode })), (input.OutputDataConfig !== undefined && { OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context), })), (input.VolumeKmsKeyId !== undefined && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) })); }; var serializeAws_json1_1StartTopicsDetectionJobRequest = function (input, context) { var _a; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v4"])() }, (input.DataAccessRoleArn !== undefined && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined && { InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context), })), (input.JobName !== undefined && { JobName: input.JobName })), (input.NumberOfTopics !== undefined && { NumberOfTopics: input.NumberOfTopics })), (input.OutputDataConfig !== undefined && { OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context), })), (input.VolumeKmsKeyId !== undefined && { VolumeKmsKeyId: input.VolumeKmsKeyId })), (input.VpcConfig !== undefined && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) })); }; var serializeAws_json1_1StopDominantLanguageDetectionJobRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })); }; var serializeAws_json1_1StopEntitiesDetectionJobRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })); }; var serializeAws_json1_1StopKeyPhrasesDetectionJobRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })); }; var serializeAws_json1_1StopSentimentDetectionJobRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })); }; var serializeAws_json1_1StopTrainingDocumentClassifierRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DocumentClassifierArn !== undefined && { DocumentClassifierArn: input.DocumentClassifierArn })); }; var serializeAws_json1_1StopTrainingEntityRecognizerRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EntityRecognizerArn !== undefined && { EntityRecognizerArn: input.EntityRecognizerArn })); }; var serializeAws_json1_1Subnets = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1Tag = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Key !== undefined && { Key: input.Key })), (input.Value !== undefined && { Value: input.Value })); }; var serializeAws_json1_1TagKeyList = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1TagList = function (input, context) { return input.map(function (entry) { return serializeAws_json1_1Tag(entry, context); }); }; var serializeAws_json1_1TagResourceRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ResourceArn !== undefined && { ResourceArn: input.ResourceArn })), (input.Tags !== undefined && { Tags: serializeAws_json1_1TagList(input.Tags, context) })); }; var serializeAws_json1_1TopicsDetectionJobFilter = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobName !== undefined && { JobName: input.JobName })), (input.JobStatus !== undefined && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter !== undefined && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore !== undefined && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000), })); }; var serializeAws_json1_1UntagResourceRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ResourceArn !== undefined && { ResourceArn: input.ResourceArn })), (input.TagKeys !== undefined && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) })); }; var serializeAws_json1_1UpdateEndpointRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DesiredInferenceUnits !== undefined && { DesiredInferenceUnits: input.DesiredInferenceUnits })), (input.EndpointArn !== undefined && { EndpointArn: input.EndpointArn })); }; var serializeAws_json1_1VpcConfig = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.SecurityGroupIds !== undefined && { SecurityGroupIds: serializeAws_json1_1SecurityGroupIds(input.SecurityGroupIds, context), })), (input.Subnets !== undefined && { Subnets: serializeAws_json1_1Subnets(input.Subnets, context) })); }; var deserializeAws_json1_1BatchDetectDominantLanguageItemResult = function (output, context) { return { __type: "BatchDetectDominantLanguageItemResult", Index: output.Index !== undefined && output.Index !== null ? output.Index : undefined, Languages: output.Languages !== undefined && output.Languages !== null ? deserializeAws_json1_1ListOfDominantLanguages(output.Languages, context) : undefined, }; }; var deserializeAws_json1_1BatchDetectDominantLanguageResponse = function (output, context) { return { __type: "BatchDetectDominantLanguageResponse", ErrorList: output.ErrorList !== undefined && output.ErrorList !== null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined, ResultList: output.ResultList !== undefined && output.ResultList !== null ? deserializeAws_json1_1ListOfDetectDominantLanguageResult(output.ResultList, context) : undefined, }; }; var deserializeAws_json1_1BatchDetectEntitiesItemResult = function (output, context) { return { __type: "BatchDetectEntitiesItemResult", Entities: output.Entities !== undefined && output.Entities !== null ? deserializeAws_json1_1ListOfEntities(output.Entities, context) : undefined, Index: output.Index !== undefined && output.Index !== null ? output.Index : undefined, }; }; var deserializeAws_json1_1BatchDetectEntitiesResponse = function (output, context) { return { __type: "BatchDetectEntitiesResponse", ErrorList: output.ErrorList !== undefined && output.ErrorList !== null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined, ResultList: output.ResultList !== undefined && output.ResultList !== null ? deserializeAws_json1_1ListOfDetectEntitiesResult(output.ResultList, context) : undefined, }; }; var deserializeAws_json1_1BatchDetectKeyPhrasesItemResult = function (output, context) { return { __type: "BatchDetectKeyPhrasesItemResult", Index: output.Index !== undefined && output.Index !== null ? output.Index : undefined, KeyPhrases: output.KeyPhrases !== undefined && output.KeyPhrases !== null ? deserializeAws_json1_1ListOfKeyPhrases(output.KeyPhrases, context) : undefined, }; }; var deserializeAws_json1_1BatchDetectKeyPhrasesResponse = function (output, context) { return { __type: "BatchDetectKeyPhrasesResponse", ErrorList: output.ErrorList !== undefined && output.ErrorList !== null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined, ResultList: output.ResultList !== undefined && output.ResultList !== null ? deserializeAws_json1_1ListOfDetectKeyPhrasesResult(output.ResultList, context) : undefined, }; }; var deserializeAws_json1_1BatchDetectSentimentItemResult = function (output, context) { return { __type: "BatchDetectSentimentItemResult", Index: output.Index !== undefined && output.Index !== null ? output.Index : undefined, Sentiment: output.Sentiment !== undefined && output.Sentiment !== null ? output.Sentiment : undefined, SentimentScore: output.SentimentScore !== undefined && output.SentimentScore !== null ? deserializeAws_json1_1SentimentScore(output.SentimentScore, context) : undefined, }; }; var deserializeAws_json1_1BatchDetectSentimentResponse = function (output, context) { return { __type: "BatchDetectSentimentResponse", ErrorList: output.ErrorList !== undefined && output.ErrorList !== null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined, ResultList: output.ResultList !== undefined && output.ResultList !== null ? deserializeAws_json1_1ListOfDetectSentimentResult(output.ResultList, context) : undefined, }; }; var deserializeAws_json1_1BatchDetectSyntaxItemResult = function (output, context) { return { __type: "BatchDetectSyntaxItemResult", Index: output.Index !== undefined && output.Index !== null ? output.Index : undefined, SyntaxTokens: output.SyntaxTokens !== undefined && output.SyntaxTokens !== null ? deserializeAws_json1_1ListOfSyntaxTokens(output.SyntaxTokens, context) : undefined, }; }; var deserializeAws_json1_1BatchDetectSyntaxResponse = function (output, context) { return { __type: "BatchDetectSyntaxResponse", ErrorList: output.ErrorList !== undefined && output.ErrorList !== null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined, ResultList: output.ResultList !== undefined && output.ResultList !== null ? deserializeAws_json1_1ListOfDetectSyntaxResult(output.ResultList, context) : undefined, }; }; var deserializeAws_json1_1BatchItemError = function (output, context) { return { __type: "BatchItemError", ErrorCode: output.ErrorCode !== undefined && output.ErrorCode !== null ? output.ErrorCode : undefined, ErrorMessage: output.ErrorMessage !== undefined && output.ErrorMessage !== null ? output.ErrorMessage : undefined, Index: output.Index !== undefined && output.Index !== null ? output.Index : undefined, }; }; var deserializeAws_json1_1BatchItemErrorList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1BatchItemError(entry, context); }); }; var deserializeAws_json1_1BatchSizeLimitExceededException = function (output, context) { return { __type: "BatchSizeLimitExceededException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1ClassifierEvaluationMetrics = function (output, context) { return { __type: "ClassifierEvaluationMetrics", Accuracy: output.Accuracy !== undefined && output.Accuracy !== null ? output.Accuracy : undefined, F1Score: output.F1Score !== undefined && output.F1Score !== null ? output.F1Score : undefined, HammingLoss: output.HammingLoss !== undefined && output.HammingLoss !== null ? output.HammingLoss : undefined, MicroF1Score: output.MicroF1Score !== undefined && output.MicroF1Score !== null ? output.MicroF1Score : undefined, MicroPrecision: output.MicroPrecision !== undefined && output.MicroPrecision !== null ? output.MicroPrecision : undefined, MicroRecall: output.MicroRecall !== undefined && output.MicroRecall !== null ? output.MicroRecall : undefined, Precision: output.Precision !== undefined && output.Precision !== null ? output.Precision : undefined, Recall: output.Recall !== undefined && output.Recall !== null ? output.Recall : undefined, }; }; var deserializeAws_json1_1ClassifierMetadata = function (output, context) { return { __type: "ClassifierMetadata", EvaluationMetrics: output.EvaluationMetrics !== undefined && output.EvaluationMetrics !== null ? deserializeAws_json1_1ClassifierEvaluationMetrics(output.EvaluationMetrics, context) : undefined, NumberOfLabels: output.NumberOfLabels !== undefined && output.NumberOfLabels !== null ? output.NumberOfLabels : undefined, NumberOfTestDocuments: output.NumberOfTestDocuments !== undefined && output.NumberOfTestDocuments !== null ? output.NumberOfTestDocuments : undefined, NumberOfTrainedDocuments: output.NumberOfTrainedDocuments !== undefined && output.NumberOfTrainedDocuments !== null ? output.NumberOfTrainedDocuments : undefined, }; }; var deserializeAws_json1_1ClassifyDocumentResponse = function (output, context) { return { __type: "ClassifyDocumentResponse", Classes: output.Classes !== undefined && output.Classes !== null ? deserializeAws_json1_1ListOfClasses(output.Classes, context) : undefined, Labels: output.Labels !== undefined && output.Labels !== null ? deserializeAws_json1_1ListOfLabels(output.Labels, context) : undefined, }; }; var deserializeAws_json1_1ConcurrentModificationException = function (output, context) { return { __type: "ConcurrentModificationException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1CreateDocumentClassifierResponse = function (output, context) { return { __type: "CreateDocumentClassifierResponse", DocumentClassifierArn: output.DocumentClassifierArn !== undefined && output.DocumentClassifierArn !== null ? output.DocumentClassifierArn : undefined, }; }; var deserializeAws_json1_1CreateEndpointResponse = function (output, context) { return { __type: "CreateEndpointResponse", EndpointArn: output.EndpointArn !== undefined && output.EndpointArn !== null ? output.EndpointArn : undefined, }; }; var deserializeAws_json1_1CreateEntityRecognizerResponse = function (output, context) { return { __type: "CreateEntityRecognizerResponse", EntityRecognizerArn: output.EntityRecognizerArn !== undefined && output.EntityRecognizerArn !== null ? output.EntityRecognizerArn : undefined, }; }; var deserializeAws_json1_1DeleteDocumentClassifierResponse = function (output, context) { return { __type: "DeleteDocumentClassifierResponse", }; }; var deserializeAws_json1_1DeleteEndpointResponse = function (output, context) { return { __type: "DeleteEndpointResponse", }; }; var deserializeAws_json1_1DeleteEntityRecognizerResponse = function (output, context) { return { __type: "DeleteEntityRecognizerResponse", }; }; var deserializeAws_json1_1DescribeDocumentClassificationJobResponse = function (output, context) { return { __type: "DescribeDocumentClassificationJobResponse", DocumentClassificationJobProperties: output.DocumentClassificationJobProperties !== undefined && output.DocumentClassificationJobProperties !== null ? deserializeAws_json1_1DocumentClassificationJobProperties(output.DocumentClassificationJobProperties, context) : undefined, }; }; var deserializeAws_json1_1DescribeDocumentClassifierResponse = function (output, context) { return { __type: "DescribeDocumentClassifierResponse", DocumentClassifierProperties: output.DocumentClassifierProperties !== undefined && output.DocumentClassifierProperties !== null ? deserializeAws_json1_1DocumentClassifierProperties(output.DocumentClassifierProperties, context) : undefined, }; }; var deserializeAws_json1_1DescribeDominantLanguageDetectionJobResponse = function (output, context) { return { __type: "DescribeDominantLanguageDetectionJobResponse", DominantLanguageDetectionJobProperties: output.DominantLanguageDetectionJobProperties !== undefined && output.DominantLanguageDetectionJobProperties !== null ? deserializeAws_json1_1DominantLanguageDetectionJobProperties(output.DominantLanguageDetectionJobProperties, context) : undefined, }; }; var deserializeAws_json1_1DescribeEndpointResponse = function (output, context) { return { __type: "DescribeEndpointResponse", EndpointProperties: output.EndpointProperties !== undefined && output.EndpointProperties !== null ? deserializeAws_json1_1EndpointProperties(output.EndpointProperties, context) : undefined, }; }; var deserializeAws_json1_1DescribeEntitiesDetectionJobResponse = function (output, context) { return { __type: "DescribeEntitiesDetectionJobResponse", EntitiesDetectionJobProperties: output.EntitiesDetectionJobProperties !== undefined && output.EntitiesDetectionJobProperties !== null ? deserializeAws_json1_1EntitiesDetectionJobProperties(output.EntitiesDetectionJobProperties, context) : undefined, }; }; var deserializeAws_json1_1DescribeEntityRecognizerResponse = function (output, context) { return { __type: "DescribeEntityRecognizerResponse", EntityRecognizerProperties: output.EntityRecognizerProperties !== undefined && output.EntityRecognizerProperties !== null ? deserializeAws_json1_1EntityRecognizerProperties(output.EntityRecognizerProperties, context) : undefined, }; }; var deserializeAws_json1_1DescribeKeyPhrasesDetectionJobResponse = function (output, context) { return { __type: "DescribeKeyPhrasesDetectionJobResponse", KeyPhrasesDetectionJobProperties: output.KeyPhrasesDetectionJobProperties !== undefined && output.KeyPhrasesDetectionJobProperties !== null ? deserializeAws_json1_1KeyPhrasesDetectionJobProperties(output.KeyPhrasesDetectionJobProperties, context) : undefined, }; }; var deserializeAws_json1_1DescribeSentimentDetectionJobResponse = function (output, context) { return { __type: "DescribeSentimentDetectionJobResponse", SentimentDetectionJobProperties: output.SentimentDetectionJobProperties !== undefined && output.SentimentDetectionJobProperties !== null ? deserializeAws_json1_1SentimentDetectionJobProperties(output.SentimentDetectionJobProperties, context) : undefined, }; }; var deserializeAws_json1_1DescribeTopicsDetectionJobResponse = function (output, context) { return { __type: "DescribeTopicsDetectionJobResponse", TopicsDetectionJobProperties: output.TopicsDetectionJobProperties !== undefined && output.TopicsDetectionJobProperties !== null ? deserializeAws_json1_1TopicsDetectionJobProperties(output.TopicsDetectionJobProperties, context) : undefined, }; }; var deserializeAws_json1_1DetectDominantLanguageResponse = function (output, context) { return { __type: "DetectDominantLanguageResponse", Languages: output.Languages !== undefined && output.Languages !== null ? deserializeAws_json1_1ListOfDominantLanguages(output.Languages, context) : undefined, }; }; var deserializeAws_json1_1DetectEntitiesResponse = function (output, context) { return { __type: "DetectEntitiesResponse", Entities: output.Entities !== undefined && output.Entities !== null ? deserializeAws_json1_1ListOfEntities(output.Entities, context) : undefined, }; }; var deserializeAws_json1_1DetectKeyPhrasesResponse = function (output, context) { return { __type: "DetectKeyPhrasesResponse", KeyPhrases: output.KeyPhrases !== undefined && output.KeyPhrases !== null ? deserializeAws_json1_1ListOfKeyPhrases(output.KeyPhrases, context) : undefined, }; }; var deserializeAws_json1_1DetectSentimentResponse = function (output, context) { return { __type: "DetectSentimentResponse", Sentiment: output.Sentiment !== undefined && output.Sentiment !== null ? output.Sentiment : undefined, SentimentScore: output.SentimentScore !== undefined && output.SentimentScore !== null ? deserializeAws_json1_1SentimentScore(output.SentimentScore, context) : undefined, }; }; var deserializeAws_json1_1DetectSyntaxResponse = function (output, context) { return { __type: "DetectSyntaxResponse", SyntaxTokens: output.SyntaxTokens !== undefined && output.SyntaxTokens !== null ? deserializeAws_json1_1ListOfSyntaxTokens(output.SyntaxTokens, context) : undefined, }; }; var deserializeAws_json1_1DocumentClass = function (output, context) { return { __type: "DocumentClass", Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, Score: output.Score !== undefined && output.Score !== null ? output.Score : undefined, }; }; var deserializeAws_json1_1DocumentClassificationJobProperties = function (output, context) { return { __type: "DocumentClassificationJobProperties", DataAccessRoleArn: output.DataAccessRoleArn !== undefined && output.DataAccessRoleArn !== null ? output.DataAccessRoleArn : undefined, DocumentClassifierArn: output.DocumentClassifierArn !== undefined && output.DocumentClassifierArn !== null ? output.DocumentClassifierArn : undefined, EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined, InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context) : undefined, JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobName: output.JobName !== undefined && output.JobName !== null ? output.JobName : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context) : undefined, SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null ? new Date(Math.round(output.SubmitTime * 1000)) : undefined, VolumeKmsKeyId: output.VolumeKmsKeyId !== undefined && output.VolumeKmsKeyId !== null ? output.VolumeKmsKeyId : undefined, VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined, }; }; var deserializeAws_json1_1DocumentClassificationJobPropertiesList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1DocumentClassificationJobProperties(entry, context); }); }; var deserializeAws_json1_1DocumentClassifierInputDataConfig = function (output, context) { return { __type: "DocumentClassifierInputDataConfig", LabelDelimiter: output.LabelDelimiter !== undefined && output.LabelDelimiter !== null ? output.LabelDelimiter : undefined, S3Uri: output.S3Uri !== undefined && output.S3Uri !== null ? output.S3Uri : undefined, }; }; var deserializeAws_json1_1DocumentClassifierOutputDataConfig = function (output, context) { return { __type: "DocumentClassifierOutputDataConfig", KmsKeyId: output.KmsKeyId !== undefined && output.KmsKeyId !== null ? output.KmsKeyId : undefined, S3Uri: output.S3Uri !== undefined && output.S3Uri !== null ? output.S3Uri : undefined, }; }; var deserializeAws_json1_1DocumentClassifierProperties = function (output, context) { return { __type: "DocumentClassifierProperties", ClassifierMetadata: output.ClassifierMetadata !== undefined && output.ClassifierMetadata !== null ? deserializeAws_json1_1ClassifierMetadata(output.ClassifierMetadata, context) : undefined, DataAccessRoleArn: output.DataAccessRoleArn !== undefined && output.DataAccessRoleArn !== null ? output.DataAccessRoleArn : undefined, DocumentClassifierArn: output.DocumentClassifierArn !== undefined && output.DocumentClassifierArn !== null ? output.DocumentClassifierArn : undefined, EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined, InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null ? deserializeAws_json1_1DocumentClassifierInputDataConfig(output.InputDataConfig, context) : undefined, LanguageCode: output.LanguageCode !== undefined && output.LanguageCode !== null ? output.LanguageCode : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, Mode: output.Mode !== undefined && output.Mode !== null ? output.Mode : undefined, OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null ? deserializeAws_json1_1DocumentClassifierOutputDataConfig(output.OutputDataConfig, context) : undefined, Status: output.Status !== undefined && output.Status !== null ? output.Status : undefined, SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null ? new Date(Math.round(output.SubmitTime * 1000)) : undefined, TrainingEndTime: output.TrainingEndTime !== undefined && output.TrainingEndTime !== null ? new Date(Math.round(output.TrainingEndTime * 1000)) : undefined, TrainingStartTime: output.TrainingStartTime !== undefined && output.TrainingStartTime !== null ? new Date(Math.round(output.TrainingStartTime * 1000)) : undefined, VolumeKmsKeyId: output.VolumeKmsKeyId !== undefined && output.VolumeKmsKeyId !== null ? output.VolumeKmsKeyId : undefined, VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined, }; }; var deserializeAws_json1_1DocumentClassifierPropertiesList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1DocumentClassifierProperties(entry, context); }); }; var deserializeAws_json1_1DocumentLabel = function (output, context) { return { __type: "DocumentLabel", Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, Score: output.Score !== undefined && output.Score !== null ? output.Score : undefined, }; }; var deserializeAws_json1_1DominantLanguage = function (output, context) { return { __type: "DominantLanguage", LanguageCode: output.LanguageCode !== undefined && output.LanguageCode !== null ? output.LanguageCode : undefined, Score: output.Score !== undefined && output.Score !== null ? output.Score : undefined, }; }; var deserializeAws_json1_1DominantLanguageDetectionJobProperties = function (output, context) { return { __type: "DominantLanguageDetectionJobProperties", DataAccessRoleArn: output.DataAccessRoleArn !== undefined && output.DataAccessRoleArn !== null ? output.DataAccessRoleArn : undefined, EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined, InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context) : undefined, JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobName: output.JobName !== undefined && output.JobName !== null ? output.JobName : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context) : undefined, SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null ? new Date(Math.round(output.SubmitTime * 1000)) : undefined, VolumeKmsKeyId: output.VolumeKmsKeyId !== undefined && output.VolumeKmsKeyId !== null ? output.VolumeKmsKeyId : undefined, VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined, }; }; var deserializeAws_json1_1DominantLanguageDetectionJobPropertiesList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1DominantLanguageDetectionJobProperties(entry, context); }); }; var deserializeAws_json1_1EndpointProperties = function (output, context) { return { __type: "EndpointProperties", CreationTime: output.CreationTime !== undefined && output.CreationTime !== null ? new Date(Math.round(output.CreationTime * 1000)) : undefined, CurrentInferenceUnits: output.CurrentInferenceUnits !== undefined && output.CurrentInferenceUnits !== null ? output.CurrentInferenceUnits : undefined, DesiredInferenceUnits: output.DesiredInferenceUnits !== undefined && output.DesiredInferenceUnits !== null ? output.DesiredInferenceUnits : undefined, EndpointArn: output.EndpointArn !== undefined && output.EndpointArn !== null ? output.EndpointArn : undefined, LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null ? new Date(Math.round(output.LastModifiedTime * 1000)) : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, ModelArn: output.ModelArn !== undefined && output.ModelArn !== null ? output.ModelArn : undefined, Status: output.Status !== undefined && output.Status !== null ? output.Status : undefined, }; }; var deserializeAws_json1_1EndpointPropertiesList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1EndpointProperties(entry, context); }); }; var deserializeAws_json1_1EntitiesDetectionJobProperties = function (output, context) { return { __type: "EntitiesDetectionJobProperties", DataAccessRoleArn: output.DataAccessRoleArn !== undefined && output.DataAccessRoleArn !== null ? output.DataAccessRoleArn : undefined, EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined, EntityRecognizerArn: output.EntityRecognizerArn !== undefined && output.EntityRecognizerArn !== null ? output.EntityRecognizerArn : undefined, InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context) : undefined, JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobName: output.JobName !== undefined && output.JobName !== null ? output.JobName : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, LanguageCode: output.LanguageCode !== undefined && output.LanguageCode !== null ? output.LanguageCode : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context) : undefined, SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null ? new Date(Math.round(output.SubmitTime * 1000)) : undefined, VolumeKmsKeyId: output.VolumeKmsKeyId !== undefined && output.VolumeKmsKeyId !== null ? output.VolumeKmsKeyId : undefined, VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined, }; }; var deserializeAws_json1_1EntitiesDetectionJobPropertiesList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1EntitiesDetectionJobProperties(entry, context); }); }; var deserializeAws_json1_1Entity = function (output, context) { return { __type: "Entity", BeginOffset: output.BeginOffset !== undefined && output.BeginOffset !== null ? output.BeginOffset : undefined, EndOffset: output.EndOffset !== undefined && output.EndOffset !== null ? output.EndOffset : undefined, Score: output.Score !== undefined && output.Score !== null ? output.Score : undefined, Text: output.Text !== undefined && output.Text !== null ? output.Text : undefined, Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, }; }; var deserializeAws_json1_1EntityRecognizerAnnotations = function (output, context) { return { __type: "EntityRecognizerAnnotations", S3Uri: output.S3Uri !== undefined && output.S3Uri !== null ? output.S3Uri : undefined, }; }; var deserializeAws_json1_1EntityRecognizerDocuments = function (output, context) { return { __type: "EntityRecognizerDocuments", S3Uri: output.S3Uri !== undefined && output.S3Uri !== null ? output.S3Uri : undefined, }; }; var deserializeAws_json1_1EntityRecognizerEntityList = function (output, context) { return { __type: "EntityRecognizerEntityList", S3Uri: output.S3Uri !== undefined && output.S3Uri !== null ? output.S3Uri : undefined, }; }; var deserializeAws_json1_1EntityRecognizerEvaluationMetrics = function (output, context) { return { __type: "EntityRecognizerEvaluationMetrics", F1Score: output.F1Score !== undefined && output.F1Score !== null ? output.F1Score : undefined, Precision: output.Precision !== undefined && output.Precision !== null ? output.Precision : undefined, Recall: output.Recall !== undefined && output.Recall !== null ? output.Recall : undefined, }; }; var deserializeAws_json1_1EntityRecognizerInputDataConfig = function (output, context) { return { __type: "EntityRecognizerInputDataConfig", Annotations: output.Annotations !== undefined && output.Annotations !== null ? deserializeAws_json1_1EntityRecognizerAnnotations(output.Annotations, context) : undefined, Documents: output.Documents !== undefined && output.Documents !== null ? deserializeAws_json1_1EntityRecognizerDocuments(output.Documents, context) : undefined, EntityList: output.EntityList !== undefined && output.EntityList !== null ? deserializeAws_json1_1EntityRecognizerEntityList(output.EntityList, context) : undefined, EntityTypes: output.EntityTypes !== undefined && output.EntityTypes !== null ? deserializeAws_json1_1EntityTypesList(output.EntityTypes, context) : undefined, }; }; var deserializeAws_json1_1EntityRecognizerMetadata = function (output, context) { return { __type: "EntityRecognizerMetadata", EntityTypes: output.EntityTypes !== undefined && output.EntityTypes !== null ? deserializeAws_json1_1EntityRecognizerMetadataEntityTypesList(output.EntityTypes, context) : undefined, EvaluationMetrics: output.EvaluationMetrics !== undefined && output.EvaluationMetrics !== null ? deserializeAws_json1_1EntityRecognizerEvaluationMetrics(output.EvaluationMetrics, context) : undefined, NumberOfTestDocuments: output.NumberOfTestDocuments !== undefined && output.NumberOfTestDocuments !== null ? output.NumberOfTestDocuments : undefined, NumberOfTrainedDocuments: output.NumberOfTrainedDocuments !== undefined && output.NumberOfTrainedDocuments !== null ? output.NumberOfTrainedDocuments : undefined, }; }; var deserializeAws_json1_1EntityRecognizerMetadataEntityTypesList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1EntityRecognizerMetadataEntityTypesListItem(entry, context); }); }; var deserializeAws_json1_1EntityRecognizerMetadataEntityTypesListItem = function (output, context) { return { __type: "EntityRecognizerMetadataEntityTypesListItem", EvaluationMetrics: output.EvaluationMetrics !== undefined && output.EvaluationMetrics !== null ? deserializeAws_json1_1EntityTypesEvaluationMetrics(output.EvaluationMetrics, context) : undefined, NumberOfTrainMentions: output.NumberOfTrainMentions !== undefined && output.NumberOfTrainMentions !== null ? output.NumberOfTrainMentions : undefined, Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, }; }; var deserializeAws_json1_1EntityRecognizerProperties = function (output, context) { return { __type: "EntityRecognizerProperties", DataAccessRoleArn: output.DataAccessRoleArn !== undefined && output.DataAccessRoleArn !== null ? output.DataAccessRoleArn : undefined, EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined, EntityRecognizerArn: output.EntityRecognizerArn !== undefined && output.EntityRecognizerArn !== null ? output.EntityRecognizerArn : undefined, InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null ? deserializeAws_json1_1EntityRecognizerInputDataConfig(output.InputDataConfig, context) : undefined, LanguageCode: output.LanguageCode !== undefined && output.LanguageCode !== null ? output.LanguageCode : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, RecognizerMetadata: output.RecognizerMetadata !== undefined && output.RecognizerMetadata !== null ? deserializeAws_json1_1EntityRecognizerMetadata(output.RecognizerMetadata, context) : undefined, Status: output.Status !== undefined && output.Status !== null ? output.Status : undefined, SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null ? new Date(Math.round(output.SubmitTime * 1000)) : undefined, TrainingEndTime: output.TrainingEndTime !== undefined && output.TrainingEndTime !== null ? new Date(Math.round(output.TrainingEndTime * 1000)) : undefined, TrainingStartTime: output.TrainingStartTime !== undefined && output.TrainingStartTime !== null ? new Date(Math.round(output.TrainingStartTime * 1000)) : undefined, VolumeKmsKeyId: output.VolumeKmsKeyId !== undefined && output.VolumeKmsKeyId !== null ? output.VolumeKmsKeyId : undefined, VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined, }; }; var deserializeAws_json1_1EntityRecognizerPropertiesList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1EntityRecognizerProperties(entry, context); }); }; var deserializeAws_json1_1EntityTypesEvaluationMetrics = function (output, context) { return { __type: "EntityTypesEvaluationMetrics", F1Score: output.F1Score !== undefined && output.F1Score !== null ? output.F1Score : undefined, Precision: output.Precision !== undefined && output.Precision !== null ? output.Precision : undefined, Recall: output.Recall !== undefined && output.Recall !== null ? output.Recall : undefined, }; }; var deserializeAws_json1_1EntityTypesList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1EntityTypesListItem(entry, context); }); }; var deserializeAws_json1_1EntityTypesListItem = function (output, context) { return { __type: "EntityTypesListItem", Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, }; }; var deserializeAws_json1_1InputDataConfig = function (output, context) { return { __type: "InputDataConfig", InputFormat: output.InputFormat !== undefined && output.InputFormat !== null ? output.InputFormat : undefined, S3Uri: output.S3Uri !== undefined && output.S3Uri !== null ? output.S3Uri : undefined, }; }; var deserializeAws_json1_1InternalServerException = function (output, context) { return { __type: "InternalServerException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1InvalidFilterException = function (output, context) { return { __type: "InvalidFilterException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1InvalidRequestException = function (output, context) { return { __type: "InvalidRequestException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1JobNotFoundException = function (output, context) { return { __type: "JobNotFoundException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1KeyPhrase = function (output, context) { return { __type: "KeyPhrase", BeginOffset: output.BeginOffset !== undefined && output.BeginOffset !== null ? output.BeginOffset : undefined, EndOffset: output.EndOffset !== undefined && output.EndOffset !== null ? output.EndOffset : undefined, Score: output.Score !== undefined && output.Score !== null ? output.Score : undefined, Text: output.Text !== undefined && output.Text !== null ? output.Text : undefined, }; }; var deserializeAws_json1_1KeyPhrasesDetectionJobProperties = function (output, context) { return { __type: "KeyPhrasesDetectionJobProperties", DataAccessRoleArn: output.DataAccessRoleArn !== undefined && output.DataAccessRoleArn !== null ? output.DataAccessRoleArn : undefined, EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined, InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context) : undefined, JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobName: output.JobName !== undefined && output.JobName !== null ? output.JobName : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, LanguageCode: output.LanguageCode !== undefined && output.LanguageCode !== null ? output.LanguageCode : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context) : undefined, SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null ? new Date(Math.round(output.SubmitTime * 1000)) : undefined, VolumeKmsKeyId: output.VolumeKmsKeyId !== undefined && output.VolumeKmsKeyId !== null ? output.VolumeKmsKeyId : undefined, VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined, }; }; var deserializeAws_json1_1KeyPhrasesDetectionJobPropertiesList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1KeyPhrasesDetectionJobProperties(entry, context); }); }; var deserializeAws_json1_1KmsKeyValidationException = function (output, context) { return { __type: "KmsKeyValidationException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1ListDocumentClassificationJobsResponse = function (output, context) { return { __type: "ListDocumentClassificationJobsResponse", DocumentClassificationJobPropertiesList: output.DocumentClassificationJobPropertiesList !== undefined && output.DocumentClassificationJobPropertiesList !== null ? deserializeAws_json1_1DocumentClassificationJobPropertiesList(output.DocumentClassificationJobPropertiesList, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_json1_1ListDocumentClassifiersResponse = function (output, context) { return { __type: "ListDocumentClassifiersResponse", DocumentClassifierPropertiesList: output.DocumentClassifierPropertiesList !== undefined && output.DocumentClassifierPropertiesList !== null ? deserializeAws_json1_1DocumentClassifierPropertiesList(output.DocumentClassifierPropertiesList, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_json1_1ListDominantLanguageDetectionJobsResponse = function (output, context) { return { __type: "ListDominantLanguageDetectionJobsResponse", DominantLanguageDetectionJobPropertiesList: output.DominantLanguageDetectionJobPropertiesList !== undefined && output.DominantLanguageDetectionJobPropertiesList !== null ? deserializeAws_json1_1DominantLanguageDetectionJobPropertiesList(output.DominantLanguageDetectionJobPropertiesList, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_json1_1ListEndpointsResponse = function (output, context) { return { __type: "ListEndpointsResponse", EndpointPropertiesList: output.EndpointPropertiesList !== undefined && output.EndpointPropertiesList !== null ? deserializeAws_json1_1EndpointPropertiesList(output.EndpointPropertiesList, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_json1_1ListEntitiesDetectionJobsResponse = function (output, context) { return { __type: "ListEntitiesDetectionJobsResponse", EntitiesDetectionJobPropertiesList: output.EntitiesDetectionJobPropertiesList !== undefined && output.EntitiesDetectionJobPropertiesList !== null ? deserializeAws_json1_1EntitiesDetectionJobPropertiesList(output.EntitiesDetectionJobPropertiesList, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_json1_1ListEntityRecognizersResponse = function (output, context) { return { __type: "ListEntityRecognizersResponse", EntityRecognizerPropertiesList: output.EntityRecognizerPropertiesList !== undefined && output.EntityRecognizerPropertiesList !== null ? deserializeAws_json1_1EntityRecognizerPropertiesList(output.EntityRecognizerPropertiesList, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_json1_1ListKeyPhrasesDetectionJobsResponse = function (output, context) { return { __type: "ListKeyPhrasesDetectionJobsResponse", KeyPhrasesDetectionJobPropertiesList: output.KeyPhrasesDetectionJobPropertiesList !== undefined && output.KeyPhrasesDetectionJobPropertiesList !== null ? deserializeAws_json1_1KeyPhrasesDetectionJobPropertiesList(output.KeyPhrasesDetectionJobPropertiesList, context) : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, }; }; var deserializeAws_json1_1ListOfClasses = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1DocumentClass(entry, context); }); }; var deserializeAws_json1_1ListOfDetectDominantLanguageResult = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1BatchDetectDominantLanguageItemResult(entry, context); }); }; var deserializeAws_json1_1ListOfDetectEntitiesResult = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1BatchDetectEntitiesItemResult(entry, context); }); }; var deserializeAws_json1_1ListOfDetectKeyPhrasesResult = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1BatchDetectKeyPhrasesItemResult(entry, context); }); }; var deserializeAws_json1_1ListOfDetectSentimentResult = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1BatchDetectSentimentItemResult(entry, context); }); }; var deserializeAws_json1_1ListOfDetectSyntaxResult = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1BatchDetectSyntaxItemResult(entry, context); }); }; var deserializeAws_json1_1ListOfDominantLanguages = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1DominantLanguage(entry, context); }); }; var deserializeAws_json1_1ListOfEntities = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Entity(entry, context); }); }; var deserializeAws_json1_1ListOfKeyPhrases = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1KeyPhrase(entry, context); }); }; var deserializeAws_json1_1ListOfLabels = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1DocumentLabel(entry, context); }); }; var deserializeAws_json1_1ListOfSyntaxTokens = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1SyntaxToken(entry, context); }); }; var deserializeAws_json1_1ListSentimentDetectionJobsResponse = function (output, context) { return { __type: "ListSentimentDetectionJobsResponse", NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, SentimentDetectionJobPropertiesList: output.SentimentDetectionJobPropertiesList !== undefined && output.SentimentDetectionJobPropertiesList !== null ? deserializeAws_json1_1SentimentDetectionJobPropertiesList(output.SentimentDetectionJobPropertiesList, context) : undefined, }; }; var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) { return { __type: "ListTagsForResourceResponse", ResourceArn: output.ResourceArn !== undefined && output.ResourceArn !== null ? output.ResourceArn : undefined, Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined, }; }; var deserializeAws_json1_1ListTopicsDetectionJobsResponse = function (output, context) { return { __type: "ListTopicsDetectionJobsResponse", NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, TopicsDetectionJobPropertiesList: output.TopicsDetectionJobPropertiesList !== undefined && output.TopicsDetectionJobPropertiesList !== null ? deserializeAws_json1_1TopicsDetectionJobPropertiesList(output.TopicsDetectionJobPropertiesList, context) : undefined, }; }; var deserializeAws_json1_1OutputDataConfig = function (output, context) { return { __type: "OutputDataConfig", KmsKeyId: output.KmsKeyId !== undefined && output.KmsKeyId !== null ? output.KmsKeyId : undefined, S3Uri: output.S3Uri !== undefined && output.S3Uri !== null ? output.S3Uri : undefined, }; }; var deserializeAws_json1_1PartOfSpeechTag = function (output, context) { return { __type: "PartOfSpeechTag", Score: output.Score !== undefined && output.Score !== null ? output.Score : undefined, Tag: output.Tag !== undefined && output.Tag !== null ? output.Tag : undefined, }; }; var deserializeAws_json1_1ResourceInUseException = function (output, context) { return { __type: "ResourceInUseException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1ResourceLimitExceededException = function (output, context) { return { __type: "ResourceLimitExceededException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1ResourceNotFoundException = function (output, context) { return { __type: "ResourceNotFoundException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1ResourceUnavailableException = function (output, context) { return { __type: "ResourceUnavailableException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1SecurityGroupIds = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1SentimentDetectionJobProperties = function (output, context) { return { __type: "SentimentDetectionJobProperties", DataAccessRoleArn: output.DataAccessRoleArn !== undefined && output.DataAccessRoleArn !== null ? output.DataAccessRoleArn : undefined, EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined, InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context) : undefined, JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobName: output.JobName !== undefined && output.JobName !== null ? output.JobName : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, LanguageCode: output.LanguageCode !== undefined && output.LanguageCode !== null ? output.LanguageCode : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context) : undefined, SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null ? new Date(Math.round(output.SubmitTime * 1000)) : undefined, VolumeKmsKeyId: output.VolumeKmsKeyId !== undefined && output.VolumeKmsKeyId !== null ? output.VolumeKmsKeyId : undefined, VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined, }; }; var deserializeAws_json1_1SentimentDetectionJobPropertiesList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1SentimentDetectionJobProperties(entry, context); }); }; var deserializeAws_json1_1SentimentScore = function (output, context) { return { __type: "SentimentScore", Mixed: output.Mixed !== undefined && output.Mixed !== null ? output.Mixed : undefined, Negative: output.Negative !== undefined && output.Negative !== null ? output.Negative : undefined, Neutral: output.Neutral !== undefined && output.Neutral !== null ? output.Neutral : undefined, Positive: output.Positive !== undefined && output.Positive !== null ? output.Positive : undefined, }; }; var deserializeAws_json1_1StartDocumentClassificationJobResponse = function (output, context) { return { __type: "StartDocumentClassificationJobResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, }; }; var deserializeAws_json1_1StartDominantLanguageDetectionJobResponse = function (output, context) { return { __type: "StartDominantLanguageDetectionJobResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, }; }; var deserializeAws_json1_1StartEntitiesDetectionJobResponse = function (output, context) { return { __type: "StartEntitiesDetectionJobResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, }; }; var deserializeAws_json1_1StartKeyPhrasesDetectionJobResponse = function (output, context) { return { __type: "StartKeyPhrasesDetectionJobResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, }; }; var deserializeAws_json1_1StartSentimentDetectionJobResponse = function (output, context) { return { __type: "StartSentimentDetectionJobResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, }; }; var deserializeAws_json1_1StartTopicsDetectionJobResponse = function (output, context) { return { __type: "StartTopicsDetectionJobResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, }; }; var deserializeAws_json1_1StopDominantLanguageDetectionJobResponse = function (output, context) { return { __type: "StopDominantLanguageDetectionJobResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, }; }; var deserializeAws_json1_1StopEntitiesDetectionJobResponse = function (output, context) { return { __type: "StopEntitiesDetectionJobResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, }; }; var deserializeAws_json1_1StopKeyPhrasesDetectionJobResponse = function (output, context) { return { __type: "StopKeyPhrasesDetectionJobResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, }; }; var deserializeAws_json1_1StopSentimentDetectionJobResponse = function (output, context) { return { __type: "StopSentimentDetectionJobResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, }; }; var deserializeAws_json1_1StopTrainingDocumentClassifierResponse = function (output, context) { return { __type: "StopTrainingDocumentClassifierResponse", }; }; var deserializeAws_json1_1StopTrainingEntityRecognizerResponse = function (output, context) { return { __type: "StopTrainingEntityRecognizerResponse", }; }; var deserializeAws_json1_1Subnets = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1SyntaxToken = function (output, context) { return { __type: "SyntaxToken", BeginOffset: output.BeginOffset !== undefined && output.BeginOffset !== null ? output.BeginOffset : undefined, EndOffset: output.EndOffset !== undefined && output.EndOffset !== null ? output.EndOffset : undefined, PartOfSpeech: output.PartOfSpeech !== undefined && output.PartOfSpeech !== null ? deserializeAws_json1_1PartOfSpeechTag(output.PartOfSpeech, context) : undefined, Text: output.Text !== undefined && output.Text !== null ? output.Text : undefined, TokenId: output.TokenId !== undefined && output.TokenId !== null ? output.TokenId : undefined, }; }; var deserializeAws_json1_1Tag = function (output, context) { return { __type: "Tag", Key: output.Key !== undefined && output.Key !== null ? output.Key : undefined, Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined, }; }; var deserializeAws_json1_1TagList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Tag(entry, context); }); }; var deserializeAws_json1_1TagResourceResponse = function (output, context) { return { __type: "TagResourceResponse", }; }; var deserializeAws_json1_1TextSizeLimitExceededException = function (output, context) { return { __type: "TextSizeLimitExceededException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1TooManyRequestsException = function (output, context) { return { __type: "TooManyRequestsException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1TooManyTagKeysException = function (output, context) { return { __type: "TooManyTagKeysException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1TooManyTagsException = function (output, context) { return { __type: "TooManyTagsException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1TopicsDetectionJobProperties = function (output, context) { return { __type: "TopicsDetectionJobProperties", DataAccessRoleArn: output.DataAccessRoleArn !== undefined && output.DataAccessRoleArn !== null ? output.DataAccessRoleArn : undefined, EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined, InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context) : undefined, JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobName: output.JobName !== undefined && output.JobName !== null ? output.JobName : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, NumberOfTopics: output.NumberOfTopics !== undefined && output.NumberOfTopics !== null ? output.NumberOfTopics : undefined, OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context) : undefined, SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null ? new Date(Math.round(output.SubmitTime * 1000)) : undefined, VolumeKmsKeyId: output.VolumeKmsKeyId !== undefined && output.VolumeKmsKeyId !== null ? output.VolumeKmsKeyId : undefined, VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined, }; }; var deserializeAws_json1_1TopicsDetectionJobPropertiesList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1TopicsDetectionJobProperties(entry, context); }); }; var deserializeAws_json1_1UnsupportedLanguageException = function (output, context) { return { __type: "UnsupportedLanguageException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1UntagResourceResponse = function (output, context) { return { __type: "UntagResourceResponse", }; }; var deserializeAws_json1_1UpdateEndpointResponse = function (output, context) { return { __type: "UpdateEndpointResponse", }; }; var deserializeAws_json1_1VpcConfig = function (output, context) { return { __type: "VpcConfig", SecurityGroupIds: output.SecurityGroupIds !== undefined && output.SecurityGroupIds !== null ? deserializeAws_json1_1SecurityGroupIds(output.SecurityGroupIds, context) : undefined, Subnets: output.Subnets !== undefined && output.Subnets !== null ? deserializeAws_json1_1Subnets(output.Subnets, context) : undefined, }; }; var deserializeMetadata = function (output) { return ({ httpStatusCode: output.statusCode, httpHeaders: output.headers, requestId: output.headers["x-amzn-requestid"], }); }; // Collect low-level response body stream to Uint8Array. var collectBody = function (streamBody, context) { if (streamBody === void 0) { streamBody = new Uint8Array(); } if (streamBody instanceof Uint8Array) { return Promise.resolve(streamBody); } return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); }; // Encode Uint8Array data into string with utf-8. var collectBodyString = function (streamBody, context) { return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); }); }; var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var _a, hostname, _b, protocol, port, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; contents = { protocol: protocol, hostname: hostname, port: port, method: "POST", path: path, headers: headers, }; if (resolvedHostname !== undefined) { contents.hostname = resolvedHostname; } if (body !== undefined) { contents.body = body; } return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"](contents)]; } }); }); }; var parseBody = function (streamBody, context) { return collectBodyString(streamBody, context).then(function (encoded) { if (encoded.length) { return JSON.parse(encoded); } return {}; }); }; //# sourceMappingURL=Aws_json1_1.js.map /***/ }), /***/ "YKz8": /*!***************************************************************************!*\ !*** ./node_modules/@aws-amplify/auth/lib-esm/common/AuthErrorStrings.js ***! \***************************************************************************/ /*! exports provided: AuthErrorStrings */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthErrorStrings", function() { return AuthErrorStrings; }); var AuthErrorStrings; (function (AuthErrorStrings) { AuthErrorStrings["DEFAULT_MSG"] = "Authentication Error"; AuthErrorStrings["EMPTY_USERNAME"] = "Username cannot be empty"; AuthErrorStrings["INVALID_USERNAME"] = "The username should either be a string or one of the sign in types"; AuthErrorStrings["EMPTY_PASSWORD"] = "Password cannot be empty"; AuthErrorStrings["EMPTY_CODE"] = "Confirmation code cannot be empty"; AuthErrorStrings["SIGN_UP_ERROR"] = "Error creating account"; AuthErrorStrings["NO_MFA"] = "No valid MFA method provided"; AuthErrorStrings["INVALID_MFA"] = "Invalid MFA type"; AuthErrorStrings["EMPTY_CHALLENGE"] = "Challenge response cannot be empty"; AuthErrorStrings["NO_USER_SESSION"] = "Failed to get the session because the user is empty"; })(AuthErrorStrings || (AuthErrorStrings = {})); //# sourceMappingURL=AuthErrorStrings.js.map /***/ }), /***/ "YOij": /*!*******************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/RekognitionClient.js ***! \*******************************************************************************/ /*! exports provided: RekognitionClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RekognitionClient", function() { return RekognitionClient; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./runtimeConfig */ "ptGU"); /* harmony import */ var _aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/config-resolver */ "NtRE"); /* harmony import */ var _aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-content-length */ "naxo"); /* harmony import */ var _aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-host-header */ "Nl9j"); /* harmony import */ var _aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-logger */ "+tRG"); /* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "UMev"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/middleware-user-agent */ "87YT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); /** *

This is the Amazon Rekognition API reference.

*/ var RekognitionClient = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RekognitionClient, _super); function RekognitionClient(configuration) { var _this = this; var _config_0 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__["ClientDefaultValues"]), configuration); var _config_1 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveRegionConfig"])(_config_0); var _config_2 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveEndpointsConfig"])(_config_1); var _config_3 = Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["resolveAwsAuthConfig"])(_config_2); var _config_4 = Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["resolveRetryConfig"])(_config_3); var _config_5 = Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["resolveUserAgentConfig"])(_config_4); var _config_6 = Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["resolveHostHeaderConfig"])(_config_5); var _config_7 = Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__["resolveLoggerConfig"])(_config_6); _this = _super.call(this, _config_7) || this; _this.config = _config_7; _this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["getAwsAuthPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["getRetryPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["getUserAgentPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__["getContentLengthPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["getHostHeaderPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__["getLoggerPlugin"])(_this.config)); return _this; } RekognitionClient.prototype.destroy = function () { _super.prototype.destroy.call(this); }; return RekognitionClient; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__["Client"])); //# sourceMappingURL=RekognitionClient.js.map /***/ }), /***/ "YQzk": /*!***********************************************!*\ !*** ./node_modules/graphql/jsutils/find.mjs ***! \***********************************************/ /*! exports provided: default */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return find; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function find(list, predicate) { for (var i = 0; i < list.length; i++) { if (predicate(list[i])) { return list[i]; } } } /***/ }), /***/ "YVnI": /*!*********************************************************************!*\ !*** ./node_modules/@aws-amplify/datastore/node_modules/uuid/v1.js ***! \*********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var rng = __webpack_require__(/*! ./lib/rng */ "IljQ"); var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "oKM/"); // **`v1()` - Generate time-based UUID** // // Inspired by https://github.com/LiosK/UUID.js // and http://docs.python.org/library/uuid.html var _nodeId; var _clockseq; // Previous uuid creation time var _lastMSecs = 0; var _lastNSecs = 0; // See https://github.com/broofa/node-uuid for API details function v1(options, buf, offset) { var i = buf && offset || 0; var b = buf || []; options = options || {}; var node = options.node || _nodeId; var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not // specified. We do this lazily to minimize issues related to insufficient // system entropy. See #189 if (node == null || clockseq == null) { var seedBytes = rng(); if (node == null) { // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) node = _nodeId = [ seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5] ]; } if (clockseq == null) { // Per 4.2.2, randomize (14 bit) clockseq clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; } } // UUID timestamps are 100 nano-second units since the Gregorian epoch, // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime(); // Per 4.2.1.2, use count of uuid's generated during the current clock // cycle to simulate higher resolution clock var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000; // Per 4.2.1.2, Bump clockseq on clock regression if (dt < 0 && options.clockseq === undefined) { clockseq = clockseq + 1 & 0x3fff; } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new // time interval if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { nsecs = 0; } // Per 4.2.1.2 Throw error if too many uuids are requested if (nsecs >= 10000) { throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec'); } _lastMSecs = msecs; _lastNSecs = nsecs; _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch msecs += 12219292800000; // `time_low` var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; b[i++] = tl >>> 24 & 0xff; b[i++] = tl >>> 16 & 0xff; b[i++] = tl >>> 8 & 0xff; b[i++] = tl & 0xff; // `time_mid` var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff; b[i++] = tmh >>> 8 & 0xff; b[i++] = tmh & 0xff; // `time_high_and_version` b[i++] = tmh >>> 24 & 0xf | 0x10; // include version b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` b[i++] = clockseq & 0xff; // `node` for (var n = 0; n < 6; ++n) { b[i + n] = node[n]; } return buf ? buf : bytesToUuid(b); } module.exports = v1; /***/ }), /***/ "YWDp": /*!******************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetObjectCommand.js ***! \******************************************************************************/ /*! exports provided: GetObjectCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetObjectCommand", function() { return GetObjectCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_ssec__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-ssec */ "CXEx"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetObjectCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetObjectCommand, _super); // Start section: command_properties // End section: command_properties function GetObjectCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_ssec__WEBPACK_IMPORTED_MODULE_5__["getSsecPlugin"])(configuration)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetObjectRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetObjectOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetObjectCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetObjectCommand"])(input, context); }; GetObjectCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetObjectCommand"])(output, context); }; return GetObjectCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_6__["Command"])); //# sourceMappingURL=GetObjectCommand.js.map /***/ }), /***/ "YX4P": /*!****************************************************************!*\ !*** ./node_modules/@aws-crypto/ie11-detection/build/index.js ***! \****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(/*! tslib */ "7JaV"); tslib_1.__exportStar(__webpack_require__(/*! ./CryptoOperation */ "rU8T"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Key */ "LVIV"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./KeyOperation */ "JBVX"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./MsSubtleCrypto */ "JEbH"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./MsWindow */ "duQQ"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "YcCt": /*!********************************************!*\ !*** ./node_modules/querystring/decode.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // If obj.hasOwnProperty has been overridden, then calling // obj.hasOwnProperty(prop) will break. // See: https://github.com/joyent/node/issues/1707 function hasOwnProperty(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } module.exports = function(qs, sep, eq, options) { sep = sep || '&'; eq = eq || '='; var obj = {}; if (typeof qs !== 'string' || qs.length === 0) { return obj; } var regexp = /\+/g; qs = qs.split(sep); var maxKeys = 1000; if (options && typeof options.maxKeys === 'number') { maxKeys = options.maxKeys; } var len = qs.length; // maxKeys <= 0 means that we should not limit keys count if (maxKeys > 0 && len > maxKeys) { len = maxKeys; } for (var i = 0; i < len; ++i) { var x = qs[i].replace(regexp, '%20'), idx = x.indexOf(eq), kstr, vstr, k, v; if (idx >= 0) { kstr = x.substr(0, idx); vstr = x.substr(idx + 1); } else { kstr = x; vstr = ''; } k = decodeURIComponent(kstr); v = decodeURIComponent(vstr); if (!hasOwnProperty(obj, k)) { obj[k] = v; } else if (Array.isArray(obj[k])) { obj[k].push(v); } else { obj[k] = [obj[k], v]; } } return obj; }; /***/ }), /***/ "Yen0": /*!***********************************************************!*\ !*** ./node_modules/graphql/utilities/buildASTSchema.mjs ***! \***********************************************************/ /*! exports provided: buildASTSchema, ASTDefinitionBuilder, getDescription, buildSchema */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildASTSchema", function() { return buildASTSchema; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ASTDefinitionBuilder", function() { return ASTDefinitionBuilder; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDescription", function() { return getDescription; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildSchema", function() { return buildSchema; }); /* harmony import */ var _jsutils_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/invariant */ "2C6G"); /* harmony import */ var _jsutils_keyMap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/keyMap */ "kBjl"); /* harmony import */ var _jsutils_keyValMap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../jsutils/keyValMap */ "WXJZ"); /* harmony import */ var _valueFromAST__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./valueFromAST */ "Mbdf"); /* harmony import */ var _validation_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../validation/validate */ "EkME"); /* harmony import */ var _language_blockStringValue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../language/blockStringValue */ "uNde"); /* harmony import */ var _language_lexer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../language/lexer */ "CbW8"); /* harmony import */ var _language_parser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../language/parser */ "EMzn"); /* harmony import */ var _execution_values__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../execution/values */ "5XwX"); /* harmony import */ var _language_kinds__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../language/kinds */ "/jXB"); /* harmony import */ var _language_predicates__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../language/predicates */ "Xizt"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../type/definition */ "axIb"); /* harmony import */ var _type_directives__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../type/directives */ "4suF"); /* harmony import */ var _type_introspection__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../type/introspection */ "LViu"); /* harmony import */ var _type_scalars__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../type/scalars */ "19Hc"); /* harmony import */ var _type_schema__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../type/schema */ "51nL"); function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * This takes the ast of a schema document produced by the parse function in * src/language/parser.js. * * If no schema definition is provided, then it will look for types named Query * and Mutation. * * Given that AST it constructs a GraphQLSchema. The resulting schema * has no resolve methods, so execution will use default resolvers. * * Accepts options as a second argument: * * - commentDescriptions: * Provide true to use preceding comments as the description. * */ function buildASTSchema(documentAST, options) { !(documentAST && documentAST.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_9__["Kind"].DOCUMENT) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_0__["default"])(0, 'Must provide valid Document AST') : void 0; if (!options || !(options.assumeValid || options.assumeValidSDL)) { Object(_validation_validate__WEBPACK_IMPORTED_MODULE_4__["assertValidSDL"])(documentAST); } var schemaDef; var typeDefs = []; var nodeMap = Object.create(null); var directiveDefs = []; for (var i = 0; i < documentAST.definitions.length; i++) { var def = documentAST.definitions[i]; if (def.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_9__["Kind"].SCHEMA_DEFINITION) { schemaDef = def; } else if (Object(_language_predicates__WEBPACK_IMPORTED_MODULE_10__["isTypeDefinitionNode"])(def)) { var typeName = def.name.value; if (nodeMap[typeName]) { throw new Error("Type \"".concat(typeName, "\" was defined more than once.")); } typeDefs.push(def); nodeMap[typeName] = def; } else if (def.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_9__["Kind"].DIRECTIVE_DEFINITION) { directiveDefs.push(def); } } var operationTypes = schemaDef ? getOperationTypes(schemaDef) : { query: nodeMap.Query, mutation: nodeMap.Mutation, subscription: nodeMap.Subscription }; var definitionBuilder = new ASTDefinitionBuilder(nodeMap, options, function (typeRef) { throw new Error("Type \"".concat(typeRef.name.value, "\" not found in document.")); }); var directives = directiveDefs.map(function (def) { return definitionBuilder.buildDirective(def); }); // If specified directives were not explicitly declared, add them. if (!directives.some(function (directive) { return directive.name === 'skip'; })) { directives.push(_type_directives__WEBPACK_IMPORTED_MODULE_12__["GraphQLSkipDirective"]); } if (!directives.some(function (directive) { return directive.name === 'include'; })) { directives.push(_type_directives__WEBPACK_IMPORTED_MODULE_12__["GraphQLIncludeDirective"]); } if (!directives.some(function (directive) { return directive.name === 'deprecated'; })) { directives.push(_type_directives__WEBPACK_IMPORTED_MODULE_12__["GraphQLDeprecatedDirective"]); } // Note: While this could make early assertions to get the correctly // typed values below, that would throw immediately while type system // validation with validateSchema() will produce more actionable results. return new _type_schema__WEBPACK_IMPORTED_MODULE_15__["GraphQLSchema"]({ query: operationTypes.query ? definitionBuilder.buildType(operationTypes.query) : null, mutation: operationTypes.mutation ? definitionBuilder.buildType(operationTypes.mutation) : null, subscription: operationTypes.subscription ? definitionBuilder.buildType(operationTypes.subscription) : null, types: typeDefs.map(function (node) { return definitionBuilder.buildType(node); }), directives: directives, astNode: schemaDef, assumeValid: options && options.assumeValid, allowedLegacyNames: options && options.allowedLegacyNames }); function getOperationTypes(schema) { var opTypes = {}; var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = schema.operationTypes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var operationType = _step.value; var _typeName = operationType.type.name.value; var operation = operationType.operation; if (opTypes[operation]) { throw new Error("Must provide only one ".concat(operation, " type in schema.")); } if (!nodeMap[_typeName]) { throw new Error("Specified ".concat(operation, " type \"").concat(_typeName, "\" not found in document.")); } opTypes[operation] = operationType.type; } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } return opTypes; } } var ASTDefinitionBuilder = /*#__PURE__*/ function () { function ASTDefinitionBuilder(typeDefinitionsMap, options, resolveType) { _defineProperty(this, "_typeDefinitionsMap", void 0); _defineProperty(this, "_options", void 0); _defineProperty(this, "_resolveType", void 0); _defineProperty(this, "_cache", void 0); this._typeDefinitionsMap = typeDefinitionsMap; this._options = options; this._resolveType = resolveType; // Initialize to the GraphQL built in scalars and introspection types. this._cache = Object(_jsutils_keyMap__WEBPACK_IMPORTED_MODULE_1__["default"])(_type_scalars__WEBPACK_IMPORTED_MODULE_14__["specifiedScalarTypes"].concat(_type_introspection__WEBPACK_IMPORTED_MODULE_13__["introspectionTypes"]), function (type) { return type.name; }); } var _proto = ASTDefinitionBuilder.prototype; _proto.buildType = function buildType(node) { var typeName = node.name.value; if (!this._cache[typeName]) { if (node.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_9__["Kind"].NAMED_TYPE) { var defNode = this._typeDefinitionsMap[typeName]; this._cache[typeName] = defNode ? this._makeSchemaDef(defNode) : this._resolveType(node); } else { this._cache[typeName] = this._makeSchemaDef(node); } } return this._cache[typeName]; }; _proto._buildWrappedType = function _buildWrappedType(typeNode) { if (typeNode.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_9__["Kind"].LIST_TYPE) { return Object(_type_definition__WEBPACK_IMPORTED_MODULE_11__["GraphQLList"])(this._buildWrappedType(typeNode.type)); } if (typeNode.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_9__["Kind"].NON_NULL_TYPE) { return Object(_type_definition__WEBPACK_IMPORTED_MODULE_11__["GraphQLNonNull"])( // Note: GraphQLNonNull constructor validates this type this._buildWrappedType(typeNode.type)); } return this.buildType(typeNode); }; _proto.buildDirective = function buildDirective(directiveNode) { return new _type_directives__WEBPACK_IMPORTED_MODULE_12__["GraphQLDirective"]({ name: directiveNode.name.value, description: getDescription(directiveNode, this._options), locations: directiveNode.locations.map(function (node) { return node.value; }), args: directiveNode.arguments && this._makeInputValues(directiveNode.arguments), astNode: directiveNode }); }; _proto.buildField = function buildField(field) { return { // Note: While this could make assertions to get the correctly typed // value, that would throw immediately while type system validation // with validateSchema() will produce more actionable results. type: this._buildWrappedType(field.type), description: getDescription(field, this._options), args: field.arguments && this._makeInputValues(field.arguments), deprecationReason: getDeprecationReason(field), astNode: field }; }; _proto.buildInputField = function buildInputField(value) { // Note: While this could make assertions to get the correctly typed // value, that would throw immediately while type system validation var type = this._buildWrappedType(value.type); return { name: value.name.value, type: type, description: getDescription(value, this._options), defaultValue: Object(_valueFromAST__WEBPACK_IMPORTED_MODULE_3__["valueFromAST"])(value.defaultValue, type), astNode: value }; }; _proto.buildEnumValue = function buildEnumValue(value) { return { description: getDescription(value, this._options), deprecationReason: getDeprecationReason(value), astNode: value }; }; _proto._makeSchemaDef = function _makeSchemaDef(def) { switch (def.kind) { case _language_kinds__WEBPACK_IMPORTED_MODULE_9__["Kind"].OBJECT_TYPE_DEFINITION: return this._makeTypeDef(def); case _language_kinds__WEBPACK_IMPORTED_MODULE_9__["Kind"].INTERFACE_TYPE_DEFINITION: return this._makeInterfaceDef(def); case _language_kinds__WEBPACK_IMPORTED_MODULE_9__["Kind"].ENUM_TYPE_DEFINITION: return this._makeEnumDef(def); case _language_kinds__WEBPACK_IMPORTED_MODULE_9__["Kind"].UNION_TYPE_DEFINITION: return this._makeUnionDef(def); case _language_kinds__WEBPACK_IMPORTED_MODULE_9__["Kind"].SCALAR_TYPE_DEFINITION: return this._makeScalarDef(def); case _language_kinds__WEBPACK_IMPORTED_MODULE_9__["Kind"].INPUT_OBJECT_TYPE_DEFINITION: return this._makeInputObjectDef(def); default: throw new Error("Type kind \"".concat(def.kind, "\" not supported.")); } }; _proto._makeTypeDef = function _makeTypeDef(def) { var _this = this; var interfaces = def.interfaces; return new _type_definition__WEBPACK_IMPORTED_MODULE_11__["GraphQLObjectType"]({ name: def.name.value, description: getDescription(def, this._options), fields: function fields() { return _this._makeFieldDefMap(def); }, // Note: While this could make early assertions to get the correctly // typed values, that would throw immediately while type system // validation with validateSchema() will produce more actionable results. interfaces: interfaces ? function () { return interfaces.map(function (ref) { return _this.buildType(ref); }); } : [], astNode: def }); }; _proto._makeFieldDefMap = function _makeFieldDefMap(def) { var _this2 = this; return def.fields ? Object(_jsutils_keyValMap__WEBPACK_IMPORTED_MODULE_2__["default"])(def.fields, function (field) { return field.name.value; }, function (field) { return _this2.buildField(field); }) : {}; }; _proto._makeInputValues = function _makeInputValues(values) { var _this3 = this; return Object(_jsutils_keyValMap__WEBPACK_IMPORTED_MODULE_2__["default"])(values, function (value) { return value.name.value; }, function (value) { return _this3.buildInputField(value); }); }; _proto._makeInterfaceDef = function _makeInterfaceDef(def) { var _this4 = this; return new _type_definition__WEBPACK_IMPORTED_MODULE_11__["GraphQLInterfaceType"]({ name: def.name.value, description: getDescription(def, this._options), fields: function fields() { return _this4._makeFieldDefMap(def); }, astNode: def }); }; _proto._makeEnumDef = function _makeEnumDef(def) { return new _type_definition__WEBPACK_IMPORTED_MODULE_11__["GraphQLEnumType"]({ name: def.name.value, description: getDescription(def, this._options), values: this._makeValueDefMap(def), astNode: def }); }; _proto._makeValueDefMap = function _makeValueDefMap(def) { var _this5 = this; return def.values ? Object(_jsutils_keyValMap__WEBPACK_IMPORTED_MODULE_2__["default"])(def.values, function (enumValue) { return enumValue.name.value; }, function (enumValue) { return _this5.buildEnumValue(enumValue); }) : {}; }; _proto._makeUnionDef = function _makeUnionDef(def) { var _this6 = this; var types = def.types; return new _type_definition__WEBPACK_IMPORTED_MODULE_11__["GraphQLUnionType"]({ name: def.name.value, description: getDescription(def, this._options), // Note: While this could make assertions to get the correctly typed // values below, that would throw immediately while type system // validation with validateSchema() will produce more actionable results. types: types ? function () { return types.map(function (ref) { return _this6.buildType(ref); }); } : [], astNode: def }); }; _proto._makeScalarDef = function _makeScalarDef(def) { return new _type_definition__WEBPACK_IMPORTED_MODULE_11__["GraphQLScalarType"]({ name: def.name.value, description: getDescription(def, this._options), astNode: def, serialize: function serialize(value) { return value; } }); }; _proto._makeInputObjectDef = function _makeInputObjectDef(def) { var _this7 = this; return new _type_definition__WEBPACK_IMPORTED_MODULE_11__["GraphQLInputObjectType"]({ name: def.name.value, description: getDescription(def, this._options), fields: function fields() { return def.fields ? _this7._makeInputValues(def.fields) : {}; }, astNode: def }); }; return ASTDefinitionBuilder; }(); /** * Given a field or enum value node, returns the string value for the * deprecation reason. */ function getDeprecationReason(node) { var deprecated = Object(_execution_values__WEBPACK_IMPORTED_MODULE_8__["getDirectiveValues"])(_type_directives__WEBPACK_IMPORTED_MODULE_12__["GraphQLDeprecatedDirective"], node); return deprecated && deprecated.reason; } /** * Given an ast node, returns its string description. * @deprecated: provided to ease adoption and will be removed in v16. * * Accepts options as a second argument: * * - commentDescriptions: * Provide true to use preceding comments as the description. * */ function getDescription(node, options) { if (node.description) { return node.description.value; } if (options && options.commentDescriptions) { var rawValue = getLeadingCommentBlock(node); if (rawValue !== undefined) { return Object(_language_blockStringValue__WEBPACK_IMPORTED_MODULE_5__["default"])('\n' + rawValue); } } } function getLeadingCommentBlock(node) { var loc = node.loc; if (!loc) { return; } var comments = []; var token = loc.startToken.prev; while (token && token.kind === _language_lexer__WEBPACK_IMPORTED_MODULE_6__["TokenKind"].COMMENT && token.next && token.prev && token.line + 1 === token.next.line && token.line !== token.prev.line) { var value = String(token.value); comments.push(value); token = token.prev; } return comments.reverse().join('\n'); } /** * A helper function to build a GraphQLSchema directly from a source * document. */ function buildSchema(source, options) { return buildASTSchema(Object(_language_parser__WEBPACK_IMPORTED_MODULE_7__["parse"])(source, options), options); } /***/ }), /***/ "Yg+Z": /*!********************************************************************!*\ !*** ./node_modules/@aws-amplify/ui-components/dist/esm/index.mjs ***! \********************************************************************/ /*! exports provided: AuthFormField, AuthState, ChallengeName, MfaOption, UsernameAlias, AccessLevel, Translations, AUTH_CHANNEL, AUTH_STATE_CHANGE_EVENT, TOAST_AUTH_ERROR_EVENT, UI_AUTH_CHANNEL, onAuthUIStateChange */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "wAFy"); /* harmony import */ var _auth_types_78df304e_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./auth-types-78df304e.js */ "s1tr"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthFormField", function() { return _auth_types_78df304e_js__WEBPACK_IMPORTED_MODULE_1__["a"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthState", function() { return _auth_types_78df304e_js__WEBPACK_IMPORTED_MODULE_1__["A"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChallengeName", function() { return _auth_types_78df304e_js__WEBPACK_IMPORTED_MODULE_1__["C"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MfaOption", function() { return _auth_types_78df304e_js__WEBPACK_IMPORTED_MODULE_1__["M"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UsernameAlias", function() { return _auth_types_78df304e_js__WEBPACK_IMPORTED_MODULE_1__["U"]; }); /* harmony import */ var _storage_types_f257c0f2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./storage-types-f257c0f2.js */ "H8iN"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AccessLevel", function() { return _storage_types_f257c0f2_js__WEBPACK_IMPORTED_MODULE_2__["A"]; }); /* harmony import */ var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-amplify/auth */ "lJH/"); /* harmony import */ var _Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Translations-392acb9b.js */ "c82j"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Translations", function() { return _Translations_392acb9b_js__WEBPACK_IMPORTED_MODULE_4__["T"]; }); /* harmony import */ var _constants_d1abe7de_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constants-d1abe7de.js */ "/vcS"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AUTH_CHANNEL", function() { return _constants_d1abe7de_js__WEBPACK_IMPORTED_MODULE_5__["A"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AUTH_STATE_CHANGE_EVENT", function() { return _constants_d1abe7de_js__WEBPACK_IMPORTED_MODULE_5__["a"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TOAST_AUTH_ERROR_EVENT", function() { return _constants_d1abe7de_js__WEBPACK_IMPORTED_MODULE_5__["T"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UI_AUTH_CHANNEL", function() { return _constants_d1abe7de_js__WEBPACK_IMPORTED_MODULE_5__["U"]; }); /* harmony import */ var _helpers_01ecf5f9_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helpers-01ecf5f9.js */ "MFbZ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "onAuthUIStateChange", function() { return _helpers_01ecf5f9_js__WEBPACK_IMPORTED_MODULE_6__["o"]; }); /***/ }), /***/ "Ylt2": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/SubjectSubscription.js ***! \********************************************************************/ /*! exports provided: SubjectSubscription */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubjectSubscription", function() { return SubjectSubscription; }); /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Subscription */ "quSY"); class SubjectSubscription extends _Subscription__WEBPACK_IMPORTED_MODULE_0__["Subscription"] { constructor(subject, subscriber) { super(); this.subject = subject; this.subscriber = subscriber; this.closed = false; } unsubscribe() { if (this.closed) { return; } this.closed = true; const subject = this.subject; const observers = subject.observers; this.subject = null; if (!observers || observers.length === 0 || subject.isStopped || subject.closed) { return; } const subscriberIndex = observers.indexOf(this.subscriber); if (subscriberIndex !== -1) { observers.splice(subscriberIndex, 1); } } } //# sourceMappingURL=SubjectSubscription.js.map /***/ }), /***/ "YuOy": /*!*****************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-stack/dist/es/index.js ***! \*****************************************************************/ /*! exports provided: constructStack */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _MiddlewareStack__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MiddlewareStack */ "lst5"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "constructStack", function() { return _MiddlewareStack__WEBPACK_IMPORTED_MODULE_0__["constructStack"]; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL01pZGRsZXdhcmVTdGFja1wiO1xuIl19 /***/ }), /***/ "YuR2": /*!**********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/scheduler/QueueAction.js ***! \**********************************************************************/ /*! exports provided: QueueAction */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QueueAction", function() { return QueueAction; }); /* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncAction */ "3N8a"); class QueueAction extends _AsyncAction__WEBPACK_IMPORTED_MODULE_0__["AsyncAction"] { constructor(scheduler, work) { super(scheduler, work); this.scheduler = scheduler; this.work = work; } schedule(state, delay = 0) { if (delay > 0) { return super.schedule(state, delay); } this.delay = delay; this.state = state; this.scheduler.flush(this); return this; } execute(state, delay) { return (delay > 0 || this.closed) ? super.execute(state, delay) : this._execute(state, delay); } requestAsyncId(scheduler, id, delay = 0) { if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) { return super.requestAsyncId(scheduler, id, delay); } return scheduler.flush(this); } } //# sourceMappingURL=QueueAction.js.map /***/ }), /***/ "YuTi": /*!***********************************!*\ !*** (webpack)/buildin/module.js ***! \***********************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = function(module) { if (!module.webpackPolyfill) { module.deprecate = function() {}; module.paths = []; // module.parent = undefined by default if (!module.children) module.children = []; Object.defineProperty(module, "loaded", { enumerable: true, get: function() { return module.l; } }); Object.defineProperty(module, "id", { enumerable: true, get: function() { return module.i; } }); module.webpackPolyfill = 1; } return module; }; /***/ }), /***/ "YwP6": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceChannelCommand.js ***! \*********************************************************************************************/ /*! exports provided: DeleteVoiceChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelCommand", function() { return DeleteVoiceChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteVoiceChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteVoiceChannelCommand, _super); // Start section: command_properties // End section: command_properties function DeleteVoiceChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteVoiceChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteVoiceChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteVoiceChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteVoiceChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteVoiceChannelCommand"])(input, context); }; DeleteVoiceChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteVoiceChannelCommand"])(output, context); }; return DeleteVoiceChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteVoiceChannelCommand.js.map /***/ }), /***/ "YwjR": /*!*******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateAdmChannelCommand.js ***! \*******************************************************************************************/ /*! exports provided: UpdateAdmChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelCommand", function() { return UpdateAdmChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UpdateAdmChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateAdmChannelCommand, _super); // Start section: command_properties // End section: command_properties function UpdateAdmChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UpdateAdmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateAdmChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateAdmChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UpdateAdmChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateAdmChannelCommand"])(input, context); }; UpdateAdmChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateAdmChannelCommand"])(output, context); }; return UpdateAdmChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=UpdateAdmChannelCommand.js.map /***/ }), /***/ "Yxzl": /*!****************************************************************************!*\ !*** ./node_modules/@aws-sdk/eventstream-serde-universal/dist/es/index.js ***! \****************************************************************************/ /*! exports provided: eventStreamSerdeProvider, EventStreamMarshaller */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./provider */ "5AXK"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "eventStreamSerdeProvider", function() { return _provider__WEBPACK_IMPORTED_MODULE_0__["eventStreamSerdeProvider"]; }); /* harmony import */ var _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EventStreamMarshaller */ "7IyW"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_1__["EventStreamMarshaller"]; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL3Byb3ZpZGVyXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9FdmVudFN0cmVhbU1hcnNoYWxsZXJcIjtcbiJdfQ== /***/ }), /***/ "YzBE": /*!************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListShardsCommand.js ***! \************************************************************************************/ /*! exports provided: ListShardsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListShardsCommand", function() { return ListShardsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListShardsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListShardsCommand, _super); // Start section: command_properties // End section: command_properties function ListShardsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListShardsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListShardsInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListShardsOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListShardsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListShardsCommand"])(input, context); }; ListShardsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListShardsCommand"])(output, context); }; return ListShardsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListShardsCommand.js.map /***/ }), /***/ "YzUh": /*!*************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutObjectTaggingCommand.js ***! \*************************************************************************************/ /*! exports provided: PutObjectTaggingCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutObjectTaggingCommand", function() { return PutObjectTaggingCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutObjectTaggingCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutObjectTaggingCommand, _super); // Start section: command_properties // End section: command_properties function PutObjectTaggingCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutObjectTaggingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutObjectTaggingRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutObjectTaggingOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutObjectTaggingCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutObjectTaggingCommand"])(input, context); }; PutObjectTaggingCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutObjectTaggingCommand"])(output, context); }; return PutObjectTaggingCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=PutObjectTaggingCommand.js.map /***/ }), /***/ "Z0cm": /*!****************************************!*\ !*** ./node_modules/lodash/isArray.js ***! \****************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Checks if `value` is classified as an `Array` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); * // => true * * _.isArray(document.body.children); * // => false * * _.isArray('abc'); * // => false * * _.isArray(_.noop); * // => false */ var isArray = Array.isArray; module.exports = isArray; /***/ }), /***/ "Z29n": /*!*****************************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/DescribeDominantLanguageDetectionJobCommand.js ***! \*****************************************************************************************************************/ /*! exports provided: DescribeDominantLanguageDetectionJobCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeDominantLanguageDetectionJobCommand", function() { return DescribeDominantLanguageDetectionJobCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DescribeDominantLanguageDetectionJobCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeDominantLanguageDetectionJobCommand, _super); // Start section: command_properties // End section: command_properties function DescribeDominantLanguageDetectionJobCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DescribeDominantLanguageDetectionJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeDominantLanguageDetectionJobRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeDominantLanguageDetectionJobResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DescribeDominantLanguageDetectionJobCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeDominantLanguageDetectionJobCommand"])(input, context); }; DescribeDominantLanguageDetectionJobCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommand"])(output, context); }; return DescribeDominantLanguageDetectionJobCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DescribeDominantLanguageDetectionJobCommand.js.map /***/ }), /***/ "Z63c": /*!*************************************************************************!*\ !*** ./node_modules/@aws-amplify/ui-angular/__ivy_ngcc__/dist/fesm5.js ***! \*************************************************************************/ /*! exports provided: AmplifyAmazonButton, AmplifyAuth0Button, AmplifyAuthFields, AmplifyAuthenticator, AmplifyButton, AmplifyChatbot, AmplifyCheckbox, AmplifyCodeField, AmplifyConfirmSignIn, AmplifyConfirmSignUp, AmplifyContainer, AmplifyCountryDialCode, AmplifyEmailField, AmplifyFacebookButton, AmplifyFederatedButtons, AmplifyFederatedSignIn, AmplifyForgotPassword, AmplifyFormField, AmplifyFormSection, AmplifyGoogleButton, AmplifyGreetings, AmplifyHint, AmplifyIcon, AmplifyIconButton, AmplifyInput, AmplifyLabel, AmplifyLink, AmplifyLoadingSpinner, AmplifyNav, AmplifyOauthButton, AmplifyPasswordField, AmplifyPhoneField, AmplifyPhotoPicker, AmplifyPicker, AmplifyRadioButton, AmplifyRequireNewPassword, AmplifyS3Album, AmplifyS3Image, AmplifyS3ImagePicker, AmplifyS3Text, AmplifyS3TextPicker, AmplifySection, AmplifySelect, AmplifySelectMfaType, AmplifySignIn, AmplifySignInButton, AmplifySignOut, AmplifySignUp, AmplifyStrike, AmplifyToast, AmplifyTooltip, AmplifyTotpSetup, AmplifyUIAngularModule, AmplifyUsernameField, AmplifyVerifyContact, ProxyCmp, proxyInputs, proxyMethods, proxyOutputs */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyAmazonButton", function() { return AmplifyAmazonButton; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyAuth0Button", function() { return AmplifyAuth0Button; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyAuthFields", function() { return AmplifyAuthFields; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyAuthenticator", function() { return AmplifyAuthenticator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyButton", function() { return AmplifyButton; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyChatbot", function() { return AmplifyChatbot; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyCheckbox", function() { return AmplifyCheckbox; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyCodeField", function() { return AmplifyCodeField; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyConfirmSignIn", function() { return AmplifyConfirmSignIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyConfirmSignUp", function() { return AmplifyConfirmSignUp; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyContainer", function() { return AmplifyContainer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyCountryDialCode", function() { return AmplifyCountryDialCode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyEmailField", function() { return AmplifyEmailField; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyFacebookButton", function() { return AmplifyFacebookButton; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyFederatedButtons", function() { return AmplifyFederatedButtons; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyFederatedSignIn", function() { return AmplifyFederatedSignIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyForgotPassword", function() { return AmplifyForgotPassword; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyFormField", function() { return AmplifyFormField; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyFormSection", function() { return AmplifyFormSection; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyGoogleButton", function() { return AmplifyGoogleButton; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyGreetings", function() { return AmplifyGreetings; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyHint", function() { return AmplifyHint; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyIcon", function() { return AmplifyIcon; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyIconButton", function() { return AmplifyIconButton; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyInput", function() { return AmplifyInput; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyLabel", function() { return AmplifyLabel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyLink", function() { return AmplifyLink; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyLoadingSpinner", function() { return AmplifyLoadingSpinner; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyNav", function() { return AmplifyNav; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyOauthButton", function() { return AmplifyOauthButton; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyPasswordField", function() { return AmplifyPasswordField; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyPhoneField", function() { return AmplifyPhoneField; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyPhotoPicker", function() { return AmplifyPhotoPicker; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyPicker", function() { return AmplifyPicker; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyRadioButton", function() { return AmplifyRadioButton; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyRequireNewPassword", function() { return AmplifyRequireNewPassword; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyS3Album", function() { return AmplifyS3Album; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyS3Image", function() { return AmplifyS3Image; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyS3ImagePicker", function() { return AmplifyS3ImagePicker; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyS3Text", function() { return AmplifyS3Text; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyS3TextPicker", function() { return AmplifyS3TextPicker; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifySection", function() { return AmplifySection; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifySelect", function() { return AmplifySelect; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifySelectMfaType", function() { return AmplifySelectMfaType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifySignIn", function() { return AmplifySignIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifySignInButton", function() { return AmplifySignInButton; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifySignOut", function() { return AmplifySignOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifySignUp", function() { return AmplifySignUp; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyStrike", function() { return AmplifyStrike; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyToast", function() { return AmplifyToast; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyTooltip", function() { return AmplifyTooltip; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyTotpSetup", function() { return AmplifyTotpSetup; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyUIAngularModule", function() { return AmplifyUIAngularModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyUsernameField", function() { return AmplifyUsernameField; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyVerifyContact", function() { return AmplifyVerifyContact; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProxyCmp", function() { return ProxyCmp; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "proxyInputs", function() { return proxyInputs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "proxyMethods", function() { return proxyMethods; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "proxyOutputs", function() { return proxyOutputs; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp"); /* harmony import */ var _aws_amplify_ui_components_loader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-amplify/ui-components/loader */ "P3ga"); /** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** @type {?} */ var _c0 = ["*"]; var proxyInputs = (/** * @param {?} Cmp * @param {?} inputs * @return {?} */ function (Cmp, inputs) { /** @type {?} */ var Prototype = Cmp.prototype; inputs.forEach((/** * @param {?} item * @return {?} */ function (item) { Object.defineProperty(Prototype, item, { get: /** * @return {?} */ function () { return this.el[item]; }, set: /** * @param {?} val * @return {?} */ function (val) { var _this = this; this.z.runOutsideAngular((/** * @return {?} */ function () { return (_this.el[item] = val); })); } }); })); }); /** @type {?} */ var proxyMethods = (/** * @param {?} Cmp * @param {?} methods * @return {?} */ function (Cmp, methods) { /** @type {?} */ var Prototype = Cmp.prototype; methods.forEach((/** * @param {?} methodName * @return {?} */ function (methodName) { Prototype[methodName] = (/** * @return {?} */ function () { var _this = this; /** @type {?} */ var args = arguments; return this.z.runOutsideAngular((/** * @return {?} */ function () { return _this.el[methodName].apply(_this.el, args); })); }); })); }); /** @type {?} */ var proxyOutputs = (/** * @param {?} instance * @param {?} el * @param {?} events * @return {?} */ function (instance, el, events) { events.forEach((/** * @param {?} eventName * @return {?} */ function (eventName) { return instance[eventName] = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(el, eventName); })); }) // tslint:disable-next-line: only-arrow-functions ; // tslint:disable-next-line: only-arrow-functions /** * @param {?} opts * @return {?} */ function ProxyCmp(opts) { /** @type {?} */ var decorator = (/** * @param {?} cls * @return {?} */ function (cls) { if (opts.inputs) { proxyInputs(cls, opts.inputs); } if (opts.methods) { proxyMethods(cls, opts.methods); } return cls; }); return decorator; } var AmplifyAmazonButton = /** @class */ (function () { function AmplifyAmazonButton(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyAmazonButton.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyAmazonButton = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['clientId', 'handleAuthStateChange'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyAmazonButton); AmplifyAmazonButton.ɵfac = function AmplifyAmazonButton_Factory(t) { return new (t || AmplifyAmazonButton)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyAmazonButton.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyAmazonButton, selectors: [["amplify-amazon-button"]], inputs: { clientId: "clientId", handleAuthStateChange: "handleAuthStateChange" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyAmazonButton_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyAmazonButton, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-amazon-button', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['clientId', 'handleAuthStateChange'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyAmazonButton; }()); var AmplifyAuthFields = /** @class */ (function () { function AmplifyAuthFields(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyAuthFields.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyAuthFields = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['formFields'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyAuthFields); AmplifyAuthFields.ɵfac = function AmplifyAuthFields_Factory(t) { return new (t || AmplifyAuthFields)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyAuthFields.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyAuthFields, selectors: [["amplify-auth-fields"]], inputs: { formFields: "formFields" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyAuthFields_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyAuthFields, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-auth-fields', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['formFields'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyAuthFields; }()); var AmplifyAuth0Button = /** @class */ (function () { function AmplifyAuth0Button(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyAuth0Button.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyAuth0Button = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['config', 'handleAuthStateChange'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyAuth0Button); AmplifyAuth0Button.ɵfac = function AmplifyAuth0Button_Factory(t) { return new (t || AmplifyAuth0Button)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyAuth0Button.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyAuth0Button, selectors: [["amplify-auth0-button"]], inputs: { config: "config", handleAuthStateChange: "handleAuthStateChange" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyAuth0Button_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyAuth0Button, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-auth0-button', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['config', 'handleAuthStateChange'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyAuth0Button; }()); var AmplifyAuthenticator = /** @class */ (function () { function AmplifyAuthenticator(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyAuthenticator.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyAuthenticator = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['federated', 'handleAuthStateChange', 'initialAuthState', 'usernameAlias'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyAuthenticator); AmplifyAuthenticator.ɵfac = function AmplifyAuthenticator_Factory(t) { return new (t || AmplifyAuthenticator)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyAuthenticator.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyAuthenticator, selectors: [["amplify-authenticator"]], inputs: { federated: "federated", handleAuthStateChange: "handleAuthStateChange", initialAuthState: "initialAuthState", usernameAlias: "usernameAlias" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyAuthenticator_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyAuthenticator, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-authenticator', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['federated', 'handleAuthStateChange', 'initialAuthState', 'usernameAlias'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyAuthenticator; }()); var AmplifyButton = /** @class */ (function () { function AmplifyButton(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyButton.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyButton = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['disabled', 'handleButtonClick', 'icon', 'type', 'variant'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyButton); AmplifyButton.ɵfac = function AmplifyButton_Factory(t) { return new (t || AmplifyButton)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyButton.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyButton, selectors: [["amplify-button"]], inputs: { disabled: "disabled", handleButtonClick: "handleButtonClick", icon: "icon", type: "type", variant: "variant" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyButton_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyButton, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-button', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['disabled', 'handleButtonClick', 'icon', 'type', 'variant'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyButton; }()); var AmplifyChatbot = /** @class */ (function () { function AmplifyChatbot(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; proxyOutputs(this, this.el, ['chatCompleted']); } /** @nocollapse */ AmplifyChatbot.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyChatbot = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['botName', 'botTitle', 'clearOnComplete', 'conversationModeOn', 'silenceThreshold', 'silenceTime', 'textEnabled', 'voiceEnabled', 'welcomeMessage'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyChatbot); AmplifyChatbot.ɵfac = function AmplifyChatbot_Factory(t) { return new (t || AmplifyChatbot)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyChatbot.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyChatbot, selectors: [["amplify-chatbot"]], inputs: { botName: "botName", botTitle: "botTitle", clearOnComplete: "clearOnComplete", conversationModeOn: "conversationModeOn", silenceThreshold: "silenceThreshold", silenceTime: "silenceTime", textEnabled: "textEnabled", voiceEnabled: "voiceEnabled", welcomeMessage: "welcomeMessage" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyChatbot_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyChatbot, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-chatbot', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['botName', 'botTitle', 'clearOnComplete', 'conversationModeOn', 'silenceThreshold', 'silenceTime', 'textEnabled', 'voiceEnabled', 'welcomeMessage'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyChatbot; }()); var AmplifyCheckbox = /** @class */ (function () { function AmplifyCheckbox(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyCheckbox.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyCheckbox = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['checked', 'disabled', 'fieldId', 'label', 'name', 'value'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyCheckbox); AmplifyCheckbox.ɵfac = function AmplifyCheckbox_Factory(t) { return new (t || AmplifyCheckbox)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyCheckbox.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyCheckbox, selectors: [["amplify-checkbox"]], inputs: { checked: "checked", disabled: "disabled", fieldId: "fieldId", label: "label", name: "name", value: "value" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyCheckbox_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyCheckbox, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-checkbox', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['checked', 'disabled', 'fieldId', 'label', 'name', 'value'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyCheckbox; }()); var AmplifyCodeField = /** @class */ (function () { function AmplifyCodeField(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyCodeField.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyCodeField = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['disabled', 'fieldId', 'handleInputChange', 'hint', 'inputProps', 'label', 'placeholder', 'required', 'value'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyCodeField); AmplifyCodeField.ɵfac = function AmplifyCodeField_Factory(t) { return new (t || AmplifyCodeField)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyCodeField.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyCodeField, selectors: [["amplify-code-field"]], inputs: { disabled: "disabled", fieldId: "fieldId", handleInputChange: "handleInputChange", hint: "hint", inputProps: "inputProps", label: "label", placeholder: "placeholder", required: "required", value: "value" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyCodeField_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyCodeField, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-code-field', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['disabled', 'fieldId', 'handleInputChange', 'hint', 'inputProps', 'label', 'placeholder', 'required', 'value'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyCodeField; }()); var AmplifyConfirmSignIn = /** @class */ (function () { function AmplifyConfirmSignIn(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyConfirmSignIn.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyConfirmSignIn = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['formFields', 'handleAuthStateChange', 'handleSubmit', 'headerText', 'submitButtonText', 'user'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyConfirmSignIn); AmplifyConfirmSignIn.ɵfac = function AmplifyConfirmSignIn_Factory(t) { return new (t || AmplifyConfirmSignIn)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyConfirmSignIn.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyConfirmSignIn, selectors: [["amplify-confirm-sign-in"]], inputs: { formFields: "formFields", handleAuthStateChange: "handleAuthStateChange", handleSubmit: "handleSubmit", headerText: "headerText", submitButtonText: "submitButtonText", user: "user" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyConfirmSignIn_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyConfirmSignIn, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-confirm-sign-in', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['formFields', 'handleAuthStateChange', 'handleSubmit', 'headerText', 'submitButtonText', 'user'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyConfirmSignIn; }()); var AmplifyConfirmSignUp = /** @class */ (function () { function AmplifyConfirmSignUp(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyConfirmSignUp.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyConfirmSignUp = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['formFields', 'handleAuthStateChange', 'handleSubmit', 'headerText', 'submitButtonText', 'user', 'usernameAlias'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyConfirmSignUp); AmplifyConfirmSignUp.ɵfac = function AmplifyConfirmSignUp_Factory(t) { return new (t || AmplifyConfirmSignUp)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyConfirmSignUp.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyConfirmSignUp, selectors: [["amplify-confirm-sign-up"]], inputs: { formFields: "formFields", handleAuthStateChange: "handleAuthStateChange", handleSubmit: "handleSubmit", headerText: "headerText", submitButtonText: "submitButtonText", user: "user", usernameAlias: "usernameAlias" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyConfirmSignUp_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyConfirmSignUp, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-confirm-sign-up', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['formFields', 'handleAuthStateChange', 'handleSubmit', 'headerText', 'submitButtonText', 'user', 'usernameAlias'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyConfirmSignUp; }()); var AmplifyContainer = /** @class */ (function () { function AmplifyContainer(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyContainer.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyContainer.ɵfac = function AmplifyContainer_Factory(t) { return new (t || AmplifyContainer)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyContainer.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyContainer, selectors: [["amplify-container"]], ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyContainer_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyContainer, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-container', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '' }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyContainer; }()); var AmplifyCountryDialCode = /** @class */ (function () { function AmplifyCountryDialCode(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyCountryDialCode.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyCountryDialCode = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['dialCode', 'fieldId', 'handleInputChange', 'options'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyCountryDialCode); AmplifyCountryDialCode.ɵfac = function AmplifyCountryDialCode_Factory(t) { return new (t || AmplifyCountryDialCode)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyCountryDialCode.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyCountryDialCode, selectors: [["amplify-country-dial-code"]], inputs: { dialCode: "dialCode", fieldId: "fieldId", handleInputChange: "handleInputChange", options: "options" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyCountryDialCode_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyCountryDialCode, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-country-dial-code', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['dialCode', 'fieldId', 'handleInputChange', 'options'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyCountryDialCode; }()); var AmplifyEmailField = /** @class */ (function () { function AmplifyEmailField(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyEmailField.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyEmailField = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['disabled', 'fieldId', 'handleInputChange', 'inputProps', 'label', 'placeholder', 'required', 'value'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyEmailField); AmplifyEmailField.ɵfac = function AmplifyEmailField_Factory(t) { return new (t || AmplifyEmailField)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyEmailField.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyEmailField, selectors: [["amplify-email-field"]], inputs: { disabled: "disabled", fieldId: "fieldId", handleInputChange: "handleInputChange", inputProps: "inputProps", label: "label", placeholder: "placeholder", required: "required", value: "value" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyEmailField_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyEmailField, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-email-field', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['disabled', 'fieldId', 'handleInputChange', 'inputProps', 'label', 'placeholder', 'required', 'value'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyEmailField; }()); var AmplifyFacebookButton = /** @class */ (function () { function AmplifyFacebookButton(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyFacebookButton.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyFacebookButton = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['appId', 'handleAuthStateChange'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyFacebookButton); AmplifyFacebookButton.ɵfac = function AmplifyFacebookButton_Factory(t) { return new (t || AmplifyFacebookButton)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyFacebookButton.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyFacebookButton, selectors: [["amplify-facebook-button"]], inputs: { appId: "appId", handleAuthStateChange: "handleAuthStateChange" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyFacebookButton_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyFacebookButton, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-facebook-button', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['appId', 'handleAuthStateChange'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyFacebookButton; }()); var AmplifyFederatedButtons = /** @class */ (function () { function AmplifyFederatedButtons(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyFederatedButtons.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyFederatedButtons = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['authState', 'federated', 'handleAuthStateChange'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyFederatedButtons); AmplifyFederatedButtons.ɵfac = function AmplifyFederatedButtons_Factory(t) { return new (t || AmplifyFederatedButtons)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyFederatedButtons.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyFederatedButtons, selectors: [["amplify-federated-buttons"]], inputs: { authState: "authState", federated: "federated", handleAuthStateChange: "handleAuthStateChange" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyFederatedButtons_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyFederatedButtons, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-federated-buttons', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['authState', 'federated', 'handleAuthStateChange'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyFederatedButtons; }()); var AmplifyFederatedSignIn = /** @class */ (function () { function AmplifyFederatedSignIn(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyFederatedSignIn.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyFederatedSignIn = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['authState', 'federated'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyFederatedSignIn); AmplifyFederatedSignIn.ɵfac = function AmplifyFederatedSignIn_Factory(t) { return new (t || AmplifyFederatedSignIn)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyFederatedSignIn.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyFederatedSignIn, selectors: [["amplify-federated-sign-in"]], inputs: { authState: "authState", federated: "federated" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyFederatedSignIn_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyFederatedSignIn, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-federated-sign-in', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['authState', 'federated'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyFederatedSignIn; }()); var AmplifyForgotPassword = /** @class */ (function () { function AmplifyForgotPassword(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyForgotPassword.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyForgotPassword = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['formFields', 'handleAuthStateChange', 'handleSend', 'handleSubmit', 'headerText', 'sendButtonText', 'submitButtonText', 'usernameAlias'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyForgotPassword); AmplifyForgotPassword.ɵfac = function AmplifyForgotPassword_Factory(t) { return new (t || AmplifyForgotPassword)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyForgotPassword.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyForgotPassword, selectors: [["amplify-forgot-password"]], inputs: { formFields: "formFields", handleAuthStateChange: "handleAuthStateChange", handleSend: "handleSend", handleSubmit: "handleSubmit", headerText: "headerText", sendButtonText: "sendButtonText", submitButtonText: "submitButtonText", usernameAlias: "usernameAlias" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyForgotPassword_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyForgotPassword, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-forgot-password', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['formFields', 'handleAuthStateChange', 'handleSend', 'handleSubmit', 'headerText', 'sendButtonText', 'submitButtonText', 'usernameAlias'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyForgotPassword; }()); var AmplifyFormField = /** @class */ (function () { function AmplifyFormField(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyFormField.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyFormField = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['description', 'disabled', 'fieldId', 'handleInputChange', 'hint', 'inputProps', 'label', 'name', 'placeholder', 'required', 'type', 'value'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyFormField); AmplifyFormField.ɵfac = function AmplifyFormField_Factory(t) { return new (t || AmplifyFormField)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyFormField.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyFormField, selectors: [["amplify-form-field"]], inputs: { description: "description", disabled: "disabled", fieldId: "fieldId", handleInputChange: "handleInputChange", hint: "hint", inputProps: "inputProps", label: "label", name: "name", placeholder: "placeholder", required: "required", type: "type", value: "value" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyFormField_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyFormField, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-form-field', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['description', 'disabled', 'fieldId', 'handleInputChange', 'hint', 'inputProps', 'label', 'name', 'placeholder', 'required', 'type', 'value'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyFormField; }()); var AmplifyFormSection = /** @class */ (function () { function AmplifyFormSection(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyFormSection.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyFormSection = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['handleSubmit', 'headerText', 'loading', 'secondaryFooterContent', 'submitButtonText', 'testDataPrefix'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyFormSection); AmplifyFormSection.ɵfac = function AmplifyFormSection_Factory(t) { return new (t || AmplifyFormSection)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyFormSection.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyFormSection, selectors: [["amplify-form-section"]], inputs: { handleSubmit: "handleSubmit", headerText: "headerText", loading: "loading", secondaryFooterContent: "secondaryFooterContent", submitButtonText: "submitButtonText", testDataPrefix: "testDataPrefix" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyFormSection_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyFormSection, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-form-section', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['handleSubmit', 'headerText', 'loading', 'secondaryFooterContent', 'submitButtonText', 'testDataPrefix'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyFormSection; }()); var AmplifyGoogleButton = /** @class */ (function () { function AmplifyGoogleButton(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyGoogleButton.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyGoogleButton = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['clientId', 'handleAuthStateChange'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyGoogleButton); AmplifyGoogleButton.ɵfac = function AmplifyGoogleButton_Factory(t) { return new (t || AmplifyGoogleButton)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyGoogleButton.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyGoogleButton, selectors: [["amplify-google-button"]], inputs: { clientId: "clientId", handleAuthStateChange: "handleAuthStateChange" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyGoogleButton_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyGoogleButton, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-google-button', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['clientId', 'handleAuthStateChange'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyGoogleButton; }()); var AmplifyGreetings = /** @class */ (function () { function AmplifyGreetings(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyGreetings.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyGreetings = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['handleAuthStateChange', 'logo', 'username'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyGreetings); AmplifyGreetings.ɵfac = function AmplifyGreetings_Factory(t) { return new (t || AmplifyGreetings)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyGreetings.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyGreetings, selectors: [["amplify-greetings"]], inputs: { handleAuthStateChange: "handleAuthStateChange", logo: "logo", username: "username" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyGreetings_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyGreetings, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-greetings', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['handleAuthStateChange', 'logo', 'username'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyGreetings; }()); var AmplifyHint = /** @class */ (function () { function AmplifyHint(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyHint.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyHint.ɵfac = function AmplifyHint_Factory(t) { return new (t || AmplifyHint)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyHint.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyHint, selectors: [["amplify-hint"]], ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyHint_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyHint, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-hint', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '' }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyHint; }()); var AmplifyIcon = /** @class */ (function () { function AmplifyIcon(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyIcon.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyIcon = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['name'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyIcon); AmplifyIcon.ɵfac = function AmplifyIcon_Factory(t) { return new (t || AmplifyIcon)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyIcon.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyIcon, selectors: [["amplify-icon"]], inputs: { name: "name" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyIcon_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyIcon, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-icon', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['name'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyIcon; }()); var AmplifyIconButton = /** @class */ (function () { function AmplifyIconButton(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyIconButton.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyIconButton = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['autoShowTooltip', 'name', 'tooltip'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyIconButton); AmplifyIconButton.ɵfac = function AmplifyIconButton_Factory(t) { return new (t || AmplifyIconButton)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyIconButton.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyIconButton, selectors: [["amplify-icon-button"]], inputs: { autoShowTooltip: "autoShowTooltip", name: "name", tooltip: "tooltip" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyIconButton_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyIconButton, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-icon-button', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['autoShowTooltip', 'name', 'tooltip'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyIconButton; }()); var AmplifyInput = /** @class */ (function () { function AmplifyInput(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; proxyOutputs(this, this.el, ['formSubmit']); } /** @nocollapse */ AmplifyInput.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyInput = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['description', 'disabled', 'fieldId', 'handleInputChange', 'inputProps', 'name', 'placeholder', 'type', 'value'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyInput); AmplifyInput.ɵfac = function AmplifyInput_Factory(t) { return new (t || AmplifyInput)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyInput.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyInput, selectors: [["amplify-input"]], inputs: { description: "description", disabled: "disabled", fieldId: "fieldId", handleInputChange: "handleInputChange", inputProps: "inputProps", name: "name", placeholder: "placeholder", type: "type", value: "value" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyInput_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyInput, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-input', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['description', 'disabled', 'fieldId', 'handleInputChange', 'inputProps', 'name', 'placeholder', 'type', 'value'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyInput; }()); var AmplifyLabel = /** @class */ (function () { function AmplifyLabel(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyLabel.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyLabel = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['htmlFor'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyLabel); AmplifyLabel.ɵfac = function AmplifyLabel_Factory(t) { return new (t || AmplifyLabel)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyLabel.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyLabel, selectors: [["amplify-label"]], inputs: { htmlFor: "htmlFor" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyLabel_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyLabel, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-label', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['htmlFor'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyLabel; }()); var AmplifyLink = /** @class */ (function () { function AmplifyLink(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyLink.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyLink = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['role'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyLink); AmplifyLink.ɵfac = function AmplifyLink_Factory(t) { return new (t || AmplifyLink)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyLink.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyLink, selectors: [["amplify-link"]], inputs: { role: "role" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyLink_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyLink, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-link', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['role'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyLink; }()); var AmplifyLoadingSpinner = /** @class */ (function () { function AmplifyLoadingSpinner(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyLoadingSpinner.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyLoadingSpinner.ɵfac = function AmplifyLoadingSpinner_Factory(t) { return new (t || AmplifyLoadingSpinner)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyLoadingSpinner.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyLoadingSpinner, selectors: [["amplify-loading-spinner"]], ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyLoadingSpinner_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyLoadingSpinner, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-loading-spinner', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '' }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyLoadingSpinner; }()); var AmplifyNav = /** @class */ (function () { function AmplifyNav(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyNav.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyNav.ɵfac = function AmplifyNav_Factory(t) { return new (t || AmplifyNav)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyNav.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyNav, selectors: [["amplify-nav"]], ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyNav_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyNav, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-nav', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '' }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyNav; }()); var AmplifyOauthButton = /** @class */ (function () { function AmplifyOauthButton(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyOauthButton.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyOauthButton = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['config'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyOauthButton); AmplifyOauthButton.ɵfac = function AmplifyOauthButton_Factory(t) { return new (t || AmplifyOauthButton)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyOauthButton.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyOauthButton, selectors: [["amplify-oauth-button"]], inputs: { config: "config" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyOauthButton_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyOauthButton, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-oauth-button', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['config'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyOauthButton; }()); var AmplifyPasswordField = /** @class */ (function () { function AmplifyPasswordField(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyPasswordField.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyPasswordField = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['disabled', 'fieldId', 'handleInputChange', 'hint', 'inputProps', 'label', 'placeholder', 'required', 'value'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyPasswordField); AmplifyPasswordField.ɵfac = function AmplifyPasswordField_Factory(t) { return new (t || AmplifyPasswordField)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyPasswordField.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyPasswordField, selectors: [["amplify-password-field"]], inputs: { disabled: "disabled", fieldId: "fieldId", handleInputChange: "handleInputChange", hint: "hint", inputProps: "inputProps", label: "label", placeholder: "placeholder", required: "required", value: "value" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyPasswordField_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyPasswordField, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-password-field', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['disabled', 'fieldId', 'handleInputChange', 'hint', 'inputProps', 'label', 'placeholder', 'required', 'value'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyPasswordField; }()); var AmplifyPhoneField = /** @class */ (function () { function AmplifyPhoneField(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyPhoneField.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyPhoneField = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['dialCode', 'disabled', 'fieldId', 'handleInputChange', 'hint', 'inputProps', 'label', 'placeholder', 'required', 'value'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyPhoneField); AmplifyPhoneField.ɵfac = function AmplifyPhoneField_Factory(t) { return new (t || AmplifyPhoneField)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyPhoneField.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyPhoneField, selectors: [["amplify-phone-field"]], inputs: { dialCode: "dialCode", disabled: "disabled", fieldId: "fieldId", handleInputChange: "handleInputChange", hint: "hint", inputProps: "inputProps", label: "label", placeholder: "placeholder", required: "required", value: "value" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyPhoneField_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyPhoneField, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-phone-field', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['dialCode', 'disabled', 'fieldId', 'handleInputChange', 'hint', 'inputProps', 'label', 'placeholder', 'required', 'value'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyPhoneField; }()); var AmplifyPhotoPicker = /** @class */ (function () { function AmplifyPhotoPicker(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyPhotoPicker.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyPhotoPicker = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['buttonText', 'handleClick', 'headerHint', 'headerTitle', 'placeholderHint', 'previewSrc'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyPhotoPicker); AmplifyPhotoPicker.ɵfac = function AmplifyPhotoPicker_Factory(t) { return new (t || AmplifyPhotoPicker)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyPhotoPicker.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyPhotoPicker, selectors: [["amplify-photo-picker"]], inputs: { buttonText: "buttonText", handleClick: "handleClick", headerHint: "headerHint", headerTitle: "headerTitle", placeholderHint: "placeholderHint", previewSrc: "previewSrc" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyPhotoPicker_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyPhotoPicker, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-photo-picker', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['buttonText', 'handleClick', 'headerHint', 'headerTitle', 'placeholderHint', 'previewSrc'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyPhotoPicker; }()); var AmplifyPicker = /** @class */ (function () { function AmplifyPicker(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyPicker.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyPicker = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['acceptValue', 'inputHandler', 'pickerText'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyPicker); AmplifyPicker.ɵfac = function AmplifyPicker_Factory(t) { return new (t || AmplifyPicker)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyPicker.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyPicker, selectors: [["amplify-picker"]], inputs: { acceptValue: "acceptValue", inputHandler: "inputHandler", pickerText: "pickerText" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyPicker_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyPicker, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-picker', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['acceptValue', 'inputHandler', 'pickerText'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyPicker; }()); var AmplifyRadioButton = /** @class */ (function () { function AmplifyRadioButton(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyRadioButton.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyRadioButton = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['checked', 'disabled', 'fieldId', 'handleInputChange', 'inputProps', 'label', 'name', 'placeholder', 'value'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyRadioButton); AmplifyRadioButton.ɵfac = function AmplifyRadioButton_Factory(t) { return new (t || AmplifyRadioButton)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyRadioButton.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyRadioButton, selectors: [["amplify-radio-button"]], inputs: { checked: "checked", disabled: "disabled", fieldId: "fieldId", handleInputChange: "handleInputChange", inputProps: "inputProps", label: "label", name: "name", placeholder: "placeholder", value: "value" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyRadioButton_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyRadioButton, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-radio-button', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['checked', 'disabled', 'fieldId', 'handleInputChange', 'inputProps', 'label', 'name', 'placeholder', 'value'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyRadioButton; }()); var AmplifyRequireNewPassword = /** @class */ (function () { function AmplifyRequireNewPassword(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyRequireNewPassword.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyRequireNewPassword = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['formFields', 'handleAuthStateChange', 'handleSubmit', 'headerText', 'submitButtonText', 'user'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyRequireNewPassword); AmplifyRequireNewPassword.ɵfac = function AmplifyRequireNewPassword_Factory(t) { return new (t || AmplifyRequireNewPassword)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyRequireNewPassword.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyRequireNewPassword, selectors: [["amplify-require-new-password"]], inputs: { formFields: "formFields", handleAuthStateChange: "handleAuthStateChange", handleSubmit: "handleSubmit", headerText: "headerText", submitButtonText: "submitButtonText", user: "user" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyRequireNewPassword_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyRequireNewPassword, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-require-new-password', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['formFields', 'handleAuthStateChange', 'handleSubmit', 'headerText', 'submitButtonText', 'user'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyRequireNewPassword; }()); var AmplifyS3Album = /** @class */ (function () { function AmplifyS3Album(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyS3Album.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyS3Album = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['contentType', 'fileToKey', 'filter', 'handleOnError', 'handleOnLoad', 'identityId', 'level', 'path', 'picker', 'pickerText', 'sort', 'track'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyS3Album); AmplifyS3Album.ɵfac = function AmplifyS3Album_Factory(t) { return new (t || AmplifyS3Album)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyS3Album.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyS3Album, selectors: [["amplify-s3-album"]], inputs: { contentType: "contentType", fileToKey: "fileToKey", filter: "filter", handleOnError: "handleOnError", handleOnLoad: "handleOnLoad", identityId: "identityId", level: "level", path: "path", picker: "picker", pickerText: "pickerText", sort: "sort", track: "track" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyS3Album_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyS3Album, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-s3-album', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['contentType', 'fileToKey', 'filter', 'handleOnError', 'handleOnLoad', 'identityId', 'level', 'path', 'picker', 'pickerText', 'sort', 'track'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyS3Album; }()); var AmplifyS3Image = /** @class */ (function () { function AmplifyS3Image(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyS3Image.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyS3Image = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['body', 'contentType', 'handleOnError', 'handleOnLoad', 'identityId', 'imgKey', 'level', 'path', 'track'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyS3Image); AmplifyS3Image.ɵfac = function AmplifyS3Image_Factory(t) { return new (t || AmplifyS3Image)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyS3Image.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyS3Image, selectors: [["amplify-s3-image"]], inputs: { body: "body", contentType: "contentType", handleOnError: "handleOnError", handleOnLoad: "handleOnLoad", identityId: "identityId", imgKey: "imgKey", level: "level", path: "path", track: "track" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyS3Image_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyS3Image, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-s3-image', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['body', 'contentType', 'handleOnError', 'handleOnLoad', 'identityId', 'imgKey', 'level', 'path', 'track'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyS3Image; }()); var AmplifyS3ImagePicker = /** @class */ (function () { function AmplifyS3ImagePicker(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyS3ImagePicker.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyS3ImagePicker = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['buttonText', 'contentType', 'fileToKey', 'headerHint', 'headerTitle', 'identityId', 'level', 'path', 'placeholderHint', 'track'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyS3ImagePicker); AmplifyS3ImagePicker.ɵfac = function AmplifyS3ImagePicker_Factory(t) { return new (t || AmplifyS3ImagePicker)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyS3ImagePicker.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyS3ImagePicker, selectors: [["amplify-s3-image-picker"]], inputs: { buttonText: "buttonText", contentType: "contentType", fileToKey: "fileToKey", headerHint: "headerHint", headerTitle: "headerTitle", identityId: "identityId", level: "level", path: "path", placeholderHint: "placeholderHint", track: "track" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyS3ImagePicker_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyS3ImagePicker, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-s3-image-picker', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['buttonText', 'contentType', 'fileToKey', 'headerHint', 'headerTitle', 'identityId', 'level', 'path', 'placeholderHint', 'track'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyS3ImagePicker; }()); var AmplifyS3Text = /** @class */ (function () { function AmplifyS3Text(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyS3Text.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyS3Text = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['body', 'contentType', 'fallbackText', 'identityId', 'level', 'path', 'textKey', 'track'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyS3Text); AmplifyS3Text.ɵfac = function AmplifyS3Text_Factory(t) { return new (t || AmplifyS3Text)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyS3Text.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyS3Text, selectors: [["amplify-s3-text"]], inputs: { body: "body", contentType: "contentType", fallbackText: "fallbackText", identityId: "identityId", level: "level", path: "path", textKey: "textKey", track: "track" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyS3Text_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyS3Text, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-s3-text', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['body', 'contentType', 'fallbackText', 'identityId', 'level', 'path', 'textKey', 'track'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyS3Text; }()); var AmplifyS3TextPicker = /** @class */ (function () { function AmplifyS3TextPicker(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyS3TextPicker.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyS3TextPicker = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['contentType', 'fallbackText', 'fileToKey', 'identityId', 'level', 'path', 'track'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyS3TextPicker); AmplifyS3TextPicker.ɵfac = function AmplifyS3TextPicker_Factory(t) { return new (t || AmplifyS3TextPicker)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyS3TextPicker.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyS3TextPicker, selectors: [["amplify-s3-text-picker"]], inputs: { contentType: "contentType", fallbackText: "fallbackText", fileToKey: "fileToKey", identityId: "identityId", level: "level", path: "path", track: "track" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyS3TextPicker_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyS3TextPicker, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-s3-text-picker', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['contentType', 'fallbackText', 'fileToKey', 'identityId', 'level', 'path', 'track'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyS3TextPicker; }()); var AmplifySection = /** @class */ (function () { function AmplifySection(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifySection.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifySection = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['role'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifySection); AmplifySection.ɵfac = function AmplifySection_Factory(t) { return new (t || AmplifySection)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifySection.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifySection, selectors: [["amplify-section"]], inputs: { role: "role" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifySection_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifySection, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-section', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['role'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifySection; }()); var AmplifySelect = /** @class */ (function () { function AmplifySelect(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifySelect.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifySelect = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['fieldId', 'handleInputChange', 'options', 'selected'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifySelect); AmplifySelect.ɵfac = function AmplifySelect_Factory(t) { return new (t || AmplifySelect)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifySelect.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifySelect, selectors: [["amplify-select"]], inputs: { fieldId: "fieldId", handleInputChange: "handleInputChange", options: "options", selected: "selected" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifySelect_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifySelect, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-select', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['fieldId', 'handleInputChange', 'options', 'selected'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifySelect; }()); var AmplifySelectMfaType = /** @class */ (function () { function AmplifySelectMfaType(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifySelectMfaType.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifySelectMfaType = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['MFATypes', 'authData', 'handleSubmit'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifySelectMfaType); AmplifySelectMfaType.ɵfac = function AmplifySelectMfaType_Factory(t) { return new (t || AmplifySelectMfaType)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifySelectMfaType.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifySelectMfaType, selectors: [["amplify-select-mfa-type"]], inputs: { MFATypes: "MFATypes", authData: "authData", handleSubmit: "handleSubmit" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifySelectMfaType_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifySelectMfaType, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-select-mfa-type', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['MFATypes', 'authData', 'handleSubmit'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifySelectMfaType; }()); var AmplifySignIn = /** @class */ (function () { function AmplifySignIn(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifySignIn.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifySignIn = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['federated', 'formFields', 'handleAuthStateChange', 'handleSubmit', 'headerText', 'hideSignUp', 'submitButtonText', 'usernameAlias'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifySignIn); AmplifySignIn.ɵfac = function AmplifySignIn_Factory(t) { return new (t || AmplifySignIn)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifySignIn.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifySignIn, selectors: [["amplify-sign-in"]], inputs: { federated: "federated", formFields: "formFields", handleAuthStateChange: "handleAuthStateChange", handleSubmit: "handleSubmit", headerText: "headerText", hideSignUp: "hideSignUp", submitButtonText: "submitButtonText", usernameAlias: "usernameAlias" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifySignIn_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifySignIn, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-sign-in', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['federated', 'formFields', 'handleAuthStateChange', 'handleSubmit', 'headerText', 'hideSignUp', 'submitButtonText', 'usernameAlias'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifySignIn; }()); var AmplifySignInButton = /** @class */ (function () { function AmplifySignInButton(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifySignInButton.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifySignInButton = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['provider'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifySignInButton); AmplifySignInButton.ɵfac = function AmplifySignInButton_Factory(t) { return new (t || AmplifySignInButton)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifySignInButton.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifySignInButton, selectors: [["amplify-sign-in-button"]], inputs: { provider: "provider" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifySignInButton_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifySignInButton, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-sign-in-button', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['provider'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifySignInButton; }()); var AmplifySignOut = /** @class */ (function () { function AmplifySignOut(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifySignOut.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifySignOut = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['buttonText', 'handleAuthStateChange'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifySignOut); AmplifySignOut.ɵfac = function AmplifySignOut_Factory(t) { return new (t || AmplifySignOut)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifySignOut.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifySignOut, selectors: [["amplify-sign-out"]], inputs: { buttonText: "buttonText", handleAuthStateChange: "handleAuthStateChange" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifySignOut_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifySignOut, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-sign-out', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['buttonText', 'handleAuthStateChange'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifySignOut; }()); var AmplifySignUp = /** @class */ (function () { function AmplifySignUp(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifySignUp.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifySignUp = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['formFields', 'handleAuthStateChange', 'handleSubmit', 'haveAccountText', 'headerText', 'signInText', 'submitButtonText', 'usernameAlias', 'validationErrors'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifySignUp); AmplifySignUp.ɵfac = function AmplifySignUp_Factory(t) { return new (t || AmplifySignUp)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifySignUp.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifySignUp, selectors: [["amplify-sign-up"]], inputs: { formFields: "formFields", handleAuthStateChange: "handleAuthStateChange", handleSubmit: "handleSubmit", haveAccountText: "haveAccountText", headerText: "headerText", signInText: "signInText", submitButtonText: "submitButtonText", usernameAlias: "usernameAlias", validationErrors: "validationErrors" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifySignUp_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifySignUp, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-sign-up', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['formFields', 'handleAuthStateChange', 'handleSubmit', 'haveAccountText', 'headerText', 'signInText', 'submitButtonText', 'usernameAlias', 'validationErrors'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifySignUp; }()); var AmplifyStrike = /** @class */ (function () { function AmplifyStrike(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyStrike.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyStrike.ɵfac = function AmplifyStrike_Factory(t) { return new (t || AmplifyStrike)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyStrike.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyStrike, selectors: [["amplify-strike"]], ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyStrike_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyStrike, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-strike', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '' }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyStrike; }()); var AmplifyToast = /** @class */ (function () { function AmplifyToast(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyToast.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyToast = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['handleClose', 'message'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyToast); AmplifyToast.ɵfac = function AmplifyToast_Factory(t) { return new (t || AmplifyToast)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyToast.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyToast, selectors: [["amplify-toast"]], inputs: { handleClose: "handleClose", message: "message" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyToast_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyToast, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-toast', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['handleClose', 'message'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyToast; }()); var AmplifyTooltip = /** @class */ (function () { function AmplifyTooltip(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyTooltip.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyTooltip = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['shouldAutoShow', 'text'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyTooltip); AmplifyTooltip.ɵfac = function AmplifyTooltip_Factory(t) { return new (t || AmplifyTooltip)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyTooltip.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyTooltip, selectors: [["amplify-tooltip"]], inputs: { shouldAutoShow: "shouldAutoShow", text: "text" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyTooltip_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyTooltip, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-tooltip', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['shouldAutoShow', 'text'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyTooltip; }()); var AmplifyTotpSetup = /** @class */ (function () { function AmplifyTotpSetup(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyTotpSetup.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyTotpSetup = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['handleAuthStateChange', 'headerText', 'issuer', 'user'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyTotpSetup); AmplifyTotpSetup.ɵfac = function AmplifyTotpSetup_Factory(t) { return new (t || AmplifyTotpSetup)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyTotpSetup.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyTotpSetup, selectors: [["amplify-totp-setup"]], inputs: { handleAuthStateChange: "handleAuthStateChange", headerText: "headerText", issuer: "issuer", user: "user" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyTotpSetup_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyTotpSetup, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-totp-setup', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['handleAuthStateChange', 'headerText', 'issuer', 'user'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyTotpSetup; }()); var AmplifyUsernameField = /** @class */ (function () { function AmplifyUsernameField(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyUsernameField.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyUsernameField = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['disabled', 'fieldId', 'handleInputChange', 'inputProps', 'label', 'placeholder', 'required', 'value'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyUsernameField); AmplifyUsernameField.ɵfac = function AmplifyUsernameField_Factory(t) { return new (t || AmplifyUsernameField)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyUsernameField.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyUsernameField, selectors: [["amplify-username-field"]], inputs: { disabled: "disabled", fieldId: "fieldId", handleInputChange: "handleInputChange", inputProps: "inputProps", label: "label", placeholder: "placeholder", required: "required", value: "value" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyUsernameField_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyUsernameField, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-username-field', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['disabled', 'fieldId', 'handleInputChange', 'inputProps', 'label', 'placeholder', 'required', 'value'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyUsernameField; }()); var AmplifyVerifyContact = /** @class */ (function () { function AmplifyVerifyContact(c, r, z) { this.z = z; c.detach(); this.el = r.nativeElement; } /** @nocollapse */ AmplifyVerifyContact.ctorParameters = function () { return [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] } ]; }; AmplifyVerifyContact = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ ProxyCmp({ inputs: ['handleAuthStateChange', 'user'] }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]) ], AmplifyVerifyContact); AmplifyVerifyContact.ɵfac = function AmplifyVerifyContact_Factory(t) { return new (t || AmplifyVerifyContact)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }; AmplifyVerifyContact.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AmplifyVerifyContact, selectors: [["amplify-verify-contact"]], inputs: { handleAuthStateChange: "handleAuthStateChange", user: "user" }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function AmplifyVerifyContact_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); } }, encapsulation: 2, changeDetection: 0 }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyVerifyContact, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'amplify-verify-contact', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, template: '', inputs: ['handleAuthStateChange', 'user'] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })(); return AmplifyVerifyContact; }()); /** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ Object(_aws_amplify_ui_components_loader__WEBPACK_IMPORTED_MODULE_3__["defineCustomElements"])(window); /** @type {?} */ var DECLARATIONS = [ AmplifyAmazonButton, AmplifyAuth0Button, AmplifyAuthenticator, AmplifyAuthFields, AmplifyButton, AmplifyChatbot, AmplifyCheckbox, AmplifyCodeField, AmplifyConfirmSignIn, AmplifyConfirmSignUp, AmplifyContainer, AmplifyCountryDialCode, AmplifyEmailField, AmplifyFacebookButton, AmplifyFederatedButtons, AmplifyFederatedSignIn, AmplifyForgotPassword, AmplifyFormField, AmplifyFormSection, AmplifyGoogleButton, AmplifyGreetings, AmplifyHint, AmplifyIcon, AmplifyIconButton, AmplifyInput, AmplifyLabel, AmplifyLink, AmplifyLoadingSpinner, AmplifyNav, AmplifyOauthButton, AmplifyPasswordField, AmplifyPhoneField, AmplifyPhotoPicker, AmplifyPicker, AmplifyRadioButton, AmplifyRequireNewPassword, AmplifyS3Album, AmplifyS3Image, AmplifyS3ImagePicker, AmplifyS3Text, AmplifyS3TextPicker, AmplifySection, AmplifySelect, AmplifySelectMfaType, AmplifySignIn, AmplifySignInButton, AmplifySignOut, AmplifySignUp, AmplifyStrike, AmplifyToast, AmplifyTooltip, AmplifyTotpSetup, AmplifyUsernameField, AmplifyVerifyContact, ]; var AmplifyUIAngularModule = /** @class */ (function () { function AmplifyUIAngularModule() { } AmplifyUIAngularModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({ type: AmplifyUIAngularModule }); AmplifyUIAngularModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({ factory: function AmplifyUIAngularModule_Factory(t) { return new (t || AmplifyUIAngularModule)(); }, providers: [], imports: [[]] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](AmplifyUIAngularModule, { declarations: [AmplifyAmazonButton, AmplifyAuth0Button, AmplifyAuthenticator, AmplifyAuthFields, AmplifyButton, AmplifyChatbot, AmplifyCheckbox, AmplifyCodeField, AmplifyConfirmSignIn, AmplifyConfirmSignUp, AmplifyContainer, AmplifyCountryDialCode, AmplifyEmailField, AmplifyFacebookButton, AmplifyFederatedButtons, AmplifyFederatedSignIn, AmplifyForgotPassword, AmplifyFormField, AmplifyFormSection, AmplifyGoogleButton, AmplifyGreetings, AmplifyHint, AmplifyIcon, AmplifyIconButton, AmplifyInput, AmplifyLabel, AmplifyLink, AmplifyLoadingSpinner, AmplifyNav, AmplifyOauthButton, AmplifyPasswordField, AmplifyPhoneField, AmplifyPhotoPicker, AmplifyPicker, AmplifyRadioButton, AmplifyRequireNewPassword, AmplifyS3Album, AmplifyS3Image, AmplifyS3ImagePicker, AmplifyS3Text, AmplifyS3TextPicker, AmplifySection, AmplifySelect, AmplifySelectMfaType, AmplifySignIn, AmplifySignInButton, AmplifySignOut, AmplifySignUp, AmplifyStrike, AmplifyToast, AmplifyTooltip, AmplifyTotpSetup, AmplifyUsernameField, AmplifyVerifyContact], exports: [AmplifyAmazonButton, AmplifyAuth0Button, AmplifyAuthenticator, AmplifyAuthFields, AmplifyButton, AmplifyChatbot, AmplifyCheckbox, AmplifyCodeField, AmplifyConfirmSignIn, AmplifyConfirmSignUp, AmplifyContainer, AmplifyCountryDialCode, AmplifyEmailField, AmplifyFacebookButton, AmplifyFederatedButtons, AmplifyFederatedSignIn, AmplifyForgotPassword, AmplifyFormField, AmplifyFormSection, AmplifyGoogleButton, AmplifyGreetings, AmplifyHint, AmplifyIcon, AmplifyIconButton, AmplifyInput, AmplifyLabel, AmplifyLink, AmplifyLoadingSpinner, AmplifyNav, AmplifyOauthButton, AmplifyPasswordField, AmplifyPhoneField, AmplifyPhotoPicker, AmplifyPicker, AmplifyRadioButton, AmplifyRequireNewPassword, AmplifyS3Album, AmplifyS3Image, AmplifyS3ImagePicker, AmplifyS3Text, AmplifyS3TextPicker, AmplifySection, AmplifySelect, AmplifySelectMfaType, AmplifySignIn, AmplifySignInButton, AmplifySignOut, AmplifySignUp, AmplifyStrike, AmplifyToast, AmplifyTooltip, AmplifyTotpSetup, AmplifyUsernameField, AmplifyVerifyContact] }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AmplifyUIAngularModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"], args: [{ declarations: DECLARATIONS, exports: DECLARATIONS, imports: [], providers: [] }] }], function () { return []; }, null); })(); return AmplifyUIAngularModule; }()); //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVzbTUuanMiLCJzb3VyY2VzIjpbImZlc201LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7O0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBNEI7QUFDNUI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBMEI7QUFDMUI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBMkI7QUFDM0I7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBNkI7QUFDN0I7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBc0I7QUFDdEI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBR007QUFDTjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7Ozs7O3dJQUF1QjtBQUN2QjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBR007QUFDTjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7Ozs7O3dJQUF3QjtBQUN4QjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBR007QUFDTjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7Ozs7O3dJQUF5QjtBQUN6QjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBR007QUFDTjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7Ozs7O3dJQUE2QjtBQUM3QjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBR007QUFDTjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7Ozs7O3dJQUE2QjtBQUM3QjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBR007QUFDTjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBUztBQUNUO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FHTTtBQUNOO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7Ozs7d0lBQStCO0FBQy9CO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FHTTtBQUNOO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7Ozs7d0lBQTBCO0FBQzFCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FHTTtBQUNOO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7Ozs7d0lBQThCO0FBQzlCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FHTTtBQUNOO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7Ozs7d0lBQWdDO0FBQ2hDO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FHTTtBQUNOO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7Ozs7d0lBQStCO0FBQy9CO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FHTTtBQUNOO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7Ozs7d0lBQThCO0FBQzlCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FHTTtBQUNOO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7Ozs7d0lBQXlCO0FBQ3pCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FHTTtBQUNOO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7Ozs7d0lBQTJCO0FBQzNCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FHTTtBQUNOO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7Ozs7d0lBQTRCO0FBQzVCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FHTTtBQUNOO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7Ozs7d0lBQXlCO0FBQ3pCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FHTTtBQUNOO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7Ozs7O3dJQUFTO0FBQ1Q7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBb0I7QUFDcEI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBMEI7QUFDMUI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBR007QUFDTjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7Ozs7O3dJQUFxQjtBQUNyQjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBR007QUFDTjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7Ozs7O3dJQUFxQjtBQUNyQjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBR007QUFDTjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7Ozs7O3dJQUFvQjtBQUNwQjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBR007QUFDTjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBUztBQUNUO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FHTTtBQUNOO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7Ozs7O3dJQUFTO0FBQ1Q7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBMkI7QUFDM0I7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBNkI7QUFDN0I7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBMEI7QUFDMUI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBMkI7QUFDM0I7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBc0I7QUFDdEI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBMkI7QUFDM0I7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBa0M7QUFDbEM7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBdUI7QUFDdkI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBdUI7QUFDdkI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBNkI7QUFDN0I7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBc0I7QUFDdEI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBNEI7QUFDNUI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBdUI7QUFDdkI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBc0I7QUFDdEI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBNkI7QUFDN0I7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBc0I7QUFDdEI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBNEI7QUFDNUI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBdUI7QUFDdkI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozt3SUFBc0I7QUFDdEI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUdNO0FBQ047QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7Ozs7d0lBQVM7QUFDVDtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBR007QUFDTjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7Ozs7O3dJQUFxQjtBQUNyQjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBR007QUFDTjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7Ozs7O3dJQUF1QjtBQUN2QjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBR007QUFDTjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7Ozs7O3dJQUF5QjtBQUN6QjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBR007QUFDTjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7Ozs7O3dJQUE2QjtBQUM3QjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBR007QUFDTjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7Ozs7O3dJQUE2QjtBQUM3QjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7Ozs7Ozs7Z0RBUU07QUFDTjtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IF9fZGVjb3JhdGUsIF9fbWV0YWRhdGEgfSBmcm9tICd0c2xpYic7XG5pbXBvcnQgeyBDb21wb25lbnQsIENoYW5nZURldGVjdGlvblN0cmF0ZWd5LCBDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lLCBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgZnJvbUV2ZW50IH0gZnJvbSAncnhqcyc7XG5pbXBvcnQgeyBkZWZpbmVDdXN0b21FbGVtZW50cyB9IGZyb20gJ0Bhd3MtYW1wbGlmeS91aS1jb21wb25lbnRzL2xvYWRlcic7XG5cbi8qKlxuICogQGZpbGVvdmVydmlldyBhZGRlZCBieSB0c2lja2xlXG4gKiBAc3VwcHJlc3Mge2NoZWNrVHlwZXMsZXh0cmFSZXF1aXJlLG1pc3NpbmdPdmVycmlkZSxtaXNzaW5nUmV0dXJuLHVudXNlZFByaXZhdGVNZW1iZXJzLHVzZWxlc3NDb2RlfSBjaGVja2VkIGJ5IHRzY1xuICovXG4vKiogQHR5cGUgez99ICovXG52YXIgcHJveHlJbnB1dHMgPSAoLyoqXG4gKiBAcGFyYW0gez99IENtcFxuICogQHBhcmFtIHs/fSBpbnB1dHNcbiAqIEByZXR1cm4gez99XG4gKi9cbmZ1bmN0aW9uIChDbXAsIGlucHV0cykge1xuICAgIC8qKiBAdHlwZSB7P30gKi9cbiAgICB2YXIgUHJvdG90eXBlID0gQ21wLnByb3RvdHlwZTtcbiAgICBpbnB1dHMuZm9yRWFjaCgoLyoqXG4gICAgICogQHBhcmFtIHs/fSBpdGVtXG4gICAgICogQHJldHVybiB7P31cbiAgICAgKi9cbiAgICBmdW5jdGlvbiAoaXRlbSkge1xuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoUHJvdG90eXBlLCBpdGVtLCB7XG4gICAgICAgICAgICBnZXQ6IC8qKlxuICAgICAgICAgICAgICogQHJldHVybiB7P31cbiAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgZnVuY3Rpb24gKCkgeyByZXR1cm4gdGhpcy5lbFtpdGVtXTsgfSxcbiAgICAgICAgICAgIHNldDogLyoqXG4gICAgICAgICAgICAgKiBAcGFyYW0gez99IHZhbFxuICAgICAgICAgICAgICogQHJldHVybiB7P31cbiAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgZnVuY3Rpb24gKHZhbCkge1xuICAgICAgICAgICAgICAgIHZhciBfdGhpcyA9IHRoaXM7XG4gICAgICAgICAgICAgICAgdGhpcy56LnJ1bk91dHNpZGVBbmd1bGFyKCgvKipcbiAgICAgICAgICAgICAgICAgKiBAcmV0dXJuIHs/fVxuICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgIGZ1bmN0aW9uICgpIHsgcmV0dXJuIChfdGhpcy5lbFtpdGVtXSA9IHZhbCk7IH0pKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfSkpO1xufSk7XG4vKiogQHR5cGUgez99ICovXG52YXIgcHJveHlNZXRob2RzID0gKC8qKlxuICogQHBhcmFtIHs/fSBDbXBcbiAqIEBwYXJhbSB7P30gbWV0aG9kc1xuICogQHJldHVybiB7P31cbiAqL1xuZnVuY3Rpb24gKENtcCwgbWV0aG9kcykge1xuICAgIC8qKiBAdHlwZSB7P30gKi9cbiAgICB2YXIgUHJvdG90eXBlID0gQ21wLnByb3RvdHlwZTtcbiAgICBtZXRob2RzLmZvckVhY2goKC8qKlxuICAgICAqIEBwYXJhbSB7P30gbWV0aG9kTmFtZVxuICAgICAqIEByZXR1cm4gez99XG4gICAgICovXG4gICAgZnVuY3Rpb24gKG1ldGhvZE5hbWUpIHtcbiAgICAgICAgUHJvdG90eXBlW21ldGhvZE5hbWVdID0gKC8qKlxuICAgICAgICAgKiBAcmV0dXJuIHs/fVxuICAgICAgICAgKi9cbiAgICAgICAgZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgdmFyIF90aGlzID0gdGhpcztcbiAgICAgICAgICAgIC8qKiBAdHlwZSB7P30gKi9cbiAgICAgICAgICAgIHZhciBhcmdzID0gYXJndW1lbnRzO1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuei5ydW5PdXRzaWRlQW5ndWxhcigoLyoqXG4gICAgICAgICAgICAgKiBAcmV0dXJuIHs/fVxuICAgICAgICAgICAgICovXG4gICAgICAgICAgICBmdW5jdGlvbiAoKSB7IHJldHVybiBfdGhpcy5lbFttZXRob2ROYW1lXS5hcHBseShfdGhpcy5lbCwgYXJncyk7IH0pKTtcbiAgICAgICAgfSk7XG4gICAgfSkpO1xufSk7XG4vKiogQHR5cGUgez99ICovXG52YXIgcHJveHlPdXRwdXRzID0gKC8qKlxuICogQHBhcmFtIHs/fSBpbnN0YW5jZVxuICogQHBhcmFtIHs/fSBlbFxuICogQHBhcmFtIHs/fSBldmVudHNcbiAqIEByZXR1cm4gez99XG4gKi9cbmZ1bmN0aW9uIChpbnN0YW5jZSwgZWwsIGV2ZW50cykge1xuICAgIGV2ZW50cy5mb3JFYWNoKCgvKipcbiAgICAgKiBAcGFyYW0gez99IGV2ZW50TmFtZVxuICAgICAqIEByZXR1cm4gez99XG4gICAgICovXG4gICAgZnVuY3Rpb24gKGV2ZW50TmFtZSkgeyByZXR1cm4gaW5zdGFuY2VbZXZlbnROYW1lXSA9IGZyb21FdmVudChlbCwgZXZlbnROYW1lKTsgfSkpO1xufSlcbi8vIHRzbGludDpkaXNhYmxlLW5leHQtbGluZTogb25seS1hcnJvdy1mdW5jdGlvbnNcbjtcbi8vIHRzbGludDpkaXNhYmxlLW5leHQtbGluZTogb25seS1hcnJvdy1mdW5jdGlvbnNcbi8qKlxuICogQHBhcmFtIHs/fSBvcHRzXG4gKiBAcmV0dXJuIHs/fVxuICovXG5mdW5jdGlvbiBQcm94eUNtcChvcHRzKSB7XG4gICAgLyoqIEB0eXBlIHs/fSAqL1xuICAgIHZhciBkZWNvcmF0b3IgPSAoLyoqXG4gICAgICogQHBhcmFtIHs/fSBjbHNcbiAgICAgKiBAcmV0dXJuIHs/fVxuICAgICAqL1xuICAgIGZ1bmN0aW9uIChjbHMpIHtcbiAgICAgICAgaWYgKG9wdHMuaW5wdXRzKSB7XG4gICAgICAgICAgICBwcm94eUlucHV0cyhjbHMsIG9wdHMuaW5wdXRzKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAob3B0cy5tZXRob2RzKSB7XG4gICAgICAgICAgICBwcm94eU1ldGhvZHMoY2xzLCBvcHRzLm1ldGhvZHMpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBjbHM7XG4gICAgfSk7XG4gICAgcmV0dXJuIGRlY29yYXRvcjtcbn1cbnZhciBBbXBsaWZ5QW1hem9uQnV0dG9uID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlBbWF6b25CdXR0b24oYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5QW1hem9uQnV0dG9uLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktYW1hem9uLWJ1dHRvbicsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnY2xpZW50SWQnLCAnaGFuZGxlQXV0aFN0YXRlQ2hhbmdlJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5QW1hem9uQnV0dG9uLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5QW1hem9uQnV0dG9uID0gX19kZWNvcmF0ZShbXG4gICAgICAgIFByb3h5Q21wKHsgaW5wdXRzOiBbJ2NsaWVudElkJywgJ2hhbmRsZUF1dGhTdGF0ZUNoYW5nZSddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlBbWF6b25CdXR0b24pO1xuICAgIHJldHVybiBBbXBsaWZ5QW1hem9uQnV0dG9uO1xufSgpKTtcbnZhciBBbXBsaWZ5QXV0aEZpZWxkcyA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5QXV0aEZpZWxkcyhjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlBdXRoRmllbGRzLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktYXV0aC1maWVsZHMnLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JywgaW5wdXRzOiBbJ2Zvcm1GaWVsZHMnXSB9LF0gfSxcbiAgICBdO1xuICAgIC8qKiBAbm9jb2xsYXBzZSAqL1xuICAgIEFtcGxpZnlBdXRoRmllbGRzLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5QXV0aEZpZWxkcyA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydmb3JtRmllbGRzJ10gfSksXG4gICAgICAgIF9fbWV0YWRhdGEoXCJkZXNpZ246cGFyYW10eXBlc1wiLCBbQ2hhbmdlRGV0ZWN0b3JSZWYsIEVsZW1lbnRSZWYsIE5nWm9uZV0pXG4gICAgXSwgQW1wbGlmeUF1dGhGaWVsZHMpO1xuICAgIHJldHVybiBBbXBsaWZ5QXV0aEZpZWxkcztcbn0oKSk7XG52YXIgQW1wbGlmeUF1dGgwQnV0dG9uID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlBdXRoMEJ1dHRvbihjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlBdXRoMEJ1dHRvbi5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LWF1dGgwLWJ1dHRvbicsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnY29uZmlnJywgJ2hhbmRsZUF1dGhTdGF0ZUNoYW5nZSddIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeUF1dGgwQnV0dG9uLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5QXV0aDBCdXR0b24gPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnY29uZmlnJywgJ2hhbmRsZUF1dGhTdGF0ZUNoYW5nZSddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlBdXRoMEJ1dHRvbik7XG4gICAgcmV0dXJuIEFtcGxpZnlBdXRoMEJ1dHRvbjtcbn0oKSk7XG52YXIgQW1wbGlmeUF1dGhlbnRpY2F0b3IgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7XG4gICAgZnVuY3Rpb24gQW1wbGlmeUF1dGhlbnRpY2F0b3IoYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5QXV0aGVudGljYXRvci5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LWF1dGhlbnRpY2F0b3InLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JywgaW5wdXRzOiBbJ2ZlZGVyYXRlZCcsICdoYW5kbGVBdXRoU3RhdGVDaGFuZ2UnLCAnaW5pdGlhbEF1dGhTdGF0ZScsICd1c2VybmFtZUFsaWFzJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5QXV0aGVudGljYXRvci5jdG9yUGFyYW1ldGVycyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIFtcbiAgICAgICAgeyB0eXBlOiBDaGFuZ2VEZXRlY3RvclJlZiB9LFxuICAgICAgICB7IHR5cGU6IEVsZW1lbnRSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBOZ1pvbmUgfVxuICAgIF07IH07XG4gICAgQW1wbGlmeUF1dGhlbnRpY2F0b3IgPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnZmVkZXJhdGVkJywgJ2hhbmRsZUF1dGhTdGF0ZUNoYW5nZScsICdpbml0aWFsQXV0aFN0YXRlJywgJ3VzZXJuYW1lQWxpYXMnXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5QXV0aGVudGljYXRvcik7XG4gICAgcmV0dXJuIEFtcGxpZnlBdXRoZW50aWNhdG9yO1xufSgpKTtcbnZhciBBbXBsaWZ5QnV0dG9uID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlCdXR0b24oYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5QnV0dG9uLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktYnV0dG9uJywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsIGlucHV0czogWydkaXNhYmxlZCcsICdoYW5kbGVCdXR0b25DbGljaycsICdpY29uJywgJ3R5cGUnLCAndmFyaWFudCddIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeUJ1dHRvbi5jdG9yUGFyYW1ldGVycyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIFtcbiAgICAgICAgeyB0eXBlOiBDaGFuZ2VEZXRlY3RvclJlZiB9LFxuICAgICAgICB7IHR5cGU6IEVsZW1lbnRSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBOZ1pvbmUgfVxuICAgIF07IH07XG4gICAgQW1wbGlmeUJ1dHRvbiA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydkaXNhYmxlZCcsICdoYW5kbGVCdXR0b25DbGljaycsICdpY29uJywgJ3R5cGUnLCAndmFyaWFudCddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlCdXR0b24pO1xuICAgIHJldHVybiBBbXBsaWZ5QnV0dG9uO1xufSgpKTtcbnZhciBBbXBsaWZ5Q2hhdGJvdCA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5Q2hhdGJvdChjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgICAgIHByb3h5T3V0cHV0cyh0aGlzLCB0aGlzLmVsLCBbJ2NoYXRDb21wbGV0ZWQnXSk7XG4gICAgfVxuICAgIEFtcGxpZnlDaGF0Ym90LmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktY2hhdGJvdCcsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnYm90TmFtZScsICdib3RUaXRsZScsICdjbGVhck9uQ29tcGxldGUnLCAnY29udmVyc2F0aW9uTW9kZU9uJywgJ3NpbGVuY2VUaHJlc2hvbGQnLCAnc2lsZW5jZVRpbWUnLCAndGV4dEVuYWJsZWQnLCAndm9pY2VFbmFibGVkJywgJ3dlbGNvbWVNZXNzYWdlJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5Q2hhdGJvdC5jdG9yUGFyYW1ldGVycyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIFtcbiAgICAgICAgeyB0eXBlOiBDaGFuZ2VEZXRlY3RvclJlZiB9LFxuICAgICAgICB7IHR5cGU6IEVsZW1lbnRSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBOZ1pvbmUgfVxuICAgIF07IH07XG4gICAgQW1wbGlmeUNoYXRib3QgPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnYm90TmFtZScsICdib3RUaXRsZScsICdjbGVhck9uQ29tcGxldGUnLCAnY29udmVyc2F0aW9uTW9kZU9uJywgJ3NpbGVuY2VUaHJlc2hvbGQnLCAnc2lsZW5jZVRpbWUnLCAndGV4dEVuYWJsZWQnLCAndm9pY2VFbmFibGVkJywgJ3dlbGNvbWVNZXNzYWdlJ10gfSksXG4gICAgICAgIF9fbWV0YWRhdGEoXCJkZXNpZ246cGFyYW10eXBlc1wiLCBbQ2hhbmdlRGV0ZWN0b3JSZWYsIEVsZW1lbnRSZWYsIE5nWm9uZV0pXG4gICAgXSwgQW1wbGlmeUNoYXRib3QpO1xuICAgIHJldHVybiBBbXBsaWZ5Q2hhdGJvdDtcbn0oKSk7XG52YXIgQW1wbGlmeUNoZWNrYm94ID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlDaGVja2JveChjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlDaGVja2JveC5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LWNoZWNrYm94JywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsIGlucHV0czogWydjaGVja2VkJywgJ2Rpc2FibGVkJywgJ2ZpZWxkSWQnLCAnbGFiZWwnLCAnbmFtZScsICd2YWx1ZSddIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeUNoZWNrYm94LmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5Q2hlY2tib3ggPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnY2hlY2tlZCcsICdkaXNhYmxlZCcsICdmaWVsZElkJywgJ2xhYmVsJywgJ25hbWUnLCAndmFsdWUnXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5Q2hlY2tib3gpO1xuICAgIHJldHVybiBBbXBsaWZ5Q2hlY2tib3g7XG59KCkpO1xudmFyIEFtcGxpZnlDb2RlRmllbGQgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7XG4gICAgZnVuY3Rpb24gQW1wbGlmeUNvZGVGaWVsZChjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlDb2RlRmllbGQuZGVjb3JhdG9ycyA9IFtcbiAgICAgICAgeyB0eXBlOiBDb21wb25lbnQsIGFyZ3M6IFt7IHNlbGVjdG9yOiAnYW1wbGlmeS1jb2RlLWZpZWxkJywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsIGlucHV0czogWydkaXNhYmxlZCcsICdmaWVsZElkJywgJ2hhbmRsZUlucHV0Q2hhbmdlJywgJ2hpbnQnLCAnaW5wdXRQcm9wcycsICdsYWJlbCcsICdwbGFjZWhvbGRlcicsICdyZXF1aXJlZCcsICd2YWx1ZSddIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeUNvZGVGaWVsZC5jdG9yUGFyYW1ldGVycyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIFtcbiAgICAgICAgeyB0eXBlOiBDaGFuZ2VEZXRlY3RvclJlZiB9LFxuICAgICAgICB7IHR5cGU6IEVsZW1lbnRSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBOZ1pvbmUgfVxuICAgIF07IH07XG4gICAgQW1wbGlmeUNvZGVGaWVsZCA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydkaXNhYmxlZCcsICdmaWVsZElkJywgJ2hhbmRsZUlucHV0Q2hhbmdlJywgJ2hpbnQnLCAnaW5wdXRQcm9wcycsICdsYWJlbCcsICdwbGFjZWhvbGRlcicsICdyZXF1aXJlZCcsICd2YWx1ZSddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlDb2RlRmllbGQpO1xuICAgIHJldHVybiBBbXBsaWZ5Q29kZUZpZWxkO1xufSgpKTtcbnZhciBBbXBsaWZ5Q29uZmlybVNpZ25JbiA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5Q29uZmlybVNpZ25JbihjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlDb25maXJtU2lnbkluLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktY29uZmlybS1zaWduLWluJywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsIGlucHV0czogWydmb3JtRmllbGRzJywgJ2hhbmRsZUF1dGhTdGF0ZUNoYW5nZScsICdoYW5kbGVTdWJtaXQnLCAnaGVhZGVyVGV4dCcsICdzdWJtaXRCdXR0b25UZXh0JywgJ3VzZXInXSB9LF0gfSxcbiAgICBdO1xuICAgIC8qKiBAbm9jb2xsYXBzZSAqL1xuICAgIEFtcGxpZnlDb25maXJtU2lnbkluLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5Q29uZmlybVNpZ25JbiA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydmb3JtRmllbGRzJywgJ2hhbmRsZUF1dGhTdGF0ZUNoYW5nZScsICdoYW5kbGVTdWJtaXQnLCAnaGVhZGVyVGV4dCcsICdzdWJtaXRCdXR0b25UZXh0JywgJ3VzZXInXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5Q29uZmlybVNpZ25Jbik7XG4gICAgcmV0dXJuIEFtcGxpZnlDb25maXJtU2lnbkluO1xufSgpKTtcbnZhciBBbXBsaWZ5Q29uZmlybVNpZ25VcCA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5Q29uZmlybVNpZ25VcChjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlDb25maXJtU2lnblVwLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktY29uZmlybS1zaWduLXVwJywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsIGlucHV0czogWydmb3JtRmllbGRzJywgJ2hhbmRsZUF1dGhTdGF0ZUNoYW5nZScsICdoYW5kbGVTdWJtaXQnLCAnaGVhZGVyVGV4dCcsICdzdWJtaXRCdXR0b25UZXh0JywgJ3VzZXInLCAndXNlcm5hbWVBbGlhcyddIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeUNvbmZpcm1TaWduVXAuY3RvclBhcmFtZXRlcnMgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBbXG4gICAgICAgIHsgdHlwZTogQ2hhbmdlRGV0ZWN0b3JSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBFbGVtZW50UmVmIH0sXG4gICAgICAgIHsgdHlwZTogTmdab25lIH1cbiAgICBdOyB9O1xuICAgIEFtcGxpZnlDb25maXJtU2lnblVwID0gX19kZWNvcmF0ZShbXG4gICAgICAgIFByb3h5Q21wKHsgaW5wdXRzOiBbJ2Zvcm1GaWVsZHMnLCAnaGFuZGxlQXV0aFN0YXRlQ2hhbmdlJywgJ2hhbmRsZVN1Ym1pdCcsICdoZWFkZXJUZXh0JywgJ3N1Ym1pdEJ1dHRvblRleHQnLCAndXNlcicsICd1c2VybmFtZUFsaWFzJ10gfSksXG4gICAgICAgIF9fbWV0YWRhdGEoXCJkZXNpZ246cGFyYW10eXBlc1wiLCBbQ2hhbmdlRGV0ZWN0b3JSZWYsIEVsZW1lbnRSZWYsIE5nWm9uZV0pXG4gICAgXSwgQW1wbGlmeUNvbmZpcm1TaWduVXApO1xuICAgIHJldHVybiBBbXBsaWZ5Q29uZmlybVNpZ25VcDtcbn0oKSk7XG52YXIgQW1wbGlmeUNvbnRhaW5lciA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5Q29udGFpbmVyKGMsIHIsIHopIHtcbiAgICAgICAgdGhpcy56ID0gejtcbiAgICAgICAgYy5kZXRhY2goKTtcbiAgICAgICAgdGhpcy5lbCA9IHIubmF0aXZlRWxlbWVudDtcbiAgICB9XG4gICAgQW1wbGlmeUNvbnRhaW5lci5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LWNvbnRhaW5lcicsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeUNvbnRhaW5lci5jdG9yUGFyYW1ldGVycyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIFtcbiAgICAgICAgeyB0eXBlOiBDaGFuZ2VEZXRlY3RvclJlZiB9LFxuICAgICAgICB7IHR5cGU6IEVsZW1lbnRSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBOZ1pvbmUgfVxuICAgIF07IH07XG4gICAgcmV0dXJuIEFtcGxpZnlDb250YWluZXI7XG59KCkpO1xudmFyIEFtcGxpZnlDb3VudHJ5RGlhbENvZGUgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7XG4gICAgZnVuY3Rpb24gQW1wbGlmeUNvdW50cnlEaWFsQ29kZShjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlDb3VudHJ5RGlhbENvZGUuZGVjb3JhdG9ycyA9IFtcbiAgICAgICAgeyB0eXBlOiBDb21wb25lbnQsIGFyZ3M6IFt7IHNlbGVjdG9yOiAnYW1wbGlmeS1jb3VudHJ5LWRpYWwtY29kZScsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnZGlhbENvZGUnLCAnZmllbGRJZCcsICdoYW5kbGVJbnB1dENoYW5nZScsICdvcHRpb25zJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5Q291bnRyeURpYWxDb2RlLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5Q291bnRyeURpYWxDb2RlID0gX19kZWNvcmF0ZShbXG4gICAgICAgIFByb3h5Q21wKHsgaW5wdXRzOiBbJ2RpYWxDb2RlJywgJ2ZpZWxkSWQnLCAnaGFuZGxlSW5wdXRDaGFuZ2UnLCAnb3B0aW9ucyddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlDb3VudHJ5RGlhbENvZGUpO1xuICAgIHJldHVybiBBbXBsaWZ5Q291bnRyeURpYWxDb2RlO1xufSgpKTtcbnZhciBBbXBsaWZ5RW1haWxGaWVsZCA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5RW1haWxGaWVsZChjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlFbWFpbEZpZWxkLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktZW1haWwtZmllbGQnLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JywgaW5wdXRzOiBbJ2Rpc2FibGVkJywgJ2ZpZWxkSWQnLCAnaGFuZGxlSW5wdXRDaGFuZ2UnLCAnaW5wdXRQcm9wcycsICdsYWJlbCcsICdwbGFjZWhvbGRlcicsICdyZXF1aXJlZCcsICd2YWx1ZSddIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeUVtYWlsRmllbGQuY3RvclBhcmFtZXRlcnMgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBbXG4gICAgICAgIHsgdHlwZTogQ2hhbmdlRGV0ZWN0b3JSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBFbGVtZW50UmVmIH0sXG4gICAgICAgIHsgdHlwZTogTmdab25lIH1cbiAgICBdOyB9O1xuICAgIEFtcGxpZnlFbWFpbEZpZWxkID0gX19kZWNvcmF0ZShbXG4gICAgICAgIFByb3h5Q21wKHsgaW5wdXRzOiBbJ2Rpc2FibGVkJywgJ2ZpZWxkSWQnLCAnaGFuZGxlSW5wdXRDaGFuZ2UnLCAnaW5wdXRQcm9wcycsICdsYWJlbCcsICdwbGFjZWhvbGRlcicsICdyZXF1aXJlZCcsICd2YWx1ZSddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlFbWFpbEZpZWxkKTtcbiAgICByZXR1cm4gQW1wbGlmeUVtYWlsRmllbGQ7XG59KCkpO1xudmFyIEFtcGxpZnlGYWNlYm9va0J1dHRvbiA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5RmFjZWJvb2tCdXR0b24oYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5RmFjZWJvb2tCdXR0b24uZGVjb3JhdG9ycyA9IFtcbiAgICAgICAgeyB0eXBlOiBDb21wb25lbnQsIGFyZ3M6IFt7IHNlbGVjdG9yOiAnYW1wbGlmeS1mYWNlYm9vay1idXR0b24nLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JywgaW5wdXRzOiBbJ2FwcElkJywgJ2hhbmRsZUF1dGhTdGF0ZUNoYW5nZSddIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeUZhY2Vib29rQnV0dG9uLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5RmFjZWJvb2tCdXR0b24gPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnYXBwSWQnLCAnaGFuZGxlQXV0aFN0YXRlQ2hhbmdlJ10gfSksXG4gICAgICAgIF9fbWV0YWRhdGEoXCJkZXNpZ246cGFyYW10eXBlc1wiLCBbQ2hhbmdlRGV0ZWN0b3JSZWYsIEVsZW1lbnRSZWYsIE5nWm9uZV0pXG4gICAgXSwgQW1wbGlmeUZhY2Vib29rQnV0dG9uKTtcbiAgICByZXR1cm4gQW1wbGlmeUZhY2Vib29rQnV0dG9uO1xufSgpKTtcbnZhciBBbXBsaWZ5RmVkZXJhdGVkQnV0dG9ucyA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5RmVkZXJhdGVkQnV0dG9ucyhjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlGZWRlcmF0ZWRCdXR0b25zLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktZmVkZXJhdGVkLWJ1dHRvbnMnLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JywgaW5wdXRzOiBbJ2F1dGhTdGF0ZScsICdmZWRlcmF0ZWQnLCAnaGFuZGxlQXV0aFN0YXRlQ2hhbmdlJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5RmVkZXJhdGVkQnV0dG9ucy5jdG9yUGFyYW1ldGVycyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIFtcbiAgICAgICAgeyB0eXBlOiBDaGFuZ2VEZXRlY3RvclJlZiB9LFxuICAgICAgICB7IHR5cGU6IEVsZW1lbnRSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBOZ1pvbmUgfVxuICAgIF07IH07XG4gICAgQW1wbGlmeUZlZGVyYXRlZEJ1dHRvbnMgPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnYXV0aFN0YXRlJywgJ2ZlZGVyYXRlZCcsICdoYW5kbGVBdXRoU3RhdGVDaGFuZ2UnXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5RmVkZXJhdGVkQnV0dG9ucyk7XG4gICAgcmV0dXJuIEFtcGxpZnlGZWRlcmF0ZWRCdXR0b25zO1xufSgpKTtcbnZhciBBbXBsaWZ5RmVkZXJhdGVkU2lnbkluID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlGZWRlcmF0ZWRTaWduSW4oYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5RmVkZXJhdGVkU2lnbkluLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktZmVkZXJhdGVkLXNpZ24taW4nLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JywgaW5wdXRzOiBbJ2F1dGhTdGF0ZScsICdmZWRlcmF0ZWQnXSB9LF0gfSxcbiAgICBdO1xuICAgIC8qKiBAbm9jb2xsYXBzZSAqL1xuICAgIEFtcGxpZnlGZWRlcmF0ZWRTaWduSW4uY3RvclBhcmFtZXRlcnMgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBbXG4gICAgICAgIHsgdHlwZTogQ2hhbmdlRGV0ZWN0b3JSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBFbGVtZW50UmVmIH0sXG4gICAgICAgIHsgdHlwZTogTmdab25lIH1cbiAgICBdOyB9O1xuICAgIEFtcGxpZnlGZWRlcmF0ZWRTaWduSW4gPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnYXV0aFN0YXRlJywgJ2ZlZGVyYXRlZCddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlGZWRlcmF0ZWRTaWduSW4pO1xuICAgIHJldHVybiBBbXBsaWZ5RmVkZXJhdGVkU2lnbkluO1xufSgpKTtcbnZhciBBbXBsaWZ5Rm9yZ290UGFzc3dvcmQgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7XG4gICAgZnVuY3Rpb24gQW1wbGlmeUZvcmdvdFBhc3N3b3JkKGMsIHIsIHopIHtcbiAgICAgICAgdGhpcy56ID0gejtcbiAgICAgICAgYy5kZXRhY2goKTtcbiAgICAgICAgdGhpcy5lbCA9IHIubmF0aXZlRWxlbWVudDtcbiAgICB9XG4gICAgQW1wbGlmeUZvcmdvdFBhc3N3b3JkLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktZm9yZ290LXBhc3N3b3JkJywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsIGlucHV0czogWydmb3JtRmllbGRzJywgJ2hhbmRsZUF1dGhTdGF0ZUNoYW5nZScsICdoYW5kbGVTZW5kJywgJ2hhbmRsZVN1Ym1pdCcsICdoZWFkZXJUZXh0JywgJ3NlbmRCdXR0b25UZXh0JywgJ3N1Ym1pdEJ1dHRvblRleHQnLCAndXNlcm5hbWVBbGlhcyddIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeUZvcmdvdFBhc3N3b3JkLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5Rm9yZ290UGFzc3dvcmQgPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnZm9ybUZpZWxkcycsICdoYW5kbGVBdXRoU3RhdGVDaGFuZ2UnLCAnaGFuZGxlU2VuZCcsICdoYW5kbGVTdWJtaXQnLCAnaGVhZGVyVGV4dCcsICdzZW5kQnV0dG9uVGV4dCcsICdzdWJtaXRCdXR0b25UZXh0JywgJ3VzZXJuYW1lQWxpYXMnXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5Rm9yZ290UGFzc3dvcmQpO1xuICAgIHJldHVybiBBbXBsaWZ5Rm9yZ290UGFzc3dvcmQ7XG59KCkpO1xudmFyIEFtcGxpZnlGb3JtRmllbGQgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7XG4gICAgZnVuY3Rpb24gQW1wbGlmeUZvcm1GaWVsZChjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlGb3JtRmllbGQuZGVjb3JhdG9ycyA9IFtcbiAgICAgICAgeyB0eXBlOiBDb21wb25lbnQsIGFyZ3M6IFt7IHNlbGVjdG9yOiAnYW1wbGlmeS1mb3JtLWZpZWxkJywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsIGlucHV0czogWydkZXNjcmlwdGlvbicsICdkaXNhYmxlZCcsICdmaWVsZElkJywgJ2hhbmRsZUlucHV0Q2hhbmdlJywgJ2hpbnQnLCAnaW5wdXRQcm9wcycsICdsYWJlbCcsICduYW1lJywgJ3BsYWNlaG9sZGVyJywgJ3JlcXVpcmVkJywgJ3R5cGUnLCAndmFsdWUnXSB9LF0gfSxcbiAgICBdO1xuICAgIC8qKiBAbm9jb2xsYXBzZSAqL1xuICAgIEFtcGxpZnlGb3JtRmllbGQuY3RvclBhcmFtZXRlcnMgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBbXG4gICAgICAgIHsgdHlwZTogQ2hhbmdlRGV0ZWN0b3JSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBFbGVtZW50UmVmIH0sXG4gICAgICAgIHsgdHlwZTogTmdab25lIH1cbiAgICBdOyB9O1xuICAgIEFtcGxpZnlGb3JtRmllbGQgPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnZGVzY3JpcHRpb24nLCAnZGlzYWJsZWQnLCAnZmllbGRJZCcsICdoYW5kbGVJbnB1dENoYW5nZScsICdoaW50JywgJ2lucHV0UHJvcHMnLCAnbGFiZWwnLCAnbmFtZScsICdwbGFjZWhvbGRlcicsICdyZXF1aXJlZCcsICd0eXBlJywgJ3ZhbHVlJ10gfSksXG4gICAgICAgIF9fbWV0YWRhdGEoXCJkZXNpZ246cGFyYW10eXBlc1wiLCBbQ2hhbmdlRGV0ZWN0b3JSZWYsIEVsZW1lbnRSZWYsIE5nWm9uZV0pXG4gICAgXSwgQW1wbGlmeUZvcm1GaWVsZCk7XG4gICAgcmV0dXJuIEFtcGxpZnlGb3JtRmllbGQ7XG59KCkpO1xudmFyIEFtcGxpZnlGb3JtU2VjdGlvbiA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5Rm9ybVNlY3Rpb24oYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5Rm9ybVNlY3Rpb24uZGVjb3JhdG9ycyA9IFtcbiAgICAgICAgeyB0eXBlOiBDb21wb25lbnQsIGFyZ3M6IFt7IHNlbGVjdG9yOiAnYW1wbGlmeS1mb3JtLXNlY3Rpb24nLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JywgaW5wdXRzOiBbJ2hhbmRsZVN1Ym1pdCcsICdoZWFkZXJUZXh0JywgJ2xvYWRpbmcnLCAnc2Vjb25kYXJ5Rm9vdGVyQ29udGVudCcsICdzdWJtaXRCdXR0b25UZXh0JywgJ3Rlc3REYXRhUHJlZml4J10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5Rm9ybVNlY3Rpb24uY3RvclBhcmFtZXRlcnMgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBbXG4gICAgICAgIHsgdHlwZTogQ2hhbmdlRGV0ZWN0b3JSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBFbGVtZW50UmVmIH0sXG4gICAgICAgIHsgdHlwZTogTmdab25lIH1cbiAgICBdOyB9O1xuICAgIEFtcGxpZnlGb3JtU2VjdGlvbiA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydoYW5kbGVTdWJtaXQnLCAnaGVhZGVyVGV4dCcsICdsb2FkaW5nJywgJ3NlY29uZGFyeUZvb3RlckNvbnRlbnQnLCAnc3VibWl0QnV0dG9uVGV4dCcsICd0ZXN0RGF0YVByZWZpeCddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlGb3JtU2VjdGlvbik7XG4gICAgcmV0dXJuIEFtcGxpZnlGb3JtU2VjdGlvbjtcbn0oKSk7XG52YXIgQW1wbGlmeUdvb2dsZUJ1dHRvbiA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5R29vZ2xlQnV0dG9uKGMsIHIsIHopIHtcbiAgICAgICAgdGhpcy56ID0gejtcbiAgICAgICAgYy5kZXRhY2goKTtcbiAgICAgICAgdGhpcy5lbCA9IHIubmF0aXZlRWxlbWVudDtcbiAgICB9XG4gICAgQW1wbGlmeUdvb2dsZUJ1dHRvbi5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LWdvb2dsZS1idXR0b24nLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JywgaW5wdXRzOiBbJ2NsaWVudElkJywgJ2hhbmRsZUF1dGhTdGF0ZUNoYW5nZSddIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeUdvb2dsZUJ1dHRvbi5jdG9yUGFyYW1ldGVycyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIFtcbiAgICAgICAgeyB0eXBlOiBDaGFuZ2VEZXRlY3RvclJlZiB9LFxuICAgICAgICB7IHR5cGU6IEVsZW1lbnRSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBOZ1pvbmUgfVxuICAgIF07IH07XG4gICAgQW1wbGlmeUdvb2dsZUJ1dHRvbiA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydjbGllbnRJZCcsICdoYW5kbGVBdXRoU3RhdGVDaGFuZ2UnXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5R29vZ2xlQnV0dG9uKTtcbiAgICByZXR1cm4gQW1wbGlmeUdvb2dsZUJ1dHRvbjtcbn0oKSk7XG52YXIgQW1wbGlmeUdyZWV0aW5ncyA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5R3JlZXRpbmdzKGMsIHIsIHopIHtcbiAgICAgICAgdGhpcy56ID0gejtcbiAgICAgICAgYy5kZXRhY2goKTtcbiAgICAgICAgdGhpcy5lbCA9IHIubmF0aXZlRWxlbWVudDtcbiAgICB9XG4gICAgQW1wbGlmeUdyZWV0aW5ncy5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LWdyZWV0aW5ncycsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnaGFuZGxlQXV0aFN0YXRlQ2hhbmdlJywgJ2xvZ28nLCAndXNlcm5hbWUnXSB9LF0gfSxcbiAgICBdO1xuICAgIC8qKiBAbm9jb2xsYXBzZSAqL1xuICAgIEFtcGxpZnlHcmVldGluZ3MuY3RvclBhcmFtZXRlcnMgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBbXG4gICAgICAgIHsgdHlwZTogQ2hhbmdlRGV0ZWN0b3JSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBFbGVtZW50UmVmIH0sXG4gICAgICAgIHsgdHlwZTogTmdab25lIH1cbiAgICBdOyB9O1xuICAgIEFtcGxpZnlHcmVldGluZ3MgPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnaGFuZGxlQXV0aFN0YXRlQ2hhbmdlJywgJ2xvZ28nLCAndXNlcm5hbWUnXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5R3JlZXRpbmdzKTtcbiAgICByZXR1cm4gQW1wbGlmeUdyZWV0aW5ncztcbn0oKSk7XG52YXIgQW1wbGlmeUhpbnQgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7XG4gICAgZnVuY3Rpb24gQW1wbGlmeUhpbnQoYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5SGludC5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LWhpbnQnLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JyB9LF0gfSxcbiAgICBdO1xuICAgIC8qKiBAbm9jb2xsYXBzZSAqL1xuICAgIEFtcGxpZnlIaW50LmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICByZXR1cm4gQW1wbGlmeUhpbnQ7XG59KCkpO1xudmFyIEFtcGxpZnlJY29uID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlJY29uKGMsIHIsIHopIHtcbiAgICAgICAgdGhpcy56ID0gejtcbiAgICAgICAgYy5kZXRhY2goKTtcbiAgICAgICAgdGhpcy5lbCA9IHIubmF0aXZlRWxlbWVudDtcbiAgICB9XG4gICAgQW1wbGlmeUljb24uZGVjb3JhdG9ycyA9IFtcbiAgICAgICAgeyB0eXBlOiBDb21wb25lbnQsIGFyZ3M6IFt7IHNlbGVjdG9yOiAnYW1wbGlmeS1pY29uJywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsIGlucHV0czogWyduYW1lJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5SWNvbi5jdG9yUGFyYW1ldGVycyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIFtcbiAgICAgICAgeyB0eXBlOiBDaGFuZ2VEZXRlY3RvclJlZiB9LFxuICAgICAgICB7IHR5cGU6IEVsZW1lbnRSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBOZ1pvbmUgfVxuICAgIF07IH07XG4gICAgQW1wbGlmeUljb24gPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnbmFtZSddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlJY29uKTtcbiAgICByZXR1cm4gQW1wbGlmeUljb247XG59KCkpO1xudmFyIEFtcGxpZnlJY29uQnV0dG9uID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlJY29uQnV0dG9uKGMsIHIsIHopIHtcbiAgICAgICAgdGhpcy56ID0gejtcbiAgICAgICAgYy5kZXRhY2goKTtcbiAgICAgICAgdGhpcy5lbCA9IHIubmF0aXZlRWxlbWVudDtcbiAgICB9XG4gICAgQW1wbGlmeUljb25CdXR0b24uZGVjb3JhdG9ycyA9IFtcbiAgICAgICAgeyB0eXBlOiBDb21wb25lbnQsIGFyZ3M6IFt7IHNlbGVjdG9yOiAnYW1wbGlmeS1pY29uLWJ1dHRvbicsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnYXV0b1Nob3dUb29sdGlwJywgJ25hbWUnLCAndG9vbHRpcCddIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeUljb25CdXR0b24uY3RvclBhcmFtZXRlcnMgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBbXG4gICAgICAgIHsgdHlwZTogQ2hhbmdlRGV0ZWN0b3JSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBFbGVtZW50UmVmIH0sXG4gICAgICAgIHsgdHlwZTogTmdab25lIH1cbiAgICBdOyB9O1xuICAgIEFtcGxpZnlJY29uQnV0dG9uID0gX19kZWNvcmF0ZShbXG4gICAgICAgIFByb3h5Q21wKHsgaW5wdXRzOiBbJ2F1dG9TaG93VG9vbHRpcCcsICduYW1lJywgJ3Rvb2x0aXAnXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5SWNvbkJ1dHRvbik7XG4gICAgcmV0dXJuIEFtcGxpZnlJY29uQnV0dG9uO1xufSgpKTtcbnZhciBBbXBsaWZ5SW5wdXQgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7XG4gICAgZnVuY3Rpb24gQW1wbGlmeUlucHV0KGMsIHIsIHopIHtcbiAgICAgICAgdGhpcy56ID0gejtcbiAgICAgICAgYy5kZXRhY2goKTtcbiAgICAgICAgdGhpcy5lbCA9IHIubmF0aXZlRWxlbWVudDtcbiAgICAgICAgcHJveHlPdXRwdXRzKHRoaXMsIHRoaXMuZWwsIFsnZm9ybVN1Ym1pdCddKTtcbiAgICB9XG4gICAgQW1wbGlmeUlucHV0LmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktaW5wdXQnLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JywgaW5wdXRzOiBbJ2Rlc2NyaXB0aW9uJywgJ2Rpc2FibGVkJywgJ2ZpZWxkSWQnLCAnaGFuZGxlSW5wdXRDaGFuZ2UnLCAnaW5wdXRQcm9wcycsICduYW1lJywgJ3BsYWNlaG9sZGVyJywgJ3R5cGUnLCAndmFsdWUnXSB9LF0gfSxcbiAgICBdO1xuICAgIC8qKiBAbm9jb2xsYXBzZSAqL1xuICAgIEFtcGxpZnlJbnB1dC5jdG9yUGFyYW1ldGVycyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIFtcbiAgICAgICAgeyB0eXBlOiBDaGFuZ2VEZXRlY3RvclJlZiB9LFxuICAgICAgICB7IHR5cGU6IEVsZW1lbnRSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBOZ1pvbmUgfVxuICAgIF07IH07XG4gICAgQW1wbGlmeUlucHV0ID0gX19kZWNvcmF0ZShbXG4gICAgICAgIFByb3h5Q21wKHsgaW5wdXRzOiBbJ2Rlc2NyaXB0aW9uJywgJ2Rpc2FibGVkJywgJ2ZpZWxkSWQnLCAnaGFuZGxlSW5wdXRDaGFuZ2UnLCAnaW5wdXRQcm9wcycsICduYW1lJywgJ3BsYWNlaG9sZGVyJywgJ3R5cGUnLCAndmFsdWUnXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5SW5wdXQpO1xuICAgIHJldHVybiBBbXBsaWZ5SW5wdXQ7XG59KCkpO1xudmFyIEFtcGxpZnlMYWJlbCA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5TGFiZWwoYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5TGFiZWwuZGVjb3JhdG9ycyA9IFtcbiAgICAgICAgeyB0eXBlOiBDb21wb25lbnQsIGFyZ3M6IFt7IHNlbGVjdG9yOiAnYW1wbGlmeS1sYWJlbCcsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnaHRtbEZvciddIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeUxhYmVsLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5TGFiZWwgPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnaHRtbEZvciddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlMYWJlbCk7XG4gICAgcmV0dXJuIEFtcGxpZnlMYWJlbDtcbn0oKSk7XG52YXIgQW1wbGlmeUxpbmsgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7XG4gICAgZnVuY3Rpb24gQW1wbGlmeUxpbmsoYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5TGluay5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LWxpbmsnLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JywgaW5wdXRzOiBbJ3JvbGUnXSB9LF0gfSxcbiAgICBdO1xuICAgIC8qKiBAbm9jb2xsYXBzZSAqL1xuICAgIEFtcGxpZnlMaW5rLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5TGluayA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydyb2xlJ10gfSksXG4gICAgICAgIF9fbWV0YWRhdGEoXCJkZXNpZ246cGFyYW10eXBlc1wiLCBbQ2hhbmdlRGV0ZWN0b3JSZWYsIEVsZW1lbnRSZWYsIE5nWm9uZV0pXG4gICAgXSwgQW1wbGlmeUxpbmspO1xuICAgIHJldHVybiBBbXBsaWZ5TGluaztcbn0oKSk7XG52YXIgQW1wbGlmeUxvYWRpbmdTcGlubmVyID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlMb2FkaW5nU3Bpbm5lcihjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlMb2FkaW5nU3Bpbm5lci5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LWxvYWRpbmctc3Bpbm5lcicsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeUxvYWRpbmdTcGlubmVyLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICByZXR1cm4gQW1wbGlmeUxvYWRpbmdTcGlubmVyO1xufSgpKTtcbnZhciBBbXBsaWZ5TmF2ID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlOYXYoYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5TmF2LmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktbmF2JywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicgfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5TmF2LmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICByZXR1cm4gQW1wbGlmeU5hdjtcbn0oKSk7XG52YXIgQW1wbGlmeU9hdXRoQnV0dG9uID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlPYXV0aEJ1dHRvbihjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlPYXV0aEJ1dHRvbi5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LW9hdXRoLWJ1dHRvbicsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnY29uZmlnJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5T2F1dGhCdXR0b24uY3RvclBhcmFtZXRlcnMgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBbXG4gICAgICAgIHsgdHlwZTogQ2hhbmdlRGV0ZWN0b3JSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBFbGVtZW50UmVmIH0sXG4gICAgICAgIHsgdHlwZTogTmdab25lIH1cbiAgICBdOyB9O1xuICAgIEFtcGxpZnlPYXV0aEJ1dHRvbiA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydjb25maWcnXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5T2F1dGhCdXR0b24pO1xuICAgIHJldHVybiBBbXBsaWZ5T2F1dGhCdXR0b247XG59KCkpO1xudmFyIEFtcGxpZnlQYXNzd29yZEZpZWxkID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlQYXNzd29yZEZpZWxkKGMsIHIsIHopIHtcbiAgICAgICAgdGhpcy56ID0gejtcbiAgICAgICAgYy5kZXRhY2goKTtcbiAgICAgICAgdGhpcy5lbCA9IHIubmF0aXZlRWxlbWVudDtcbiAgICB9XG4gICAgQW1wbGlmeVBhc3N3b3JkRmllbGQuZGVjb3JhdG9ycyA9IFtcbiAgICAgICAgeyB0eXBlOiBDb21wb25lbnQsIGFyZ3M6IFt7IHNlbGVjdG9yOiAnYW1wbGlmeS1wYXNzd29yZC1maWVsZCcsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnZGlzYWJsZWQnLCAnZmllbGRJZCcsICdoYW5kbGVJbnB1dENoYW5nZScsICdoaW50JywgJ2lucHV0UHJvcHMnLCAnbGFiZWwnLCAncGxhY2Vob2xkZXInLCAncmVxdWlyZWQnLCAndmFsdWUnXSB9LF0gfSxcbiAgICBdO1xuICAgIC8qKiBAbm9jb2xsYXBzZSAqL1xuICAgIEFtcGxpZnlQYXNzd29yZEZpZWxkLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5UGFzc3dvcmRGaWVsZCA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydkaXNhYmxlZCcsICdmaWVsZElkJywgJ2hhbmRsZUlucHV0Q2hhbmdlJywgJ2hpbnQnLCAnaW5wdXRQcm9wcycsICdsYWJlbCcsICdwbGFjZWhvbGRlcicsICdyZXF1aXJlZCcsICd2YWx1ZSddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlQYXNzd29yZEZpZWxkKTtcbiAgICByZXR1cm4gQW1wbGlmeVBhc3N3b3JkRmllbGQ7XG59KCkpO1xudmFyIEFtcGxpZnlQaG9uZUZpZWxkID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlQaG9uZUZpZWxkKGMsIHIsIHopIHtcbiAgICAgICAgdGhpcy56ID0gejtcbiAgICAgICAgYy5kZXRhY2goKTtcbiAgICAgICAgdGhpcy5lbCA9IHIubmF0aXZlRWxlbWVudDtcbiAgICB9XG4gICAgQW1wbGlmeVBob25lRmllbGQuZGVjb3JhdG9ycyA9IFtcbiAgICAgICAgeyB0eXBlOiBDb21wb25lbnQsIGFyZ3M6IFt7IHNlbGVjdG9yOiAnYW1wbGlmeS1waG9uZS1maWVsZCcsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnZGlhbENvZGUnLCAnZGlzYWJsZWQnLCAnZmllbGRJZCcsICdoYW5kbGVJbnB1dENoYW5nZScsICdoaW50JywgJ2lucHV0UHJvcHMnLCAnbGFiZWwnLCAncGxhY2Vob2xkZXInLCAncmVxdWlyZWQnLCAndmFsdWUnXSB9LF0gfSxcbiAgICBdO1xuICAgIC8qKiBAbm9jb2xsYXBzZSAqL1xuICAgIEFtcGxpZnlQaG9uZUZpZWxkLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5UGhvbmVGaWVsZCA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydkaWFsQ29kZScsICdkaXNhYmxlZCcsICdmaWVsZElkJywgJ2hhbmRsZUlucHV0Q2hhbmdlJywgJ2hpbnQnLCAnaW5wdXRQcm9wcycsICdsYWJlbCcsICdwbGFjZWhvbGRlcicsICdyZXF1aXJlZCcsICd2YWx1ZSddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlQaG9uZUZpZWxkKTtcbiAgICByZXR1cm4gQW1wbGlmeVBob25lRmllbGQ7XG59KCkpO1xudmFyIEFtcGxpZnlQaG90b1BpY2tlciA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5UGhvdG9QaWNrZXIoYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5UGhvdG9QaWNrZXIuZGVjb3JhdG9ycyA9IFtcbiAgICAgICAgeyB0eXBlOiBDb21wb25lbnQsIGFyZ3M6IFt7IHNlbGVjdG9yOiAnYW1wbGlmeS1waG90by1waWNrZXInLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JywgaW5wdXRzOiBbJ2J1dHRvblRleHQnLCAnaGFuZGxlQ2xpY2snLCAnaGVhZGVySGludCcsICdoZWFkZXJUaXRsZScsICdwbGFjZWhvbGRlckhpbnQnLCAncHJldmlld1NyYyddIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeVBob3RvUGlja2VyLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5UGhvdG9QaWNrZXIgPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnYnV0dG9uVGV4dCcsICdoYW5kbGVDbGljaycsICdoZWFkZXJIaW50JywgJ2hlYWRlclRpdGxlJywgJ3BsYWNlaG9sZGVySGludCcsICdwcmV2aWV3U3JjJ10gfSksXG4gICAgICAgIF9fbWV0YWRhdGEoXCJkZXNpZ246cGFyYW10eXBlc1wiLCBbQ2hhbmdlRGV0ZWN0b3JSZWYsIEVsZW1lbnRSZWYsIE5nWm9uZV0pXG4gICAgXSwgQW1wbGlmeVBob3RvUGlja2VyKTtcbiAgICByZXR1cm4gQW1wbGlmeVBob3RvUGlja2VyO1xufSgpKTtcbnZhciBBbXBsaWZ5UGlja2VyID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlQaWNrZXIoYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5UGlja2VyLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktcGlja2VyJywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsIGlucHV0czogWydhY2NlcHRWYWx1ZScsICdpbnB1dEhhbmRsZXInLCAncGlja2VyVGV4dCddIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeVBpY2tlci5jdG9yUGFyYW1ldGVycyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIFtcbiAgICAgICAgeyB0eXBlOiBDaGFuZ2VEZXRlY3RvclJlZiB9LFxuICAgICAgICB7IHR5cGU6IEVsZW1lbnRSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBOZ1pvbmUgfVxuICAgIF07IH07XG4gICAgQW1wbGlmeVBpY2tlciA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydhY2NlcHRWYWx1ZScsICdpbnB1dEhhbmRsZXInLCAncGlja2VyVGV4dCddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlQaWNrZXIpO1xuICAgIHJldHVybiBBbXBsaWZ5UGlja2VyO1xufSgpKTtcbnZhciBBbXBsaWZ5UmFkaW9CdXR0b24gPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7XG4gICAgZnVuY3Rpb24gQW1wbGlmeVJhZGlvQnV0dG9uKGMsIHIsIHopIHtcbiAgICAgICAgdGhpcy56ID0gejtcbiAgICAgICAgYy5kZXRhY2goKTtcbiAgICAgICAgdGhpcy5lbCA9IHIubmF0aXZlRWxlbWVudDtcbiAgICB9XG4gICAgQW1wbGlmeVJhZGlvQnV0dG9uLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktcmFkaW8tYnV0dG9uJywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsIGlucHV0czogWydjaGVja2VkJywgJ2Rpc2FibGVkJywgJ2ZpZWxkSWQnLCAnaGFuZGxlSW5wdXRDaGFuZ2UnLCAnaW5wdXRQcm9wcycsICdsYWJlbCcsICduYW1lJywgJ3BsYWNlaG9sZGVyJywgJ3ZhbHVlJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5UmFkaW9CdXR0b24uY3RvclBhcmFtZXRlcnMgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBbXG4gICAgICAgIHsgdHlwZTogQ2hhbmdlRGV0ZWN0b3JSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBFbGVtZW50UmVmIH0sXG4gICAgICAgIHsgdHlwZTogTmdab25lIH1cbiAgICBdOyB9O1xuICAgIEFtcGxpZnlSYWRpb0J1dHRvbiA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydjaGVja2VkJywgJ2Rpc2FibGVkJywgJ2ZpZWxkSWQnLCAnaGFuZGxlSW5wdXRDaGFuZ2UnLCAnaW5wdXRQcm9wcycsICdsYWJlbCcsICduYW1lJywgJ3BsYWNlaG9sZGVyJywgJ3ZhbHVlJ10gfSksXG4gICAgICAgIF9fbWV0YWRhdGEoXCJkZXNpZ246cGFyYW10eXBlc1wiLCBbQ2hhbmdlRGV0ZWN0b3JSZWYsIEVsZW1lbnRSZWYsIE5nWm9uZV0pXG4gICAgXSwgQW1wbGlmeVJhZGlvQnV0dG9uKTtcbiAgICByZXR1cm4gQW1wbGlmeVJhZGlvQnV0dG9uO1xufSgpKTtcbnZhciBBbXBsaWZ5UmVxdWlyZU5ld1Bhc3N3b3JkID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlSZXF1aXJlTmV3UGFzc3dvcmQoYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5UmVxdWlyZU5ld1Bhc3N3b3JkLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktcmVxdWlyZS1uZXctcGFzc3dvcmQnLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JywgaW5wdXRzOiBbJ2Zvcm1GaWVsZHMnLCAnaGFuZGxlQXV0aFN0YXRlQ2hhbmdlJywgJ2hhbmRsZVN1Ym1pdCcsICdoZWFkZXJUZXh0JywgJ3N1Ym1pdEJ1dHRvblRleHQnLCAndXNlciddIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeVJlcXVpcmVOZXdQYXNzd29yZC5jdG9yUGFyYW1ldGVycyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIFtcbiAgICAgICAgeyB0eXBlOiBDaGFuZ2VEZXRlY3RvclJlZiB9LFxuICAgICAgICB7IHR5cGU6IEVsZW1lbnRSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBOZ1pvbmUgfVxuICAgIF07IH07XG4gICAgQW1wbGlmeVJlcXVpcmVOZXdQYXNzd29yZCA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydmb3JtRmllbGRzJywgJ2hhbmRsZUF1dGhTdGF0ZUNoYW5nZScsICdoYW5kbGVTdWJtaXQnLCAnaGVhZGVyVGV4dCcsICdzdWJtaXRCdXR0b25UZXh0JywgJ3VzZXInXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5UmVxdWlyZU5ld1Bhc3N3b3JkKTtcbiAgICByZXR1cm4gQW1wbGlmeVJlcXVpcmVOZXdQYXNzd29yZDtcbn0oKSk7XG52YXIgQW1wbGlmeVMzQWxidW0gPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7XG4gICAgZnVuY3Rpb24gQW1wbGlmeVMzQWxidW0oYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5UzNBbGJ1bS5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LXMzLWFsYnVtJywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsIGlucHV0czogWydjb250ZW50VHlwZScsICdmaWxlVG9LZXknLCAnZmlsdGVyJywgJ2hhbmRsZU9uRXJyb3InLCAnaGFuZGxlT25Mb2FkJywgJ2lkZW50aXR5SWQnLCAnbGV2ZWwnLCAncGF0aCcsICdwaWNrZXInLCAncGlja2VyVGV4dCcsICdzb3J0JywgJ3RyYWNrJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5UzNBbGJ1bS5jdG9yUGFyYW1ldGVycyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIFtcbiAgICAgICAgeyB0eXBlOiBDaGFuZ2VEZXRlY3RvclJlZiB9LFxuICAgICAgICB7IHR5cGU6IEVsZW1lbnRSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBOZ1pvbmUgfVxuICAgIF07IH07XG4gICAgQW1wbGlmeVMzQWxidW0gPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnY29udGVudFR5cGUnLCAnZmlsZVRvS2V5JywgJ2ZpbHRlcicsICdoYW5kbGVPbkVycm9yJywgJ2hhbmRsZU9uTG9hZCcsICdpZGVudGl0eUlkJywgJ2xldmVsJywgJ3BhdGgnLCAncGlja2VyJywgJ3BpY2tlclRleHQnLCAnc29ydCcsICd0cmFjayddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlTM0FsYnVtKTtcbiAgICByZXR1cm4gQW1wbGlmeVMzQWxidW07XG59KCkpO1xudmFyIEFtcGxpZnlTM0ltYWdlID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlTM0ltYWdlKGMsIHIsIHopIHtcbiAgICAgICAgdGhpcy56ID0gejtcbiAgICAgICAgYy5kZXRhY2goKTtcbiAgICAgICAgdGhpcy5lbCA9IHIubmF0aXZlRWxlbWVudDtcbiAgICB9XG4gICAgQW1wbGlmeVMzSW1hZ2UuZGVjb3JhdG9ycyA9IFtcbiAgICAgICAgeyB0eXBlOiBDb21wb25lbnQsIGFyZ3M6IFt7IHNlbGVjdG9yOiAnYW1wbGlmeS1zMy1pbWFnZScsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnYm9keScsICdjb250ZW50VHlwZScsICdoYW5kbGVPbkVycm9yJywgJ2hhbmRsZU9uTG9hZCcsICdpZGVudGl0eUlkJywgJ2ltZ0tleScsICdsZXZlbCcsICdwYXRoJywgJ3RyYWNrJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5UzNJbWFnZS5jdG9yUGFyYW1ldGVycyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIFtcbiAgICAgICAgeyB0eXBlOiBDaGFuZ2VEZXRlY3RvclJlZiB9LFxuICAgICAgICB7IHR5cGU6IEVsZW1lbnRSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBOZ1pvbmUgfVxuICAgIF07IH07XG4gICAgQW1wbGlmeVMzSW1hZ2UgPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnYm9keScsICdjb250ZW50VHlwZScsICdoYW5kbGVPbkVycm9yJywgJ2hhbmRsZU9uTG9hZCcsICdpZGVudGl0eUlkJywgJ2ltZ0tleScsICdsZXZlbCcsICdwYXRoJywgJ3RyYWNrJ10gfSksXG4gICAgICAgIF9fbWV0YWRhdGEoXCJkZXNpZ246cGFyYW10eXBlc1wiLCBbQ2hhbmdlRGV0ZWN0b3JSZWYsIEVsZW1lbnRSZWYsIE5nWm9uZV0pXG4gICAgXSwgQW1wbGlmeVMzSW1hZ2UpO1xuICAgIHJldHVybiBBbXBsaWZ5UzNJbWFnZTtcbn0oKSk7XG52YXIgQW1wbGlmeVMzSW1hZ2VQaWNrZXIgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7XG4gICAgZnVuY3Rpb24gQW1wbGlmeVMzSW1hZ2VQaWNrZXIoYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5UzNJbWFnZVBpY2tlci5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LXMzLWltYWdlLXBpY2tlcicsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnYnV0dG9uVGV4dCcsICdjb250ZW50VHlwZScsICdmaWxlVG9LZXknLCAnaGVhZGVySGludCcsICdoZWFkZXJUaXRsZScsICdpZGVudGl0eUlkJywgJ2xldmVsJywgJ3BhdGgnLCAncGxhY2Vob2xkZXJIaW50JywgJ3RyYWNrJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5UzNJbWFnZVBpY2tlci5jdG9yUGFyYW1ldGVycyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIFtcbiAgICAgICAgeyB0eXBlOiBDaGFuZ2VEZXRlY3RvclJlZiB9LFxuICAgICAgICB7IHR5cGU6IEVsZW1lbnRSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBOZ1pvbmUgfVxuICAgIF07IH07XG4gICAgQW1wbGlmeVMzSW1hZ2VQaWNrZXIgPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnYnV0dG9uVGV4dCcsICdjb250ZW50VHlwZScsICdmaWxlVG9LZXknLCAnaGVhZGVySGludCcsICdoZWFkZXJUaXRsZScsICdpZGVudGl0eUlkJywgJ2xldmVsJywgJ3BhdGgnLCAncGxhY2Vob2xkZXJIaW50JywgJ3RyYWNrJ10gfSksXG4gICAgICAgIF9fbWV0YWRhdGEoXCJkZXNpZ246cGFyYW10eXBlc1wiLCBbQ2hhbmdlRGV0ZWN0b3JSZWYsIEVsZW1lbnRSZWYsIE5nWm9uZV0pXG4gICAgXSwgQW1wbGlmeVMzSW1hZ2VQaWNrZXIpO1xuICAgIHJldHVybiBBbXBsaWZ5UzNJbWFnZVBpY2tlcjtcbn0oKSk7XG52YXIgQW1wbGlmeVMzVGV4dCA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5UzNUZXh0KGMsIHIsIHopIHtcbiAgICAgICAgdGhpcy56ID0gejtcbiAgICAgICAgYy5kZXRhY2goKTtcbiAgICAgICAgdGhpcy5lbCA9IHIubmF0aXZlRWxlbWVudDtcbiAgICB9XG4gICAgQW1wbGlmeVMzVGV4dC5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LXMzLXRleHQnLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JywgaW5wdXRzOiBbJ2JvZHknLCAnY29udGVudFR5cGUnLCAnZmFsbGJhY2tUZXh0JywgJ2lkZW50aXR5SWQnLCAnbGV2ZWwnLCAncGF0aCcsICd0ZXh0S2V5JywgJ3RyYWNrJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5UzNUZXh0LmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5UzNUZXh0ID0gX19kZWNvcmF0ZShbXG4gICAgICAgIFByb3h5Q21wKHsgaW5wdXRzOiBbJ2JvZHknLCAnY29udGVudFR5cGUnLCAnZmFsbGJhY2tUZXh0JywgJ2lkZW50aXR5SWQnLCAnbGV2ZWwnLCAncGF0aCcsICd0ZXh0S2V5JywgJ3RyYWNrJ10gfSksXG4gICAgICAgIF9fbWV0YWRhdGEoXCJkZXNpZ246cGFyYW10eXBlc1wiLCBbQ2hhbmdlRGV0ZWN0b3JSZWYsIEVsZW1lbnRSZWYsIE5nWm9uZV0pXG4gICAgXSwgQW1wbGlmeVMzVGV4dCk7XG4gICAgcmV0dXJuIEFtcGxpZnlTM1RleHQ7XG59KCkpO1xudmFyIEFtcGxpZnlTM1RleHRQaWNrZXIgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7XG4gICAgZnVuY3Rpb24gQW1wbGlmeVMzVGV4dFBpY2tlcihjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlTM1RleHRQaWNrZXIuZGVjb3JhdG9ycyA9IFtcbiAgICAgICAgeyB0eXBlOiBDb21wb25lbnQsIGFyZ3M6IFt7IHNlbGVjdG9yOiAnYW1wbGlmeS1zMy10ZXh0LXBpY2tlcicsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnY29udGVudFR5cGUnLCAnZmFsbGJhY2tUZXh0JywgJ2ZpbGVUb0tleScsICdpZGVudGl0eUlkJywgJ2xldmVsJywgJ3BhdGgnLCAndHJhY2snXSB9LF0gfSxcbiAgICBdO1xuICAgIC8qKiBAbm9jb2xsYXBzZSAqL1xuICAgIEFtcGxpZnlTM1RleHRQaWNrZXIuY3RvclBhcmFtZXRlcnMgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBbXG4gICAgICAgIHsgdHlwZTogQ2hhbmdlRGV0ZWN0b3JSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBFbGVtZW50UmVmIH0sXG4gICAgICAgIHsgdHlwZTogTmdab25lIH1cbiAgICBdOyB9O1xuICAgIEFtcGxpZnlTM1RleHRQaWNrZXIgPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnY29udGVudFR5cGUnLCAnZmFsbGJhY2tUZXh0JywgJ2ZpbGVUb0tleScsICdpZGVudGl0eUlkJywgJ2xldmVsJywgJ3BhdGgnLCAndHJhY2snXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5UzNUZXh0UGlja2VyKTtcbiAgICByZXR1cm4gQW1wbGlmeVMzVGV4dFBpY2tlcjtcbn0oKSk7XG52YXIgQW1wbGlmeVNlY3Rpb24gPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7XG4gICAgZnVuY3Rpb24gQW1wbGlmeVNlY3Rpb24oYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5U2VjdGlvbi5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LXNlY3Rpb24nLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JywgaW5wdXRzOiBbJ3JvbGUnXSB9LF0gfSxcbiAgICBdO1xuICAgIC8qKiBAbm9jb2xsYXBzZSAqL1xuICAgIEFtcGxpZnlTZWN0aW9uLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5U2VjdGlvbiA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydyb2xlJ10gfSksXG4gICAgICAgIF9fbWV0YWRhdGEoXCJkZXNpZ246cGFyYW10eXBlc1wiLCBbQ2hhbmdlRGV0ZWN0b3JSZWYsIEVsZW1lbnRSZWYsIE5nWm9uZV0pXG4gICAgXSwgQW1wbGlmeVNlY3Rpb24pO1xuICAgIHJldHVybiBBbXBsaWZ5U2VjdGlvbjtcbn0oKSk7XG52YXIgQW1wbGlmeVNlbGVjdCA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5U2VsZWN0KGMsIHIsIHopIHtcbiAgICAgICAgdGhpcy56ID0gejtcbiAgICAgICAgYy5kZXRhY2goKTtcbiAgICAgICAgdGhpcy5lbCA9IHIubmF0aXZlRWxlbWVudDtcbiAgICB9XG4gICAgQW1wbGlmeVNlbGVjdC5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LXNlbGVjdCcsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnZmllbGRJZCcsICdoYW5kbGVJbnB1dENoYW5nZScsICdvcHRpb25zJywgJ3NlbGVjdGVkJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5U2VsZWN0LmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5U2VsZWN0ID0gX19kZWNvcmF0ZShbXG4gICAgICAgIFByb3h5Q21wKHsgaW5wdXRzOiBbJ2ZpZWxkSWQnLCAnaGFuZGxlSW5wdXRDaGFuZ2UnLCAnb3B0aW9ucycsICdzZWxlY3RlZCddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlTZWxlY3QpO1xuICAgIHJldHVybiBBbXBsaWZ5U2VsZWN0O1xufSgpKTtcbnZhciBBbXBsaWZ5U2VsZWN0TWZhVHlwZSA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5U2VsZWN0TWZhVHlwZShjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlTZWxlY3RNZmFUeXBlLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktc2VsZWN0LW1mYS10eXBlJywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsIGlucHV0czogWydNRkFUeXBlcycsICdhdXRoRGF0YScsICdoYW5kbGVTdWJtaXQnXSB9LF0gfSxcbiAgICBdO1xuICAgIC8qKiBAbm9jb2xsYXBzZSAqL1xuICAgIEFtcGxpZnlTZWxlY3RNZmFUeXBlLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5U2VsZWN0TWZhVHlwZSA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydNRkFUeXBlcycsICdhdXRoRGF0YScsICdoYW5kbGVTdWJtaXQnXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5U2VsZWN0TWZhVHlwZSk7XG4gICAgcmV0dXJuIEFtcGxpZnlTZWxlY3RNZmFUeXBlO1xufSgpKTtcbnZhciBBbXBsaWZ5U2lnbkluID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlTaWduSW4oYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5U2lnbkluLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktc2lnbi1pbicsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnZmVkZXJhdGVkJywgJ2Zvcm1GaWVsZHMnLCAnaGFuZGxlQXV0aFN0YXRlQ2hhbmdlJywgJ2hhbmRsZVN1Ym1pdCcsICdoZWFkZXJUZXh0JywgJ2hpZGVTaWduVXAnLCAnc3VibWl0QnV0dG9uVGV4dCcsICd1c2VybmFtZUFsaWFzJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5U2lnbkluLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5U2lnbkluID0gX19kZWNvcmF0ZShbXG4gICAgICAgIFByb3h5Q21wKHsgaW5wdXRzOiBbJ2ZlZGVyYXRlZCcsICdmb3JtRmllbGRzJywgJ2hhbmRsZUF1dGhTdGF0ZUNoYW5nZScsICdoYW5kbGVTdWJtaXQnLCAnaGVhZGVyVGV4dCcsICdoaWRlU2lnblVwJywgJ3N1Ym1pdEJ1dHRvblRleHQnLCAndXNlcm5hbWVBbGlhcyddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlTaWduSW4pO1xuICAgIHJldHVybiBBbXBsaWZ5U2lnbkluO1xufSgpKTtcbnZhciBBbXBsaWZ5U2lnbkluQnV0dG9uID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlTaWduSW5CdXR0b24oYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5U2lnbkluQnV0dG9uLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktc2lnbi1pbi1idXR0b24nLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JywgaW5wdXRzOiBbJ3Byb3ZpZGVyJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5U2lnbkluQnV0dG9uLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5U2lnbkluQnV0dG9uID0gX19kZWNvcmF0ZShbXG4gICAgICAgIFByb3h5Q21wKHsgaW5wdXRzOiBbJ3Byb3ZpZGVyJ10gfSksXG4gICAgICAgIF9fbWV0YWRhdGEoXCJkZXNpZ246cGFyYW10eXBlc1wiLCBbQ2hhbmdlRGV0ZWN0b3JSZWYsIEVsZW1lbnRSZWYsIE5nWm9uZV0pXG4gICAgXSwgQW1wbGlmeVNpZ25JbkJ1dHRvbik7XG4gICAgcmV0dXJuIEFtcGxpZnlTaWduSW5CdXR0b247XG59KCkpO1xudmFyIEFtcGxpZnlTaWduT3V0ID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlTaWduT3V0KGMsIHIsIHopIHtcbiAgICAgICAgdGhpcy56ID0gejtcbiAgICAgICAgYy5kZXRhY2goKTtcbiAgICAgICAgdGhpcy5lbCA9IHIubmF0aXZlRWxlbWVudDtcbiAgICB9XG4gICAgQW1wbGlmeVNpZ25PdXQuZGVjb3JhdG9ycyA9IFtcbiAgICAgICAgeyB0eXBlOiBDb21wb25lbnQsIGFyZ3M6IFt7IHNlbGVjdG9yOiAnYW1wbGlmeS1zaWduLW91dCcsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnYnV0dG9uVGV4dCcsICdoYW5kbGVBdXRoU3RhdGVDaGFuZ2UnXSB9LF0gfSxcbiAgICBdO1xuICAgIC8qKiBAbm9jb2xsYXBzZSAqL1xuICAgIEFtcGxpZnlTaWduT3V0LmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5U2lnbk91dCA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydidXR0b25UZXh0JywgJ2hhbmRsZUF1dGhTdGF0ZUNoYW5nZSddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlTaWduT3V0KTtcbiAgICByZXR1cm4gQW1wbGlmeVNpZ25PdXQ7XG59KCkpO1xudmFyIEFtcGxpZnlTaWduVXAgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7XG4gICAgZnVuY3Rpb24gQW1wbGlmeVNpZ25VcChjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlTaWduVXAuZGVjb3JhdG9ycyA9IFtcbiAgICAgICAgeyB0eXBlOiBDb21wb25lbnQsIGFyZ3M6IFt7IHNlbGVjdG9yOiAnYW1wbGlmeS1zaWduLXVwJywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsIGlucHV0czogWydmb3JtRmllbGRzJywgJ2hhbmRsZUF1dGhTdGF0ZUNoYW5nZScsICdoYW5kbGVTdWJtaXQnLCAnaGF2ZUFjY291bnRUZXh0JywgJ2hlYWRlclRleHQnLCAnc2lnbkluVGV4dCcsICdzdWJtaXRCdXR0b25UZXh0JywgJ3VzZXJuYW1lQWxpYXMnLCAndmFsaWRhdGlvbkVycm9ycyddIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeVNpZ25VcC5jdG9yUGFyYW1ldGVycyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIFtcbiAgICAgICAgeyB0eXBlOiBDaGFuZ2VEZXRlY3RvclJlZiB9LFxuICAgICAgICB7IHR5cGU6IEVsZW1lbnRSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBOZ1pvbmUgfVxuICAgIF07IH07XG4gICAgQW1wbGlmeVNpZ25VcCA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydmb3JtRmllbGRzJywgJ2hhbmRsZUF1dGhTdGF0ZUNoYW5nZScsICdoYW5kbGVTdWJtaXQnLCAnaGF2ZUFjY291bnRUZXh0JywgJ2hlYWRlclRleHQnLCAnc2lnbkluVGV4dCcsICdzdWJtaXRCdXR0b25UZXh0JywgJ3VzZXJuYW1lQWxpYXMnLCAndmFsaWRhdGlvbkVycm9ycyddIH0pLFxuICAgICAgICBfX21ldGFkYXRhKFwiZGVzaWduOnBhcmFtdHlwZXNcIiwgW0NoYW5nZURldGVjdG9yUmVmLCBFbGVtZW50UmVmLCBOZ1pvbmVdKVxuICAgIF0sIEFtcGxpZnlTaWduVXApO1xuICAgIHJldHVybiBBbXBsaWZ5U2lnblVwO1xufSgpKTtcbnZhciBBbXBsaWZ5U3RyaWtlID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlTdHJpa2UoYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5U3RyaWtlLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktc3RyaWtlJywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicgfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5U3RyaWtlLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICByZXR1cm4gQW1wbGlmeVN0cmlrZTtcbn0oKSk7XG52YXIgQW1wbGlmeVRvYXN0ID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlUb2FzdChjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlUb2FzdC5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LXRvYXN0JywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsIGlucHV0czogWydoYW5kbGVDbG9zZScsICdtZXNzYWdlJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5VG9hc3QuY3RvclBhcmFtZXRlcnMgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBbXG4gICAgICAgIHsgdHlwZTogQ2hhbmdlRGV0ZWN0b3JSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBFbGVtZW50UmVmIH0sXG4gICAgICAgIHsgdHlwZTogTmdab25lIH1cbiAgICBdOyB9O1xuICAgIEFtcGxpZnlUb2FzdCA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydoYW5kbGVDbG9zZScsICdtZXNzYWdlJ10gfSksXG4gICAgICAgIF9fbWV0YWRhdGEoXCJkZXNpZ246cGFyYW10eXBlc1wiLCBbQ2hhbmdlRGV0ZWN0b3JSZWYsIEVsZW1lbnRSZWYsIE5nWm9uZV0pXG4gICAgXSwgQW1wbGlmeVRvYXN0KTtcbiAgICByZXR1cm4gQW1wbGlmeVRvYXN0O1xufSgpKTtcbnZhciBBbXBsaWZ5VG9vbHRpcCA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5VG9vbHRpcChjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlUb29sdGlwLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktdG9vbHRpcCcsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnc2hvdWxkQXV0b1Nob3cnLCAndGV4dCddIH0sXSB9LFxuICAgIF07XG4gICAgLyoqIEBub2NvbGxhcHNlICovXG4gICAgQW1wbGlmeVRvb2x0aXAuY3RvclBhcmFtZXRlcnMgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBbXG4gICAgICAgIHsgdHlwZTogQ2hhbmdlRGV0ZWN0b3JSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBFbGVtZW50UmVmIH0sXG4gICAgICAgIHsgdHlwZTogTmdab25lIH1cbiAgICBdOyB9O1xuICAgIEFtcGxpZnlUb29sdGlwID0gX19kZWNvcmF0ZShbXG4gICAgICAgIFByb3h5Q21wKHsgaW5wdXRzOiBbJ3Nob3VsZEF1dG9TaG93JywgJ3RleHQnXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5VG9vbHRpcCk7XG4gICAgcmV0dXJuIEFtcGxpZnlUb29sdGlwO1xufSgpKTtcbnZhciBBbXBsaWZ5VG90cFNldHVwID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkge1xuICAgIGZ1bmN0aW9uIEFtcGxpZnlUb3RwU2V0dXAoYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5VG90cFNldHVwLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktdG90cC1zZXR1cCcsIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLCB0ZW1wbGF0ZTogJzxuZy1jb250ZW50PjwvbmctY29udGVudD4nLCBpbnB1dHM6IFsnaGFuZGxlQXV0aFN0YXRlQ2hhbmdlJywgJ2hlYWRlclRleHQnLCAnaXNzdWVyJywgJ3VzZXInXSB9LF0gfSxcbiAgICBdO1xuICAgIC8qKiBAbm9jb2xsYXBzZSAqL1xuICAgIEFtcGxpZnlUb3RwU2V0dXAuY3RvclBhcmFtZXRlcnMgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBbXG4gICAgICAgIHsgdHlwZTogQ2hhbmdlRGV0ZWN0b3JSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBFbGVtZW50UmVmIH0sXG4gICAgICAgIHsgdHlwZTogTmdab25lIH1cbiAgICBdOyB9O1xuICAgIEFtcGxpZnlUb3RwU2V0dXAgPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnaGFuZGxlQXV0aFN0YXRlQ2hhbmdlJywgJ2hlYWRlclRleHQnLCAnaXNzdWVyJywgJ3VzZXInXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5VG90cFNldHVwKTtcbiAgICByZXR1cm4gQW1wbGlmeVRvdHBTZXR1cDtcbn0oKSk7XG52YXIgQW1wbGlmeVVzZXJuYW1lRmllbGQgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7XG4gICAgZnVuY3Rpb24gQW1wbGlmeVVzZXJuYW1lRmllbGQoYywgciwgeikge1xuICAgICAgICB0aGlzLnogPSB6O1xuICAgICAgICBjLmRldGFjaCgpO1xuICAgICAgICB0aGlzLmVsID0gci5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgICBBbXBsaWZ5VXNlcm5hbWVGaWVsZC5kZWNvcmF0b3JzID0gW1xuICAgICAgICB7IHR5cGU6IENvbXBvbmVudCwgYXJnczogW3sgc2VsZWN0b3I6ICdhbXBsaWZ5LXVzZXJuYW1lLWZpZWxkJywgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsIHRlbXBsYXRlOiAnPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PicsIGlucHV0czogWydkaXNhYmxlZCcsICdmaWVsZElkJywgJ2hhbmRsZUlucHV0Q2hhbmdlJywgJ2lucHV0UHJvcHMnLCAnbGFiZWwnLCAncGxhY2Vob2xkZXInLCAncmVxdWlyZWQnLCAndmFsdWUnXSB9LF0gfSxcbiAgICBdO1xuICAgIC8qKiBAbm9jb2xsYXBzZSAqL1xuICAgIEFtcGxpZnlVc2VybmFtZUZpZWxkLmN0b3JQYXJhbWV0ZXJzID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gW1xuICAgICAgICB7IHR5cGU6IENoYW5nZURldGVjdG9yUmVmIH0sXG4gICAgICAgIHsgdHlwZTogRWxlbWVudFJlZiB9LFxuICAgICAgICB7IHR5cGU6IE5nWm9uZSB9XG4gICAgXTsgfTtcbiAgICBBbXBsaWZ5VXNlcm5hbWVGaWVsZCA9IF9fZGVjb3JhdGUoW1xuICAgICAgICBQcm94eUNtcCh7IGlucHV0czogWydkaXNhYmxlZCcsICdmaWVsZElkJywgJ2hhbmRsZUlucHV0Q2hhbmdlJywgJ2lucHV0UHJvcHMnLCAnbGFiZWwnLCAncGxhY2Vob2xkZXInLCAncmVxdWlyZWQnLCAndmFsdWUnXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5VXNlcm5hbWVGaWVsZCk7XG4gICAgcmV0dXJuIEFtcGxpZnlVc2VybmFtZUZpZWxkO1xufSgpKTtcbnZhciBBbXBsaWZ5VmVyaWZ5Q29udGFjdCA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5VmVyaWZ5Q29udGFjdChjLCByLCB6KSB7XG4gICAgICAgIHRoaXMueiA9IHo7XG4gICAgICAgIGMuZGV0YWNoKCk7XG4gICAgICAgIHRoaXMuZWwgPSByLm5hdGl2ZUVsZW1lbnQ7XG4gICAgfVxuICAgIEFtcGxpZnlWZXJpZnlDb250YWN0LmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogQ29tcG9uZW50LCBhcmdzOiBbeyBzZWxlY3RvcjogJ2FtcGxpZnktdmVyaWZ5LWNvbnRhY3QnLCBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCwgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JywgaW5wdXRzOiBbJ2hhbmRsZUF1dGhTdGF0ZUNoYW5nZScsICd1c2VyJ10gfSxdIH0sXG4gICAgXTtcbiAgICAvKiogQG5vY29sbGFwc2UgKi9cbiAgICBBbXBsaWZ5VmVyaWZ5Q29udGFjdC5jdG9yUGFyYW1ldGVycyA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIFtcbiAgICAgICAgeyB0eXBlOiBDaGFuZ2VEZXRlY3RvclJlZiB9LFxuICAgICAgICB7IHR5cGU6IEVsZW1lbnRSZWYgfSxcbiAgICAgICAgeyB0eXBlOiBOZ1pvbmUgfVxuICAgIF07IH07XG4gICAgQW1wbGlmeVZlcmlmeUNvbnRhY3QgPSBfX2RlY29yYXRlKFtcbiAgICAgICAgUHJveHlDbXAoeyBpbnB1dHM6IFsnaGFuZGxlQXV0aFN0YXRlQ2hhbmdlJywgJ3VzZXInXSB9KSxcbiAgICAgICAgX19tZXRhZGF0YShcImRlc2lnbjpwYXJhbXR5cGVzXCIsIFtDaGFuZ2VEZXRlY3RvclJlZiwgRWxlbWVudFJlZiwgTmdab25lXSlcbiAgICBdLCBBbXBsaWZ5VmVyaWZ5Q29udGFjdCk7XG4gICAgcmV0dXJuIEFtcGxpZnlWZXJpZnlDb250YWN0O1xufSgpKTtcblxuLyoqXG4gKiBAZmlsZW92ZXJ2aWV3IGFkZGVkIGJ5IHRzaWNrbGVcbiAqIEBzdXBwcmVzcyB7Y2hlY2tUeXBlcyxleHRyYVJlcXVpcmUsbWlzc2luZ092ZXJyaWRlLG1pc3NpbmdSZXR1cm4sdW51c2VkUHJpdmF0ZU1lbWJlcnMsdXNlbGVzc0NvZGV9IGNoZWNrZWQgYnkgdHNjXG4gKi9cbmRlZmluZUN1c3RvbUVsZW1lbnRzKHdpbmRvdyk7XG4vKiogQHR5cGUgez99ICovXG52YXIgREVDTEFSQVRJT05TID0gW1xuICAgIEFtcGxpZnlBbWF6b25CdXR0b24sXG4gICAgQW1wbGlmeUF1dGgwQnV0dG9uLFxuICAgIEFtcGxpZnlBdXRoZW50aWNhdG9yLFxuICAgIEFtcGxpZnlBdXRoRmllbGRzLFxuICAgIEFtcGxpZnlCdXR0b24sXG4gICAgQW1wbGlmeUNoYXRib3QsXG4gICAgQW1wbGlmeUNoZWNrYm94LFxuICAgIEFtcGxpZnlDb2RlRmllbGQsXG4gICAgQW1wbGlmeUNvbmZpcm1TaWduSW4sXG4gICAgQW1wbGlmeUNvbmZpcm1TaWduVXAsXG4gICAgQW1wbGlmeUNvbnRhaW5lcixcbiAgICBBbXBsaWZ5Q291bnRyeURpYWxDb2RlLFxuICAgIEFtcGxpZnlFbWFpbEZpZWxkLFxuICAgIEFtcGxpZnlGYWNlYm9va0J1dHRvbixcbiAgICBBbXBsaWZ5RmVkZXJhdGVkQnV0dG9ucyxcbiAgICBBbXBsaWZ5RmVkZXJhdGVkU2lnbkluLFxuICAgIEFtcGxpZnlGb3Jnb3RQYXNzd29yZCxcbiAgICBBbXBsaWZ5Rm9ybUZpZWxkLFxuICAgIEFtcGxpZnlGb3JtU2VjdGlvbixcbiAgICBBbXBsaWZ5R29vZ2xlQnV0dG9uLFxuICAgIEFtcGxpZnlHcmVldGluZ3MsXG4gICAgQW1wbGlmeUhpbnQsXG4gICAgQW1wbGlmeUljb24sXG4gICAgQW1wbGlmeUljb25CdXR0b24sXG4gICAgQW1wbGlmeUlucHV0LFxuICAgIEFtcGxpZnlMYWJlbCxcbiAgICBBbXBsaWZ5TGluayxcbiAgICBBbXBsaWZ5TG9hZGluZ1NwaW5uZXIsXG4gICAgQW1wbGlmeU5hdixcbiAgICBBbXBsaWZ5T2F1dGhCdXR0b24sXG4gICAgQW1wbGlmeVBhc3N3b3JkRmllbGQsXG4gICAgQW1wbGlmeVBob25lRmllbGQsXG4gICAgQW1wbGlmeVBob3RvUGlja2VyLFxuICAgIEFtcGxpZnlQaWNrZXIsXG4gICAgQW1wbGlmeVJhZGlvQnV0dG9uLFxuICAgIEFtcGxpZnlSZXF1aXJlTmV3UGFzc3dvcmQsXG4gICAgQW1wbGlmeVMzQWxidW0sXG4gICAgQW1wbGlmeVMzSW1hZ2UsXG4gICAgQW1wbGlmeVMzSW1hZ2VQaWNrZXIsXG4gICAgQW1wbGlmeVMzVGV4dCxcbiAgICBBbXBsaWZ5UzNUZXh0UGlja2VyLFxuICAgIEFtcGxpZnlTZWN0aW9uLFxuICAgIEFtcGxpZnlTZWxlY3QsXG4gICAgQW1wbGlmeVNlbGVjdE1mYVR5cGUsXG4gICAgQW1wbGlmeVNpZ25JbixcbiAgICBBbXBsaWZ5U2lnbkluQnV0dG9uLFxuICAgIEFtcGxpZnlTaWduT3V0LFxuICAgIEFtcGxpZnlTaWduVXAsXG4gICAgQW1wbGlmeVN0cmlrZSxcbiAgICBBbXBsaWZ5VG9hc3QsXG4gICAgQW1wbGlmeVRvb2x0aXAsXG4gICAgQW1wbGlmeVRvdHBTZXR1cCxcbiAgICBBbXBsaWZ5VXNlcm5hbWVGaWVsZCxcbiAgICBBbXBsaWZ5VmVyaWZ5Q29udGFjdCxcbl07XG52YXIgQW1wbGlmeVVJQW5ndWxhck1vZHVsZSA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHtcbiAgICBmdW5jdGlvbiBBbXBsaWZ5VUlBbmd1bGFyTW9kdWxlKCkge1xuICAgIH1cbiAgICBBbXBsaWZ5VUlBbmd1bGFyTW9kdWxlLmRlY29yYXRvcnMgPSBbXG4gICAgICAgIHsgdHlwZTogTmdNb2R1bGUsIGFyZ3M6IFt7XG4gICAgICAgICAgICAgICAgICAgIGRlY2xhcmF0aW9uczogREVDTEFSQVRJT05TLFxuICAgICAgICAgICAgICAgICAgICBleHBvcnRzOiBERUNMQVJBVElPTlMsXG4gICAgICAgICAgICAgICAgICAgIGltcG9ydHM6IFtdLFxuICAgICAgICAgICAgICAgICAgICBwcm92aWRlcnM6IFtdLFxuICAgICAgICAgICAgICAgIH0sXSB9LFxuICAgIF07XG4gICAgcmV0dXJuIEFtcGxpZnlVSUFuZ3VsYXJNb2R1bGU7XG59KCkpO1xuXG5leHBvcnQgeyBBbXBsaWZ5QW1hem9uQnV0dG9uLCBBbXBsaWZ5QXV0aDBCdXR0b24sIEFtcGxpZnlBdXRoRmllbGRzLCBBbXBsaWZ5QXV0aGVudGljYXRvciwgQW1wbGlmeUJ1dHRvbiwgQW1wbGlmeUNoYXRib3QsIEFtcGxpZnlDaGVja2JveCwgQW1wbGlmeUNvZGVGaWVsZCwgQW1wbGlmeUNvbmZpcm1TaWduSW4sIEFtcGxpZnlDb25maXJtU2lnblVwLCBBbXBsaWZ5Q29udGFpbmVyLCBBbXBsaWZ5Q291bnRyeURpYWxDb2RlLCBBbXBsaWZ5RW1haWxGaWVsZCwgQW1wbGlmeUZhY2Vib29rQnV0dG9uLCBBbXBsaWZ5RmVkZXJhdGVkQnV0dG9ucywgQW1wbGlmeUZlZGVyYXRlZFNpZ25JbiwgQW1wbGlmeUZvcmdvdFBhc3N3b3JkLCBBbXBsaWZ5Rm9ybUZpZWxkLCBBbXBsaWZ5Rm9ybVNlY3Rpb24sIEFtcGxpZnlHb29nbGVCdXR0b24sIEFtcGxpZnlHcmVldGluZ3MsIEFtcGxpZnlIaW50LCBBbXBsaWZ5SWNvbiwgQW1wbGlmeUljb25CdXR0b24sIEFtcGxpZnlJbnB1dCwgQW1wbGlmeUxhYmVsLCBBbXBsaWZ5TGluaywgQW1wbGlmeUxvYWRpbmdTcGlubmVyLCBBbXBsaWZ5TmF2LCBBbXBsaWZ5T2F1dGhCdXR0b24sIEFtcGxpZnlQYXNzd29yZEZpZWxkLCBBbXBsaWZ5UGhvbmVGaWVsZCwgQW1wbGlmeVBob3RvUGlja2VyLCBBbXBsaWZ5UGlja2VyLCBBbXBsaWZ5UmFkaW9CdXR0b24sIEFtcGxpZnlSZXF1aXJlTmV3UGFzc3dvcmQsIEFtcGxpZnlTM0FsYnVtLCBBbXBsaWZ5UzNJbWFnZSwgQW1wbGlmeVMzSW1hZ2VQaWNrZXIsIEFtcGxpZnlTM1RleHQsIEFtcGxpZnlTM1RleHRQaWNrZXIsIEFtcGxpZnlTZWN0aW9uLCBBbXBsaWZ5U2VsZWN0LCBBbXBsaWZ5U2VsZWN0TWZhVHlwZSwgQW1wbGlmeVNpZ25JbiwgQW1wbGlmeVNpZ25JbkJ1dHRvbiwgQW1wbGlmeVNpZ25PdXQsIEFtcGxpZnlTaWduVXAsIEFtcGxpZnlTdHJpa2UsIEFtcGxpZnlUb2FzdCwgQW1wbGlmeVRvb2x0aXAsIEFtcGxpZnlUb3RwU2V0dXAsIEFtcGxpZnlVSUFuZ3VsYXJNb2R1bGUsIEFtcGxpZnlVc2VybmFtZUZpZWxkLCBBbXBsaWZ5VmVyaWZ5Q29udGFjdCwgUHJveHlDbXAsIHByb3h5SW5wdXRzLCBwcm94eU1ldGhvZHMsIHByb3h5T3V0cHV0cyB9O1xuIl19 /***/ }), /***/ "Z8oC": /*!**********************************************!*\ !*** ./node_modules/lodash/_listCacheSet.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "y1pI"); /** * Sets the list cache `key` to `value`. * * @private * @name set * @memberOf ListCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the list cache instance. */ function listCacheSet(key, value) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { ++this.size; data.push([key, value]); } else { data[index][1] = value; } return this; } module.exports = listCacheSet; /***/ }), /***/ "ZBm+": /*!*********************************************************************!*\ !*** ./node_modules/graphql/validation/rules/NoUnusedFragments.mjs ***! \*********************************************************************/ /*! exports provided: unusedFragMessage, NoUnusedFragments */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unusedFragMessage", function() { return unusedFragMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NoUnusedFragments", function() { return NoUnusedFragments; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function unusedFragMessage(fragName) { return "Fragment \"".concat(fragName, "\" is never used."); } /** * No unused fragments * * A GraphQL document is only valid if all fragment definitions are spread * within operations, or spread within other fragments spread within operations. */ function NoUnusedFragments(context) { var operationDefs = []; var fragmentDefs = []; return { OperationDefinition: function OperationDefinition(node) { operationDefs.push(node); return false; }, FragmentDefinition: function FragmentDefinition(node) { fragmentDefs.push(node); return false; }, Document: { leave: function leave() { var fragmentNameUsed = Object.create(null); for (var _i = 0; _i < operationDefs.length; _i++) { var operation = operationDefs[_i]; var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = context.getRecursivelyReferencedFragments(operation)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var fragment = _step.value; fragmentNameUsed[fragment.name.value] = true; } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } } for (var _i2 = 0; _i2 < fragmentDefs.length; _i2++) { var fragmentDef = fragmentDefs[_i2]; var fragName = fragmentDef.name.value; if (fragmentNameUsed[fragName] !== true) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](unusedFragMessage(fragName), [fragmentDef])); } } } } }; } /***/ }), /***/ "ZCy7": /*!**************************************************************************************!*\ !*** ./node_modules/@aws-amplify/predictions/lib-esm/Providers/IdentifyTextUtils.js ***! \**************************************************************************************/ /*! exports provided: categorizeRekognitionBlocks, categorizeTextractBlocks, constructTable, constructKeyValue, extractContentsFromBlock */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "categorizeRekognitionBlocks", function() { return categorizeRekognitionBlocks; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "categorizeTextractBlocks", function() { return categorizeTextractBlocks; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "constructTable", function() { return constructTable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "constructKeyValue", function() { return constructKeyValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractContentsFromBlock", function() { return extractContentsFromBlock; }); /* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils */ "I6Eg"); var __values = (undefined && undefined.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; function getBoundingBox(geometry) { if (!geometry) return undefined; return Object(_Utils__WEBPACK_IMPORTED_MODULE_0__["makeCamelCase"])(geometry.BoundingBox); } function getPolygon(geometry) { if (!geometry) return undefined; return Object(_Utils__WEBPACK_IMPORTED_MODULE_0__["makeCamelCaseArray"])(Array.from(geometry.Polygon)); } /** * Organizes blocks from Rekognition API to each of the categories and and structures * their data accordingly. * @param {BlockList} source - Array containing blocks returned from Textract API. * @return {IdentifyTextOutput} - Object that categorizes each block and its information. */ function categorizeRekognitionBlocks(blocks) { // Skeleton IdentifyText API response. We will populate it as we iterate through blocks. var response = { text: { fullText: '', words: [], lines: [], linesDetailed: [], }, }; // We categorize each block by running a forEach loop through them. blocks.forEach(function (block) { switch (block.Type) { case 'LINE': response.text.lines.push(block.DetectedText); response.text.linesDetailed.push({ text: block.DetectedText, polygon: getPolygon(block.Geometry), boundingBox: getBoundingBox(block.Geometry), page: null, }); break; case 'WORD': response.text.fullText += block.DetectedText + ' '; response.text.words.push({ text: block.DetectedText, polygon: getPolygon(block.Geometry), boundingBox: getBoundingBox(block.Geometry), }); break; } }); // remove trailing space of fullText response.text.fullText = response.text.fullText.substr(0, response.text.fullText.length - 1); return response; } /** * Organizes blocks from Textract API to each of the categories and and structures * their data accordingly. * @param {BlockList} source - Array containing blocks returned from Textract API. * @return {IdentifyTextOutput} - Object that categorizes each block and its information. */ function categorizeTextractBlocks(blocks) { // Skeleton IdentifyText API response. We will populate it as we iterate through blocks. var response = { text: { fullText: '', words: [], lines: [], linesDetailed: [], }, }; // if blocks is an empty array, ie. textract did not detect anything, return empty response. if (blocks.length === 0) return response; /** * We categorize each of the blocks by running a forEach loop through them. * * For complex structures such as Tables and KeyValue, we need to trasverse through their children. To do so, * we will post-process them after the for each loop. We do this by storing table and keyvalues in arrays and * mapping other blocks in `blockMap` (id to block) so we can reference them easily later. * * Note that we do not map `WORD` and `TABLE` in `blockMap` because they will not be referenced by any other * block except the Page block. */ var tableBlocks = Array(); var keyValueBlocks = Array(); var blockMap = {}; blocks.forEach(function (block) { switch (block.BlockType) { case 'LINE': response.text.lines.push(block.Text); response.text.linesDetailed.push({ text: block.Text, polygon: getPolygon(block.Geometry), boundingBox: getBoundingBox(block.Geometry), page: block.Page, }); break; case 'WORD': response.text.fullText += block.Text + ' '; response.text.words.push({ text: block.Text, polygon: getPolygon(block.Geometry), boundingBox: getBoundingBox(block.Geometry), }); blockMap[block.Id] = block; break; case 'SELECTION_ELEMENT': var selectionStatus = block.SelectionStatus === 'SELECTED' ? true : false; if (!response.text.selections) response.text.selections = []; response.text.selections.push({ selected: selectionStatus, polygon: getPolygon(block.Geometry), boundingBox: getBoundingBox(block.Geometry), }); blockMap[block.Id] = block; break; case 'TABLE': tableBlocks.push(block); break; case 'KEY_VALUE_SET': keyValueBlocks.push(block); blockMap[block.Id] = block; break; default: blockMap[block.Id] = block; } }); // remove trailing space in fullText response.text.fullText = response.text.fullText.substr(0, response.text.fullText.length - 1); // Post-process complex structures if they exist. if (tableBlocks.length !== 0) { var tableResponse_1 = Array(); tableBlocks.forEach(function (table) { tableResponse_1.push(constructTable(table, blockMap)); }); response.text.tables = tableResponse_1; } if (keyValueBlocks.length !== 0) { var keyValueResponse_1 = Array(); keyValueBlocks.forEach(function (keyValue) { // We need the KeyValue blocks of EntityType = `KEY`, which has both key and value references. var entityTypes = Array.from(keyValue.EntityTypes); if (entityTypes.indexOf('KEY') !== -1) { keyValueResponse_1.push(constructKeyValue(keyValue, blockMap)); } }); response.text.keyValues = keyValueResponse_1; } return response; } /** * Constructs a table object using data from its children cells. * @param {Block} table - Table block that has references (`Relationships`) to its cells * @param {[id: string]: Block} blockMap - Maps block Ids to blocks. */ function constructTable(table, blockMap) { var e_1, _a, e_2, _b; var tableMatrix; tableMatrix = []; try { // visit each of the cell associated with the table's relationship. for (var _c = __values(table.Relationships), _d = _c.next(); !_d.done; _d = _c.next()) { var tableRelation = _d.value; try { for (var _e = (e_2 = void 0, __values(tableRelation.Ids)), _f = _e.next(); !_f.done; _f = _e.next()) { var cellId = _f.value; var cellBlock = blockMap[cellId]; var row = cellBlock.RowIndex - 1; // textract starts indexing at 1, so subtract it by 1. var col = cellBlock.ColumnIndex - 1; // textract starts indexing at 1, so subtract it by 1. // extract data contained inside the cell. var content = extractContentsFromBlock(cellBlock, blockMap); var cell = { text: content.text, boundingBox: getBoundingBox(cellBlock.Geometry), polygon: getPolygon(cellBlock.Geometry), selected: content.selected, rowSpan: cellBlock.RowSpan, columnSpan: cellBlock.ColumnSpan, }; if (!tableMatrix[row]) tableMatrix[row] = []; tableMatrix[row][col] = cell; } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_2) throw e_2.error; } } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_1) throw e_1.error; } } var rowSize = tableMatrix.length; var columnSize = tableMatrix[0].length; // Note that we leave spanned cells undefined for distinction return { size: { rows: rowSize, columns: columnSize }, table: tableMatrix, boundingBox: getBoundingBox(table.Geometry), polygon: getPolygon(table.Geometry), }; } /** * Constructs a key value object from its children key and value blocks. * @param {Block} KeyValue - KeyValue block that has references (`Relationships`) to its children. * @param {[id: string]: Block} blockMap - Maps block Ids to blocks. */ function constructKeyValue(keyBlock, blockMap) { var e_3, _a, e_4, _b; var keyText = ''; var valueText = ''; var valueSelected; try { for (var _c = __values(keyBlock.Relationships), _d = _c.next(); !_d.done; _d = _c.next()) { var keyValueRelation = _d.value; if (keyValueRelation.Type === 'CHILD') { // relation refers to key var contents = extractContentsFromBlock(keyBlock, blockMap); keyText = contents.text; } else if (keyValueRelation.Type === 'VALUE') { try { // relation refers to value for (var _e = (e_4 = void 0, __values(keyValueRelation.Ids)), _f = _e.next(); !_f.done; _f = _e.next()) { var valueId = _f.value; var valueBlock = blockMap[valueId]; var contents = extractContentsFromBlock(valueBlock, blockMap); valueText = contents.text; if (contents.selected != null) valueSelected = contents.selected; } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_4) throw e_4.error; } } } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_3) throw e_3.error; } } return { key: keyText, value: { text: valueText, selected: valueSelected }, polygon: getPolygon(keyBlock.Geometry), boundingBox: getBoundingBox(keyBlock.Geometry), }; } /** * Extracts text and selection from input block's children. * @param {Block}} block - Block that we want to extract contents from. * @param {[id: string]: Block} blockMap - Maps block Ids to blocks. */ function extractContentsFromBlock(block, blockMap) { var e_5, _a, e_6, _b; var words = ''; var isSelected; if (!block.Relationships) { // some block might have no content return { text: '', selected: undefined }; } try { for (var _c = __values(block.Relationships), _d = _c.next(); !_d.done; _d = _c.next()) { var relation = _d.value; try { for (var _e = (e_6 = void 0, __values(relation.Ids)), _f = _e.next(); !_f.done; _f = _e.next()) { var contentId = _f.value; var contentBlock = blockMap[contentId]; if (contentBlock.BlockType === 'WORD') { words += contentBlock.Text + ' '; } else if (contentBlock.BlockType === 'SELECTION_ELEMENT') { isSelected = contentBlock.SelectionStatus === 'SELECTED' ? true : false; } } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_6) throw e_6.error; } } } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_5) throw e_5.error; } } words = words.substr(0, words.length - 1); // remove trailing space. return { text: words, selected: isSelected }; } //# sourceMappingURL=IdentifyTextUtils.js.map /***/ }), /***/ "ZD8D": /*!**********************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/package.json ***! \**********************************************************************/ /*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, author, license, default */ /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"@aws-sdk/client-comprehend\",\"description\":\"@aws-sdk/client-comprehend client\",\"version\":\"1.0.0-gamma.8\",\"scripts\":{\"clean\":\"npm run remove-definitions && npm run remove-dist\",\"build-documentation\":\"npm run clean && typedoc ./\",\"prepublishOnly\":\"yarn build\",\"pretest\":\"yarn build:cjs\",\"remove-definitions\":\"rimraf ./types\",\"remove-dist\":\"rimraf ./dist\",\"remove-documentation\":\"rimraf ./docs\",\"test\":\"exit 0\",\"build:cjs\":\"tsc -p tsconfig.json\",\"build:es\":\"tsc -p tsconfig.es.json\",\"build\":\"yarn build:cjs && yarn build:es\"},\"main\":\"./dist/cjs/index.js\",\"types\":\"./types/index.d.ts\",\"module\":\"./dist/es/index.js\",\"browser\":{\"./runtimeConfig\":\"./runtimeConfig.browser\"},\"react-native\":{\"./runtimeConfig\":\"./runtimeConfig.native\"},\"sideEffects\":false,\"dependencies\":{\"@aws-crypto/sha256-browser\":\"^1.0.0-alpha.0\",\"@aws-crypto/sha256-js\":\"^1.0.0-alpha.0\",\"@aws-sdk/config-resolver\":\"1.0.0-gamma.7\",\"@aws-sdk/credential-provider-node\":\"1.0.0-gamma.7\",\"@aws-sdk/fetch-http-handler\":\"1.0.0-gamma.8\",\"@aws-sdk/hash-node\":\"1.0.0-gamma.7\",\"@aws-sdk/invalid-dependency\":\"1.0.0-gamma.5\",\"@aws-sdk/middleware-content-length\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-host-header\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-logger\":\"1.0.0-gamma.1\",\"@aws-sdk/middleware-retry\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-serde\":\"1.0.0-gamma.6\",\"@aws-sdk/middleware-signing\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-stack\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-user-agent\":\"1.0.0-gamma.7\",\"@aws-sdk/node-config-provider\":\"1.0.0-gamma.2\",\"@aws-sdk/node-http-handler\":\"1.0.0-gamma.7\",\"@aws-sdk/protocol-http\":\"1.0.0-gamma.7\",\"@aws-sdk/smithy-client\":\"1.0.0-gamma.7\",\"@aws-sdk/types\":\"1.0.0-gamma.6\",\"@aws-sdk/url-parser-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/url-parser-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-base64-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-base64-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-user-agent-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/util-user-agent-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-utf8-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-utf8-node\":\"1.0.0-gamma.6\",\"tslib\":\"^2.0.0\",\"uuid\":\"^3.0.0\"},\"devDependencies\":{\"@aws-sdk/client-documentation-generator\":\"1.0.0-gamma.5\",\"@types/node\":\"^12.7.5\",\"@types/uuid\":\"^3.0.0\",\"jest\":\"^26.1.0\",\"rimraf\":\"^3.0.0\",\"typedoc\":\"^0.17.8\",\"typescript\":\"~4.0.2\"},\"engines\":{\"node\":\">=8.0.0\"},\"author\":{\"name\":\"AWS SDK for JavaScript Team\",\"url\":\"https://aws.amazon.com/javascript/\"},\"license\":\"Apache-2.0\"}"); /***/ }), /***/ "ZIxo": /*!******************************************************************************!*\ !*** ./node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Sha256 = void 0; var ie11Sha256_1 = __webpack_require__(/*! ./ie11Sha256 */ "dFEU"); var webCryptoSha256_1 = __webpack_require__(/*! ./webCryptoSha256 */ "b4Ml"); var sha256_js_1 = __webpack_require__(/*! @aws-crypto/sha256-js */ "nHoN"); var supports_web_crypto_1 = __webpack_require__(/*! @aws-crypto/supports-web-crypto */ "bVud"); var ie11_detection_1 = __webpack_require__(/*! @aws-crypto/ie11-detection */ "YX4P"); var util_locate_window_1 = __webpack_require__(/*! @aws-sdk/util-locate-window */ "tlIM"); var Sha256 = /** @class */ (function () { function Sha256(secret) { if (supports_web_crypto_1.supportsWebCrypto(util_locate_window_1.locateWindow())) { this.hash = new webCryptoSha256_1.Sha256(secret); } else if (ie11_detection_1.isMsWindow(util_locate_window_1.locateWindow())) { this.hash = new ie11Sha256_1.Sha256(secret); } else { this.hash = new sha256_js_1.Sha256(secret); } } Sha256.prototype.update = function (data, encoding) { this.hash.update(data, encoding); }; Sha256.prototype.digest = function () { return this.hash.digest(); }; return Sha256; }()); exports.Sha256 = Sha256; //# sourceMappingURL=crossPlatformSha256.js.map /***/ }), /***/ "ZM/B": /*!*****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointCommand.js ***! \*****************************************************************************************/ /*! exports provided: UpdateEndpointCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointCommand", function() { return UpdateEndpointCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UpdateEndpointCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateEndpointCommand, _super); // Start section: command_properties // End section: command_properties function UpdateEndpointCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UpdateEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UpdateEndpointCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateEndpointCommand"])(input, context); }; UpdateEndpointCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateEndpointCommand"])(output, context); }; return UpdateEndpointCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=UpdateEndpointCommand.js.map /***/ }), /***/ "ZS8B": /*!***************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-translate/dist/es/commands/StartTextTranslationJobCommand.js ***! \***************************************************************************************************/ /*! exports provided: StartTextTranslationJobCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartTextTranslationJobCommand", function() { return StartTextTranslationJobCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "B4mn"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "eh4a"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StartTextTranslationJobCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartTextTranslationJobCommand, _super); // Start section: command_properties // End section: command_properties function StartTextTranslationJobCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StartTextTranslationJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartTextTranslationJobRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartTextTranslationJobResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StartTextTranslationJobCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartTextTranslationJobCommand"])(input, context); }; StartTextTranslationJobCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartTextTranslationJobCommand"])(output, context); }; return StartTextTranslationJobCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StartTextTranslationJobCommand.js.map /***/ }), /***/ "ZUHj": /*!***********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/subscribeToResult.js ***! \***********************************************************************/ /*! exports provided: subscribeToResult */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeToResult", function() { return subscribeToResult; }); /* harmony import */ var _InnerSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../InnerSubscriber */ "51Dv"); /* harmony import */ var _subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./subscribeTo */ "SeVD"); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Observable */ "HDdC"); function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, innerSubscriber = new _InnerSubscriber__WEBPACK_IMPORTED_MODULE_0__["InnerSubscriber"](outerSubscriber, outerValue, outerIndex)) { if (innerSubscriber.closed) { return undefined; } if (result instanceof _Observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]) { return result.subscribe(innerSubscriber); } return Object(_subscribeTo__WEBPACK_IMPORTED_MODULE_1__["subscribeTo"])(result)(innerSubscriber); } //# sourceMappingURL=subscribeToResult.js.map /***/ }), /***/ "ZWtO": /*!*****************************************!*\ !*** ./node_modules/lodash/_baseGet.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var castPath = __webpack_require__(/*! ./_castPath */ "4uTw"), toKey = __webpack_require__(/*! ./_toKey */ "9Nap"); /** * The base implementation of `_.get` without support for default values. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path of the property to get. * @returns {*} Returns the resolved value. */ function baseGet(object, path) { path = castPath(path, object); var index = 0, length = path.length; while (object != null && index < length) { object = object[toKey(path[index++])]; } return (index && index == length) ? object : undefined; } module.exports = baseGet; /***/ }), /***/ "ZZnB": /*!************************************************************!*\ !*** ./node_modules/graphql/jsutils/defineToStringTag.mjs ***! \************************************************************/ /*! exports provided: default */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return applyToStringTag; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * The `applyToStringTag()` function checks first to see if the runtime * supports the `Symbol` class and then if the `Symbol.toStringTag` constant * is defined as a `Symbol` instance. If both conditions are met, the * Symbol.toStringTag property is defined as a getter that returns the * supplied class constructor's name. * * @method applyToStringTag * * @param {Class} classObject a class such as Object, String, Number but * typically one of your own creation through the class keyword; `class A {}`, * for example. */ function applyToStringTag(classObject) { if (typeof Symbol === 'function' && Symbol.toStringTag) { Object.defineProperty(classObject.prototype, Symbol.toStringTag, { get: function get() { return this.constructor.name; } }); } } /***/ }), /***/ "ZdkY": /*!**************************************************************!*\ !*** ./node_modules/@aws-sdk/xml-builder/dist/es/XmlText.js ***! \**************************************************************/ /*! exports provided: XmlText */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XmlText", function() { return XmlText; }); /* harmony import */ var _escape_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./escape-element */ "5UNh"); /** * Represents an XML text value. */ var XmlText = /** @class */ (function () { function XmlText(value) { this.value = value; } XmlText.prototype.toString = function () { return Object(_escape_element__WEBPACK_IMPORTED_MODULE_0__["escapeElement"])("" + this.value); }; return XmlText; }()); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiWG1sVGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9YbWxUZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUVqRDs7R0FFRztBQUNIO0lBQ0UsaUJBQW9CLEtBQWE7UUFBYixVQUFLLEdBQUwsS0FBSyxDQUFRO0lBQUcsQ0FBQztJQUVyQywwQkFBUSxHQUFSO1FBQ0UsT0FBTyxhQUFhLENBQUMsRUFBRSxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUN4QyxDQUFDO0lBQ0gsY0FBQztBQUFELENBQUMsQUFORCxJQU1DIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgZXNjYXBlRWxlbWVudCB9IGZyb20gXCIuL2VzY2FwZS1lbGVtZW50XCI7XG5pbXBvcnQgeyBTdHJpbmdhYmxlIH0gZnJvbSBcIi4vc3RyaW5nYWJsZVwiO1xuLyoqXG4gKiBSZXByZXNlbnRzIGFuIFhNTCB0ZXh0IHZhbHVlLlxuICovXG5leHBvcnQgY2xhc3MgWG1sVGV4dCBpbXBsZW1lbnRzIFN0cmluZ2FibGUge1xuICBjb25zdHJ1Y3Rvcihwcml2YXRlIHZhbHVlOiBzdHJpbmcpIHt9XG5cbiAgdG9TdHJpbmcoKTogc3RyaW5nIHtcbiAgICByZXR1cm4gZXNjYXBlRWxlbWVudChcIlwiICsgdGhpcy52YWx1ZSk7XG4gIH1cbn1cbiJdfQ== /***/ }), /***/ "ZfCc": /*!*************************************************************************!*\ !*** ./node_modules/graphql/validation/rules/ExecutableDefinitions.mjs ***! \*************************************************************************/ /*! exports provided: nonExecutableDefinitionMessage, ExecutableDefinitions */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nonExecutableDefinitionMessage", function() { return nonExecutableDefinitionMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExecutableDefinitions", function() { return ExecutableDefinitions; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /* harmony import */ var _language_kinds__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../language/kinds */ "/jXB"); /* harmony import */ var _language_predicates__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../language/predicates */ "Xizt"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function nonExecutableDefinitionMessage(defName) { return "The ".concat(defName, " definition is not executable."); } /** * Executable definitions * * A GraphQL document is only valid for execution if all definitions are either * operation or fragment definitions. */ function ExecutableDefinitions(context) { return { Document: function Document(node) { var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = node.definitions[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var definition = _step.value; if (!Object(_language_predicates__WEBPACK_IMPORTED_MODULE_2__["isExecutableDefinitionNode"])(definition)) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](nonExecutableDefinitionMessage(definition.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].SCHEMA_DEFINITION || definition.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_1__["Kind"].SCHEMA_EXTENSION ? 'schema' : definition.name.value), [definition])); } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } return false; } }; } /***/ }), /***/ "Zj+2": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-lex-runtime-service/dist/es/commands/PostTextCommand.js ***! \**********************************************************************************************/ /*! exports provided: PostTextCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PostTextCommand", function() { return PostTextCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "Vu3y"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "3fs/"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PostTextCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PostTextCommand, _super); // Start section: command_properties // End section: command_properties function PostTextCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PostTextCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PostTextRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PostTextResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PostTextCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PostTextCommand"])(input, context); }; PostTextCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PostTextCommand"])(output, context); }; return PostTextCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=PostTextCommand.js.map /***/ }), /***/ "Zmrd": /*!*************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutBucketWebsiteCommand.js ***! \*************************************************************************************/ /*! exports provided: PutBucketWebsiteCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutBucketWebsiteCommand", function() { return PutBucketWebsiteCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutBucketWebsiteCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutBucketWebsiteCommand, _super); // Start section: command_properties // End section: command_properties function PutBucketWebsiteCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutBucketWebsiteCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutBucketWebsiteRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutBucketWebsiteCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutBucketWebsiteCommand"])(input, context); }; PutBucketWebsiteCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutBucketWebsiteCommand"])(output, context); }; return PutBucketWebsiteCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=PutBucketWebsiteCommand.js.map /***/ }), /***/ "ZpUJ": /*!******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/DeleteBucketLifecycleCommand.js ***! \******************************************************************************************/ /*! exports provided: DeleteBucketLifecycleCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteBucketLifecycleCommand", function() { return DeleteBucketLifecycleCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteBucketLifecycleCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteBucketLifecycleCommand, _super); // Start section: command_properties // End section: command_properties function DeleteBucketLifecycleCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteBucketLifecycleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteBucketLifecycleRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteBucketLifecycleCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlDeleteBucketLifecycleCommand"])(input, context); }; DeleteBucketLifecycleCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlDeleteBucketLifecycleCommand"])(output, context); }; return DeleteBucketLifecycleCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=DeleteBucketLifecycleCommand.js.map /***/ }), /***/ "Zy1z": /*!*******************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/pairwise.js ***! \*******************************************************************/ /*! exports provided: pairwise */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pairwise", function() { return pairwise; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); function pairwise() { return (source) => source.lift(new PairwiseOperator()); } class PairwiseOperator { call(subscriber, source) { return source.subscribe(new PairwiseSubscriber(subscriber)); } } class PairwiseSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination) { super(destination); this.hasPrev = false; } _next(value) { let pair; if (this.hasPrev) { pair = [this.prev, value]; } else { this.hasPrev = true; } this.prev = value; if (pair) { this.destination.next(pair); } } } //# sourceMappingURL=pairwise.js.map /***/ }), /***/ "Zyez": /*!************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/sequenceEqual.js ***! \************************************************************************/ /*! exports provided: sequenceEqual, SequenceEqualOperator, SequenceEqualSubscriber */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sequenceEqual", function() { return sequenceEqual; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SequenceEqualOperator", function() { return SequenceEqualOperator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SequenceEqualSubscriber", function() { return SequenceEqualSubscriber; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); function sequenceEqual(compareTo, comparator) { return (source) => source.lift(new SequenceEqualOperator(compareTo, comparator)); } class SequenceEqualOperator { constructor(compareTo, comparator) { this.compareTo = compareTo; this.comparator = comparator; } call(subscriber, source) { return source.subscribe(new SequenceEqualSubscriber(subscriber, this.compareTo, this.comparator)); } } class SequenceEqualSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, compareTo, comparator) { super(destination); this.compareTo = compareTo; this.comparator = comparator; this._a = []; this._b = []; this._oneComplete = false; this.destination.add(compareTo.subscribe(new SequenceEqualCompareToSubscriber(destination, this))); } _next(value) { if (this._oneComplete && this._b.length === 0) { this.emit(false); } else { this._a.push(value); this.checkValues(); } } _complete() { if (this._oneComplete) { this.emit(this._a.length === 0 && this._b.length === 0); } else { this._oneComplete = true; } this.unsubscribe(); } checkValues() { const { _a, _b, comparator } = this; while (_a.length > 0 && _b.length > 0) { let a = _a.shift(); let b = _b.shift(); let areEqual = false; try { areEqual = comparator ? comparator(a, b) : a === b; } catch (e) { this.destination.error(e); } if (!areEqual) { this.emit(false); } } } emit(value) { const { destination } = this; destination.next(value); destination.complete(); } nextB(value) { if (this._oneComplete && this._a.length === 0) { this.emit(false); } else { this._b.push(value); this.checkValues(); } } completeB() { if (this._oneComplete) { this.emit(this._a.length === 0 && this._b.length === 0); } else { this._oneComplete = true; } } } class SequenceEqualCompareToSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, parent) { super(destination); this.parent = parent; } _next(value) { this.parent.nextB(value); } _error(err) { this.parent.error(err); this.unsubscribe(); } _complete() { this.parent.completeB(); this.unsubscribe(); } } //# sourceMappingURL=sequenceEqual.js.map /***/ }), /***/ "a2T7": /*!*************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-textract/dist/es/TextractClient.js ***! \*************************************************************************/ /*! exports provided: TextractClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextractClient", function() { return TextractClient; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./runtimeConfig */ "n15R"); /* harmony import */ var _aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/config-resolver */ "NtRE"); /* harmony import */ var _aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-content-length */ "naxo"); /* harmony import */ var _aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-host-header */ "Nl9j"); /* harmony import */ var _aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-logger */ "+tRG"); /* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "UMev"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/middleware-user-agent */ "87YT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); /** *

Amazon Textract detects and analyzes text in documents and converts it * into machine-readable text. This is the API reference documentation for * Amazon Textract.

*/ var TextractClient = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextractClient, _super); function TextractClient(configuration) { var _this = this; var _config_0 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__["ClientDefaultValues"]), configuration); var _config_1 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveRegionConfig"])(_config_0); var _config_2 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveEndpointsConfig"])(_config_1); var _config_3 = Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["resolveAwsAuthConfig"])(_config_2); var _config_4 = Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["resolveRetryConfig"])(_config_3); var _config_5 = Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["resolveUserAgentConfig"])(_config_4); var _config_6 = Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["resolveHostHeaderConfig"])(_config_5); var _config_7 = Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__["resolveLoggerConfig"])(_config_6); _this = _super.call(this, _config_7) || this; _this.config = _config_7; _this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["getAwsAuthPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["getRetryPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["getUserAgentPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__["getContentLengthPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["getHostHeaderPlugin"])(_this.config)); _this.middlewareStack.use(Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__["getLoggerPlugin"])(_this.config)); return _this; } TextractClient.prototype.destroy = function () { _super.prototype.destroy.call(this); }; return TextractClient; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__["Client"])); //# sourceMappingURL=TextractClient.js.map /***/ }), /***/ "a7t3": /*!************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/subscribeToPromise.js ***! \************************************************************************/ /*! exports provided: subscribeToPromise */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeToPromise", function() { return subscribeToPromise; }); /* harmony import */ var _hostReportError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./hostReportError */ "NJ4a"); const subscribeToPromise = (promise) => (subscriber) => { promise.then((value) => { if (!subscriber.closed) { subscriber.next(value); subscriber.complete(); } }, (err) => subscriber.error(err)) .then(null, _hostReportError__WEBPACK_IMPORTED_MODULE_0__["hostReportError"]); return subscriber; }; //# sourceMappingURL=subscribeToPromise.js.map /***/ }), /***/ "aCkC": /*!*****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/GetCelebrityRecognitionCommand.js ***! \*****************************************************************************************************/ /*! exports provided: GetCelebrityRecognitionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCelebrityRecognitionCommand", function() { return GetCelebrityRecognitionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetCelebrityRecognitionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCelebrityRecognitionCommand, _super); // Start section: command_properties // End section: command_properties function GetCelebrityRecognitionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetCelebrityRecognitionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCelebrityRecognitionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCelebrityRecognitionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetCelebrityRecognitionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetCelebrityRecognitionCommand"])(input, context); }; GetCelebrityRecognitionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetCelebrityRecognitionCommand"])(output, context); }; return GetCelebrityRecognitionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetCelebrityRecognitionCommand.js.map /***/ }), /***/ "aGrj": /*!**********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/switchMapTo.js ***! \**********************************************************************/ /*! exports provided: switchMapTo */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "switchMapTo", function() { return switchMapTo; }); /* harmony import */ var _switchMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./switchMap */ "eIep"); function switchMapTo(innerObservable, resultSelector) { return resultSelector ? Object(_switchMap__WEBPACK_IMPORTED_MODULE_0__["switchMap"])(() => innerObservable, resultSelector) : Object(_switchMap__WEBPACK_IMPORTED_MODULE_0__["switchMap"])(() => innerObservable); } //# sourceMappingURL=switchMapTo.js.map /***/ }), /***/ "aMBS": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/GetFaceDetectionCommand.js ***! \**********************************************************************************************/ /*! exports provided: GetFaceDetectionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetFaceDetectionCommand", function() { return GetFaceDetectionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetFaceDetectionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetFaceDetectionCommand, _super); // Start section: command_properties // End section: command_properties function GetFaceDetectionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetFaceDetectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetFaceDetectionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetFaceDetectionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetFaceDetectionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetFaceDetectionCommand"])(input, context); }; GetFaceDetectionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetFaceDetectionCommand"])(output, context); }; return GetFaceDetectionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetFaceDetectionCommand.js.map /***/ }), /***/ "aSwM": /*!******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetPushTemplateCommand.js ***! \******************************************************************************************/ /*! exports provided: GetPushTemplateCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateCommand", function() { return GetPushTemplateCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetPushTemplateCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetPushTemplateCommand, _super); // Start section: command_properties // End section: command_properties function GetPushTemplateCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetPushTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetPushTemplateRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetPushTemplateResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetPushTemplateCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetPushTemplateCommand"])(input, context); }; GetPushTemplateCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetPushTemplateCommand"])(output, context); }; return GetPushTemplateCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetPushTemplateCommand.js.map /***/ }), /***/ "aaE5": /*!*****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/commands/UpdateIdentityPoolCommand.js ***! \*****************************************************************************************************/ /*! exports provided: UpdateIdentityPoolCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateIdentityPoolCommand", function() { return UpdateIdentityPoolCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "j/EQ"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "7QQ4"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "qcsT"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UpdateIdentityPoolCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateIdentityPoolCommand, _super); // Start section: command_properties // End section: command_properties function UpdateIdentityPoolCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UpdateIdentityPoolCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_4__["getAwsAuthPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["IdentityPool"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["IdentityPool"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UpdateIdentityPoolCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1UpdateIdentityPoolCommand"])(input, context); }; UpdateIdentityPoolCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1UpdateIdentityPoolCommand"])(output, context); }; return UpdateIdentityPoolCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=UpdateIdentityPoolCommand.js.map /***/ }), /***/ "adU4": /*!*************************************************!*\ !*** ./node_modules/lodash/_listCacheDelete.js ***! \*************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "y1pI"); /** Used for built-in method references. */ var arrayProto = Array.prototype; /** Built-in value references. */ var splice = arrayProto.splice; /** * Removes `key` and its value from the list cache. * * @private * @name delete * @memberOf ListCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function listCacheDelete(key) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { return false; } var lastIndex = data.length - 1; if (index == lastIndex) { data.pop(); } else { splice.call(data, index, 1); } --this.size; return true; } module.exports = listCacheDelete; /***/ }), /***/ "agZC": /*!***************************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-user-agent/dist/es/middleware.js ***! \***************************************************************************/ /*! exports provided: userAgentMiddleware, getUserAgentMiddlewareOptions, getUserAgentPlugin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "userAgentMiddleware", function() { return userAgentMiddleware; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUserAgentMiddlewareOptions", function() { return getUserAgentMiddlewareOptions; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUserAgentPlugin", function() { return getUserAgentPlugin; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "Enk7"); function userAgentMiddleware(options) { return function (next) { return function (args) { var request = args.request; if (!_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(request)) return next(args); var headers = request.headers; var userAgentHeader = options.runtime === "node" ? "user-agent" : "x-amz-user-agent"; if (!headers[userAgentHeader]) { headers[userAgentHeader] = "" + options.defaultUserAgent; } else { headers[userAgentHeader] += " " + options.defaultUserAgent; } if (options.customUserAgent) { headers[userAgentHeader] += " " + options.customUserAgent; } return next(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, args), { request: request })); }; }; } var getUserAgentMiddlewareOptions = { name: "getUserAgentMiddleware", step: "build", tags: ["SET_USER_AGENT", "USER_AGENT"], }; var getUserAgentPlugin = function (config) { return ({ applyToStack: function (clientStack) { clientStack.add(userAgentMiddleware(config), getUserAgentMiddlewareOptions); }, }); }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlkZGxld2FyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9taWRkbGV3YXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFZckQsTUFBTSxVQUFVLG1CQUFtQixDQUFDLE9BQWdDO0lBQ2xFLE9BQU8sVUFBZ0MsSUFBNEIsSUFBNkIsT0FBQSxVQUM5RixJQUFnQztRQUV4QixJQUFBLE9BQU8sR0FBSyxJQUFJLFFBQVQsQ0FBVTtRQUN6QixJQUFJLENBQUMsV0FBVyxDQUFDLFVBQVUsQ0FBQyxPQUFPLENBQUM7WUFBRSxPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUNoRCxJQUFBLE9BQU8sR0FBSyxPQUFPLFFBQVosQ0FBYTtRQUM1QixJQUFNLGVBQWUsR0FBRyxPQUFPLENBQUMsT0FBTyxLQUFLLE1BQU0sQ0FBQyxDQUFDLENBQUMsWUFBWSxDQUFDLENBQUMsQ0FBQyxrQkFBa0IsQ0FBQztRQUN2RixJQUFJLENBQUMsT0FBTyxDQUFDLGVBQWUsQ0FBQyxFQUFFO1lBQzdCLE9BQU8sQ0FBQyxlQUFlLENBQUMsR0FBRyxLQUFHLE9BQU8sQ0FBQyxnQkFBa0IsQ0FBQztTQUMxRDthQUFNO1lBQ0wsT0FBTyxDQUFDLGVBQWUsQ0FBQyxJQUFJLE1BQUksT0FBTyxDQUFDLGdCQUFrQixDQUFDO1NBQzVEO1FBQ0QsSUFBSSxPQUFPLENBQUMsZUFBZSxFQUFFO1lBQzNCLE9BQU8sQ0FBQyxlQUFlLENBQUMsSUFBSSxNQUFJLE9BQU8sQ0FBQyxlQUFpQixDQUFDO1NBQzNEO1FBQ0QsT0FBTyxJQUFJLHVCQUNOLElBQUksS0FDUCxPQUFPLFNBQUEsSUFDUCxDQUFDO0lBQ0wsQ0FBQyxFQW5CK0YsQ0FtQi9GLENBQUM7QUFDSixDQUFDO0FBRUQsTUFBTSxDQUFDLElBQU0sNkJBQTZCLEdBQXdCO0lBQ2hFLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsSUFBSSxFQUFFLE9BQU87SUFDYixJQUFJLEVBQUUsQ0FBQyxnQkFBZ0IsRUFBRSxZQUFZLENBQUM7Q0FDdkMsQ0FBQztBQUVGLE1BQU0sQ0FBQyxJQUFNLGtCQUFrQixHQUFHLFVBQUMsTUFBK0IsSUFBMEIsT0FBQSxDQUFDO0lBQzNGLFlBQVksRUFBRSxVQUFDLFdBQVc7UUFDeEIsV0FBVyxDQUFDLEdBQUcsQ0FBQyxtQkFBbUIsQ0FBQyxNQUFNLENBQUMsRUFBRSw2QkFBNkIsQ0FBQyxDQUFDO0lBQzlFLENBQUM7Q0FDRixDQUFDLEVBSjBGLENBSTFGLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBIdHRwUmVxdWVzdCB9IGZyb20gXCJAYXdzLXNkay9wcm90b2NvbC1odHRwXCI7XG5pbXBvcnQge1xuICBCdWlsZEhhbmRsZXIsXG4gIEJ1aWxkSGFuZGxlckFyZ3VtZW50cyxcbiAgQnVpbGRIYW5kbGVyT3B0aW9ucyxcbiAgQnVpbGRIYW5kbGVyT3V0cHV0LFxuICBNZXRhZGF0YUJlYXJlcixcbiAgUGx1Z2dhYmxlLFxufSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuaW1wb3J0IHsgVXNlckFnZW50UmVzb2x2ZWRDb25maWcgfSBmcm9tIFwiLi9jb25maWd1cmF0aW9uc1wiO1xuXG5leHBvcnQgZnVuY3Rpb24gdXNlckFnZW50TWlkZGxld2FyZShvcHRpb25zOiBVc2VyQWdlbnRSZXNvbHZlZENvbmZpZykge1xuICByZXR1cm4gPE91dHB1dCBleHRlbmRzIE1ldGFkYXRhQmVhcmVyPihuZXh0OiBCdWlsZEhhbmRsZXI8YW55LCBhbnk+KTogQnVpbGRIYW5kbGVyPGFueSwgYW55PiA9PiAoXG4gICAgYXJnczogQnVpbGRIYW5kbGVyQXJndW1lbnRzPGFueT5cbiAgKTogUHJvbWlzZTxCdWlsZEhhbmRsZXJPdXRwdXQ8T3V0cHV0Pj4gPT4ge1xuICAgIGNvbnN0IHsgcmVxdWVzdCB9ID0gYXJncztcbiAgICBpZiAoIUh0dHBSZXF1ZXN0LmlzSW5zdGFuY2UocmVxdWVzdCkpIHJldHVybiBuZXh0KGFyZ3MpO1xuICAgIGNvbnN0IHsgaGVhZGVycyB9ID0gcmVxdWVzdDtcbiAgICBjb25zdCB1c2VyQWdlbnRIZWFkZXIgPSBvcHRpb25zLnJ1bnRpbWUgPT09IFwibm9kZVwiID8gXCJ1c2VyLWFnZW50XCIgOiBcIngtYW16LXVzZXItYWdlbnRcIjtcbiAgICBpZiAoIWhlYWRlcnNbdXNlckFnZW50SGVhZGVyXSkge1xuICAgICAgaGVhZGVyc1t1c2VyQWdlbnRIZWFkZXJdID0gYCR7b3B0aW9ucy5kZWZhdWx0VXNlckFnZW50fWA7XG4gICAgfSBlbHNlIHtcbiAgICAgIGhlYWRlcnNbdXNlckFnZW50SGVhZGVyXSArPSBgICR7b3B0aW9ucy5kZWZhdWx0VXNlckFnZW50fWA7XG4gICAgfVxuICAgIGlmIChvcHRpb25zLmN1c3RvbVVzZXJBZ2VudCkge1xuICAgICAgaGVhZGVyc1t1c2VyQWdlbnRIZWFkZXJdICs9IGAgJHtvcHRpb25zLmN1c3RvbVVzZXJBZ2VudH1gO1xuICAgIH1cbiAgICByZXR1cm4gbmV4dCh7XG4gICAgICAuLi5hcmdzLFxuICAgICAgcmVxdWVzdCxcbiAgICB9KTtcbiAgfTtcbn1cblxuZXhwb3J0IGNvbnN0IGdldFVzZXJBZ2VudE1pZGRsZXdhcmVPcHRpb25zOiBCdWlsZEhhbmRsZXJPcHRpb25zID0ge1xuICBuYW1lOiBcImdldFVzZXJBZ2VudE1pZGRsZXdhcmVcIixcbiAgc3RlcDogXCJidWlsZFwiLFxuICB0YWdzOiBbXCJTRVRfVVNFUl9BR0VOVFwiLCBcIlVTRVJfQUdFTlRcIl0sXG59O1xuXG5leHBvcnQgY29uc3QgZ2V0VXNlckFnZW50UGx1Z2luID0gKGNvbmZpZzogVXNlckFnZW50UmVzb2x2ZWRDb25maWcpOiBQbHVnZ2FibGU8YW55LCBhbnk+ID0+ICh7XG4gIGFwcGx5VG9TdGFjazogKGNsaWVudFN0YWNrKSA9PiB7XG4gICAgY2xpZW50U3RhY2suYWRkKHVzZXJBZ2VudE1pZGRsZXdhcmUoY29uZmlnKSwgZ2V0VXNlckFnZW50TWlkZGxld2FyZU9wdGlvbnMpO1xuICB9LFxufSk7XG4iXX0= /***/ }), /***/ "anbC": /*!*****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/DescribeProjectVersionsCommand.js ***! \*****************************************************************************************************/ /*! exports provided: DescribeProjectVersionsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeProjectVersionsCommand", function() { return DescribeProjectVersionsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DescribeProjectVersionsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeProjectVersionsCommand, _super); // Start section: command_properties // End section: command_properties function DescribeProjectVersionsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DescribeProjectVersionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeProjectVersionsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeProjectVersionsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DescribeProjectVersionsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeProjectVersionsCommand"])(input, context); }; DescribeProjectVersionsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeProjectVersionsCommand"])(output, context); }; return DescribeProjectVersionsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DescribeProjectVersionsCommand.js.map /***/ }), /***/ "aq2g": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-translate/dist/es/pagination/ListTextTranslationJobsPaginator.js ***! \*******************************************************************************************************/ /*! exports provided: listTextTranslationJobsPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "listTextTranslationJobsPaginate", function() { return listTextTranslationJobsPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Translate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Translate */ "b7AO"); /* harmony import */ var _TranslateClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../TranslateClient */ "xRRc"); /* harmony import */ var _commands_ListTextTranslationJobsCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/ListTextTranslationJobsCommand */ "DZ4p"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_ListTextTranslationJobsCommand__WEBPACK_IMPORTED_MODULE_3__["ListTextTranslationJobsCommand"].bind.apply(_commands_ListTextTranslationJobsCommand__WEBPACK_IMPORTED_MODULE_3__["ListTextTranslationJobsCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.listTextTranslationJobs.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function listTextTranslationJobsPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function listTextTranslationJobsPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Translate__WEBPACK_IMPORTED_MODULE_1__["Translate"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _TranslateClient__WEBPACK_IMPORTED_MODULE_2__["TranslateClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Translate | TranslateClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=ListTextTranslationJobsPaginator.js.map /***/ }), /***/ "awqx": /*!*********************************************************************!*\ !*** ./node_modules/@aws-amplify/api-graphql/lib-esm/GraphQLAPI.js ***! \*********************************************************************/ /*! exports provided: graphqlOperation, GraphQLAPIClass, GraphQLAPI */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "graphqlOperation", function() { return graphqlOperation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLAPIClass", function() { return GraphQLAPIClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLAPI", function() { return GraphQLAPI; }); /* harmony import */ var graphql_error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! graphql/error/GraphQLError */ "dWS+"); /* harmony import */ var graphql_language_printer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! graphql/language/printer */ "dQau"); /* harmony import */ var graphql_language_parser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! graphql/language/parser */ "EMzn"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-amplify/pubsub */ "VHNH"); /* harmony import */ var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-amplify/auth */ "AO/9"); /* harmony import */ var _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-amplify/cache */ "gr/K"); /* harmony import */ var _aws_amplify_api_rest__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-amplify/api-rest */ "Gdy6"); var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __rest = (undefined && undefined.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; /* * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var USER_AGENT_HEADER = 'x-amz-user-agent'; var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__["ConsoleLogger"]('GraphQLAPI'); var graphqlOperation = function (query, variables) { if (variables === void 0) { variables = {}; } return ({ query: query, variables: variables, }); }; /** * Export Cloud Logic APIs */ var GraphQLAPIClass = /** @class */ (function () { /** * Initialize GraphQL API with AWS configuration * @param {Object} options - Configuration object for API */ function GraphQLAPIClass(options) { this._api = null; this.Auth = _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_5__["default"]; this.Cache = _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_6__["default"]; this.Credentials = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__["Credentials"]; this._options = options; logger.debug('API Options', this._options); } GraphQLAPIClass.prototype.getModuleName = function () { return 'GraphQLAPI'; }; /** * Configure API * @param {Object} config - Configuration of the API * @return {Object} - The current configuration */ GraphQLAPIClass.prototype.configure = function (options) { var _a = options || {}, _b = _a.API, API = _b === void 0 ? {} : _b, otherOptions = __rest(_a, ["API"]); var opt = __assign(__assign({}, otherOptions), API); logger.debug('configure GraphQL API', { opt: opt }); if (opt['aws_project_region']) { opt = Object.assign({}, opt, { region: opt['aws_project_region'], header: {}, }); } if (typeof opt.graphql_headers !== 'undefined' && typeof opt.graphql_headers !== 'function') { logger.warn('graphql_headers should be a function'); opt.graphql_headers = undefined; } this._options = Object.assign({}, this._options, opt); this.createInstance(); return this._options; }; /** * Create an instance of API for the library * @return - A promise of true if Success */ GraphQLAPIClass.prototype.createInstance = function () { logger.debug('create Rest instance'); if (this._options) { this._api = new _aws_amplify_api_rest__WEBPACK_IMPORTED_MODULE_7__["RestClient"](this._options); // Share instance Credentials with client for SSR this._api.Credentials = this.Credentials; return true; } else { return Promise.reject('API not configured'); } }; GraphQLAPIClass.prototype._headerBasedAuth = function (defaultAuthenticationType) { return __awaiter(this, void 0, void 0, function () { var _a, aws_appsync_authenticationType, apiKey, authenticationType, headers, _b, credentialsOK, token, federatedInfo, currentUser, session; return __generator(this, function (_c) { switch (_c.label) { case 0: _a = this._options, aws_appsync_authenticationType = _a.aws_appsync_authenticationType, apiKey = _a.aws_appsync_apiKey; authenticationType = defaultAuthenticationType || aws_appsync_authenticationType || 'AWS_IAM'; headers = {}; _b = authenticationType; switch (_b) { case 'API_KEY': return [3 /*break*/, 1]; case 'AWS_IAM': return [3 /*break*/, 2]; case 'OPENID_CONNECT': return [3 /*break*/, 4]; case 'AMAZON_COGNITO_USER_POOLS': return [3 /*break*/, 9]; } return [3 /*break*/, 11]; case 1: if (!apiKey) { throw new Error('No api-key configured'); } headers = { Authorization: null, 'X-Api-Key': apiKey, }; return [3 /*break*/, 12]; case 2: return [4 /*yield*/, this._ensureCredentials()]; case 3: credentialsOK = _c.sent(); if (!credentialsOK) { throw new Error('No credentials'); } return [3 /*break*/, 12]; case 4: token = void 0; return [4 /*yield*/, _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_6__["default"].getItem('federatedInfo')]; case 5: federatedInfo = _c.sent(); if (!federatedInfo) return [3 /*break*/, 6]; token = federatedInfo.token; return [3 /*break*/, 8]; case 6: return [4 /*yield*/, _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_5__["default"].currentAuthenticatedUser()]; case 7: currentUser = _c.sent(); if (currentUser) { token = currentUser.token; } _c.label = 8; case 8: if (!token) { throw new Error('No federated jwt'); } headers = { Authorization: token, }; return [3 /*break*/, 12]; case 9: return [4 /*yield*/, this.Auth.currentSession()]; case 10: session = _c.sent(); headers = { Authorization: session.getAccessToken().getJwtToken(), }; return [3 /*break*/, 12]; case 11: headers = { Authorization: null, }; return [3 /*break*/, 12]; case 12: return [2 /*return*/, headers]; } }); }); }; /** * to get the operation type * @param operation */ GraphQLAPIClass.prototype.getGraphqlOperationType = function (operation) { var doc = Object(graphql_language_parser__WEBPACK_IMPORTED_MODULE_2__["parse"])(operation); var _a = __read(doc.definitions, 1), operationType = _a[0].operation; return operationType; }; /** * Executes a GraphQL operation * * @param {GraphQLOptions} GraphQL Options * @param {object} additionalHeaders headers to merge in after any `graphql_headers` set in the config * @returns {Promise | Observable} */ GraphQLAPIClass.prototype.graphql = function (_a, additionalHeaders) { var paramQuery = _a.query, _b = _a.variables, variables = _b === void 0 ? {} : _b, authMode = _a.authMode; var query = typeof paramQuery === 'string' ? Object(graphql_language_parser__WEBPACK_IMPORTED_MODULE_2__["parse"])(paramQuery) : Object(graphql_language_parser__WEBPACK_IMPORTED_MODULE_2__["parse"])(Object(graphql_language_printer__WEBPACK_IMPORTED_MODULE_1__["print"])(paramQuery)); var _c = __read(query.definitions.filter(function (def) { return def.kind === 'OperationDefinition'; }), 1), _d = _c[0], operationDef = _d === void 0 ? {} : _d; var operationType = operationDef.operation; switch (operationType) { case 'query': case 'mutation': var cancellableToken = this._api.getCancellableToken(); var initParams = { cancellableToken: cancellableToken }; var responsePromise = this._graphql({ query: query, variables: variables, authMode: authMode }, additionalHeaders, initParams); this._api.updateRequestToBeCancellable(responsePromise, cancellableToken); return responsePromise; case 'subscription': return this._graphqlSubscribe({ query: query, variables: variables, authMode: authMode }, additionalHeaders); } throw new Error("invalid operation type: " + operationType); }; GraphQLAPIClass.prototype._graphql = function (_a, additionalHeaders, initParams) { var query = _a.query, variables = _a.variables, authMode = _a.authMode; if (additionalHeaders === void 0) { additionalHeaders = {}; } if (initParams === void 0) { initParams = {}; } return __awaiter(this, void 0, void 0, function () { var _b, region, appSyncGraphqlEndpoint, _c, graphql_headers, customGraphqlEndpoint, customEndpointRegion, headers, _d, _e, _f, _g, _h, _j, body, init, endpoint, error, response, err_1, errors; var _k; return __generator(this, function (_l) { switch (_l.label) { case 0: if (!!this._api) return [3 /*break*/, 2]; return [4 /*yield*/, this.createInstance()]; case 1: _l.sent(); _l.label = 2; case 2: _b = this._options, region = _b.aws_appsync_region, appSyncGraphqlEndpoint = _b.aws_appsync_graphqlEndpoint, _c = _b.graphql_headers, graphql_headers = _c === void 0 ? function () { return ({}); } : _c, customGraphqlEndpoint = _b.graphql_endpoint, customEndpointRegion = _b.graphql_endpoint_iam_region; _d = [{}]; _e = !customGraphqlEndpoint; if (!_e) return [3 /*break*/, 4]; return [4 /*yield*/, this._headerBasedAuth(authMode)]; case 3: _e = (_l.sent()); _l.label = 4; case 4: _f = [__assign.apply(void 0, _d.concat([(_e)]))]; _g = customGraphqlEndpoint; if (!_g) return [3 /*break*/, 8]; if (!customEndpointRegion) return [3 /*break*/, 6]; return [4 /*yield*/, this._headerBasedAuth(authMode)]; case 5: _h = _l.sent(); return [3 /*break*/, 7]; case 6: _h = { Authorization: null }; _l.label = 7; case 7: _g = (_h); _l.label = 8; case 8: _j = [__assign.apply(void 0, _f.concat([(_g)]))]; return [4 /*yield*/, graphql_headers({ query: query, variables: variables })]; case 9: headers = __assign.apply(void 0, [__assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), additionalHeaders]), (!customGraphqlEndpoint && (_k = {}, _k[USER_AGENT_HEADER] = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__["Constants"].userAgent, _k))]); body = { query: Object(graphql_language_printer__WEBPACK_IMPORTED_MODULE_1__["print"])(query), variables: variables, }; init = Object.assign({ headers: headers, body: body, signerServiceInfo: { service: !customGraphqlEndpoint ? 'appsync' : 'execute-api', region: !customGraphqlEndpoint ? region : customEndpointRegion, }, }, initParams); endpoint = customGraphqlEndpoint || appSyncGraphqlEndpoint; if (!endpoint) { error = new graphql_error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"]('No graphql endpoint provided.'); throw { data: {}, errors: [error], }; } _l.label = 10; case 10: _l.trys.push([10, 12, , 13]); return [4 /*yield*/, this._api.post(endpoint, init)]; case 11: response = _l.sent(); return [3 /*break*/, 13]; case 12: err_1 = _l.sent(); // If the exception is because user intentionally // cancelled the request, do not modify the exception // so that clients can identify the exception correctly. if (this._api.isCancel(err_1)) { throw err_1; } response = { data: {}, errors: [new graphql_error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](err_1.message)], }; return [3 /*break*/, 13]; case 13: errors = response.errors; if (errors && errors.length) { throw response; } return [2 /*return*/, response]; } }); }); }; /** * Checks to see if an error thrown is from an api request cancellation * @param {any} error - Any error * @return {boolean} - A boolean indicating if the error was from an api request cancellation */ GraphQLAPIClass.prototype.isCancel = function (error) { return this._api.isCancel(error); }; /** * Cancels an inflight request. Only applicable for graphql queries and mutations * @param {any} request - request to cancel * @return {boolean} - A boolean indicating if the request was cancelled */ GraphQLAPIClass.prototype.cancel = function (request, message) { return this._api.cancel(request, message); }; GraphQLAPIClass.prototype._graphqlSubscribe = function (_a, additionalHeaders) { var query = _a.query, variables = _a.variables, defaultAuthenticationType = _a.authMode; if (additionalHeaders === void 0) { additionalHeaders = {}; } var _b = this._options, region = _b.aws_appsync_region, appSyncGraphqlEndpoint = _b.aws_appsync_graphqlEndpoint, aws_appsync_authenticationType = _b.aws_appsync_authenticationType, apiKey = _b.aws_appsync_apiKey, _c = _b.graphql_headers, graphql_headers = _c === void 0 ? function () { return ({}); } : _c; var authenticationType = defaultAuthenticationType || aws_appsync_authenticationType || 'AWS_IAM'; if (_aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_4__["default"] && typeof _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_4__["default"].subscribe === 'function') { return _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_4__["default"].subscribe('', { provider: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__["INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER"], appSyncGraphqlEndpoint: appSyncGraphqlEndpoint, authenticationType: authenticationType, apiKey: apiKey, query: Object(graphql_language_printer__WEBPACK_IMPORTED_MODULE_1__["print"])(query), region: region, variables: variables, graphql_headers: graphql_headers, additionalHeaders: additionalHeaders, }); } else { logger.debug('No pubsub module applied for subscription'); throw new Error('No pubsub module applied for subscription'); } }; /** * @private */ GraphQLAPIClass.prototype._ensureCredentials = function () { var _this = this; return this.Credentials.get() .then(function (credentials) { if (!credentials) return false; var cred = _this.Credentials.shear(credentials); logger.debug('set credentials for api', cred); return true; }) .catch(function (err) { logger.warn('ensure credentials error', err); return false; }); }; return GraphQLAPIClass; }()); var GraphQLAPI = new GraphQLAPIClass(null); _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__["Amplify"].register(GraphQLAPI); //# sourceMappingURL=GraphQLAPI.js.map /***/ }), /***/ "axIb": /*!**************************************************!*\ !*** ./node_modules/graphql/type/definition.mjs ***! \**************************************************/ /*! exports provided: isType, assertType, isScalarType, assertScalarType, isObjectType, assertObjectType, isInterfaceType, assertInterfaceType, isUnionType, assertUnionType, isEnumType, assertEnumType, isInputObjectType, assertInputObjectType, isListType, assertListType, isNonNullType, assertNonNullType, isInputType, assertInputType, isOutputType, assertOutputType, isLeafType, assertLeafType, isCompositeType, assertCompositeType, isAbstractType, assertAbstractType, GraphQLList, GraphQLNonNull, isWrappingType, assertWrappingType, isNullableType, assertNullableType, getNullableType, isNamedType, assertNamedType, getNamedType, GraphQLScalarType, GraphQLObjectType, isRequiredArgument, GraphQLInterfaceType, GraphQLUnionType, GraphQLEnumType, GraphQLInputObjectType, isRequiredInputField */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isType", function() { return isType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertType", function() { return assertType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isScalarType", function() { return isScalarType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertScalarType", function() { return assertScalarType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isObjectType", function() { return isObjectType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertObjectType", function() { return assertObjectType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isInterfaceType", function() { return isInterfaceType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertInterfaceType", function() { return assertInterfaceType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isUnionType", function() { return isUnionType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertUnionType", function() { return assertUnionType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEnumType", function() { return isEnumType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertEnumType", function() { return assertEnumType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isInputObjectType", function() { return isInputObjectType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertInputObjectType", function() { return assertInputObjectType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isListType", function() { return isListType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertListType", function() { return assertListType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNonNullType", function() { return isNonNullType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertNonNullType", function() { return assertNonNullType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isInputType", function() { return isInputType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertInputType", function() { return assertInputType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isOutputType", function() { return isOutputType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertOutputType", function() { return assertOutputType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isLeafType", function() { return isLeafType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertLeafType", function() { return assertLeafType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCompositeType", function() { return isCompositeType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertCompositeType", function() { return assertCompositeType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAbstractType", function() { return isAbstractType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertAbstractType", function() { return assertAbstractType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLList", function() { return GraphQLList; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLNonNull", function() { return GraphQLNonNull; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isWrappingType", function() { return isWrappingType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertWrappingType", function() { return assertWrappingType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNullableType", function() { return isNullableType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertNullableType", function() { return assertNullableType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNullableType", function() { return getNullableType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNamedType", function() { return isNamedType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertNamedType", function() { return assertNamedType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNamedType", function() { return getNamedType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLScalarType", function() { return GraphQLScalarType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLObjectType", function() { return GraphQLObjectType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isRequiredArgument", function() { return isRequiredArgument; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLInterfaceType", function() { return GraphQLInterfaceType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLUnionType", function() { return GraphQLUnionType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLEnumType", function() { return GraphQLEnumType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLInputObjectType", function() { return GraphQLInputObjectType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isRequiredInputField", function() { return isRequiredInputField; }); /* harmony import */ var _jsutils_defineToJSON__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/defineToJSON */ "vJkw"); /* harmony import */ var _jsutils_defineToStringTag__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/defineToStringTag */ "ZZnB"); /* harmony import */ var _jsutils_instanceOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../jsutils/instanceOf */ "Mw0p"); /* harmony import */ var _jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../jsutils/inspect */ "rWdj"); /* harmony import */ var _jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../jsutils/invariant */ "2C6G"); /* harmony import */ var _jsutils_keyMap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../jsutils/keyMap */ "kBjl"); /* harmony import */ var _language_kinds__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../language/kinds */ "/jXB"); /* harmony import */ var _utilities_valueFromASTUntyped__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utilities/valueFromASTUntyped */ "ADFt"); function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function isType(type) { return isScalarType(type) || isObjectType(type) || isInterfaceType(type) || isUnionType(type) || isEnumType(type) || isInputObjectType(type) || isListType(type) || isNonNullType(type); } function assertType(type) { !isType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL type.")) : void 0; return type; } /** * There are predicates for each kind of GraphQL type. */ // eslint-disable-next-line no-redeclare function isScalarType(type) { return Object(_jsutils_instanceOf__WEBPACK_IMPORTED_MODULE_2__["default"])(type, GraphQLScalarType); } function assertScalarType(type) { !isScalarType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL Scalar type.")) : void 0; return type; } // eslint-disable-next-line no-redeclare function isObjectType(type) { return Object(_jsutils_instanceOf__WEBPACK_IMPORTED_MODULE_2__["default"])(type, GraphQLObjectType); } function assertObjectType(type) { !isObjectType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL Object type.")) : void 0; return type; } // eslint-disable-next-line no-redeclare function isInterfaceType(type) { return Object(_jsutils_instanceOf__WEBPACK_IMPORTED_MODULE_2__["default"])(type, GraphQLInterfaceType); } function assertInterfaceType(type) { !isInterfaceType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL Interface type.")) : void 0; return type; } // eslint-disable-next-line no-redeclare function isUnionType(type) { return Object(_jsutils_instanceOf__WEBPACK_IMPORTED_MODULE_2__["default"])(type, GraphQLUnionType); } function assertUnionType(type) { !isUnionType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL Union type.")) : void 0; return type; } // eslint-disable-next-line no-redeclare function isEnumType(type) { return Object(_jsutils_instanceOf__WEBPACK_IMPORTED_MODULE_2__["default"])(type, GraphQLEnumType); } function assertEnumType(type) { !isEnumType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL Enum type.")) : void 0; return type; } // eslint-disable-next-line no-redeclare function isInputObjectType(type) { return Object(_jsutils_instanceOf__WEBPACK_IMPORTED_MODULE_2__["default"])(type, GraphQLInputObjectType); } function assertInputObjectType(type) { !isInputObjectType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL Input Object type.")) : void 0; return type; } // eslint-disable-next-line no-redeclare function isListType(type) { return Object(_jsutils_instanceOf__WEBPACK_IMPORTED_MODULE_2__["default"])(type, GraphQLList); } function assertListType(type) { !isListType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL List type.")) : void 0; return type; } // eslint-disable-next-line no-redeclare function isNonNullType(type) { return Object(_jsutils_instanceOf__WEBPACK_IMPORTED_MODULE_2__["default"])(type, GraphQLNonNull); } function assertNonNullType(type) { !isNonNullType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL Non-Null type.")) : void 0; return type; } /** * These types may be used as input types for arguments and directives. */ function isInputType(type) { return isScalarType(type) || isEnumType(type) || isInputObjectType(type) || isWrappingType(type) && isInputType(type.ofType); } function assertInputType(type) { !isInputType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL input type.")) : void 0; return type; } /** * These types may be used as output types as the result of fields. */ function isOutputType(type) { return isScalarType(type) || isObjectType(type) || isInterfaceType(type) || isUnionType(type) || isEnumType(type) || isWrappingType(type) && isOutputType(type.ofType); } function assertOutputType(type) { !isOutputType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL output type.")) : void 0; return type; } /** * These types may describe types which may be leaf values. */ function isLeafType(type) { return isScalarType(type) || isEnumType(type); } function assertLeafType(type) { !isLeafType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL leaf type.")) : void 0; return type; } /** * These types may describe the parent context of a selection set. */ function isCompositeType(type) { return isObjectType(type) || isInterfaceType(type) || isUnionType(type); } function assertCompositeType(type) { !isCompositeType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL composite type.")) : void 0; return type; } /** * These types may describe the parent context of a selection set. */ function isAbstractType(type) { return isInterfaceType(type) || isUnionType(type); } function assertAbstractType(type) { !isAbstractType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL abstract type.")) : void 0; return type; } /** * List Type Wrapper * * A list is a wrapping type which points to another type. * Lists are often created within the context of defining the fields of * an object type. * * Example: * * const PersonType = new GraphQLObjectType({ * name: 'Person', * fields: () => ({ * parents: { type: GraphQLList(PersonType) }, * children: { type: GraphQLList(PersonType) }, * }) * }) * */ // eslint-disable-next-line no-redeclare function GraphQLList(ofType) { if (this instanceof GraphQLList) { this.ofType = assertType(ofType); } else { return new GraphQLList(ofType); } } // Need to cast through any to alter the prototype. GraphQLList.prototype.toString = function toString() { return '[' + String(this.ofType) + ']'; }; Object(_jsutils_defineToJSON__WEBPACK_IMPORTED_MODULE_0__["default"])(GraphQLList); /** * Non-Null Type Wrapper * * A non-null is a wrapping type which points to another type. * Non-null types enforce that their values are never null and can ensure * an error is raised if this ever occurs during a request. It is useful for * fields which you can make a strong guarantee on non-nullability, for example * usually the id field of a database row will never be null. * * Example: * * const RowType = new GraphQLObjectType({ * name: 'Row', * fields: () => ({ * id: { type: GraphQLNonNull(GraphQLString) }, * }) * }) * * Note: the enforcement of non-nullability occurs within the executor. */ // eslint-disable-next-line no-redeclare function GraphQLNonNull(ofType) { if (this instanceof GraphQLNonNull) { this.ofType = assertNullableType(ofType); } else { return new GraphQLNonNull(ofType); } } // Need to cast through any to alter the prototype. GraphQLNonNull.prototype.toString = function toString() { return String(this.ofType) + '!'; }; Object(_jsutils_defineToJSON__WEBPACK_IMPORTED_MODULE_0__["default"])(GraphQLNonNull); /** * These types wrap and modify other types */ function isWrappingType(type) { return isListType(type) || isNonNullType(type); } function assertWrappingType(type) { !isWrappingType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL wrapping type.")) : void 0; return type; } /** * These types can all accept null as a value. */ function isNullableType(type) { return isType(type) && !isNonNullType(type); } function assertNullableType(type) { !isNullableType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL nullable type.")) : void 0; return type; } /* eslint-disable no-redeclare */ function getNullableType(type) { /* eslint-enable no-redeclare */ if (type) { return isNonNullType(type) ? type.ofType : type; } } /** * These named types do not include modifiers like List or NonNull. */ function isNamedType(type) { return isScalarType(type) || isObjectType(type) || isInterfaceType(type) || isUnionType(type) || isEnumType(type) || isInputObjectType(type); } function assertNamedType(type) { !isNamedType(type) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "Expected ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(type), " to be a GraphQL named type.")) : void 0; return type; } /* eslint-disable no-redeclare */ function getNamedType(type) { /* eslint-enable no-redeclare */ if (type) { var unwrappedType = type; while (isWrappingType(unwrappedType)) { unwrappedType = unwrappedType.ofType; } return unwrappedType; } } /** * Used while defining GraphQL types to allow for circular references in * otherwise immutable type definitions. */ function resolveThunk(thunk) { return typeof thunk === 'function' ? thunk() : thunk; } /** * Scalar Type Definition * * The leaf values of any request and input values to arguments are * Scalars (or Enums) and are defined with a name and a series of functions * used to parse input from ast or variables and to ensure validity. * * If a type's serialize function does not return a value (i.e. it returns * `undefined`) then an error will be raised and a `null` value will be returned * in the response. If the serialize function returns `null`, then no error will * be included in the response. * * Example: * * const OddType = new GraphQLScalarType({ * name: 'Odd', * serialize(value) { * if (value % 2 === 1) { * return value; * } * } * }); * */ var GraphQLScalarType = /*#__PURE__*/ function () { function GraphQLScalarType(config) { _defineProperty(this, "name", void 0); _defineProperty(this, "description", void 0); _defineProperty(this, "serialize", void 0); _defineProperty(this, "parseValue", void 0); _defineProperty(this, "parseLiteral", void 0); _defineProperty(this, "astNode", void 0); _defineProperty(this, "extensionASTNodes", void 0); this.name = config.name; this.description = config.description; this.serialize = config.serialize; this.parseValue = config.parseValue || function (value) { return value; }; this.parseLiteral = config.parseLiteral || _utilities_valueFromASTUntyped__WEBPACK_IMPORTED_MODULE_7__["valueFromASTUntyped"]; this.astNode = config.astNode; this.extensionASTNodes = config.extensionASTNodes; !(typeof config.name === 'string') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, 'Must provide name.') : void 0; !(typeof config.serialize === 'function') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "".concat(this.name, " must provide \"serialize\" function. If this custom Scalar ") + 'is also used as an input type, ensure "parseValue" and "parseLiteral" ' + 'functions are also provided.') : void 0; if (config.parseValue || config.parseLiteral) { !(typeof config.parseValue === 'function' && typeof config.parseLiteral === 'function') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "".concat(this.name, " must provide both \"parseValue\" and \"parseLiteral\" ") + 'functions.') : void 0; } } var _proto = GraphQLScalarType.prototype; _proto.toString = function toString() { return this.name; }; return GraphQLScalarType; }(); // Conditionally apply `[Symbol.toStringTag]` if `Symbol`s are supported Object(_jsutils_defineToStringTag__WEBPACK_IMPORTED_MODULE_1__["default"])(GraphQLScalarType); Object(_jsutils_defineToJSON__WEBPACK_IMPORTED_MODULE_0__["default"])(GraphQLScalarType); /** * Object Type Definition * * Almost all of the GraphQL types you define will be object types. Object types * have a name, but most importantly describe their fields. * * Example: * * const AddressType = new GraphQLObjectType({ * name: 'Address', * fields: { * street: { type: GraphQLString }, * number: { type: GraphQLInt }, * formatted: { * type: GraphQLString, * resolve(obj) { * return obj.number + ' ' + obj.street * } * } * } * }); * * When two types need to refer to each other, or a type needs to refer to * itself in a field, you can use a function expression (aka a closure or a * thunk) to supply the fields lazily. * * Example: * * const PersonType = new GraphQLObjectType({ * name: 'Person', * fields: () => ({ * name: { type: GraphQLString }, * bestFriend: { type: PersonType }, * }) * }); * */ var GraphQLObjectType = /*#__PURE__*/ function () { function GraphQLObjectType(config) { _defineProperty(this, "name", void 0); _defineProperty(this, "description", void 0); _defineProperty(this, "astNode", void 0); _defineProperty(this, "extensionASTNodes", void 0); _defineProperty(this, "isTypeOf", void 0); _defineProperty(this, "_fields", void 0); _defineProperty(this, "_interfaces", void 0); this.name = config.name; this.description = config.description; this.astNode = config.astNode; this.extensionASTNodes = config.extensionASTNodes; this.isTypeOf = config.isTypeOf; this._fields = defineFieldMap.bind(undefined, config); this._interfaces = defineInterfaces.bind(undefined, config); !(typeof config.name === 'string') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, 'Must provide name.') : void 0; !(config.isTypeOf == null || typeof config.isTypeOf === 'function') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "".concat(this.name, " must provide \"isTypeOf\" as a function, ") + "but got: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(config.isTypeOf), ".")) : void 0; } var _proto2 = GraphQLObjectType.prototype; _proto2.getFields = function getFields() { if (typeof this._fields === 'function') { this._fields = this._fields(); } return this._fields; }; _proto2.getInterfaces = function getInterfaces() { if (typeof this._interfaces === 'function') { this._interfaces = this._interfaces(); } return this._interfaces; }; _proto2.toString = function toString() { return this.name; }; return GraphQLObjectType; }(); // Conditionally apply `[Symbol.toStringTag]` if `Symbol`s are supported Object(_jsutils_defineToStringTag__WEBPACK_IMPORTED_MODULE_1__["default"])(GraphQLObjectType); Object(_jsutils_defineToJSON__WEBPACK_IMPORTED_MODULE_0__["default"])(GraphQLObjectType); function defineInterfaces(config) { var interfaces = resolveThunk(config.interfaces) || []; !Array.isArray(interfaces) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "".concat(config.name, " interfaces must be an Array or a function which returns ") + 'an Array.') : void 0; return interfaces; } function defineFieldMap(config) { var fieldMap = resolveThunk(config.fields) || {}; !isPlainObj(fieldMap) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "".concat(config.name, " fields must be an object with field names as keys or a ") + 'function which returns such an object.') : void 0; var resultFieldMap = Object.create(null); var _arr = Object.keys(fieldMap); var _loop = function _loop() { var fieldName = _arr[_i]; var fieldConfig = fieldMap[fieldName]; !isPlainObj(fieldConfig) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "".concat(config.name, ".").concat(fieldName, " field config must be an object")) : void 0; !!fieldConfig.hasOwnProperty('isDeprecated') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "".concat(config.name, ".").concat(fieldName, " should provide \"deprecationReason\" ") + 'instead of "isDeprecated".') : void 0; var field = _objectSpread({}, fieldConfig, { isDeprecated: Boolean(fieldConfig.deprecationReason), name: fieldName }); !(field.resolve == null || typeof field.resolve === 'function') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "".concat(config.name, ".").concat(fieldName, " field resolver must be a function if ") + "provided, but got: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(field.resolve), ".")) : void 0; var argsConfig = fieldConfig.args; if (!argsConfig) { field.args = []; } else { !isPlainObj(argsConfig) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "".concat(config.name, ".").concat(fieldName, " args must be an object with argument ") + 'names as keys.') : void 0; field.args = Object.keys(argsConfig).map(function (argName) { var arg = argsConfig[argName]; return { name: argName, description: arg.description === undefined ? null : arg.description, type: arg.type, defaultValue: arg.defaultValue, astNode: arg.astNode }; }); } resultFieldMap[fieldName] = field; }; for (var _i = 0; _i < _arr.length; _i++) { _loop(); } return resultFieldMap; } function isPlainObj(obj) { return obj && _typeof(obj) === 'object' && !Array.isArray(obj); } function isRequiredArgument(arg) { return isNonNullType(arg.type) && arg.defaultValue === undefined; } /** * Interface Type Definition * * When a field can return one of a heterogeneous set of types, a Interface type * is used to describe what types are possible, what fields are in common across * all types, as well as a function to determine which type is actually used * when the field is resolved. * * Example: * * const EntityType = new GraphQLInterfaceType({ * name: 'Entity', * fields: { * name: { type: GraphQLString } * } * }); * */ var GraphQLInterfaceType = /*#__PURE__*/ function () { function GraphQLInterfaceType(config) { _defineProperty(this, "name", void 0); _defineProperty(this, "description", void 0); _defineProperty(this, "astNode", void 0); _defineProperty(this, "extensionASTNodes", void 0); _defineProperty(this, "resolveType", void 0); _defineProperty(this, "_fields", void 0); this.name = config.name; this.description = config.description; this.astNode = config.astNode; this.extensionASTNodes = config.extensionASTNodes; this.resolveType = config.resolveType; this._fields = defineFieldMap.bind(undefined, config); !(typeof config.name === 'string') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, 'Must provide name.') : void 0; !(config.resolveType == null || typeof config.resolveType === 'function') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "".concat(this.name, " must provide \"resolveType\" as a function, ") + "but got: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(config.resolveType), ".")) : void 0; } var _proto3 = GraphQLInterfaceType.prototype; _proto3.getFields = function getFields() { if (typeof this._fields === 'function') { this._fields = this._fields(); } return this._fields; }; _proto3.toString = function toString() { return this.name; }; return GraphQLInterfaceType; }(); // Conditionally apply `[Symbol.toStringTag]` if `Symbol`s are supported Object(_jsutils_defineToStringTag__WEBPACK_IMPORTED_MODULE_1__["default"])(GraphQLInterfaceType); Object(_jsutils_defineToJSON__WEBPACK_IMPORTED_MODULE_0__["default"])(GraphQLInterfaceType); /** * Union Type Definition * * When a field can return one of a heterogeneous set of types, a Union type * is used to describe what types are possible as well as providing a function * to determine which type is actually used when the field is resolved. * * Example: * * const PetType = new GraphQLUnionType({ * name: 'Pet', * types: [ DogType, CatType ], * resolveType(value) { * if (value instanceof Dog) { * return DogType; * } * if (value instanceof Cat) { * return CatType; * } * } * }); * */ var GraphQLUnionType = /*#__PURE__*/ function () { function GraphQLUnionType(config) { _defineProperty(this, "name", void 0); _defineProperty(this, "description", void 0); _defineProperty(this, "astNode", void 0); _defineProperty(this, "extensionASTNodes", void 0); _defineProperty(this, "resolveType", void 0); _defineProperty(this, "_types", void 0); this.name = config.name; this.description = config.description; this.astNode = config.astNode; this.extensionASTNodes = config.extensionASTNodes; this.resolveType = config.resolveType; this._types = defineTypes.bind(undefined, config); !(typeof config.name === 'string') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, 'Must provide name.') : void 0; !(config.resolveType == null || typeof config.resolveType === 'function') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "".concat(this.name, " must provide \"resolveType\" as a function, ") + "but got: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(config.resolveType), ".")) : void 0; } var _proto4 = GraphQLUnionType.prototype; _proto4.getTypes = function getTypes() { if (typeof this._types === 'function') { this._types = this._types(); } return this._types; }; _proto4.toString = function toString() { return this.name; }; return GraphQLUnionType; }(); // Conditionally apply `[Symbol.toStringTag]` if `Symbol`s are supported Object(_jsutils_defineToStringTag__WEBPACK_IMPORTED_MODULE_1__["default"])(GraphQLUnionType); Object(_jsutils_defineToJSON__WEBPACK_IMPORTED_MODULE_0__["default"])(GraphQLUnionType); function defineTypes(config) { var types = resolveThunk(config.types) || []; !Array.isArray(types) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, 'Must provide Array of types or a function which returns ' + "such an array for Union ".concat(config.name, ".")) : void 0; return types; } /** * Enum Type Definition * * Some leaf values of requests and input values are Enums. GraphQL serializes * Enum values as strings, however internally Enums can be represented by any * kind of type, often integers. * * Example: * * const RGBType = new GraphQLEnumType({ * name: 'RGB', * values: { * RED: { value: 0 }, * GREEN: { value: 1 }, * BLUE: { value: 2 } * } * }); * * Note: If a value is not provided in a definition, the name of the enum value * will be used as its internal value. */ var GraphQLEnumType /* */ = /*#__PURE__*/ function () { function GraphQLEnumType(config /* */ ) { _defineProperty(this, "name", void 0); _defineProperty(this, "description", void 0); _defineProperty(this, "astNode", void 0); _defineProperty(this, "extensionASTNodes", void 0); _defineProperty(this, "_values", void 0); _defineProperty(this, "_valueLookup", void 0); _defineProperty(this, "_nameLookup", void 0); this.name = config.name; this.description = config.description; this.astNode = config.astNode; this.extensionASTNodes = config.extensionASTNodes; this._values = defineEnumValues(this, config.values); this._valueLookup = new Map(this._values.map(function (enumValue) { return [enumValue.value, enumValue]; })); this._nameLookup = Object(_jsutils_keyMap__WEBPACK_IMPORTED_MODULE_5__["default"])(this._values, function (value) { return value.name; }); !(typeof config.name === 'string') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, 'Must provide name.') : void 0; } var _proto5 = GraphQLEnumType.prototype; _proto5.getValues = function getValues() { return this._values; }; _proto5.getValue = function getValue(name) { return this._nameLookup[name]; }; _proto5.serialize = function serialize(value /* T */ ) { var enumValue = this._valueLookup.get(value); if (enumValue) { return enumValue.name; } }; _proto5.parseValue = function parseValue(value) /* T */ { if (typeof value === 'string') { var enumValue = this.getValue(value); if (enumValue) { return enumValue.value; } } }; _proto5.parseLiteral = function parseLiteral(valueNode, _variables) /* T */ { // Note: variables will be resolved to a value before calling this function. if (valueNode.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_6__["Kind"].ENUM) { var enumValue = this.getValue(valueNode.value); if (enumValue) { return enumValue.value; } } }; _proto5.toString = function toString() { return this.name; }; return GraphQLEnumType; }(); // Conditionally apply `[Symbol.toStringTag]` if `Symbol`s are supported Object(_jsutils_defineToStringTag__WEBPACK_IMPORTED_MODULE_1__["default"])(GraphQLEnumType); Object(_jsutils_defineToJSON__WEBPACK_IMPORTED_MODULE_0__["default"])(GraphQLEnumType); function defineEnumValues(type, valueMap /* */ ) { !isPlainObj(valueMap) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "".concat(type.name, " values must be an object with value names as keys.")) : void 0; return Object.keys(valueMap).map(function (valueName) { var value = valueMap[valueName]; !isPlainObj(value) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "".concat(type.name, ".").concat(valueName, " must refer to an object with a \"value\" key ") + "representing an internal value but got: ".concat(Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_3__["default"])(value), ".")) : void 0; !!value.hasOwnProperty('isDeprecated') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "".concat(type.name, ".").concat(valueName, " should provide \"deprecationReason\" instead ") + 'of "isDeprecated".') : void 0; return { name: valueName, description: value.description, isDeprecated: Boolean(value.deprecationReason), deprecationReason: value.deprecationReason, astNode: value.astNode, value: value.hasOwnProperty('value') ? value.value : valueName }; }); } /** * Input Object Type Definition * * An input object defines a structured collection of fields which may be * supplied to a field argument. * * Using `NonNull` will ensure that a value must be provided by the query * * Example: * * const GeoPoint = new GraphQLInputObjectType({ * name: 'GeoPoint', * fields: { * lat: { type: GraphQLNonNull(GraphQLFloat) }, * lon: { type: GraphQLNonNull(GraphQLFloat) }, * alt: { type: GraphQLFloat, defaultValue: 0 }, * } * }); * */ var GraphQLInputObjectType = /*#__PURE__*/ function () { function GraphQLInputObjectType(config) { _defineProperty(this, "name", void 0); _defineProperty(this, "description", void 0); _defineProperty(this, "astNode", void 0); _defineProperty(this, "extensionASTNodes", void 0); _defineProperty(this, "_fields", void 0); this.name = config.name; this.description = config.description; this.astNode = config.astNode; this.extensionASTNodes = config.extensionASTNodes; this._fields = defineInputFieldMap.bind(undefined, config); !(typeof config.name === 'string') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, 'Must provide name.') : void 0; } var _proto6 = GraphQLInputObjectType.prototype; _proto6.getFields = function getFields() { if (typeof this._fields === 'function') { this._fields = this._fields(); } return this._fields; }; _proto6.toString = function toString() { return this.name; }; return GraphQLInputObjectType; }(); // Conditionally apply `[Symbol.toStringTag]` if `Symbol`s are supported Object(_jsutils_defineToStringTag__WEBPACK_IMPORTED_MODULE_1__["default"])(GraphQLInputObjectType); Object(_jsutils_defineToJSON__WEBPACK_IMPORTED_MODULE_0__["default"])(GraphQLInputObjectType); function defineInputFieldMap(config) { var fieldMap = resolveThunk(config.fields) || {}; !isPlainObj(fieldMap) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "".concat(config.name, " fields must be an object with field names as keys or a ") + 'function which returns such an object.') : void 0; var resultFieldMap = Object.create(null); var _arr2 = Object.keys(fieldMap); for (var _i2 = 0; _i2 < _arr2.length; _i2++) { var fieldName = _arr2[_i2]; var field = _objectSpread({}, fieldMap[fieldName], { name: fieldName }); !!field.hasOwnProperty('resolve') ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_4__["default"])(0, "".concat(config.name, ".").concat(fieldName, " field has a resolve property, but ") + 'Input Types cannot define resolvers.') : void 0; resultFieldMap[fieldName] = field; } return resultFieldMap; } function isRequiredInputField(field) { return isNonNullType(field.type) && field.defaultValue === undefined; } /***/ }), /***/ "axPF": /*!***************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/DisableEnhancedMonitoringCommand.js ***! \***************************************************************************************************/ /*! exports provided: DisableEnhancedMonitoringCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DisableEnhancedMonitoringCommand", function() { return DisableEnhancedMonitoringCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DisableEnhancedMonitoringCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DisableEnhancedMonitoringCommand, _super); // Start section: command_properties // End section: command_properties function DisableEnhancedMonitoringCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DisableEnhancedMonitoringCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DisableEnhancedMonitoringInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["EnhancedMonitoringOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DisableEnhancedMonitoringCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DisableEnhancedMonitoringCommand"])(input, context); }; DisableEnhancedMonitoringCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DisableEnhancedMonitoringCommand"])(output, context); }; return DisableEnhancedMonitoringCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DisableEnhancedMonitoringCommand.js.map /***/ }), /***/ "axZC": /*!***************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/pagination/GetPersonTrackingPaginator.js ***! \***************************************************************************************************/ /*! exports provided: getPersonTrackingPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPersonTrackingPaginate", function() { return getPersonTrackingPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Rekognition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Rekognition */ "MjkZ"); /* harmony import */ var _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../RekognitionClient */ "YOij"); /* harmony import */ var _commands_GetPersonTrackingCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/GetPersonTrackingCommand */ "TLcn"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_GetPersonTrackingCommand__WEBPACK_IMPORTED_MODULE_3__["GetPersonTrackingCommand"].bind.apply(_commands_GetPersonTrackingCommand__WEBPACK_IMPORTED_MODULE_3__["GetPersonTrackingCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.getPersonTracking.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function getPersonTrackingPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function getPersonTrackingPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Rekognition__WEBPACK_IMPORTED_MODULE_1__["Rekognition"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__["RekognitionClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Rekognition | RekognitionClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=GetPersonTrackingPaginator.js.map /***/ }), /***/ "b+5N": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipSandboxChannelCommand.js ***! \*******************************************************************************************************/ /*! exports provided: DeleteApnsVoipSandboxChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelCommand", function() { return DeleteApnsVoipSandboxChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DeleteApnsVoipSandboxChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteApnsVoipSandboxChannelCommand, _super); // Start section: command_properties // End section: command_properties function DeleteApnsVoipSandboxChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DeleteApnsVoipSandboxChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsVoipSandboxChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsVoipSandboxChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DeleteApnsVoipSandboxChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand"])(input, context); }; DeleteApnsVoipSandboxChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommand"])(output, context); }; return DeleteApnsVoipSandboxChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DeleteApnsVoipSandboxChannelCommand.js.map /***/ }), /***/ "b0dj": /*!**********************************************************!*\ !*** ./node_modules/zen-observable-ts/lib/bundle.esm.js ***! \**********************************************************/ /*! exports provided: default, Observable */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Observable", function() { return Observable; }); /* harmony import */ var zen_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zen-observable */ "ABJ/"); /* harmony import */ var zen_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(zen_observable__WEBPACK_IMPORTED_MODULE_0__); var Observable = zen_observable__WEBPACK_IMPORTED_MODULE_0___default.a; /* harmony default export */ __webpack_exports__["default"] = (Observable); //# sourceMappingURL=bundle.esm.js.map /***/ }), /***/ "b0u4": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/runtimeConfig.shared.js ***! \**********************************************************************************/ /*! exports provided: ClientSharedValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientSharedValues", function() { return ClientSharedValues; }); /* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "8bjZ"); var ClientSharedValues = { apiVersion: "2016-06-27", disableHostPrefix: false, regionInfoProvider: _endpoints__WEBPACK_IMPORTED_MODULE_0__["defaultRegionInfoProvider"], signingName: "rekognition", }; //# sourceMappingURL=runtimeConfig.shared.js.map /***/ }), /***/ "b1m/": /*!********************************************************************!*\ !*** ./node_modules/@aws-sdk/client-textract/dist/es/package.json ***! \********************************************************************/ /*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, author, license, default */ /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"@aws-sdk/client-textract\",\"description\":\"@aws-sdk/client-textract client\",\"version\":\"1.0.0-gamma.8\",\"scripts\":{\"clean\":\"npm run remove-definitions && npm run remove-dist\",\"build-documentation\":\"npm run clean && typedoc ./\",\"prepublishOnly\":\"yarn build\",\"pretest\":\"yarn build:cjs\",\"remove-definitions\":\"rimraf ./types\",\"remove-dist\":\"rimraf ./dist\",\"remove-documentation\":\"rimraf ./docs\",\"test\":\"exit 0\",\"build:cjs\":\"tsc -p tsconfig.json\",\"build:es\":\"tsc -p tsconfig.es.json\",\"build\":\"yarn build:cjs && yarn build:es\"},\"main\":\"./dist/cjs/index.js\",\"types\":\"./types/index.d.ts\",\"module\":\"./dist/es/index.js\",\"browser\":{\"./runtimeConfig\":\"./runtimeConfig.browser\"},\"react-native\":{\"./runtimeConfig\":\"./runtimeConfig.native\"},\"sideEffects\":false,\"dependencies\":{\"@aws-crypto/sha256-browser\":\"^1.0.0-alpha.0\",\"@aws-crypto/sha256-js\":\"^1.0.0-alpha.0\",\"@aws-sdk/config-resolver\":\"1.0.0-gamma.7\",\"@aws-sdk/credential-provider-node\":\"1.0.0-gamma.7\",\"@aws-sdk/fetch-http-handler\":\"1.0.0-gamma.8\",\"@aws-sdk/hash-node\":\"1.0.0-gamma.7\",\"@aws-sdk/invalid-dependency\":\"1.0.0-gamma.5\",\"@aws-sdk/middleware-content-length\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-host-header\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-logger\":\"1.0.0-gamma.1\",\"@aws-sdk/middleware-retry\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-serde\":\"1.0.0-gamma.6\",\"@aws-sdk/middleware-signing\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-stack\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-user-agent\":\"1.0.0-gamma.7\",\"@aws-sdk/node-config-provider\":\"1.0.0-gamma.2\",\"@aws-sdk/node-http-handler\":\"1.0.0-gamma.7\",\"@aws-sdk/protocol-http\":\"1.0.0-gamma.7\",\"@aws-sdk/smithy-client\":\"1.0.0-gamma.7\",\"@aws-sdk/types\":\"1.0.0-gamma.6\",\"@aws-sdk/url-parser-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/url-parser-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-base64-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-base64-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-user-agent-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/util-user-agent-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-utf8-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-utf8-node\":\"1.0.0-gamma.6\",\"tslib\":\"^2.0.0\"},\"devDependencies\":{\"@aws-sdk/client-documentation-generator\":\"1.0.0-gamma.5\",\"@types/node\":\"^12.7.5\",\"jest\":\"^26.1.0\",\"rimraf\":\"^3.0.0\",\"typedoc\":\"^0.17.8\",\"typescript\":\"~4.0.2\"},\"engines\":{\"node\":\">=8.0.0\"},\"author\":{\"name\":\"AWS SDK for JavaScript Team\",\"url\":\"https://aws.amazon.com/javascript/\"},\"license\":\"Apache-2.0\"}"); /***/ }), /***/ "b2dS": /*!*****************************************************************!*\ !*** ./node_modules/amazon-cognito-identity-js/es/UserAgent.js ***! \*****************************************************************/ /*! exports provided: appendToCognitoUserAgent, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "appendToCognitoUserAgent", function() { return appendToCognitoUserAgent; }); // constructor function UserAgent() {} // public UserAgent.prototype.userAgent = 'aws-amplify/0.1.x js'; var appendToCognitoUserAgent = function appendToCognitoUserAgent(content) { if (!content) { return; } if (UserAgent.prototype.userAgent && !UserAgent.prototype.userAgent.includes(content)) { UserAgent.prototype.userAgent = UserAgent.prototype.userAgent.concat(' ', content); } if (!UserAgent.prototype.userAgent || UserAgent.prototype.userAgent === '') { UserAgent.prototype.userAgent = content; } }; // class for defining the amzn user-agent /* harmony default export */ __webpack_exports__["default"] = (UserAgent); /***/ }), /***/ "b4Ml": /*!**************************************************************************!*\ !*** ./node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Sha256 = void 0; var util_utf8_browser_1 = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "XWO8"); var isEmptyData_1 = __webpack_require__(/*! ./isEmptyData */ "kQNw"); var constants_1 = __webpack_require__(/*! ./constants */ "p72H"); var util_locate_window_1 = __webpack_require__(/*! @aws-sdk/util-locate-window */ "tlIM"); var Sha256 = /** @class */ (function () { function Sha256(secret) { this.toHash = new Uint8Array(0); if (secret !== void 0) { this.key = new Promise(function (resolve, reject) { util_locate_window_1.locateWindow() .crypto.subtle.importKey("raw", convertToBuffer(secret), constants_1.SHA_256_HMAC_ALGO, false, ["sign"]) .then(resolve, reject); }); this.key.catch(function () { }); } } Sha256.prototype.update = function (data) { if (isEmptyData_1.isEmptyData(data)) { return; } var update = convertToBuffer(data); var typedArray = new Uint8Array(this.toHash.byteLength + update.byteLength); typedArray.set(this.toHash, 0); typedArray.set(update, this.toHash.byteLength); this.toHash = typedArray; }; Sha256.prototype.digest = function () { var _this = this; if (this.key) { return this.key.then(function (key) { return util_locate_window_1.locateWindow() .crypto.subtle.sign(constants_1.SHA_256_HMAC_ALGO, key, _this.toHash) .then(function (data) { return new Uint8Array(data); }); }); } if (isEmptyData_1.isEmptyData(this.toHash)) { return Promise.resolve(constants_1.EMPTY_DATA_SHA_256); } return Promise.resolve() .then(function () { return util_locate_window_1.locateWindow().crypto.subtle.digest(constants_1.SHA_256_HASH, _this.toHash); }) .then(function (data) { return Promise.resolve(new Uint8Array(data)); }); }; return Sha256; }()); exports.Sha256 = Sha256; function convertToBuffer(data) { if (typeof data === "string") { return util_utf8_browser_1.fromUtf8(data); } if (ArrayBuffer.isView(data)) { return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); } return new Uint8Array(data); } //# sourceMappingURL=webCryptoSha256.js.map /***/ }), /***/ "b7AO": /*!*********************************************************************!*\ !*** ./node_modules/@aws-sdk/client-translate/dist/es/Translate.js ***! \*********************************************************************/ /*! exports provided: Translate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Translate", function() { return Translate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _TranslateClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TranslateClient */ "xRRc"); /* harmony import */ var _commands_DeleteTerminologyCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/DeleteTerminologyCommand */ "0jX4"); /* harmony import */ var _commands_DescribeTextTranslationJobCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/DescribeTextTranslationJobCommand */ "qlNO"); /* harmony import */ var _commands_GetTerminologyCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/GetTerminologyCommand */ "tncr"); /* harmony import */ var _commands_ImportTerminologyCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/ImportTerminologyCommand */ "Rfsf"); /* harmony import */ var _commands_ListTerminologiesCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/ListTerminologiesCommand */ "Na0I"); /* harmony import */ var _commands_ListTextTranslationJobsCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/ListTextTranslationJobsCommand */ "DZ4p"); /* harmony import */ var _commands_StartTextTranslationJobCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/StartTextTranslationJobCommand */ "ZS8B"); /* harmony import */ var _commands_StopTextTranslationJobCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/StopTextTranslationJobCommand */ "gLFW"); /* harmony import */ var _commands_TranslateTextCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/TranslateTextCommand */ "ORaX"); /** *

Provides translation between one source language and another of the same set of * languages.

*/ var Translate = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Translate, _super); function Translate() { return _super !== null && _super.apply(this, arguments) || this; } Translate.prototype.deleteTerminology = function (args, optionsOrCb, cb) { var command = new _commands_DeleteTerminologyCommand__WEBPACK_IMPORTED_MODULE_2__["DeleteTerminologyCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Translate.prototype.describeTextTranslationJob = function (args, optionsOrCb, cb) { var command = new _commands_DescribeTextTranslationJobCommand__WEBPACK_IMPORTED_MODULE_3__["DescribeTextTranslationJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Translate.prototype.getTerminology = function (args, optionsOrCb, cb) { var command = new _commands_GetTerminologyCommand__WEBPACK_IMPORTED_MODULE_4__["GetTerminologyCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Translate.prototype.importTerminology = function (args, optionsOrCb, cb) { var command = new _commands_ImportTerminologyCommand__WEBPACK_IMPORTED_MODULE_5__["ImportTerminologyCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Translate.prototype.listTerminologies = function (args, optionsOrCb, cb) { var command = new _commands_ListTerminologiesCommand__WEBPACK_IMPORTED_MODULE_6__["ListTerminologiesCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Translate.prototype.listTextTranslationJobs = function (args, optionsOrCb, cb) { var command = new _commands_ListTextTranslationJobsCommand__WEBPACK_IMPORTED_MODULE_7__["ListTextTranslationJobsCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Translate.prototype.startTextTranslationJob = function (args, optionsOrCb, cb) { var command = new _commands_StartTextTranslationJobCommand__WEBPACK_IMPORTED_MODULE_8__["StartTextTranslationJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Translate.prototype.stopTextTranslationJob = function (args, optionsOrCb, cb) { var command = new _commands_StopTextTranslationJobCommand__WEBPACK_IMPORTED_MODULE_9__["StopTextTranslationJobCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; Translate.prototype.translateText = function (args, optionsOrCb, cb) { var command = new _commands_TranslateTextCommand__WEBPACK_IMPORTED_MODULE_10__["TranslateTextCommand"](args); if (typeof optionsOrCb === "function") { this.send(command, optionsOrCb); } else if (typeof cb === "function") { if (typeof optionsOrCb !== "object") throw new Error("Expect http options but get " + typeof optionsOrCb); this.send(command, optionsOrCb || {}, cb); } else { return this.send(command, optionsOrCb); } }; return Translate; }(_TranslateClient__WEBPACK_IMPORTED_MODULE_1__["TranslateClient"])); //# sourceMappingURL=Translate.js.map /***/ }), /***/ "b80T": /*!***********************************************!*\ !*** ./node_modules/lodash/_arrayLikeKeys.js ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseTimes = __webpack_require__(/*! ./_baseTimes */ "UNi/"), isArguments = __webpack_require__(/*! ./isArguments */ "03A+"), isArray = __webpack_require__(/*! ./isArray */ "Z0cm"), isBuffer = __webpack_require__(/*! ./isBuffer */ "DSRE"), isIndex = __webpack_require__(/*! ./_isIndex */ "wJg7"), isTypedArray = __webpack_require__(/*! ./isTypedArray */ "c6wG"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Creates an array of the enumerable property names of the array-like `value`. * * @private * @param {*} value The value to query. * @param {boolean} inherited Specify returning inherited property names. * @returns {Array} Returns the array of property names. */ function arrayLikeKeys(value, inherited) { var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; for (var key in value) { if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && ( // Safari 9 has enumerable `arguments.length` in strict mode. key == 'length' || // Node.js 0.10 has enumerable non-index properties on buffers. (isBuff && (key == 'offset' || key == 'parent')) || // PhantomJS 2 has enumerable non-index properties on typed arrays. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || // Skip index properties. isIndex(key, length) ))) { result.push(key); } } return result; } module.exports = arrayLikeKeys; /***/ }), /***/ "bBqc": /*!***************************************************************************!*\ !*** ./node_modules/amazon-cognito-identity-js/es/CognitoRefreshToken.js ***! \***************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CognitoRefreshToken; }); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ /** @class */ var CognitoRefreshToken = /*#__PURE__*/function () { /** * Constructs a new CognitoRefreshToken object * @param {string=} RefreshToken The JWT refresh token. */ function CognitoRefreshToken(_temp) { var _ref = _temp === void 0 ? {} : _temp, RefreshToken = _ref.RefreshToken; // Assign object this.token = RefreshToken || ''; } /** * @returns {string} the record's token. */ var _proto = CognitoRefreshToken.prototype; _proto.getToken = function getToken() { return this.token; }; return CognitoRefreshToken; }(); /***/ }), /***/ "bDIM": /*!********************************************************************!*\ !*** ./node_modules/@aws-sdk/client-firehose/dist/es/package.json ***! \********************************************************************/ /*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, author, license, default */ /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"@aws-sdk/client-firehose\",\"description\":\"@aws-sdk/client-firehose client\",\"version\":\"1.0.0-gamma.8\",\"scripts\":{\"clean\":\"npm run remove-definitions && npm run remove-dist\",\"build-documentation\":\"npm run clean && typedoc ./\",\"prepublishOnly\":\"yarn build\",\"pretest\":\"yarn build:cjs\",\"remove-definitions\":\"rimraf ./types\",\"remove-dist\":\"rimraf ./dist\",\"remove-documentation\":\"rimraf ./docs\",\"test\":\"exit 0\",\"build:cjs\":\"tsc -p tsconfig.json\",\"build:es\":\"tsc -p tsconfig.es.json\",\"build\":\"yarn build:cjs && yarn build:es\"},\"main\":\"./dist/cjs/index.js\",\"types\":\"./types/index.d.ts\",\"module\":\"./dist/es/index.js\",\"browser\":{\"./runtimeConfig\":\"./runtimeConfig.browser\"},\"react-native\":{\"./runtimeConfig\":\"./runtimeConfig.native\"},\"sideEffects\":false,\"dependencies\":{\"@aws-crypto/sha256-browser\":\"^1.0.0-alpha.0\",\"@aws-crypto/sha256-js\":\"^1.0.0-alpha.0\",\"@aws-sdk/config-resolver\":\"1.0.0-gamma.7\",\"@aws-sdk/credential-provider-node\":\"1.0.0-gamma.7\",\"@aws-sdk/fetch-http-handler\":\"1.0.0-gamma.8\",\"@aws-sdk/hash-node\":\"1.0.0-gamma.7\",\"@aws-sdk/invalid-dependency\":\"1.0.0-gamma.5\",\"@aws-sdk/middleware-content-length\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-host-header\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-logger\":\"1.0.0-gamma.1\",\"@aws-sdk/middleware-retry\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-serde\":\"1.0.0-gamma.6\",\"@aws-sdk/middleware-signing\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-stack\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-user-agent\":\"1.0.0-gamma.7\",\"@aws-sdk/node-config-provider\":\"1.0.0-gamma.2\",\"@aws-sdk/node-http-handler\":\"1.0.0-gamma.7\",\"@aws-sdk/protocol-http\":\"1.0.0-gamma.7\",\"@aws-sdk/smithy-client\":\"1.0.0-gamma.7\",\"@aws-sdk/types\":\"1.0.0-gamma.6\",\"@aws-sdk/url-parser-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/url-parser-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-base64-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-base64-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-user-agent-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/util-user-agent-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-utf8-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-utf8-node\":\"1.0.0-gamma.6\",\"tslib\":\"^2.0.0\"},\"devDependencies\":{\"@aws-sdk/client-documentation-generator\":\"1.0.0-gamma.5\",\"@types/node\":\"^12.7.5\",\"jest\":\"^26.1.0\",\"rimraf\":\"^3.0.0\",\"typedoc\":\"^0.17.8\",\"typescript\":\"~4.0.2\"},\"engines\":{\"node\":\">=8.0.0\"},\"author\":{\"name\":\"AWS SDK for JavaScript Team\",\"url\":\"https://aws.amazon.com/javascript/\"},\"license\":\"Apache-2.0\"}"); /***/ }), /***/ "bHdf": /*!*******************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/mergeAll.js ***! \*******************************************************************/ /*! exports provided: mergeAll */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeAll", function() { return mergeAll; }); /* harmony import */ var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mergeMap */ "5+tZ"); /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/identity */ "SpAZ"); function mergeAll(concurrent = Number.POSITIVE_INFINITY) { return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__["mergeMap"])(_util_identity__WEBPACK_IMPORTED_MODULE_1__["identity"], concurrent); } //# sourceMappingURL=mergeAll.js.map /***/ }), /***/ "bK9k": /*!***********************************************************************!*\ !*** ./node_modules/@aws-sdk/middleware-serde/dist/es/serdePlugin.js ***! \***********************************************************************/ /*! exports provided: deserializerMiddlewareOption, serializerMiddlewareOption, getSerdePlugin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializerMiddlewareOption", function() { return deserializerMiddlewareOption; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializerMiddlewareOption", function() { return serializerMiddlewareOption; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSerdePlugin", function() { return getSerdePlugin; }); /* harmony import */ var _deserializerMiddleware__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./deserializerMiddleware */ "sUor"); /* harmony import */ var _serializerMiddleware__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./serializerMiddleware */ "yoyo"); var deserializerMiddlewareOption = { name: "deserializerMiddleware", step: "deserialize", tags: ["DESERIALIZER"], }; var serializerMiddlewareOption = { name: "serializerMiddleware", step: "serialize", tags: ["SERIALIZER"], }; function getSerdePlugin(config, serializer, deserializer) { return { applyToStack: function (commandStack) { commandStack.add(Object(_deserializerMiddleware__WEBPACK_IMPORTED_MODULE_0__["deserializerMiddleware"])(config, deserializer), deserializerMiddlewareOption); commandStack.add(Object(_serializerMiddleware__WEBPACK_IMPORTED_MODULE_1__["serializerMiddleware"])(config, serializer), serializerMiddlewareOption); }, }; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyZGVQbHVnaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2VyZGVQbHVnaW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV0EsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDbEUsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFOUQsTUFBTSxDQUFDLElBQU0sNEJBQTRCLEdBQThCO0lBQ3JFLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsSUFBSSxFQUFFLGFBQWE7SUFDbkIsSUFBSSxFQUFFLENBQUMsY0FBYyxDQUFDO0NBQ3ZCLENBQUM7QUFFRixNQUFNLENBQUMsSUFBTSwwQkFBMEIsR0FBNEI7SUFDakUsSUFBSSxFQUFFLHNCQUFzQjtJQUM1QixJQUFJLEVBQUUsV0FBVztJQUNqQixJQUFJLEVBQUUsQ0FBQyxZQUFZLENBQUM7Q0FDckIsQ0FBQztBQUVGLE1BQU0sVUFBVSxjQUFjLENBSzVCLE1BQW9CLEVBQ3BCLFVBQWdELEVBQ2hELFlBQWlFO0lBRWpFLE9BQU87UUFDTCxZQUFZLEVBQUUsVUFBQyxZQUFvRDtZQUNqRSxZQUFZLENBQUMsR0FBRyxDQUFDLHNCQUFzQixDQUFDLE1BQU0sRUFBRSxZQUFZLENBQUMsRUFBRSw0QkFBNEIsQ0FBQyxDQUFDO1lBQzdGLFlBQVksQ0FBQyxHQUFHLENBQUMsb0JBQW9CLENBQUMsTUFBTSxFQUFFLFVBQVUsQ0FBQyxFQUFFLDBCQUEwQixDQUFDLENBQUM7UUFDekYsQ0FBQztLQUNGLENBQUM7QUFDSixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgRGVzZXJpYWxpemVIYW5kbGVyT3B0aW9ucyxcbiAgRW5kcG9pbnRCZWFyZXIsXG4gIE1ldGFkYXRhQmVhcmVyLFxuICBNaWRkbGV3YXJlU3RhY2ssXG4gIFBsdWdnYWJsZSxcbiAgUmVxdWVzdFNlcmlhbGl6ZXIsXG4gIFJlc3BvbnNlRGVzZXJpYWxpemVyLFxuICBTZXJpYWxpemVIYW5kbGVyT3B0aW9ucyxcbn0gZnJvbSBcIkBhd3Mtc2RrL3R5cGVzXCI7XG5cbmltcG9ydCB7IGRlc2VyaWFsaXplck1pZGRsZXdhcmUgfSBmcm9tIFwiLi9kZXNlcmlhbGl6ZXJNaWRkbGV3YXJlXCI7XG5pbXBvcnQgeyBzZXJpYWxpemVyTWlkZGxld2FyZSB9IGZyb20gXCIuL3NlcmlhbGl6ZXJNaWRkbGV3YXJlXCI7XG5cbmV4cG9ydCBjb25zdCBkZXNlcmlhbGl6ZXJNaWRkbGV3YXJlT3B0aW9uOiBEZXNlcmlhbGl6ZUhhbmRsZXJPcHRpb25zID0ge1xuICBuYW1lOiBcImRlc2VyaWFsaXplck1pZGRsZXdhcmVcIixcbiAgc3RlcDogXCJkZXNlcmlhbGl6ZVwiLFxuICB0YWdzOiBbXCJERVNFUklBTElaRVJcIl0sXG59O1xuXG5leHBvcnQgY29uc3Qgc2VyaWFsaXplck1pZGRsZXdhcmVPcHRpb246IFNlcmlhbGl6ZUhhbmRsZXJPcHRpb25zID0ge1xuICBuYW1lOiBcInNlcmlhbGl6ZXJNaWRkbGV3YXJlXCIsXG4gIHN0ZXA6IFwic2VyaWFsaXplXCIsXG4gIHRhZ3M6IFtcIlNFUklBTElaRVJcIl0sXG59O1xuXG5leHBvcnQgZnVuY3Rpb24gZ2V0U2VyZGVQbHVnaW48XG4gIElucHV0VHlwZSBleHRlbmRzIG9iamVjdCxcbiAgU2VyRGVDb250ZXh0IGV4dGVuZHMgRW5kcG9pbnRCZWFyZXIsXG4gIE91dHB1dFR5cGUgZXh0ZW5kcyBNZXRhZGF0YUJlYXJlclxuPihcbiAgY29uZmlnOiBTZXJEZUNvbnRleHQsXG4gIHNlcmlhbGl6ZXI6IFJlcXVlc3RTZXJpYWxpemVyPGFueSwgU2VyRGVDb250ZXh0PixcbiAgZGVzZXJpYWxpemVyOiBSZXNwb25zZURlc2VyaWFsaXplcjxPdXRwdXRUeXBlLCBhbnksIFNlckRlQ29udGV4dD5cbik6IFBsdWdnYWJsZTxJbnB1dFR5cGUsIE91dHB1dFR5cGU+IHtcbiAgcmV0dXJuIHtcbiAgICBhcHBseVRvU3RhY2s6IChjb21tYW5kU3RhY2s6IE1pZGRsZXdhcmVTdGFjazxJbnB1dFR5cGUsIE91dHB1dFR5cGU+KSA9PiB7XG4gICAgICBjb21tYW5kU3RhY2suYWRkKGRlc2VyaWFsaXplck1pZGRsZXdhcmUoY29uZmlnLCBkZXNlcmlhbGl6ZXIpLCBkZXNlcmlhbGl6ZXJNaWRkbGV3YXJlT3B0aW9uKTtcbiAgICAgIGNvbW1hbmRTdGFjay5hZGQoc2VyaWFsaXplck1pZGRsZXdhcmUoY29uZmlnLCBzZXJpYWxpemVyKSwgc2VyaWFsaXplck1pZGRsZXdhcmVPcHRpb24pO1xuICAgIH0sXG4gIH07XG59XG4iXX0= /***/ }), /***/ "bOdf": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/concatMap.js ***! \********************************************************************/ /*! exports provided: concatMap */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concatMap", function() { return concatMap; }); /* harmony import */ var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mergeMap */ "5+tZ"); function concatMap(project, resultSelector) { return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__["mergeMap"])(project, resultSelector, 1); } //# sourceMappingURL=concatMap.js.map /***/ }), /***/ "bPa+": /*!*******************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/package.json ***! \*******************************************************************/ /*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, author, license, default */ /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"@aws-sdk/client-kinesis\",\"description\":\"@aws-sdk/client-kinesis client\",\"version\":\"1.0.0-gamma.8\",\"scripts\":{\"clean\":\"npm run remove-definitions && npm run remove-dist\",\"build-documentation\":\"npm run clean && typedoc ./\",\"prepublishOnly\":\"yarn build\",\"pretest\":\"yarn build:cjs\",\"remove-definitions\":\"rimraf ./types\",\"remove-dist\":\"rimraf ./dist\",\"remove-documentation\":\"rimraf ./docs\",\"test\":\"exit 0\",\"build:cjs\":\"tsc -p tsconfig.json\",\"build:es\":\"tsc -p tsconfig.es.json\",\"build\":\"yarn build:cjs && yarn build:es\"},\"main\":\"./dist/cjs/index.js\",\"types\":\"./types/index.d.ts\",\"module\":\"./dist/es/index.js\",\"browser\":{\"./runtimeConfig\":\"./runtimeConfig.browser\"},\"react-native\":{\"./runtimeConfig\":\"./runtimeConfig.native\"},\"sideEffects\":false,\"dependencies\":{\"@aws-crypto/sha256-browser\":\"^1.0.0-alpha.0\",\"@aws-crypto/sha256-js\":\"^1.0.0-alpha.0\",\"@aws-sdk/config-resolver\":\"1.0.0-gamma.7\",\"@aws-sdk/credential-provider-node\":\"1.0.0-gamma.7\",\"@aws-sdk/eventstream-serde-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/eventstream-serde-config-resolver\":\"1.0.0-gamma.6\",\"@aws-sdk/eventstream-serde-node\":\"1.0.0-gamma.7\",\"@aws-sdk/fetch-http-handler\":\"1.0.0-gamma.8\",\"@aws-sdk/hash-node\":\"1.0.0-gamma.7\",\"@aws-sdk/invalid-dependency\":\"1.0.0-gamma.5\",\"@aws-sdk/middleware-content-length\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-host-header\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-logger\":\"1.0.0-gamma.1\",\"@aws-sdk/middleware-retry\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-serde\":\"1.0.0-gamma.6\",\"@aws-sdk/middleware-signing\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-stack\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-user-agent\":\"1.0.0-gamma.7\",\"@aws-sdk/node-config-provider\":\"1.0.0-gamma.2\",\"@aws-sdk/node-http-handler\":\"1.0.0-gamma.7\",\"@aws-sdk/protocol-http\":\"1.0.0-gamma.7\",\"@aws-sdk/smithy-client\":\"1.0.0-gamma.7\",\"@aws-sdk/types\":\"1.0.0-gamma.6\",\"@aws-sdk/url-parser-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/url-parser-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-base64-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-base64-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-user-agent-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/util-user-agent-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-utf8-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-utf8-node\":\"1.0.0-gamma.6\",\"tslib\":\"^2.0.0\"},\"devDependencies\":{\"@aws-sdk/client-documentation-generator\":\"1.0.0-gamma.5\",\"@types/node\":\"^12.7.5\",\"jest\":\"^26.1.0\",\"rimraf\":\"^3.0.0\",\"typedoc\":\"^0.17.8\",\"typescript\":\"~4.0.2\"},\"engines\":{\"node\":\">=8.0.0\"},\"author\":{\"name\":\"AWS SDK for JavaScript Team\",\"url\":\"https://aws.amazon.com/javascript/\"},\"license\":\"Apache-2.0\"}"); /***/ }), /***/ "bRKV": /*!****************************************************************************!*\ !*** ./node_modules/@aws-amplify/ui-components/dist/esm/index-39969785.js ***! \****************************************************************************/ /*! exports provided: C, H, N, a, b, c, d, g, h, p, r, w */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return CSS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return Host; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return NAMESPACE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return promiseResolve; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return bootstrapLazy; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return createEvent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return doc; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getElement; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return h; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return plt; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return registerInstance; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return win; }); const NAMESPACE = 'amplify-ui-components'; let scopeId; let contentRef; let hostTagName; let useNativeShadowDom = false; let checkSlotFallbackVisibility = false; let checkSlotRelocate = false; let isSvgMode = false; let queueCongestion = 0; let queuePending = false; const win = typeof window !== 'undefined' ? window : {}; const CSS = win.CSS ; const doc = win.document || { head: {} }; const plt = { $flags$: 0, $resourcesUrl$: '', jmp: h => h(), raf: h => requestAnimationFrame(h), ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts), rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts), }; const supportsShadow = /*@__PURE__*/ (() => (doc.head.attachShadow + '').indexOf('[native') > -1)() ; const promiseResolve = (v) => Promise.resolve(v); const supportsConstructibleStylesheets = /*@__PURE__*/ (() => { try { new CSSStyleSheet(); return true; } catch (e) { } return false; })() ; const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => { if ( listeners) { listeners.map(([flags, name, method]) => { const target = elm; const handler = hostListenerProxy(hostRef, method); const opts = hostListenerOpts(flags); plt.ael(target, name, handler, opts); (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts)); }); } }; const hostListenerProxy = (hostRef, methodName) => (ev) => { { if (hostRef.$flags$ & 256 /* isListenReady */) { // instance is ready, let's call it's member method for this event hostRef.$lazyInstance$[methodName](ev); } else { (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]); } } }; // prettier-ignore const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0; const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}'; const XLINK_NS = 'http://www.w3.org/1999/xlink'; const createTime = (fnName, tagName = '') => { { return () => { return; }; } }; const uniqueTime = (key, measureText) => { { return () => { return; }; } }; const rootAppliedStyles = new WeakMap(); const registerStyle = (scopeId, cssText, allowCS) => { let style = styles.get(scopeId); if (supportsConstructibleStylesheets && allowCS) { style = (style || new CSSStyleSheet()); style.replace(cssText); } else { style = cssText; } styles.set(scopeId, style); }; const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => { let scopeId = getScopeId(cmpMeta); let style = styles.get(scopeId); // if an element is NOT connected then getRootNode() will return the wrong root node // so the fallback is to always use the document for the root node in those cases styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc; if (style) { if (typeof style === 'string') { styleContainerNode = styleContainerNode.head || styleContainerNode; let appliedStyles = rootAppliedStyles.get(styleContainerNode); let styleElm; if (!appliedStyles) { rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set())); } if (!appliedStyles.has(scopeId)) { { if ( plt.$cssShim$) { styleElm = plt.$cssShim$.createHostStyle(hostElm, scopeId, style, !!(cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */)); const newScopeId = styleElm['s-sc']; if (newScopeId) { scopeId = newScopeId; // we don't want to add this styleID to the appliedStyles Set // since the cssVarShim might need to apply several different // stylesheets for the same component appliedStyles = null; } } else { styleElm = doc.createElement('style'); styleElm.innerHTML = style; } styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link')); } if (appliedStyles) { appliedStyles.add(scopeId); } } } else if ( !styleContainerNode.adoptedStyleSheets.includes(style)) { styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style]; } } return scopeId; }; const attachStyles = (hostRef) => { const cmpMeta = hostRef.$cmpMeta$; const elm = hostRef.$hostElement$; const flags = cmpMeta.$flags$; const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$); const scopeId = addStyle( supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta, hostRef.$modeName$, elm); if ( flags & 10 /* needsScopedEncapsulation */) { // only required when we're NOT using native shadow dom (slot) // or this browser doesn't support native shadow dom // and this host element was NOT created with SSR // let's pick out the inner content for slot projection // create a node to represent where the original // content was first placed, which is useful later on // DOM WRITE!! elm['s-sc'] = scopeId; elm.classList.add(scopeId + '-h'); if ( flags & 2 /* scopedCssEncapsulation */) { elm.classList.add(scopeId + '-s'); } } endAttachStyles(); }; const getScopeId = (cmp, mode) => 'sc-' + ( cmp.$tagName$); /** * Default style mode id */ /** * Reusable empty obj/array * Don't add values to these!! */ const EMPTY_OBJ = {}; /** * Namespaces */ const SVG_NS = 'http://www.w3.org/2000/svg'; const HTML_NS = 'http://www.w3.org/1999/xhtml'; const isDef = (v) => v != null; const isComplexType = (o) => { // https://jsperf.com/typeof-fn-object/5 o = typeof o; return o === 'object' || o === 'function'; }; /** * Production h() function based on Preact by * Jason Miller (@developit) * Licensed under the MIT License * https://github.com/developit/preact/blob/master/LICENSE * * Modified for Stencil's compiler and vdom */ // const stack: any[] = []; // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode; // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode; const h = (nodeName, vnodeData, ...children) => { let child = null; let key = null; let slotName = null; let simple = false; let lastSimple = false; let vNodeChildren = []; const walk = (c) => { for (let i = 0; i < c.length; i++) { child = c[i]; if (Array.isArray(child)) { walk(child); } else if (child != null && typeof child !== 'boolean') { if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) { child = String(child); } if (simple && lastSimple) { // If the previous child was simple (string), we merge both vNodeChildren[vNodeChildren.length - 1].$text$ += child; } else { // Append a new vNode, if it's text, we create a text vNode vNodeChildren.push(simple ? newVNode(null, child) : child); } lastSimple = simple; } } }; walk(children); if (vnodeData) { // normalize class / classname attributes if ( vnodeData.key) { key = vnodeData.key; } if ( vnodeData.name) { slotName = vnodeData.name; } { const classData = vnodeData.className || vnodeData.class; if (classData) { vnodeData.class = typeof classData !== 'object' ? classData : Object.keys(classData) .filter(k => classData[k]) .join(' '); } } } const vnode = newVNode(nodeName, null); vnode.$attrs$ = vnodeData; if (vNodeChildren.length > 0) { vnode.$children$ = vNodeChildren; } { vnode.$key$ = key; } { vnode.$name$ = slotName; } return vnode; }; const newVNode = (tag, text) => { const vnode = { $flags$: 0, $tag$: tag, $text$: text, $elm$: null, $children$: null, }; { vnode.$attrs$ = null; } { vnode.$key$ = null; } { vnode.$name$ = null; } return vnode; }; const Host = {}; const isHost = (node) => node && node.$tag$ === Host; /** * Production setAccessor() function based on Preact by * Jason Miller (@developit) * Licensed under the MIT License * https://github.com/developit/preact/blob/master/LICENSE * * Modified for Stencil's compiler and vdom */ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => { if (oldValue !== newValue) { let isProp = isMemberInElement(elm, memberName); let ln = memberName.toLowerCase(); if ( memberName === 'class') { const classList = elm.classList; const oldClasses = parseClassList(oldValue); const newClasses = parseClassList(newValue); classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c))); classList.add(...newClasses.filter(c => c && !oldClasses.includes(c))); } else if ( memberName === 'style') { // update style attribute, css properties and values { for (const prop in oldValue) { if (!newValue || newValue[prop] == null) { if ( prop.includes('-')) { elm.style.removeProperty(prop); } else { elm.style[prop] = ''; } } } } for (const prop in newValue) { if (!oldValue || newValue[prop] !== oldValue[prop]) { if ( prop.includes('-')) { elm.style.setProperty(prop, newValue[prop]); } else { elm.style[prop] = newValue[prop]; } } } } else if ( memberName === 'key') ; else if ( memberName === 'ref') { // minifier will clean this up if (newValue) { newValue(elm); } } else if ( ( !isProp ) && memberName[0] === 'o' && memberName[1] === 'n') { // Event Handlers // so if the member name starts with "on" and the 3rd characters is // a capital letter, and it's not already a member on the element, // then we're assuming it's an event listener if (memberName[2] === '-') { // on- prefixed events // allows to be explicit about the dom event to listen without any magic // under the hood: // // listens for "click" // // listens for "Click" // // listens for "ionChange" // // listens for "EVENTS" memberName = memberName.slice(3); } else if (isMemberInElement(win, ln)) { // standard event // the JSX attribute could have been "onMouseOver" and the // member name "onmouseover" is on the window's prototype // so let's add the listener "mouseover", which is all lowercased memberName = ln.slice(2); } else { // custom event // the JSX attribute could have been "onMyCustomEvent" // so let's trim off the "on" prefix and lowercase the first character // and add the listener "myCustomEvent" // except for the first character, we keep the event name case memberName = ln[2] + memberName.slice(3); } if (oldValue) { plt.rel(elm, memberName, oldValue, false); } if (newValue) { plt.ael(elm, memberName, newValue, false); } } else { // Set property if it exists and it's not a SVG const isComplex = isComplexType(newValue); if ((isProp || (isComplex && newValue !== null)) && !isSvg) { try { if (!elm.tagName.includes('-')) { let n = newValue == null ? '' : newValue; // Workaround for Safari, moving the caret when re-assigning the same valued if (memberName === 'list') { isProp = false; // tslint:disable-next-line: triple-equals } else if (oldValue == null || elm[memberName] != n) { elm[memberName] = n; } } else { elm[memberName] = newValue; } } catch (e) { } } /** * Need to manually update attribute if: * - memberName is not an attribute * - if we are rendering the host element in order to reflect attribute * - if it's a SVG, since properties might not work in * - if the newValue is null/undefined or 'false'. */ let xlink = false; { if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) { memberName = ln; xlink = true; } } if (newValue == null || newValue === false) { if (newValue !== false || elm.getAttribute(memberName) === '') { if ( xlink) { elm.removeAttributeNS(XLINK_NS, memberName); } else { elm.removeAttribute(memberName); } } } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) { newValue = newValue === true ? '' : newValue; if ( xlink) { elm.setAttributeNS(XLINK_NS, memberName, newValue); } else { elm.setAttribute(memberName, newValue); } } } } }; const parseClassListRegex = /\s/; const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex)); const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => { // if the element passed in is a shadow root, which is a document fragment // then we want to be adding attrs/props to the shadow root's "host" element // if it's not a shadow root, then we add attrs/props to the same element const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$; const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ; const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ; { // remove attributes no longer present on the vnode by setting them to undefined for (memberName in oldVnodeAttrs) { if (!(memberName in newVnodeAttrs)) { setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$); } } } // add new & update changed attributes for (memberName in newVnodeAttrs) { setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$); } }; const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => { // tslint:disable-next-line: prefer-const let newVNode = newParentVNode.$children$[childIndex]; let i = 0; let elm; let childNode; let oldVNode; if ( !useNativeShadowDom) { // remember for later we need to check to relocate nodes checkSlotRelocate = true; if (newVNode.$tag$ === 'slot') { if (scopeId) { // scoped css needs to add its scoped id to the parent element parentElm.classList.add(scopeId + '-s'); } newVNode.$flags$ |= newVNode.$children$ ? // slot element has fallback content 2 /* isSlotFallback */ : // slot element does not have fallback content 1 /* isSlotReference */; } } if ( newVNode.$text$ !== null) { // create text node elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$); } else if ( newVNode.$flags$ & 1 /* isSlotReference */) { // create a slot reference node elm = newVNode.$elm$ = doc.createTextNode(''); } else { if ( !isSvgMode) { isSvgMode = newVNode.$tag$ === 'svg'; } // create element elm = newVNode.$elm$ = ( doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */ ? 'slot-fb' : newVNode.$tag$) ); if ( isSvgMode && newVNode.$tag$ === 'foreignObject') { isSvgMode = false; } // add css classes, attrs, props, listeners, etc. { updateElement(null, newVNode, isSvgMode); } if ( isDef(scopeId) && elm['s-si'] !== scopeId) { // if there is a scopeId and this is the initial render // then let's add the scopeId as a css class elm.classList.add((elm['s-si'] = scopeId)); } if (newVNode.$children$) { for (i = 0; i < newVNode.$children$.length; ++i) { // create the node childNode = createElm(oldParentVNode, newVNode, i, elm); // return node could have been null if (childNode) { // append our new node elm.appendChild(childNode); } } } { if (newVNode.$tag$ === 'svg') { // Only reset the SVG context when we're exiting element isSvgMode = false; } else if (elm.tagName === 'foreignObject') { // Reenter SVG context when we're exiting element isSvgMode = true; } } } { elm['s-hn'] = hostTagName; if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) { // remember the content reference comment elm['s-sr'] = true; // remember the content reference comment elm['s-cr'] = contentRef; // remember the slot name, or empty string for default slot elm['s-sn'] = newVNode.$name$ || ''; // check if we've got an old vnode for this slot oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex]; if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) { // we've got an old slot vnode and the wrapper is being replaced // so let's move the old slot content back to it's original location putBackInOriginalLocation(oldParentVNode.$elm$, false); } } } return elm; }; const putBackInOriginalLocation = (parentElm, recursive) => { plt.$flags$ |= 1 /* isTmpDisconnected */; const oldSlotChildNodes = parentElm.childNodes; for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) { const childNode = oldSlotChildNodes[i]; if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) { // // this child node in the old element is from another component // // remove this node from the old slot's parent // childNode.remove(); // and relocate it back to it's original location parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode)); // remove the old original location comment entirely // later on the patch function will know what to do // and move this to the correct spot in need be childNode['s-ol'].remove(); childNode['s-ol'] = undefined; checkSlotRelocate = true; } if (recursive) { putBackInOriginalLocation(childNode, recursive); } } plt.$flags$ &= ~1 /* isTmpDisconnected */; }; const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => { let containerElm = (( parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm); let childNode; if ( containerElm.shadowRoot && containerElm.tagName === hostTagName) { containerElm = containerElm.shadowRoot; } for (; startIdx <= endIdx; ++startIdx) { if (vnodes[startIdx]) { childNode = createElm(null, parentVNode, startIdx, parentElm); if (childNode) { vnodes[startIdx].$elm$ = childNode; containerElm.insertBefore(childNode, referenceNode(before) ); } } } }; const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => { for (; startIdx <= endIdx; ++startIdx) { if ((vnode = vnodes[startIdx])) { elm = vnode.$elm$; callNodeRefs(vnode); { // we're removing this element // so it's possible we need to show slot fallback content now checkSlotFallbackVisibility = true; if (elm['s-ol']) { // remove the original location comment elm['s-ol'].remove(); } else { // it's possible that child nodes of the node // that's being removed are slot nodes putBackInOriginalLocation(elm, true); } } // remove the vnode's element from the dom elm.remove(); } } }; const updateChildren = (parentElm, oldCh, newVNode, newCh) => { let oldStartIdx = 0; let newStartIdx = 0; let idxInOld = 0; let i = 0; let oldEndIdx = oldCh.length - 1; let oldStartVnode = oldCh[0]; let oldEndVnode = oldCh[oldEndIdx]; let newEndIdx = newCh.length - 1; let newStartVnode = newCh[0]; let newEndVnode = newCh[newEndIdx]; let node; let elmToMove; while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) { if (oldStartVnode == null) { // Vnode might have been moved left oldStartVnode = oldCh[++oldStartIdx]; } else if (oldEndVnode == null) { oldEndVnode = oldCh[--oldEndIdx]; } else if (newStartVnode == null) { newStartVnode = newCh[++newStartIdx]; } else if (newEndVnode == null) { newEndVnode = newCh[--newEndIdx]; } else if (isSameVnode(oldStartVnode, newStartVnode)) { patch(oldStartVnode, newStartVnode); oldStartVnode = oldCh[++oldStartIdx]; newStartVnode = newCh[++newStartIdx]; } else if (isSameVnode(oldEndVnode, newEndVnode)) { patch(oldEndVnode, newEndVnode); oldEndVnode = oldCh[--oldEndIdx]; newEndVnode = newCh[--newEndIdx]; } else if (isSameVnode(oldStartVnode, newEndVnode)) { // Vnode moved right if ( (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) { putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false); } patch(oldStartVnode, newEndVnode); parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling); oldStartVnode = oldCh[++oldStartIdx]; newEndVnode = newCh[--newEndIdx]; } else if (isSameVnode(oldEndVnode, newStartVnode)) { // Vnode moved left if ( (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) { putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false); } patch(oldEndVnode, newStartVnode); parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$); oldEndVnode = oldCh[--oldEndIdx]; newStartVnode = newCh[++newStartIdx]; } else { // createKeyToOldIdx idxInOld = -1; { for (i = oldStartIdx; i <= oldEndIdx; ++i) { if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) { idxInOld = i; break; } } } if ( idxInOld >= 0) { elmToMove = oldCh[idxInOld]; if (elmToMove.$tag$ !== newStartVnode.$tag$) { node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm); } else { patch(elmToMove, newStartVnode); oldCh[idxInOld] = undefined; node = elmToMove.$elm$; } newStartVnode = newCh[++newStartIdx]; } else { // new element node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm); newStartVnode = newCh[++newStartIdx]; } if (node) { { parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$)); } } } } if (oldStartIdx > oldEndIdx) { addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx); } else if ( newStartIdx > newEndIdx) { removeVnodes(oldCh, oldStartIdx, oldEndIdx); } }; const isSameVnode = (vnode1, vnode2) => { // compare if two vnode to see if they're "technically" the same // need to have the same element tag, and same key to be the same if (vnode1.$tag$ === vnode2.$tag$) { if ( vnode1.$tag$ === 'slot') { return vnode1.$name$ === vnode2.$name$; } { return vnode1.$key$ === vnode2.$key$; } } return false; }; const referenceNode = (node) => { // this node was relocated to a new location in the dom // because of some other component's slot // but we still have an html comment in place of where // it's original location was according to it's original vdom return (node && node['s-ol']) || node; }; const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode; const patch = (oldVNode, newVNode) => { const elm = (newVNode.$elm$ = oldVNode.$elm$); const oldChildren = oldVNode.$children$; const newChildren = newVNode.$children$; const tag = newVNode.$tag$; const text = newVNode.$text$; let defaultHolder; if ( text === null) { { // test if we're rendering an svg element, or still rendering nodes inside of one // only add this to the when the compiler sees we're using an svg somewhere isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode; } // element node { if ( tag === 'slot') ; else { // either this is the first render of an element OR it's an update // AND we already know it's possible it could have changed // this updates the element's css classes, attrs, props, listeners, etc. updateElement(oldVNode, newVNode, isSvgMode); } } if ( oldChildren !== null && newChildren !== null) { // looks like there's child vnodes for both the old and new vnodes updateChildren(elm, oldChildren, newVNode, newChildren); } else if (newChildren !== null) { // no old child vnodes, but there are new child vnodes to add if ( oldVNode.$text$ !== null) { // the old vnode was text, so be sure to clear it out elm.textContent = ''; } // add the new vnode children addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1); } else if ( oldChildren !== null) { // no new child vnodes, but there are old child vnodes to remove removeVnodes(oldChildren, 0, oldChildren.length - 1); } if ( isSvgMode && tag === 'svg') { isSvgMode = false; } } else if ( (defaultHolder = elm['s-cr'])) { // this element has slotted content defaultHolder.parentNode.textContent = text; } else if ( oldVNode.$text$ !== text) { // update the text content for the text only vnode // and also only if the text is different than before elm.data = text; } }; const updateFallbackSlotVisibility = (elm) => { // tslint:disable-next-line: prefer-const let childNodes = elm.childNodes; let childNode; let i; let ilen; let j; let slotNameAttr; let nodeType; for (i = 0, ilen = childNodes.length; i < ilen; i++) { childNode = childNodes[i]; if (childNode.nodeType === 1 /* ElementNode */) { if (childNode['s-sr']) { // this is a slot fallback node // get the slot name for this slot reference node slotNameAttr = childNode['s-sn']; // by default always show a fallback slot node // then hide it if there are other slots in the light dom childNode.hidden = false; for (j = 0; j < ilen; j++) { if (childNodes[j]['s-hn'] !== childNode['s-hn']) { // this sibling node is from a different component nodeType = childNodes[j].nodeType; if (slotNameAttr !== '') { // this is a named fallback slot node if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) { childNode.hidden = true; break; } } else { // this is a default fallback slot node // any element or text node (with content) // should hide the default fallback slot node if (nodeType === 1 /* ElementNode */ || (nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) { childNode.hidden = true; break; } } } } } // keep drilling down updateFallbackSlotVisibility(childNode); } } }; const relocateNodes = []; const relocateSlotContent = (elm) => { // tslint:disable-next-line: prefer-const let childNode; let node; let hostContentNodes; let slotNameAttr; let relocateNodeData; let j; let i = 0; let childNodes = elm.childNodes; let ilen = childNodes.length; for (; i < ilen; i++) { childNode = childNodes[i]; if (childNode['s-sr'] && (node = childNode['s-cr'])) { // first got the content reference comment node // then we got it's parent, which is where all the host content is in now hostContentNodes = node.parentNode.childNodes; slotNameAttr = childNode['s-sn']; for (j = hostContentNodes.length - 1; j >= 0; j--) { node = hostContentNodes[j]; if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) { // let's do some relocating to its new home // but never relocate a content reference node // that is suppose to always represent the original content location if (isNodeLocatedInSlot(node, slotNameAttr)) { // it's possible we've already decided to relocate this node relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node); // made some changes to slots // let's make sure we also double check // fallbacks are correctly hidden or shown checkSlotFallbackVisibility = true; node['s-sn'] = node['s-sn'] || slotNameAttr; if (relocateNodeData) { // previously we never found a slot home for this node // but turns out we did, so let's remember it now relocateNodeData.$slotRefNode$ = childNode; } else { // add to our list of nodes to relocate relocateNodes.push({ $slotRefNode$: childNode, $nodeToRelocate$: node, }); } if (node['s-sr']) { relocateNodes.map(relocateNode => { if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) { relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node); if (relocateNodeData && !relocateNode.$slotRefNode$) { relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$; } } }); } } else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) { // so far this element does not have a slot home, not setting slotRefNode on purpose // if we never find a home for this element then we'll need to hide it relocateNodes.push({ $nodeToRelocate$: node, }); } } } } if (childNode.nodeType === 1 /* ElementNode */) { relocateSlotContent(childNode); } } }; const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => { if (nodeToRelocate.nodeType === 1 /* ElementNode */) { if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') { return true; } if (nodeToRelocate.getAttribute('slot') === slotNameAttr) { return true; } return false; } if (nodeToRelocate['s-sn'] === slotNameAttr) { return true; } return slotNameAttr === ''; }; const callNodeRefs = (vNode) => { { vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null); vNode.$children$ && vNode.$children$.map(callNodeRefs); } }; const renderVdom = (hostRef, renderFnResults) => { const hostElm = hostRef.$hostElement$; const cmpMeta = hostRef.$cmpMeta$; const oldVNode = hostRef.$vnode$ || newVNode(null, null); const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults); hostTagName = hostElm.tagName; rootVnode.$tag$ = null; rootVnode.$flags$ |= 4 /* isHost */; hostRef.$vnode$ = rootVnode; rootVnode.$elm$ = oldVNode.$elm$ = ( hostElm.shadowRoot || hostElm ); { scopeId = hostElm['s-sc']; } { contentRef = hostElm['s-cr']; useNativeShadowDom = supportsShadow && (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0; // always reset checkSlotFallbackVisibility = false; } // synchronous patch patch(oldVNode, rootVnode); { // while we're moving nodes around existing nodes, temporarily disable // the disconnectCallback from working plt.$flags$ |= 1 /* isTmpDisconnected */; if (checkSlotRelocate) { relocateSlotContent(rootVnode.$elm$); let relocateData; let nodeToRelocate; let orgLocationNode; let parentNodeRef; let insertBeforeNode; let refNode; let i = 0; for (; i < relocateNodes.length; i++) { relocateData = relocateNodes[i]; nodeToRelocate = relocateData.$nodeToRelocate$; if (!nodeToRelocate['s-ol']) { // add a reference node marking this node's original location // keep a reference to this node for later lookups orgLocationNode = doc.createTextNode(''); orgLocationNode['s-nr'] = nodeToRelocate; nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate); } } for (i = 0; i < relocateNodes.length; i++) { relocateData = relocateNodes[i]; nodeToRelocate = relocateData.$nodeToRelocate$; if (relocateData.$slotRefNode$) { // by default we're just going to insert it directly // after the slot reference node parentNodeRef = relocateData.$slotRefNode$.parentNode; insertBeforeNode = relocateData.$slotRefNode$.nextSibling; orgLocationNode = nodeToRelocate['s-ol']; while ((orgLocationNode = orgLocationNode.previousSibling)) { refNode = orgLocationNode['s-nr']; if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) { refNode = refNode.nextSibling; if (!refNode || !refNode['s-nr']) { insertBeforeNode = refNode; break; } } } if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) || nodeToRelocate.nextSibling !== insertBeforeNode) { // we've checked that it's worth while to relocate // since that the node to relocate // has a different next sibling or parent relocated if (nodeToRelocate !== insertBeforeNode) { if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) { // probably a component in the index.html that doesn't have it's hostname set nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName; } // add it back to the dom but in its new home parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode); } } } else { // this node doesn't have a slot home to go to, so let's hide it if (nodeToRelocate.nodeType === 1 /* ElementNode */) { nodeToRelocate.hidden = true; } } } } if (checkSlotFallbackVisibility) { updateFallbackSlotVisibility(rootVnode.$elm$); } // done moving nodes around // allow the disconnect callback to work again plt.$flags$ &= ~1 /* isTmpDisconnected */; // always reset relocateNodes.length = 0; } }; const getElement = (ref) => ( getHostRef(ref).$hostElement$ ); const createEvent = (ref, name, flags) => { const elm = getElement(ref); return { emit: (detail) => { return emitEvent(elm, name, { bubbles: !!(flags & 4 /* Bubbles */), composed: !!(flags & 2 /* Composed */), cancelable: !!(flags & 1 /* Cancellable */), detail, }); }, }; }; const emitEvent = (elm, name, opts) => { const ev = new ( CustomEvent)(name, opts); elm.dispatchEvent(ev); return ev; }; const attachToAncestor = (hostRef, ancestorComponent) => { if ( ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) { ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r))); } }; const scheduleUpdate = (hostRef, isInitialLoad) => { { hostRef.$flags$ |= 16 /* isQueuedForUpdate */; } if ( hostRef.$flags$ & 4 /* isWaitingForChildren */) { hostRef.$flags$ |= 512 /* needsRerender */; return; } attachToAncestor(hostRef, hostRef.$ancestorComponent$); // there is no ancestorc omponent or the ancestor component // has already fired off its lifecycle update then // fire off the initial update const dispatch = () => dispatchHooks(hostRef, isInitialLoad); return writeTask(dispatch) ; }; const dispatchHooks = (hostRef, isInitialLoad) => { const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$); const instance = hostRef.$lazyInstance$ ; let promise; if (isInitialLoad) { { hostRef.$flags$ |= 256 /* isListenReady */; if (hostRef.$queuedListeners$) { hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event)); hostRef.$queuedListeners$ = null; } } { promise = safeCall(instance, 'componentWillLoad'); } } endSchedule(); return then(promise, () => updateComponent(hostRef, instance, isInitialLoad)); }; const updateComponent = (hostRef, instance, isInitialLoad) => { // updateComponent const elm = hostRef.$hostElement$; const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$); const rc = elm['s-rc']; if ( isInitialLoad) { // DOM WRITE! attachStyles(hostRef); } const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$); { { // looks like we've got child nodes to render into this host element // or we need to update the css class/attrs on the host element // DOM WRITE! renderVdom(hostRef, callRender(hostRef, instance)); } } if ( plt.$cssShim$) { plt.$cssShim$.updateHost(elm); } if ( rc) { // ok, so turns out there are some child host elements // waiting on this parent element to load // let's fire off all update callbacks waiting rc.map(cb => cb()); elm['s-rc'] = undefined; } endRender(); endUpdate(); { const childrenPromises = elm['s-p']; const postUpdate = () => postUpdateComponent(hostRef); if (childrenPromises.length === 0) { postUpdate(); } else { Promise.all(childrenPromises).then(postUpdate); hostRef.$flags$ |= 4 /* isWaitingForChildren */; childrenPromises.length = 0; } } }; const callRender = (hostRef, instance) => { try { instance = instance.render() ; { hostRef.$flags$ &= ~16 /* isQueuedForUpdate */; } { hostRef.$flags$ |= 2 /* hasRendered */; } } catch (e) { consoleError(e); } return instance; }; const postUpdateComponent = (hostRef) => { const tagName = hostRef.$cmpMeta$.$tagName$; const elm = hostRef.$hostElement$; const endPostUpdate = createTime('postUpdate', tagName); const instance = hostRef.$lazyInstance$ ; const ancestorComponent = hostRef.$ancestorComponent$; { safeCall(instance, 'componentDidRender'); } if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) { hostRef.$flags$ |= 64 /* hasLoadedComponent */; { // DOM WRITE! addHydratedFlag(elm); } endPostUpdate(); { hostRef.$onReadyResolve$(elm); if (!ancestorComponent) { appDidLoad(); } } } else { endPostUpdate(); } // load events fire from bottom to top // the deepest elements load first then bubbles up { if (hostRef.$onRenderResolve$) { hostRef.$onRenderResolve$(); hostRef.$onRenderResolve$ = undefined; } if (hostRef.$flags$ & 512 /* needsRerender */) { nextTick(() => scheduleUpdate(hostRef, false)); } hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */); } // ( •_•) // ( •_•)>⌐■-■ // (⌐■_■) }; const forceUpdate = (ref) => { { const hostRef = getHostRef(ref); const isConnected = hostRef.$hostElement$.isConnected; if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) { scheduleUpdate(hostRef, false); } // Returns "true" when the forced update was successfully scheduled return isConnected; } }; const appDidLoad = (who) => { // on appload // we have finish the first big initial render { addHydratedFlag(doc.documentElement); } { plt.$flags$ |= 2 /* appLoaded */; } nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } })); }; const safeCall = (instance, method, arg) => { if (instance && instance[method]) { try { return instance[method](arg); } catch (e) { consoleError(e); } } return undefined; }; const then = (promise, thenFn) => { return promise && promise.then ? promise.then(thenFn) : thenFn(); }; const addHydratedFlag = (elm) => ( elm.classList.add('hydrated') ); const parsePropertyValue = (propValue, propType) => { // ensure this value is of the correct prop type if (propValue != null && !isComplexType(propValue)) { if ( propType & 4 /* Boolean */) { // per the HTML spec, any string value means it is a boolean true value // but we'll cheat here and say that the string "false" is the boolean false return propValue === 'false' ? false : propValue === '' || !!propValue; } if ( propType & 2 /* Number */) { // force it to be a number return parseFloat(propValue); } if ( propType & 1 /* String */) { // could have been passed as a number or boolean // but we still want it as a string return String(propValue); } // redundant return here for better minification return propValue; } // not sure exactly what type we want // so no need to change to a different type return propValue; }; const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName); const setValue = (ref, propName, newVal, cmpMeta) => { // check our new property value against our internal value const hostRef = getHostRef(ref); const oldVal = hostRef.$instanceValues$.get(propName); const flags = hostRef.$flags$; const instance = hostRef.$lazyInstance$ ; newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]); if (( !(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) { // gadzooks! the property's value has changed!! // set our new value! hostRef.$instanceValues$.set(propName, newVal); if ( instance) { // get an array of method names of watch functions to call if ( cmpMeta.$watchers$) { if ( flags & 128 /* isWatchReady */) { const watchMethods = cmpMeta.$watchers$[propName]; if (watchMethods) { // this instance is watching for when this property changed watchMethods.map(watchMethodName => { try { // fire off each of the watch methods that are watching this property instance[watchMethodName](newVal, oldVal, propName); } catch (e) { consoleError(e); } }); } } } if ( (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) { // looks like this value actually changed, so we've got work to do! // but only if we've already rendered, otherwise just chill out // queue that we need to do an update, but don't worry about queuing // up millions cuz this function ensures it only runs once scheduleUpdate(hostRef, false); } } } }; const proxyComponent = (Cstr, cmpMeta, flags) => { if ( cmpMeta.$members$) { if ( Cstr.watchers) { cmpMeta.$watchers$ = Cstr.watchers; } // It's better to have a const than two Object.entries() const members = Object.entries(cmpMeta.$members$); const prototype = Cstr.prototype; members.map(([memberName, [memberFlags]]) => { if ( (memberFlags & 31 /* Prop */ || (( flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) { // proxyComponent - prop Object.defineProperty(prototype, memberName, { get() { // proxyComponent, get value return getValue(this, memberName); }, set(newValue) { // proxyComponent, set value setValue(this, memberName, newValue, cmpMeta); }, configurable: true, enumerable: true, }); } }); if ( ( flags & 1 /* isElementConstructor */)) { const attrNameToPropName = new Map(); prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) { plt.jmp(() => { const propName = attrNameToPropName.get(attrName); this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue; }); }; // create an array of attributes to observe // and also create a map of html attribute name to js property name Cstr.observedAttributes = members .filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes .map(([propName, m]) => { const attrName = m[1] || propName; attrNameToPropName.set(attrName, propName); return attrName; }); } } return Cstr; }; const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => { // initializeComponent if ( (hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) { // we haven't initialized this element yet hostRef.$flags$ |= 32 /* hasInitializedComponent */; { // lazy loaded components // request the component's implementation to be // wired up with the host element Cstr = loadModule(cmpMeta); if (Cstr.then) { // Await creates a micro-task avoid if possible const endLoad = uniqueTime(); Cstr = await Cstr; endLoad(); } if ( !Cstr.isProxied) { // we'eve never proxied this Constructor before // let's add the getters/setters to its prototype before // the first time we create an instance of the implementation { cmpMeta.$watchers$ = Cstr.watchers; } proxyComponent(Cstr, cmpMeta, 2 /* proxyState */); Cstr.isProxied = true; } const endNewInstance = createTime('createInstance', cmpMeta.$tagName$); // ok, time to construct the instance // but let's keep track of when we start and stop // so that the getters/setters don't incorrectly step on data { hostRef.$flags$ |= 8 /* isConstructingInstance */; } // construct the lazy-loaded component implementation // passing the hostRef is very important during // construction in order to directly wire together the // host element and the lazy-loaded instance try { new Cstr(hostRef); } catch (e) { consoleError(e); } { hostRef.$flags$ &= ~8 /* isConstructingInstance */; } { hostRef.$flags$ |= 128 /* isWatchReady */; } endNewInstance(); } if ( Cstr.style) { // this component has styles but we haven't registered them yet let style = Cstr.style; const scopeId = getScopeId(cmpMeta); if (!styles.has(scopeId)) { const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$); if ( cmpMeta.$flags$ & 8 /* needsShadowDomShim */) { style = await __webpack_require__.e(/*! import() | shadow-css-360bb6da-js */ "shadow-css-360bb6da-js").then(__webpack_require__.bind(null, /*! ./shadow-css-360bb6da.js */ "30K8")).then(m => m.scopeCss(style, scopeId, false)); } registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)); endRegisterStyles(); } } } // we've successfully created a lazy instance const ancestorComponent = hostRef.$ancestorComponent$; const schedule = () => scheduleUpdate(hostRef, true); if ( ancestorComponent && ancestorComponent['s-rc']) { // this is the intial load and this component it has an ancestor component // but the ancestor component has NOT fired its will update lifecycle yet // so let's just cool our jets and wait for the ancestor to continue first // this will get fired off when the ancestor component // finally gets around to rendering its lazy self // fire off the initial update ancestorComponent['s-rc'].push(schedule); } else { schedule(); } }; const connectedCallback = (elm) => { if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) { const hostRef = getHostRef(elm); const cmpMeta = hostRef.$cmpMeta$; const endConnected = createTime('connectedCallback', cmpMeta.$tagName$); if (!(hostRef.$flags$ & 1 /* hasConnected */)) { // first time this component has connected hostRef.$flags$ |= 1 /* hasConnected */; { // initUpdate // if the slot polyfill is required we'll need to put some nodes // in here to act as original content anchors as we move nodes around // host element has been connected to the DOM if ( ( cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) { setContentReference(elm); } } { // find the first ancestor component (if there is one) and register // this component as one of the actively loading child components for its ancestor let ancestorComponent = elm; while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) { // climb up the ancestors looking for the first // component that hasn't finished its lifecycle update yet if ( ancestorComponent['s-p']) { // we found this components first ancestor component // keep a reference to this component's ancestor component attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent)); break; } } } // Lazy properties // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties if ( cmpMeta.$members$) { Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => { if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) { const value = elm[memberName]; delete elm[memberName]; elm[memberName] = value; } }); } { initializeComponent(elm, hostRef, cmpMeta); } } else { // not the first time this has connected // reattach any event listeners to the host // since they would have been removed when disconnected addHostEventListeners(elm, hostRef, cmpMeta.$listeners$); } endConnected(); } }; const setContentReference = (elm) => { // only required when we're NOT using native shadow dom (slot) // or this browser doesn't support native shadow dom // and this host element was NOT created with SSR // let's pick out the inner content for slot projection // create a node to represent where the original // content was first placed, which is useful later on const contentRefElm = (elm['s-cr'] = doc.createComment( '')); contentRefElm['s-cn'] = true; elm.insertBefore(contentRefElm, elm.firstChild); }; const disconnectedCallback = (elm) => { if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) { const hostRef = getHostRef(elm); { if (hostRef.$rmListeners$) { hostRef.$rmListeners$.map(rmListener => rmListener()); hostRef.$rmListeners$ = undefined; } } // clear CSS var-shim tracking if ( plt.$cssShim$) { plt.$cssShim$.removeHost(elm); } } }; const bootstrapLazy = (lazyBundles, options = {}) => { const endBootstrap = createTime(); const cmpTags = []; const exclude = options.exclude || []; const customElements = win.customElements; const head = doc.head; const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]'); const visibilityStyle = /*@__PURE__*/ doc.createElement('style'); const deferredConnectedCallbacks = []; let appLoadFallback; let isBootstrapping = true; Object.assign(plt, options); plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href; { if (options.syncQueue) { plt.$flags$ |= 4 /* queueSync */; } } lazyBundles.map(lazyBundle => lazyBundle[1].map(compactMeta => { const cmpMeta = { $flags$: compactMeta[0], $tagName$: compactMeta[1], $members$: compactMeta[2], $listeners$: compactMeta[3], }; { cmpMeta.$members$ = compactMeta[2]; } { cmpMeta.$listeners$ = compactMeta[3]; } { cmpMeta.$watchers$ = {}; } if ( !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) { cmpMeta.$flags$ |= 8 /* needsShadowDomShim */; } const tagName = cmpMeta.$tagName$; const HostElement = class extends HTMLElement { // StencilLazyHost constructor(self) { // @ts-ignore super(self); self = this; registerHost(self, cmpMeta); if ( cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) { // this component is using shadow dom // and this browser supports shadow dom // add the read-only property "shadowRoot" to the host element // adding the shadow root build conditionals to minimize runtime if (supportsShadow) { { self.attachShadow({ mode: 'open' }); } } else if ( !('shadowRoot' in self)) { self.shadowRoot = self; } } } connectedCallback() { if (appLoadFallback) { clearTimeout(appLoadFallback); appLoadFallback = null; } if (isBootstrapping) { // connectedCallback will be processed once all components have been registered deferredConnectedCallbacks.push(this); } else { plt.jmp(() => connectedCallback(this)); } } disconnectedCallback() { plt.jmp(() => disconnectedCallback(this)); } forceUpdate() { forceUpdate(this); } componentOnReady() { return getHostRef(this).$onReadyPromise$; } }; cmpMeta.$lazyBundleId$ = lazyBundle[0]; if (!exclude.includes(tagName) && !customElements.get(tagName)) { cmpTags.push(tagName); customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)); } })); { visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS; visibilityStyle.setAttribute('data-styles', ''); head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild); } // Process deferred connectedCallbacks now all components have been registered isBootstrapping = false; if (deferredConnectedCallbacks.length) { deferredConnectedCallbacks.map(host => host.connectedCallback()); } else { { plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30))); } } // Fallback appLoad event endBootstrap(); }; const hostRefs = new WeakMap(); const getHostRef = (ref) => hostRefs.get(ref); const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef); const registerHost = (elm, cmpMeta) => { const hostRef = { $flags$: 0, $hostElement$: elm, $cmpMeta$: cmpMeta, $instanceValues$: new Map(), }; { hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r)); elm['s-p'] = []; elm['s-rc'] = []; } addHostEventListeners(elm, hostRef, cmpMeta.$listeners$); return hostRefs.set(elm, hostRef); }; const isMemberInElement = (elm, memberName) => memberName in elm; const consoleError = (e) => console.error(e); const cmpModules = /*@__PURE__*/ new Map(); const loadModule = (cmpMeta, hostRef, hmrVersionId) => { // loadModuleImport const exportName = cmpMeta.$tagName$.replace(/-/g, '_'); const bundleId = cmpMeta.$lazyBundleId$; const module = cmpModules.get(bundleId) ; if (module) { return module[exportName]; } return __webpack_require__("+uQQ")(`./${bundleId}.entry.js`).then(importedModule => { { cmpModules.set(bundleId, importedModule); } return importedModule[exportName]; }, consoleError); }; const styles = new Map(); const queueDomReads = []; const queueDomWrites = []; const queueDomWritesLow = []; const queueTask = (queue, write) => (cb) => { queue.push(cb); if (!queuePending) { queuePending = true; if (write && plt.$flags$ & 4 /* queueSync */) { nextTick(flush); } else { plt.raf(flush); } } }; const consume = (queue) => { for (let i = 0; i < queue.length; i++) { try { queue[i](performance.now()); } catch (e) { consoleError(e); } } queue.length = 0; }; const consumeTimeout = (queue, timeout) => { let i = 0; let ts = 0; while (i < queue.length && (ts = performance.now()) < timeout) { try { queue[i++](ts); } catch (e) { consoleError(e); } } if (i === queue.length) { queue.length = 0; } else if (i !== 0) { queue.splice(0, i); } }; const flush = () => { { queueCongestion++; } // always force a bunch of medium callbacks to run, but still have // a throttle on how many can run in a certain time // DOM READS!!! consume(queueDomReads); // DOM WRITES!!! { const timeout = (plt.$flags$ & 6 /* queueMask */) === 2 /* appLoaded */ ? performance.now() + 14 * Math.ceil(queueCongestion * (1.0 / 10.0)) : Infinity; consumeTimeout(queueDomWrites, timeout); consumeTimeout(queueDomWritesLow, timeout); if (queueDomWrites.length > 0) { queueDomWritesLow.push(...queueDomWrites); queueDomWrites.length = 0; } if ((queuePending = queueDomReads.length + queueDomWrites.length + queueDomWritesLow.length > 0)) { // still more to do yet, but we've run out of time // let's let this thing cool off and try again in the next tick plt.raf(flush); } else { queueCongestion = 0; } } }; const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb); const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true); /***/ }), /***/ "bRr/": /*!********************************************************************************************************!*\ !*** ./node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIIdentifyPredictionsProvider.js ***! \********************************************************************************************************/ /*! exports provided: AmazonAIIdentifyPredictionsProvider, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmazonAIIdentifyPredictionsProvider", function() { return AmazonAIIdentifyPredictionsProvider; }); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); /* harmony import */ var _aws_amplify_storage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/storage */ "l1VB"); /* harmony import */ var _types_Providers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../types/Providers */ "2Q8h"); /* harmony import */ var _aws_sdk_client_rekognition__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/client-rekognition */ "V2Ok"); /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../types */ "Rw49"); /* harmony import */ var _aws_sdk_client_textract__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/client-textract */ "5WWr"); /* harmony import */ var _Utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Utils */ "I6Eg"); /* harmony import */ var _IdentifyTextUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./IdentifyTextUtils */ "ZCy7"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var AmazonAIIdentifyPredictionsProvider = /** @class */ (function (_super) { __extends(AmazonAIIdentifyPredictionsProvider, _super); function AmazonAIIdentifyPredictionsProvider() { return _super.call(this) || this; } AmazonAIIdentifyPredictionsProvider.prototype.getProviderName = function () { return 'AmazonAIIdentifyPredictionsProvider'; }; /** * Verify user input source and converts it into source object readable by Rekognition and Textract. * Note that Rekognition and Textract use the same source interface, so we need not worry about types. * @param {IdentifySource} source - User input source that directs to the object user wants * to identify (storage, file, or bytes). * @return {Promise} - Promise resolving to the converted source object. */ AmazonAIIdentifyPredictionsProvider.prototype.configureSource = function (source) { return new Promise(function (res, rej) { if (Object(_types__WEBPACK_IMPORTED_MODULE_4__["isStorageSource"])(source)) { var storageConfig = { level: source.level, identityId: source.identityId, }; _aws_amplify_storage__WEBPACK_IMPORTED_MODULE_1__["default"].get(source.key, storageConfig) .then(function (url) { var parser = /https:\/\/([a-zA-Z0-9%-_.]+)\.s3\.[A-Za-z0-9%-._~]+\/([a-zA-Z0-9%-._~/]+)\?/; var parsedURL = url.match(parser); if (parsedURL.length < 3) rej('Invalid S3 key was given.'); res({ S3Object: { Bucket: parsedURL[1], Name: decodeURIComponent(parsedURL[2]), }, }); }) .catch(function (err) { return rej(err); }); } else if (Object(_types__WEBPACK_IMPORTED_MODULE_4__["isFileSource"])(source)) { Object(_Utils__WEBPACK_IMPORTED_MODULE_6__["blobToArrayBuffer"])(source.file) .then(function (buffer) { res({ Bytes: new Uint8Array(buffer) }); }) .catch(function (err) { return rej(err); }); } else if (Object(_types__WEBPACK_IMPORTED_MODULE_4__["isBytesSource"])(source)) { var bytes = source.bytes; if (bytes instanceof Blob) { Object(_Utils__WEBPACK_IMPORTED_MODULE_6__["blobToArrayBuffer"])(bytes) .then(function (buffer) { res({ Bytes: new Uint8Array(buffer) }); }) .catch(function (err) { return rej(err); }); } if (bytes instanceof ArrayBuffer || bytes instanceof Buffer) { res({ Bytes: new Uint8Array(bytes) }); } // everything else can be directly passed to Rekognition / Textract. res({ Bytes: bytes }); } else { rej('Input source is not configured correctly.'); } }); }; /** * Recognize text from real-world images and documents (plain text, forms and tables). Detects text in the input * image and converts it into machine-readable text. * @param {IdentifySource} source - Object containing the source image and feature types to analyze. * @return {Promise} - Promise resolving to object containing identified texts. */ AmazonAIIdentifyPredictionsProvider.prototype.identifyText = function (input) { return __awaiter(this, void 0, void 0, function () { var credentials, _a, _b, _c, region, _d, _e, configFormat, inputDocument, err_1, format, featureTypes, textractParam, rekognitionParam, detectTextCommand, rekognitionData, rekognitionResponse, detectDocumentTextCommand, Blocks, err_2, param, analyzeDocumentCommand, Blocks, err_3; return __generator(this, function (_f) { switch (_f.label) { case 0: return [4 /*yield*/, _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].get()]; case 1: credentials = _f.sent(); if (!credentials) return [2 /*return*/, Promise.reject('No credentials')]; _a = this._config.identifyText, _b = _a === void 0 ? {} : _a, _c = _b.region, region = _c === void 0 ? '' : _c, _d = _b.defaults, _e = (_d === void 0 ? {} : _d).format, configFormat = _e === void 0 ? 'PLAIN' : _e; this.rekognitionClient = new _aws_sdk_client_rekognition__WEBPACK_IMPORTED_MODULE_3__["RekognitionClient"]({ region: region, credentials: credentials, customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["getAmplifyUserAgent"])(), }); this.textractClient = new _aws_sdk_client_textract__WEBPACK_IMPORTED_MODULE_5__["TextractClient"]({ region: region, credentials: credentials, customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["getAmplifyUserAgent"])(), }); _f.label = 2; case 2: _f.trys.push([2, 4, , 5]); return [4 /*yield*/, this.configureSource(input.text.source)]; case 3: inputDocument = _f.sent(); return [3 /*break*/, 5]; case 4: err_1 = _f.sent(); return [2 /*return*/, Promise.reject(err_1)]; case 5: format = input.text.format || configFormat; featureTypes = []; if (format === 'FORM' || format === 'ALL') featureTypes.push('FORMS'); if (format === 'TABLE' || format === 'ALL') featureTypes.push('TABLES'); if (!(featureTypes.length === 0)) return [3 /*break*/, 11]; textractParam = { Document: inputDocument, }; rekognitionParam = { Image: inputDocument, }; _f.label = 6; case 6: _f.trys.push([6, 9, , 10]); detectTextCommand = new _aws_sdk_client_rekognition__WEBPACK_IMPORTED_MODULE_3__["DetectTextCommand"](rekognitionParam); return [4 /*yield*/, this.rekognitionClient.send(detectTextCommand)]; case 7: rekognitionData = _f.sent(); rekognitionResponse = Object(_IdentifyTextUtils__WEBPACK_IMPORTED_MODULE_7__["categorizeRekognitionBlocks"])(rekognitionData.TextDetections); if (rekognitionResponse.text.words.length < 50) { // did not hit the word limit, return the data return [2 /*return*/, rekognitionResponse]; } detectDocumentTextCommand = new _aws_sdk_client_textract__WEBPACK_IMPORTED_MODULE_5__["DetectDocumentTextCommand"](textractParam); return [4 /*yield*/, this.textractClient.send(detectDocumentTextCommand)]; case 8: Blocks = (_f.sent()).Blocks; if (rekognitionData.TextDetections.length > Blocks.length) { return [2 /*return*/, rekognitionResponse]; } return [2 /*return*/, Object(_IdentifyTextUtils__WEBPACK_IMPORTED_MODULE_7__["categorizeTextractBlocks"])(Blocks)]; case 9: err_2 = _f.sent(); Promise.reject(err_2); return [3 /*break*/, 10]; case 10: return [3 /*break*/, 15]; case 11: param = { Document: inputDocument, FeatureTypes: featureTypes, }; _f.label = 12; case 12: _f.trys.push([12, 14, , 15]); analyzeDocumentCommand = new _aws_sdk_client_textract__WEBPACK_IMPORTED_MODULE_5__["AnalyzeDocumentCommand"](param); return [4 /*yield*/, this.textractClient.send(analyzeDocumentCommand)]; case 13: Blocks = (_f.sent()).Blocks; return [2 /*return*/, Object(_IdentifyTextUtils__WEBPACK_IMPORTED_MODULE_7__["categorizeTextractBlocks"])(Blocks)]; case 14: err_3 = _f.sent(); return [2 /*return*/, Promise.reject(err_3)]; case 15: return [2 /*return*/]; } }); }); }; /** * Identify instances of real world entities from an image and if it contains unsafe content. * @param {IdentifyLabelsInput} input - Object containing the source image and entity type to identify. * @return {Promise} - Promise resolving to an array of identified entities. */ AmazonAIIdentifyPredictionsProvider.prototype.identifyLabels = function (input) { return __awaiter(this, void 0, void 0, function () { var credentials, _a, _b, _c, region, _d, _e, type, inputImage_1, param, servicePromises, entityType, err_4; return __generator(this, function (_f) { switch (_f.label) { case 0: _f.trys.push([0, 3, , 4]); return [4 /*yield*/, _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].get()]; case 1: credentials = _f.sent(); if (!credentials) return [2 /*return*/, Promise.reject('No credentials')]; _a = this._config.identifyLabels, _b = _a === void 0 ? {} : _a, _c = _b.region, region = _c === void 0 ? '' : _c, _d = _b.defaults, _e = (_d === void 0 ? {} : _d).type, type = _e === void 0 ? 'LABELS' : _e; this.rekognitionClient = new _aws_sdk_client_rekognition__WEBPACK_IMPORTED_MODULE_3__["RekognitionClient"]({ region: region, credentials: credentials, customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["getAmplifyUserAgent"])(), }); return [4 /*yield*/, this.configureSource(input.labels.source) .then(function (data) { inputImage_1 = data; }) .catch(function (err) { return Promise.reject(err); })]; case 2: _f.sent(); param = { Image: inputImage_1 }; servicePromises = []; entityType = input.labels.type || type; if (entityType === 'LABELS' || entityType === 'ALL') { servicePromises.push(this.detectLabels(param)); } if (entityType === 'UNSAFE' || entityType === 'ALL') { servicePromises.push(this.detectModerationLabels(param)); } return [2 /*return*/, Promise.all(servicePromises) .then(function (data) { var identifyResult = {}; // concatenate resolved promises to a single object data.forEach(function (val) { identifyResult = __assign(__assign({}, identifyResult), val); }); return identifyResult; }) .catch(function (err) { return Promise.reject(err); })]; case 3: err_4 = _f.sent(); return [2 /*return*/, Promise.reject(err_4)]; case 4: return [2 /*return*/]; } }); }); }; /** * Calls Rekognition.detectLabels and organizes the returned data. * @param {DetectLabelsInput} param - parameter to be passed onto Rekognition * @return {Promise} - Promise resolving to organized detectLabels response. */ AmazonAIIdentifyPredictionsProvider.prototype.detectLabels = function (param) { return __awaiter(this, void 0, void 0, function () { var detectLabelsCommand, data, detectLabelData, err_5; return __generator(this, function (_a) { switch (_a.label) { case 0: _a.trys.push([0, 2, , 3]); detectLabelsCommand = new _aws_sdk_client_rekognition__WEBPACK_IMPORTED_MODULE_3__["DetectLabelsCommand"](param); return [4 /*yield*/, this.rekognitionClient.send(detectLabelsCommand)]; case 1: data = _a.sent(); if (!data.Labels) return [2 /*return*/, { labels: null }]; // no image was detected detectLabelData = data.Labels.map(function (val) { var boxes = val.Instances ? val.Instances.map(function (val) { return Object(_Utils__WEBPACK_IMPORTED_MODULE_6__["makeCamelCase"])(val.BoundingBox); }) : undefined; return { name: val.Name, boundingBoxes: boxes, metadata: { confidence: val.Confidence, parents: Object(_Utils__WEBPACK_IMPORTED_MODULE_6__["makeCamelCaseArray"])(val.Parents), }, }; }); return [2 /*return*/, { labels: detectLabelData }]; case 2: err_5 = _a.sent(); return [2 /*return*/, Promise.reject(err_5)]; case 3: return [2 /*return*/]; } }); }); }; /** * Calls Rekognition.detectModerationLabels and organizes the returned data. * @param {Rekognition.DetectLabelsRequest} param - Parameter to be passed onto Rekognition * @return {Promise} - Promise resolving to organized detectModerationLabels response. */ AmazonAIIdentifyPredictionsProvider.prototype.detectModerationLabels = function (param) { return __awaiter(this, void 0, void 0, function () { var detectModerationLabelsCommand, data, err_6; return __generator(this, function (_a) { switch (_a.label) { case 0: _a.trys.push([0, 2, , 3]); detectModerationLabelsCommand = new _aws_sdk_client_rekognition__WEBPACK_IMPORTED_MODULE_3__["DetectModerationLabelsCommand"](param); return [4 /*yield*/, this.rekognitionClient.send(detectModerationLabelsCommand)]; case 1: data = _a.sent(); if (data.ModerationLabels.length !== 0) { return [2 /*return*/, { unsafe: 'YES' }]; } else { return [2 /*return*/, { unsafe: 'NO' }]; } return [3 /*break*/, 3]; case 2: err_6 = _a.sent(); return [2 /*return*/, Promise.reject(err_6)]; case 3: return [2 /*return*/]; } }); }); }; /** * Identify faces within an image that is provided as input, and match faces from a collection * or identify celebrities. * @param {IdentifyEntityInput} input - object containing the source image and face match options. * @return {Promise} Promise resolving to identify results. */ AmazonAIIdentifyPredictionsProvider.prototype.identifyEntities = function (input) { return __awaiter(this, void 0, void 0, function () { var credentials, _a, _b, _c, region, _d, celebrityDetectionEnabled, _e, _f, _g, collectionIdConfig, _h, maxFacesConfig, inputImage, param, recognizeCelebritiesCommand, data, faces, err_7, _j, _k, collectionId, _l, maxFaces, updatedParam, searchFacesByImageCommand, data, faces, err_8, detectFacesCommand, data, faces, err_9; var _this = this; return __generator(this, function (_m) { switch (_m.label) { case 0: return [4 /*yield*/, _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].get()]; case 1: credentials = _m.sent(); if (!credentials) return [2 /*return*/, Promise.reject('No credentials')]; _a = this._config.identifyEntities, _b = _a === void 0 ? {} : _a, _c = _b.region, region = _c === void 0 ? '' : _c, _d = _b.celebrityDetectionEnabled, celebrityDetectionEnabled = _d === void 0 ? false : _d, _e = _b.defaults, _f = _e === void 0 ? {} : _e, _g = _f.collectionId, collectionIdConfig = _g === void 0 ? '' : _g, _h = _f.maxEntities, maxFacesConfig = _h === void 0 ? 50 : _h; // default arguments this.rekognitionClient = new _aws_sdk_client_rekognition__WEBPACK_IMPORTED_MODULE_3__["RekognitionClient"]({ region: region, credentials: credentials, customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["getAmplifyUserAgent"])(), }); return [4 /*yield*/, this.configureSource(input.entities.source) .then(function (data) { return (inputImage = data); }) .catch(function (err) { return Promise.reject(err); })]; case 2: _m.sent(); param = { Image: inputImage }; if (!(Object(_types__WEBPACK_IMPORTED_MODULE_4__["isIdentifyCelebrities"])(input.entities) && input.entities.celebrityDetection)) return [3 /*break*/, 7]; if (!celebrityDetectionEnabled) { return [2 /*return*/, Promise.reject('Error: You have to enable celebrity detection first')]; } _m.label = 3; case 3: _m.trys.push([3, 5, , 6]); recognizeCelebritiesCommand = new _aws_sdk_client_rekognition__WEBPACK_IMPORTED_MODULE_3__["RecognizeCelebritiesCommand"](param); return [4 /*yield*/, this.rekognitionClient.send(recognizeCelebritiesCommand)]; case 4: data = _m.sent(); faces = data.CelebrityFaces.map(function (celebrity) { return { boundingBox: Object(_Utils__WEBPACK_IMPORTED_MODULE_6__["makeCamelCase"])(celebrity.Face.BoundingBox), landmarks: Object(_Utils__WEBPACK_IMPORTED_MODULE_6__["makeCamelCaseArray"])(celebrity.Face.Landmarks), metadata: __assign(__assign({}, Object(_Utils__WEBPACK_IMPORTED_MODULE_6__["makeCamelCase"])(celebrity, ['Id', 'Name', 'Urls'])), { pose: Object(_Utils__WEBPACK_IMPORTED_MODULE_6__["makeCamelCase"])(celebrity.Face.Pose) }), }; }); return [2 /*return*/, { entities: faces }]; case 5: err_7 = _m.sent(); return [2 /*return*/, Promise.reject(err_7)]; case 6: return [3 /*break*/, 15]; case 7: if (!(Object(_types__WEBPACK_IMPORTED_MODULE_4__["isIdentifyFromCollection"])(input.entities) && input.entities.collection)) return [3 /*break*/, 12]; _j = input.entities, _k = _j.collectionId, collectionId = _k === void 0 ? collectionIdConfig : _k, _l = _j.maxEntities, maxFaces = _l === void 0 ? maxFacesConfig : _l; updatedParam = __assign(__assign({}, param), { CollectionId: collectionId, MaxFaces: maxFaces }); _m.label = 8; case 8: _m.trys.push([8, 10, , 11]); searchFacesByImageCommand = new _aws_sdk_client_rekognition__WEBPACK_IMPORTED_MODULE_3__["SearchFacesByImageCommand"](updatedParam); return [4 /*yield*/, this.rekognitionClient.send(searchFacesByImageCommand)]; case 9: data = _m.sent(); faces = data.FaceMatches.map(function (val) { return { boundingBox: Object(_Utils__WEBPACK_IMPORTED_MODULE_6__["makeCamelCase"])(val.Face.BoundingBox), metadata: { externalImageId: _this.decodeExternalImageId(val.Face.ExternalImageId), similarity: val.Similarity, }, }; }); return [2 /*return*/, { entities: faces }]; case 10: err_8 = _m.sent(); return [2 /*return*/, Promise.reject(err_8)]; case 11: return [3 /*break*/, 15]; case 12: _m.trys.push([12, 14, , 15]); detectFacesCommand = new _aws_sdk_client_rekognition__WEBPACK_IMPORTED_MODULE_3__["DetectFacesCommand"](param); return [4 /*yield*/, this.rekognitionClient.send(detectFacesCommand)]; case 13: data = _m.sent(); faces = data.FaceDetails.map(function (detail) { // face attributes keys we want to extract from Rekognition's response var attributeKeys = [ 'Smile', 'Eyeglasses', 'Sunglasses', 'Gender', 'Beard', 'Mustache', 'EyesOpen', 'MouthOpen', ]; var faceAttributes = Object(_Utils__WEBPACK_IMPORTED_MODULE_6__["makeCamelCase"])(detail, attributeKeys); if (detail.Emotions) { faceAttributes['emotions'] = detail.Emotions.map(function (emotion) { return emotion.Type; }); } return { boundingBox: Object(_Utils__WEBPACK_IMPORTED_MODULE_6__["makeCamelCase"])(detail.BoundingBox), landmarks: Object(_Utils__WEBPACK_IMPORTED_MODULE_6__["makeCamelCaseArray"])(detail.Landmarks), ageRange: Object(_Utils__WEBPACK_IMPORTED_MODULE_6__["makeCamelCase"])(detail.AgeRange), attributes: Object(_Utils__WEBPACK_IMPORTED_MODULE_6__["makeCamelCase"])(detail, attributeKeys), metadata: { confidence: detail.Confidence, pose: Object(_Utils__WEBPACK_IMPORTED_MODULE_6__["makeCamelCase"])(detail.Pose), }, }; }); return [2 /*return*/, { entities: faces }]; case 14: err_9 = _m.sent(); return [2 /*return*/, Promise.reject(err_9)]; case 15: return [2 /*return*/]; } }); }); }; AmazonAIIdentifyPredictionsProvider.prototype.decodeExternalImageId = function (externalImageId) { return ('' + externalImageId).replace(/::/g, '/'); }; return AmazonAIIdentifyPredictionsProvider; }(_types_Providers__WEBPACK_IMPORTED_MODULE_2__["AbstractIdentifyPredictionsProvider"])); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (AmazonAIIdentifyPredictionsProvider); //# sourceMappingURL=AmazonAIIdentifyPredictionsProvider.js.map /***/ }), /***/ "bTqV": /*!************************************************************************!*\ !*** ./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js ***! \************************************************************************/ /*! exports provided: MatAnchor, MatButton, MatButtonModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatAnchor", function() { return MatAnchor; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatButton", function() { return MatButton; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatButtonModule", function() { return MatButtonModule; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL"); /* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/core */ "FKr1"); /* harmony import */ var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/cdk/a11y */ "u47x"); /* harmony import */ var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/platform-browser/animations */ "R1ws"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** Default color palette for round buttons (mat-fab and mat-mini-fab) */ const _c0 = ["mat-button", ""]; const _c1 = ["*"]; const _c2 = ".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"; const DEFAULT_ROUND_BUTTON_COLOR = 'accent'; /** * List of classes to add to MatButton instances based on host attributes to * style as different variants. */ const BUTTON_HOST_ATTRIBUTES = [ 'mat-button', 'mat-flat-button', 'mat-icon-button', 'mat-raised-button', 'mat-stroked-button', 'mat-mini-fab', 'mat-fab', ]; // Boilerplate for applying mixins to MatButton. /** @docs-private */ class MatButtonBase { constructor(_elementRef) { this._elementRef = _elementRef; } } const _MatButtonMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["mixinColor"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["mixinDisabled"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["mixinDisableRipple"])(MatButtonBase))); /** * Material design button. */ class MatButton extends _MatButtonMixinBase { constructor(elementRef, _focusMonitor, _animationMode) { super(elementRef); this._focusMonitor = _focusMonitor; this._animationMode = _animationMode; /** Whether the button is round. */ this.isRoundButton = this._hasHostAttributes('mat-fab', 'mat-mini-fab'); /** Whether the button is icon button. */ this.isIconButton = this._hasHostAttributes('mat-icon-button'); // For each of the variant selectors that is present in the button's host // attributes, add the correct corresponding class. for (const attr of BUTTON_HOST_ATTRIBUTES) { if (this._hasHostAttributes(attr)) { this._getHostElement().classList.add(attr); } } // Add a class that applies to all buttons. This makes it easier to target if somebody // wants to target all Material buttons. We do it here rather than `host` to ensure that // the class is applied to derived classes. elementRef.nativeElement.classList.add('mat-button-base'); if (this.isRoundButton) { this.color = DEFAULT_ROUND_BUTTON_COLOR; } } ngAfterViewInit() { this._focusMonitor.monitor(this._elementRef, true); } ngOnDestroy() { this._focusMonitor.stopMonitoring(this._elementRef); } /** Focuses the button. */ focus(origin = 'program', options) { this._focusMonitor.focusVia(this._getHostElement(), origin, options); } _getHostElement() { return this._elementRef.nativeElement; } _isRippleDisabled() { return this.disableRipple || this.disabled; } /** Gets whether the button has one of the given attributes. */ _hasHostAttributes(...attributes) { return attributes.some(attribute => this._getHostElement().hasAttribute(attribute)); } } MatButton.ɵfac = function MatButton_Factory(t) { return new (t || MatButton)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_3__["ANIMATION_MODULE_TYPE"], 8)); }; MatButton.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: MatButton, selectors: [["button", "mat-button", ""], ["button", "mat-raised-button", ""], ["button", "mat-icon-button", ""], ["button", "mat-fab", ""], ["button", "mat-mini-fab", ""], ["button", "mat-stroked-button", ""], ["button", "mat-flat-button", ""]], viewQuery: function MatButton_Query(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRipple"], true); } if (rf & 2) { var _t; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.ripple = _t.first); } }, hostAttrs: [1, "mat-focus-indicator"], hostVars: 5, hostBindings: function MatButton_HostBindings(rf, ctx) { if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx.disabled || null); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("_mat-animation-noopable", ctx._animationMode === "NoopAnimations")("mat-button-disabled", ctx.disabled); } }, inputs: { disabled: "disabled", disableRipple: "disableRipple", color: "color" }, exportAs: ["matButton"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]], attrs: _c0, ngContentSelectors: _c1, decls: 4, vars: 5, consts: [[1, "mat-button-wrapper"], ["matRipple", "", 1, "mat-button-ripple", 3, "matRippleDisabled", "matRippleCentered", "matRippleTrigger"], [1, "mat-button-focus-overlay"]], template: function MatButton_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "span", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "span", 2); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-button-ripple-round", ctx.isRoundButton || ctx.isIconButton); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matRippleDisabled", ctx._isRippleDisabled())("matRippleCentered", ctx.isIconButton)("matRippleTrigger", ctx._getHostElement()); } }, directives: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRipple"]], styles: [_c2], encapsulation: 2, changeDetection: 0 }); MatButton.ctorParameters = () => [ { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"] }, { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_3__["ANIMATION_MODULE_TYPE"],] }] } ]; MatButton.propDecorators = { ripple: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"], args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRipple"],] }] }; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatButton, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: `button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]`, exportAs: 'matButton', host: { '[attr.disabled]': 'disabled || null', '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"', // Add a class for disabled button styling instead of the using attribute // selector or pseudo-selector. This allows users to create focusabled // disabled buttons without recreating the styles. '[class.mat-button-disabled]': 'disabled', 'class': 'mat-focus-indicator' }, template: "\n\n\n", inputs: ['disabled', 'disableRipple', 'color'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, styles: [".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"] }] }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"] }, { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_3__["ANIMATION_MODULE_TYPE"]] }] }]; }, { ripple: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"], args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRipple"]] }] }); })(); /** * Material design anchor button. */ class MatAnchor extends MatButton { constructor(focusMonitor, elementRef, animationMode) { super(elementRef, focusMonitor, animationMode); } _haltDisabledEvents(event) { // A disabled button shouldn't apply any actions if (this.disabled) { event.preventDefault(); event.stopImmediatePropagation(); } } } MatAnchor.ɵfac = function MatAnchor_Factory(t) { return new (t || MatAnchor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_3__["ANIMATION_MODULE_TYPE"], 8)); }; MatAnchor.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: MatAnchor, selectors: [["a", "mat-button", ""], ["a", "mat-raised-button", ""], ["a", "mat-icon-button", ""], ["a", "mat-fab", ""], ["a", "mat-mini-fab", ""], ["a", "mat-stroked-button", ""], ["a", "mat-flat-button", ""]], hostAttrs: [1, "mat-focus-indicator"], hostVars: 7, hostBindings: function MatAnchor_HostBindings(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MatAnchor_click_HostBindingHandler($event) { return ctx._haltDisabledEvents($event); }); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("tabindex", ctx.disabled ? -1 : ctx.tabIndex || 0)("disabled", ctx.disabled || null)("aria-disabled", ctx.disabled.toString()); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("_mat-animation-noopable", ctx._animationMode === "NoopAnimations")("mat-button-disabled", ctx.disabled); } }, inputs: { disabled: "disabled", disableRipple: "disableRipple", color: "color", tabIndex: "tabIndex" }, exportAs: ["matButton", "matAnchor"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]], attrs: _c0, ngContentSelectors: _c1, decls: 4, vars: 5, consts: [[1, "mat-button-wrapper"], ["matRipple", "", 1, "mat-button-ripple", 3, "matRippleDisabled", "matRippleCentered", "matRippleTrigger"], [1, "mat-button-focus-overlay"]], template: function MatAnchor_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "span", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "span", 2); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-button-ripple-round", ctx.isRoundButton || ctx.isIconButton); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matRippleDisabled", ctx._isRippleDisabled())("matRippleCentered", ctx.isIconButton)("matRippleTrigger", ctx._getHostElement()); } }, directives: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRipple"]], styles: [_c2], encapsulation: 2, changeDetection: 0 }); MatAnchor.ctorParameters = () => [ { type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_3__["ANIMATION_MODULE_TYPE"],] }] } ]; MatAnchor.propDecorators = { tabIndex: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }] }; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatAnchor, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: `a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]`, exportAs: 'matButton, matAnchor', host: { // Note that we ignore the user-specified tabindex when it's disabled for // consistency with the `mat-button` applied on native buttons where even // though they have an index, they're not tabbable. '[attr.tabindex]': 'disabled ? -1 : (tabIndex || 0)', '[attr.disabled]': 'disabled || null', '[attr.aria-disabled]': 'disabled.toString()', '(click)': '_haltDisabledEvents($event)', '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"', '[class.mat-button-disabled]': 'disabled', 'class': 'mat-focus-indicator' }, inputs: ['disabled', 'disableRipple', 'color'], template: "\n\n\n", encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, styles: [".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"] }] }], function () { return [{ type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_3__["ANIMATION_MODULE_TYPE"]] }] }]; }, { tabIndex: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }] }); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class MatButtonModule { } MatButtonModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: MatButtonModule }); MatButtonModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function MatButtonModule_Factory(t) { return new (t || MatButtonModule)(); }, imports: [[ _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"], ], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatButtonModule, { declarations: function () { return [MatButton, MatAnchor]; }, imports: function () { return [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]]; }, exports: function () { return [MatButton, MatAnchor, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]]; } }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatButtonModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"], args: [{ imports: [ _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"], ], exports: [ MatButton, MatAnchor, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"], ], declarations: [ MatButton, MatAnchor, ] }] }], null, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Generated bundle index. Do not edit. */ //# sourceMappingURL=button.js.map /***/ }), /***/ "bUBy": /*!********************************************************************!*\ !*** ./node_modules/@aws-sdk/client-firehose/dist/es/endpoints.js ***! \********************************************************************/ /*! exports provided: defaultRegionInfoProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRegionInfoProvider", function() { return defaultRegionInfoProvider; }); // Partition default templates var AWS_TEMPLATE = "firehose.{region}.amazonaws.com"; var AWS_CN_TEMPLATE = "firehose.{region}.amazonaws.com.cn"; var AWS_ISO_TEMPLATE = "firehose.{region}.c2s.ic.gov"; var AWS_ISO_B_TEMPLATE = "firehose.{region}.sc2s.sgov.gov"; var AWS_US_GOV_TEMPLATE = "firehose.{region}.amazonaws.com"; // Partition regions var AWS_REGIONS = new Set([ "ap-east-1", "ap-northeast-1", "ap-northeast-2", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "eu-central-1", "eu-north-1", "eu-west-1", "eu-west-2", "eu-west-3", "me-south-1", "sa-east-1", "us-east-1", "us-east-2", "us-west-1", "us-west-2", ]); var AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]); var AWS_ISO_REGIONS = new Set(["us-iso-east-1"]); var AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]); var AWS_US_GOV_REGIONS = new Set(["us-gov-east-1", "us-gov-west-1"]); var defaultRegionInfoProvider = function (region, options) { var regionInfo = undefined; switch (region) { // First, try to match exact region names. case "ap-east-1": regionInfo = { hostname: "firehose.ap-east-1.amazonaws.com", partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "firehose.ap-northeast-1.amazonaws.com", partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "firehose.ap-northeast-2.amazonaws.com", partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "firehose.ap-south-1.amazonaws.com", partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "firehose.ap-southeast-1.amazonaws.com", partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "firehose.ap-southeast-2.amazonaws.com", partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "firehose.ca-central-1.amazonaws.com", partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "firehose.cn-north-1.amazonaws.com.cn", partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "firehose.cn-northwest-1.amazonaws.com.cn", partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "firehose.eu-central-1.amazonaws.com", partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "firehose.eu-north-1.amazonaws.com", partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "firehose.eu-west-1.amazonaws.com", partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "firehose.eu-west-2.amazonaws.com", partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "firehose.eu-west-3.amazonaws.com", partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "firehose.me-south-1.amazonaws.com", partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "firehose.sa-east-1.amazonaws.com", partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "firehose.us-east-1.amazonaws.com", partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "firehose.us-east-2.amazonaws.com", partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "firehose.us-gov-east-1.amazonaws.com", partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "firehose.us-gov-west-1.amazonaws.com", partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "firehose.us-west-1.amazonaws.com", partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "firehose.us-west-2.amazonaws.com", partition: "aws", }; break; // Next, try to match partition endpoints. default: if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), partition: "aws", }; } } return Promise.resolve(regionInfo); }; //# sourceMappingURL=endpoints.js.map /***/ }), /***/ "bVud": /*!*********************************************************************!*\ !*** ./node_modules/@aws-crypto/supports-web-crypto/build/index.js ***! \*********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(/*! tslib */ "7JaV"); tslib_1.__exportStar(__webpack_require__(/*! ./supportsWebCrypto */ "ntEb"), exports); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsOERBQW9DIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vc3VwcG9ydHNXZWJDcnlwdG9cIjtcbiJdfQ== /***/ }), /***/ "bWGS": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateBaiduChannelCommand.js ***! \*********************************************************************************************/ /*! exports provided: UpdateBaiduChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelCommand", function() { return UpdateBaiduChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UpdateBaiduChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateBaiduChannelCommand, _super); // Start section: command_properties // End section: command_properties function UpdateBaiduChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UpdateBaiduChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateBaiduChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateBaiduChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UpdateBaiduChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateBaiduChannelCommand"])(input, context); }; UpdateBaiduChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateBaiduChannelCommand"])(output, context); }; return UpdateBaiduChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=UpdateBaiduChannelCommand.js.map /***/ }), /***/ "bbpz": /*!****************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutBucketInventoryConfigurationCommand.js ***! \****************************************************************************************************/ /*! exports provided: PutBucketInventoryConfigurationCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutBucketInventoryConfigurationCommand", function() { return PutBucketInventoryConfigurationCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutBucketInventoryConfigurationCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutBucketInventoryConfigurationCommand, _super); // Start section: command_properties // End section: command_properties function PutBucketInventoryConfigurationCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutBucketInventoryConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutBucketInventoryConfigurationRequest"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutBucketInventoryConfigurationCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutBucketInventoryConfigurationCommand"])(input, context); }; PutBucketInventoryConfigurationCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutBucketInventoryConfigurationCommand"])(output, context); }; return PutBucketInventoryConfigurationCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=PutBucketInventoryConfigurationCommand.js.map /***/ }), /***/ "bpfF": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/DetectCustomLabelsCommand.js ***! \************************************************************************************************/ /*! exports provided: DetectCustomLabelsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectCustomLabelsCommand", function() { return DetectCustomLabelsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DetectCustomLabelsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DetectCustomLabelsCommand, _super); // Start section: command_properties // End section: command_properties function DetectCustomLabelsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DetectCustomLabelsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DetectCustomLabelsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DetectCustomLabelsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DetectCustomLabelsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DetectCustomLabelsCommand"])(input, context); }; DetectCustomLabelsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DetectCustomLabelsCommand"])(output, context); }; return DetectCustomLabelsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DetectCustomLabelsCommand.js.map /***/ }), /***/ "byF2": /*!***************************************************************!*\ !*** ./node_modules/@aws-amplify/api-rest/lib-esm/RestAPI.js ***! \***************************************************************/ /*! exports provided: RestAPIClass, RestAPI */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestAPIClass", function() { return RestAPIClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestAPI", function() { return RestAPI; }); /* harmony import */ var _RestClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RestClient */ "A40W"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "GOuw"); var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { 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; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var __rest = (undefined && undefined.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; /* * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('RestAPI'); /** * Export Cloud Logic APIs */ var RestAPIClass = /** @class */ (function () { /** * Initialize Rest API with AWS configuration * @param {Object} options - Configuration object for API */ function RestAPIClass(options) { this._api = null; this.Credentials = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["Credentials"]; this._options = options; logger.debug('API Options', this._options); } RestAPIClass.prototype.getModuleName = function () { return 'RestAPI'; }; /** * Configure API part with aws configurations * @param {Object} config - Configuration of the API * @return {Object} - The current configuration */ RestAPIClass.prototype.configure = function (options) { var _a = options || {}, _b = _a.API, API = _b === void 0 ? {} : _b, otherOptions = __rest(_a, ["API"]); var opt = __assign(__assign({}, otherOptions), API); logger.debug('configure Rest API', { opt: opt }); if (opt['aws_project_region']) { if (opt['aws_cloud_logic_custom']) { var custom = opt['aws_cloud_logic_custom']; opt.endpoints = typeof custom === 'string' ? JSON.parse(custom) : custom; } opt = Object.assign({}, opt, { region: opt['aws_project_region'], header: {}, }); } if (Array.isArray(opt.endpoints)) { // Check if endpoints has custom_headers and validate if is a function opt.endpoints.forEach(function (endpoint) { if (typeof endpoint.custom_header !== 'undefined' && typeof endpoint.custom_header !== 'function') { logger.warn('Rest API ' + endpoint.name + ', custom_header should be a function'); endpoint.custom_header = undefined; } }); } else if (this._options && Array.isArray(this._options.endpoints)) { opt.endpoints = this._options.endpoints; } else { opt.endpoints = []; } this._options = Object.assign({}, this._options, opt); this.createInstance(); return this._options; }; /** * Create an instance of API for the library * @return - A promise of true if Success */ RestAPIClass.prototype.createInstance = function () { logger.debug('create Rest API instance'); this._api = new _RestClient__WEBPACK_IMPORTED_MODULE_0__["RestClient"](this._options); // Share Amplify instance with client for SSR this._api.Credentials = this.Credentials; return true; }; /** * Make a GET request * @param {string} apiName - The api name of the request * @param {string} path - The path of the request * @param {json} [init] - Request extra params * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful. */ RestAPIClass.prototype.get = function (apiName, path, init) { try { var apiInfo = this.getEndpointInfo(apiName, path); var cancellableToken = this._api.getCancellableToken(); var initParams = Object.assign({}, init); initParams.cancellableToken = cancellableToken; var responsePromise = this._api.get(apiInfo, initParams); this._api.updateRequestToBeCancellable(responsePromise, cancellableToken); return responsePromise; } catch (err) { return Promise.reject(err.message); } }; /** * Make a POST request * @param {string} apiName - The api name of the request * @param {string} path - The path of the request * @param {json} [init] - Request extra params * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful. */ RestAPIClass.prototype.post = function (apiName, path, init) { try { var apiInfo = this.getEndpointInfo(apiName, path); var cancellableToken = this._api.getCancellableToken(); var initParams = Object.assign({}, init); initParams.cancellableToken = cancellableToken; var responsePromise = this._api.post(apiInfo, initParams); this._api.updateRequestToBeCancellable(responsePromise, cancellableToken); return responsePromise; } catch (err) { return Promise.reject(err.message); } }; /** * Make a PUT request * @param {string} apiName - The api name of the request * @param {string} path - The path of the request * @param {json} [init] - Request extra params * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful. */ RestAPIClass.prototype.put = function (apiName, path, init) { try { var apiInfo = this.getEndpointInfo(apiName, path); var cancellableToken = this._api.getCancellableToken(); var initParams = Object.assign({}, init); initParams.cancellableToken = cancellableToken; var responsePromise = this._api.put(apiInfo, initParams); this._api.updateRequestToBeCancellable(responsePromise, cancellableToken); return responsePromise; } catch (err) { return Promise.reject(err.message); } }; /** * Make a PATCH request * @param {string} apiName - The api name of the request * @param {string} path - The path of the request * @param {json} [init] - Request extra params * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful. */ RestAPIClass.prototype.patch = function (apiName, path, init) { try { var apiInfo = this.getEndpointInfo(apiName, path); var cancellableToken = this._api.getCancellableToken(); var initParams = Object.assign({}, init); initParams.cancellableToken = cancellableToken; var responsePromise = this._api.patch(apiInfo, initParams); this._api.updateRequestToBeCancellable(responsePromise, cancellableToken); return responsePromise; } catch (err) { return Promise.reject(err.message); } }; /** * Make a DEL request * @param {string} apiName - The api name of the request * @param {string} path - The path of the request * @param {json} [init] - Request extra params * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful. */ RestAPIClass.prototype.del = function (apiName, path, init) { try { var apiInfo = this.getEndpointInfo(apiName, path); var cancellableToken = this._api.getCancellableToken(); var initParams = Object.assign({}, init); initParams.cancellableToken = cancellableToken; var responsePromise = this._api.del(apiInfo, initParams); this._api.updateRequestToBeCancellable(responsePromise, cancellableToken); return responsePromise; } catch (err) { return Promise.reject(err.message); } }; /** * Make a HEAD request * @param {string} apiName - The api name of the request * @param {string} path - The path of the request * @param {json} [init] - Request extra params * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful. */ RestAPIClass.prototype.head = function (apiName, path, init) { try { var apiInfo = this.getEndpointInfo(apiName, path); var cancellableToken = this._api.getCancellableToken(); var initParams = Object.assign({}, init); initParams.cancellableToken = cancellableToken; var responsePromise = this._api.head(apiInfo, initParams); this._api.updateRequestToBeCancellable(responsePromise, cancellableToken); return responsePromise; } catch (err) { return Promise.reject(err.message); } }; /** * Checks to see if an error thrown is from an api request cancellation * @param {any} error - Any error * @return {boolean} - A boolean indicating if the error was from an api request cancellation */ RestAPIClass.prototype.isCancel = function (error) { return this._api.isCancel(error); }; /** * Cancels an inflight request * @param {any} request - request to cancel * @return {boolean} - A boolean indicating if the request was cancelled */ RestAPIClass.prototype.cancel = function (request, message) { return this._api.cancel(request, message); }; /** * Getting endpoint for API * @param {string} apiName - The name of the api * @return {string} - The endpoint of the api */ RestAPIClass.prototype.endpoint = function (apiName) { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { return [2 /*return*/, this._api.endpoint(apiName)]; }); }); }; /** * Getting endpoint info for API * @param {string} apiName - The name of the api * @param {string} path - The path of the api that is going to accessed * @return {ApiInfo} - The endpoint information for that api-name */ RestAPIClass.prototype.getEndpointInfo = function (apiName, path) { var cloud_logic_array = this._options.endpoints; if (!Array.isArray(cloud_logic_array)) { throw new Error("API category not configured"); } var apiConfig = cloud_logic_array.find(function (api) { return api.name === apiName; }); if (!apiConfig) { throw new Error("API " + apiName + " does not exist"); } var response = { endpoint: apiConfig.endpoint + path, }; if (typeof apiConfig.region === 'string') { response.region = apiConfig.region; } else if (typeof this._options.region === 'string') { response.region = this._options.region; } if (typeof apiConfig.service === 'string') { response.service = apiConfig.service || 'execute-api'; } else { response.service = 'execute-api'; } if (typeof apiConfig.custom_header === 'function') { response.custom_header = apiConfig.custom_header; } else { response.custom_header = undefined; } return response; }; return RestAPIClass; }()); var RestAPI = new RestAPIClass(null); _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["Amplify"].register(RestAPI); //# sourceMappingURL=RestAPI.js.map /***/ }), /***/ "c14h": /*!*******************************************************************!*\ !*** ./node_modules/@aws-sdk/url-parser-browser/dist/es/index.js ***! \*******************************************************************/ /*! exports provided: parseUrl */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseUrl", function() { return parseUrl; }); /* harmony import */ var _aws_sdk_querystring_parser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-sdk/querystring-parser */ "2XnK"); var parseUrl = function (url) { var _a = new URL(url), hostname = _a.hostname, pathname = _a.pathname, port = _a.port, protocol = _a.protocol, search = _a.search; var query; if (search) { query = Object(_aws_sdk_querystring_parser__WEBPACK_IMPORTED_MODULE_0__["parseQueryString"])(search); } return { hostname: hostname, port: port ? parseInt(port) : undefined, protocol: protocol, path: pathname, query: query, }; }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFHL0QsTUFBTSxDQUFDLElBQU0sUUFBUSxHQUFjLFVBQUMsR0FBVztJQUN2QyxJQUFBLEtBQWlELElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxFQUEzRCxRQUFRLGNBQUEsRUFBRSxRQUFRLGNBQUEsRUFBRSxJQUFJLFVBQUEsRUFBRSxRQUFRLGNBQUEsRUFBRSxNQUFNLFlBQWlCLENBQUM7SUFFcEUsSUFBSSxLQUFvQyxDQUFDO0lBQ3pDLElBQUksTUFBTSxFQUFFO1FBQ1YsS0FBSyxHQUFHLGdCQUFnQixDQUFDLE1BQU0sQ0FBQyxDQUFDO0tBQ2xDO0lBRUQsT0FBTztRQUNMLFFBQVEsVUFBQTtRQUNSLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsU0FBUztRQUN2QyxRQUFRLFVBQUE7UUFDUixJQUFJLEVBQUUsUUFBUTtRQUNkLEtBQUssT0FBQTtLQUNOLENBQUM7QUFDSixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBwYXJzZVF1ZXJ5U3RyaW5nIH0gZnJvbSBcIkBhd3Mtc2RrL3F1ZXJ5c3RyaW5nLXBhcnNlclwiO1xuaW1wb3J0IHsgRW5kcG9pbnQsIFF1ZXJ5UGFyYW1ldGVyQmFnLCBVcmxQYXJzZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuZXhwb3J0IGNvbnN0IHBhcnNlVXJsOiBVcmxQYXJzZXIgPSAodXJsOiBzdHJpbmcpOiBFbmRwb2ludCA9PiB7XG4gIGNvbnN0IHsgaG9zdG5hbWUsIHBhdGhuYW1lLCBwb3J0LCBwcm90b2NvbCwgc2VhcmNoIH0gPSBuZXcgVVJMKHVybCk7XG5cbiAgbGV0IHF1ZXJ5OiBRdWVyeVBhcmFtZXRlckJhZyB8IHVuZGVmaW5lZDtcbiAgaWYgKHNlYXJjaCkge1xuICAgIHF1ZXJ5ID0gcGFyc2VRdWVyeVN0cmluZyhzZWFyY2gpO1xuICB9XG5cbiAgcmV0dXJuIHtcbiAgICBob3N0bmFtZSxcbiAgICBwb3J0OiBwb3J0ID8gcGFyc2VJbnQocG9ydCkgOiB1bmRlZmluZWQsXG4gICAgcHJvdG9jb2wsXG4gICAgcGF0aDogcGF0aG5hbWUsXG4gICAgcXVlcnksXG4gIH07XG59O1xuIl19 /***/ }), /***/ "c2HN": /*!***************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/isPromise.js ***! \***************************************************************/ /*! exports provided: isPromise */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPromise", function() { return isPromise; }); function isPromise(value) { return !!value && typeof value.subscribe !== 'function' && typeof value.then === 'function'; } //# sourceMappingURL=isPromise.js.map /***/ }), /***/ "c6ID": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/sample.js ***! \*****************************************************************/ /*! exports provided: sample */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sample", function() { return sample; }); /* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../innerSubscribe */ "zx2A"); function sample(notifier) { return (source) => source.lift(new SampleOperator(notifier)); } class SampleOperator { constructor(notifier) { this.notifier = notifier; } call(subscriber, source) { const sampleSubscriber = new SampleSubscriber(subscriber); const subscription = source.subscribe(sampleSubscriber); subscription.add(Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(this.notifier, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](sampleSubscriber))); return subscription; } } class SampleSubscriber extends _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"] { constructor() { super(...arguments); this.hasValue = false; } _next(value) { this.value = value; this.hasValue = true; } notifyNext() { this.emitValue(); } notifyComplete() { this.emitValue(); } emitValue() { if (this.hasValue) { this.hasValue = false; this.destination.next(this.value); } } } //# sourceMappingURL=sample.js.map /***/ }), /***/ "c6wG": /*!*********************************************!*\ !*** ./node_modules/lodash/isTypedArray.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "dD9F"), baseUnary = __webpack_require__(/*! ./_baseUnary */ "sEf8"), nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "mdPL"); /* Node.js helper references. */ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; /** * Checks if `value` is classified as a typed array. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. * @example * * _.isTypedArray(new Uint8Array); * // => true * * _.isTypedArray([]); * // => false */ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; module.exports = isTypedArray; /***/ }), /***/ "c7jc": /*!***************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/util/Immediate.js ***! \***************************************************************/ /*! exports provided: Immediate, TestTools */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Immediate", function() { return Immediate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TestTools", function() { return TestTools; }); let nextHandle = 1; const RESOLVED = (() => Promise.resolve())(); const activeHandles = {}; function findAndClearHandle(handle) { if (handle in activeHandles) { delete activeHandles[handle]; return true; } return false; } const Immediate = { setImmediate(cb) { const handle = nextHandle++; activeHandles[handle] = true; RESOLVED.then(() => findAndClearHandle(handle) && cb()); return handle; }, clearImmediate(handle) { findAndClearHandle(handle); }, }; const TestTools = { pending() { return Object.keys(activeHandles).length; } }; //# sourceMappingURL=Immediate.js.map /***/ }), /***/ "c7rq": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateJourneyCommand.js ***! \****************************************************************************************/ /*! exports provided: CreateJourneyCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyCommand", function() { return CreateJourneyCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CreateJourneyCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateJourneyCommand, _super); // Start section: command_properties // End section: command_properties function CreateJourneyCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CreateJourneyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateJourneyRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateJourneyResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CreateJourneyCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateJourneyCommand"])(input, context); }; CreateJourneyCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateJourneyCommand"])(output, context); }; return CreateJourneyCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=CreateJourneyCommand.js.map /***/ }), /***/ "c82j": /*!***********************************************************************************!*\ !*** ./node_modules/@aws-amplify/ui-components/dist/esm/Translations-392acb9b.js ***! \***********************************************************************************/ /*! exports provided: T */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return Translations; }); /* harmony import */ var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/auth */ "AO/9"); var AuthStrings; (function (AuthStrings) { AuthStrings["BACK_TO_SIGN_IN"] = "Back to Sign In"; AuthStrings["CHANGE_PASSWORD_ACTION"] = "Change"; AuthStrings["CHANGE_PASSWORD"] = "Change Password"; AuthStrings["CODE_LABEL"] = "Verification code"; AuthStrings["CODE_PLACEHOLDER"] = "Enter code"; AuthStrings["CONFIRM_SIGN_UP_CODE_LABEL"] = "Confirmation Code"; AuthStrings["CONFIRM_SIGN_UP_CODE_PLACEHOLDER"] = "Enter your code"; AuthStrings["CONFIRM_SIGN_UP_HEADER_TEXT"] = "Confirm Sign up"; AuthStrings["CONFIRM_SIGN_UP_LOST_CODE"] = "Lost your code?"; AuthStrings["CONFIRM_SIGN_UP_RESEND_CODE"] = "Resend Code"; AuthStrings["CONFIRM_SIGN_UP_SUBMIT_BUTTON_TEXT"] = "Confirm"; AuthStrings["CONFIRM_SMS_CODE"] = "Confirm SMS Code"; AuthStrings["CONFIRM_TOTP_CODE"] = "Confirm TOTP Code"; AuthStrings["CONFIRM"] = "Confirm"; AuthStrings["CREATE_ACCOUNT_TEXT"] = "Create account"; AuthStrings["EMAIL_LABEL"] = "Email Address *"; AuthStrings["EMAIL_PLACEHOLDER"] = "Enter your email address"; AuthStrings["FORGOT_PASSWORD_TEXT"] = "Forgot your password?"; AuthStrings["LESS_THAN_TWO_MFA_VALUES_MESSAGE"] = "Less than two mfa types available"; AuthStrings["NEW_PASSWORD_LABEL"] = "New password"; AuthStrings["NEW_PASSWORD_PLACEHOLDER"] = "Enter your new password"; AuthStrings["NO_ACCOUNT_TEXT"] = "No account?"; AuthStrings["PASSWORD_LABEL"] = "Password *"; AuthStrings["PASSWORD_PLACEHOLDER"] = "Enter your password"; AuthStrings["PHONE_LABEL"] = "Phone Number *"; AuthStrings["PHONE_PLACEHOLDER"] = "(555) 555-1212"; AuthStrings["QR_CODE_ALT"] = "qrcode"; AuthStrings["RESET_PASSWORD_TEXT"] = "Reset password"; AuthStrings["RESET_YOUR_PASSWORD"] = "Reset your password"; AuthStrings["SELECT_MFA_TYPE_HEADER_TEXT"] = "Select MFA Type"; AuthStrings["SELECT_MFA_TYPE_SUBMIT_BUTTON_TEXT"] = "Verify"; AuthStrings["SEND_CODE"] = "Send Code"; AuthStrings["SUBMIT"] = "Submit"; AuthStrings["SETUP_TOTP_REQUIRED"] = "TOTP needs to be configured"; AuthStrings["SIGN_IN_ACTION"] = "Sign In"; AuthStrings["SIGN_IN_HEADER_TEXT"] = "Sign in to your account"; AuthStrings["SIGN_IN_TEXT"] = "Sign in"; AuthStrings["SIGN_IN_WITH_AMAZON"] = "Sign in with Amazon"; AuthStrings["SIGN_IN_WITH_AUTH0"] = "Sign in with Auth0"; AuthStrings["SIGN_IN_WITH_AWS"] = "Sign in with AWS"; AuthStrings["SIGN_IN_WITH_FACEBOOK"] = "Sign in with Facebook"; AuthStrings["SIGN_IN_WITH_GOOGLE"] = "Sign in with Google"; AuthStrings["SIGN_OUT"] = "Sign Out"; AuthStrings["SIGN_UP_EMAIL_PLACEHOLDER"] = "Email"; AuthStrings["SIGN_UP_HAVE_ACCOUNT_TEXT"] = "Have an account?"; AuthStrings["SIGN_UP_HEADER_TEXT"] = "Create a new account"; AuthStrings["SIGN_UP_PASSWORD_PLACEHOLDER"] = "Password"; AuthStrings["SIGN_UP_SUBMIT_BUTTON_TEXT"] = "Create Account"; AuthStrings["SIGN_UP_USERNAME_PLACEHOLDER"] = "Username"; AuthStrings["SUCCESS_MFA_TYPE"] = "Success! Your MFA Type is now:"; AuthStrings["TOTP_HEADER_TEXT"] = "Scan then enter verification code"; AuthStrings["TOTP_LABEL"] = "Enter Security Code:"; AuthStrings["TOTP_ISSUER"] = "AWSCognito"; AuthStrings["TOTP_SETUP_FAILURE"] = "TOTP Setup has failed"; AuthStrings["TOTP_SUBMIT_BUTTON_TEXT"] = "Verify Security Token"; AuthStrings["TOTP_SUCCESS_MESSAGE"] = "Setup TOTP successfully!"; AuthStrings["UNABLE_TO_SETUP_MFA_AT_THIS_TIME"] = "Failed! Unable to configure MFA at this time"; AuthStrings["USERNAME_LABEL"] = "Username *"; AuthStrings["USERNAME_PLACEHOLDER"] = "Enter your username"; AuthStrings["VERIFY_CONTACT_EMAIL_LABEL"] = "Email"; AuthStrings["VERIFY_CONTACT_HEADER_TEXT"] = "Account recovery requires verified contact information"; AuthStrings["VERIFY_CONTACT_PHONE_LABEL"] = "Phone Number"; AuthStrings["VERIFY_CONTACT_SUBMIT_LABEL"] = "Submit"; AuthStrings["VERIFY_CONTACT_VERIFY_LABEL"] = "Verify"; AuthStrings["ADDRESS_LABEL"] = "Address"; AuthStrings["ADDRESS_PLACEHOLDER"] = "Enter your address"; AuthStrings["NICKNAME_LABEL"] = "Nickname"; AuthStrings["NICKNAME_PLACEHOLDER"] = "Enter your nickname"; AuthStrings["BIRTHDATE_LABEL"] = "Birthday"; AuthStrings["BIRTHDATE_PLACEHOLDER"] = "Enter your birthday"; AuthStrings["PICTURE_LABEL"] = "Picture URL"; AuthStrings["PICTURE_PLACEHOLDER"] = "Enter your picture URL"; AuthStrings["FAMILY_NAME_LABEL"] = "Family Name"; AuthStrings["FAMILY_NAME_PLACEHOLDER"] = "Enter your family name"; AuthStrings["PREFERRED_USERNAME_LABEL"] = "Preferred Username"; AuthStrings["PREFERRED_USERNAME_PLACEHOLDER"] = "Enter your preferred username"; AuthStrings["GENDER_LABEL"] = "Gender"; AuthStrings["GENDER_PLACEHOLDER"] = "Enter your gender"; AuthStrings["PROFILE_LABEL"] = "Profile URL"; AuthStrings["PROFILE_PLACEHOLDER"] = "Enter your profile URL"; AuthStrings["GIVEN_NAME_LABEL"] = "First Name"; AuthStrings["GIVEN_NAME_PLACEHOLDER"] = "Enter your first name"; AuthStrings["ZONEINFO_LABEL"] = "Time zone"; AuthStrings["ZONEINFO_PLACEHOLDER"] = "Enter your time zone"; AuthStrings["LOCALE_LABEL"] = "Locale"; AuthStrings["LOCALE_PLACEHOLDER"] = "Enter your locale"; AuthStrings["UPDATED_AT_LABEL"] = "Updated At"; AuthStrings["UPDATED_AT_PLACEHOLDER"] = "Enter the time the information was last updated"; AuthStrings["MIDDLE_NAME_LABEL"] = "Middle Name"; AuthStrings["MIDDLE_NAME_PLACEHOLDER"] = "Enter your middle name"; AuthStrings["WEBSITE_LABEL"] = "Website"; AuthStrings["WEBSITE_PLACEHOLDER"] = "Enter your website"; AuthStrings["NAME_LABEL"] = "Full Name"; AuthStrings["NAME_PLACEHOLDER"] = "Enter your full name"; AuthStrings["PHOTO_PICKER_TITLE"] = "Picker Title"; AuthStrings["PHOTO_PICKER_HINT"] = "Ancilliary text or content may occupy this space here"; AuthStrings["PHOTO_PICKER_PLACEHOLDER_HINT"] = "Placeholder hint"; AuthStrings["PHOTO_PICKER_BUTTON_TEXT"] = "Button"; AuthStrings["IMAGE_PICKER_TITLE"] = "Add Profile Photo"; AuthStrings["IMAGE_PICKER_HINT"] = "Preview the image before upload"; AuthStrings["IMAGE_PICKER_PLACEHOLDER_HINT"] = "Tap to image select"; AuthStrings["IMAGE_PICKER_BUTTON_TEXT"] = "Upload"; AuthStrings["PICKER_TEXT"] = "Pick a file"; AuthStrings["TEXT_FALLBACK_CONTENT"] = "Fallback Content"; AuthStrings["CONFIRM_SIGN_UP_FAILED"] = "Confirm Sign Up Failed"; AuthStrings["SIGN_UP_FAILED"] = "Sign Up Failed"; })(AuthStrings || (AuthStrings = {})); var InteractionsStrings; (function (InteractionsStrings) { InteractionsStrings["CHATBOT_TITLE"] = "ChatBot Lex"; InteractionsStrings["TEXT_INPUT_PLACEHOLDER"] = "Write a message"; InteractionsStrings["VOICE_INPUT_PLACEHOLDER"] = "Click mic to speak"; InteractionsStrings["CHAT_DISABLED_ERROR"] = "Error: Either voice or text must be enabled for the chatbot"; InteractionsStrings["NO_BOT_NAME_ERROR"] = "Error: Bot name must be provided to ChatBot"; })(InteractionsStrings || (InteractionsStrings = {})); const Translations = Object.assign(Object.assign(Object.assign({}, AuthStrings), _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_0__["AuthErrorStrings"]), InteractionsStrings); /***/ }), /***/ "c83j": /*!*********************************************************************************!*\ !*** ./node_modules/@aws-amplify/analytics/lib-esm/vendor/dom-utils/parents.js ***! \*********************************************************************************/ /*! exports provided: parents */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parents", function() { return parents; }); /** * Copyright (c) 2017, Philip Walton */ /** * Returns an array of a DOM element's parent elements. * @param {!Element} element The DOM element whose parents to get. * @return {!Array} An array of all parent elemets, or an empty array if no * parent elements are found. */ function parents(ele) { var list = []; var element = ele; while (element && element.parentNode && element.parentNode.nodeType === 1) { element = /** @type {!Element} */ element.parentNode; list.push(element); } return list; } //# sourceMappingURL=parents.js.map /***/ }), /***/ "cBqT": /*!***************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/find.js ***! \***************************************************************/ /*! exports provided: find, FindValueOperator, FindValueSubscriber */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "find", function() { return find; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FindValueOperator", function() { return FindValueOperator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FindValueSubscriber", function() { return FindValueSubscriber; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); function find(predicate, thisArg) { if (typeof predicate !== 'function') { throw new TypeError('predicate is not a function'); } return (source) => source.lift(new FindValueOperator(predicate, source, false, thisArg)); } class FindValueOperator { constructor(predicate, source, yieldIndex, thisArg) { this.predicate = predicate; this.source = source; this.yieldIndex = yieldIndex; this.thisArg = thisArg; } call(observer, source) { return source.subscribe(new FindValueSubscriber(observer, this.predicate, this.source, this.yieldIndex, this.thisArg)); } } class FindValueSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, predicate, source, yieldIndex, thisArg) { super(destination); this.predicate = predicate; this.source = source; this.yieldIndex = yieldIndex; this.thisArg = thisArg; this.index = 0; } notifyComplete(value) { const destination = this.destination; destination.next(value); destination.complete(); this.unsubscribe(); } _next(value) { const { predicate, thisArg } = this; const index = this.index++; try { const result = predicate.call(thisArg || this, value, index, this.source); if (result) { this.notifyComplete(this.yieldIndex ? index : value); } } catch (err) { this.destination.error(err); } } _complete() { this.notifyComplete(this.yieldIndex ? -1 : undefined); } } //# sourceMappingURL=find.js.map /***/ }), /***/ "cEH/": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/ListCollectionsCommand.js ***! \*********************************************************************************************/ /*! exports provided: ListCollectionsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListCollectionsCommand", function() { return ListCollectionsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListCollectionsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListCollectionsCommand, _super); // Start section: command_properties // End section: command_properties function ListCollectionsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListCollectionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListCollectionsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListCollectionsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListCollectionsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListCollectionsCommand"])(input, context); }; ListCollectionsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListCollectionsCommand"])(output, context); }; return ListCollectionsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListCollectionsCommand.js.map /***/ }), /***/ "cH1L": /*!*****************************************************************!*\ !*** ./node_modules/@angular/cdk/__ivy_ngcc__/fesm2015/bidi.js ***! \*****************************************************************/ /*! exports provided: BidiModule, DIR_DOCUMENT, Dir, Directionality, ɵangular_material_src_cdk_bidi_bidi_a */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BidiModule", function() { return BidiModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DIR_DOCUMENT", function() { return DIR_DOCUMENT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dir", function() { return Dir; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Directionality", function() { return Directionality; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_cdk_bidi_bidi_a", function() { return DIR_DOCUMENT_FACTORY; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Injection token used to inject the document into Directionality. * This is used so that the value can be faked in tests. * * We can't use the real document in tests because changing the real `dir` causes geometry-based * tests in Safari to fail. * * We also can't re-provide the DOCUMENT token from platform-brower because the unit tests * themselves use things like `querySelector` in test code. * * This token is defined in a separate file from Directionality as a workaround for * https://github.com/angular/angular/issues/22559 * * @docs-private */ const DIR_DOCUMENT = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('cdk-dir-doc', { providedIn: 'root', factory: DIR_DOCUMENT_FACTORY, }); /** @docs-private */ function DIR_DOCUMENT_FACTORY() { return Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["inject"])(_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * The directionality (LTR / RTL) context for the application (or a subtree of it). * Exposes the current direction and a stream of direction changes. */ class Directionality { constructor(_document) { /** The current 'ltr' or 'rtl' value. */ this.value = 'ltr'; /** Stream that emits whenever the 'ltr' / 'rtl' state changes. */ this.change = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); if (_document) { // TODO: handle 'auto' value - // We still need to account for dir="auto". // It looks like HTMLElemenet.dir is also "auto" when that's set to the attribute, // but getComputedStyle return either "ltr" or "rtl". avoiding getComputedStyle for now const bodyDir = _document.body ? _document.body.dir : null; const htmlDir = _document.documentElement ? _document.documentElement.dir : null; const value = bodyDir || htmlDir; this.value = (value === 'ltr' || value === 'rtl') ? value : 'ltr'; } } ngOnDestroy() { this.change.complete(); } } Directionality.ɵfac = function Directionality_Factory(t) { return new (t || Directionality)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](DIR_DOCUMENT, 8)); }; Directionality.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function Directionality_Factory() { return new Directionality(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(DIR_DOCUMENT, 8)); }, token: Directionality, providedIn: "root" }); Directionality.ctorParameters = () => [ { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [DIR_DOCUMENT,] }] } ]; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Directionality, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"], args: [{ providedIn: 'root' }] }], function () { return [{ type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [DIR_DOCUMENT] }] }]; }, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Directive to listen for changes of direction of part of the DOM. * * Provides itself as Directionality such that descendant directives only need to ever inject * Directionality to get the closest direction. */ class Dir { constructor() { /** Normalized direction that accounts for invalid/unsupported values. */ this._dir = 'ltr'; /** Whether the `value` has been set to its initial value. */ this._isInitialized = false; /** Event emitted when the direction changes. */ this.change = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } /** @docs-private */ get dir() { return this._dir; } set dir(value) { const old = this._dir; const normalizedValue = value ? value.toLowerCase() : value; this._rawDir = value; this._dir = (normalizedValue === 'ltr' || normalizedValue === 'rtl') ? normalizedValue : 'ltr'; if (old !== this._dir && this._isInitialized) { this.change.emit(this._dir); } } /** Current layout direction of the element. */ get value() { return this.dir; } /** Initialize once default value has been set. */ ngAfterContentInit() { this._isInitialized = true; } ngOnDestroy() { this.change.complete(); } } Dir.ɵfac = function Dir_Factory(t) { return new (t || Dir)(); }; Dir.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: Dir, selectors: [["", "dir", ""]], hostVars: 1, hostBindings: function Dir_HostBindings(rf, ctx) { if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("dir", ctx._rawDir); } }, inputs: { dir: "dir" }, outputs: { change: "dirChange" }, exportAs: ["dir"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{ provide: Directionality, useExisting: Dir }])] }); Dir.propDecorators = { change: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['dirChange',] }], dir: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }] }; /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Dir, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"], args: [{ selector: '[dir]', providers: [{ provide: Directionality, useExisting: Dir }], host: { '[attr.dir]': '_rawDir' }, exportAs: 'dir' }] }], function () { return []; }, { change: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['dirChange'] }], dir: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }] }); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class BidiModule { } BidiModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: BidiModule }); BidiModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function BidiModule_Factory(t) { return new (t || BidiModule)(); } }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](BidiModule, { declarations: [Dir], exports: [Dir] }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BidiModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"], args: [{ exports: [Dir], declarations: [Dir] }] }], null, null); })(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Generated bundle index. Do not edit. */ //# sourceMappingURL=bidi.js.map /***/ }), /***/ "cHaT": /*!****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/runtimeConfig.browser.js ***! \****************************************************************************************/ /*! exports provided: ClientDefaultValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientDefaultValues", function() { return ClientDefaultValues; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./package.json */ "+KNX"); var _package_json__WEBPACK_IMPORTED_MODULE_1___namespace = /*#__PURE__*/__webpack_require__.t(/*! ./package.json */ "+KNX", 1); /* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-crypto/sha256-browser */ "viNG"); /* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/fetch-http-handler */ "LUnR"); /* harmony import */ var _aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/invalid-dependency */ "J2eM"); /* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "UMev"); /* harmony import */ var _aws_sdk_url_parser_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/url-parser-browser */ "c14h"); /* harmony import */ var _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/util-base64-browser */ "S3Uu"); /* harmony import */ var _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/util-body-length-browser */ "N9sX"); /* harmony import */ var _aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/util-user-agent-browser */ "wU8f"); /* harmony import */ var _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "kg8h"); /* harmony import */ var _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./runtimeConfig.shared */ "3pMQ"); var ClientDefaultValues = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__["ClientSharedValues"]), { runtime: "browser", base64Decoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__["fromBase64"], base64Encoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__["toBase64"], bodyLengthChecker: _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_8__["calculateBodyLength"], credentialDefaultProvider: (function () { }), defaultUserAgent: Object(_aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_9__["defaultUserAgent"])(_package_json__WEBPACK_IMPORTED_MODULE_1__["name"], _package_json__WEBPACK_IMPORTED_MODULE_1__["version"]), maxAttempts: _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__["DEFAULT_MAX_ATTEMPTS"], region: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__["invalidFunction"])("Region is missing"), requestHandler: new _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["FetchHttpHandler"](), sha256: _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__["Sha256"], streamCollector: _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["streamCollector"], urlParser: _aws_sdk_url_parser_browser__WEBPACK_IMPORTED_MODULE_6__["parseUrl"], utf8Decoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__["fromUtf8"], utf8Encoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__["toUtf8"] }); //# sourceMappingURL=runtimeConfig.browser.js.map /***/ }), /***/ "cIfH": /*!*******************************************************!*\ !*** ./node_modules/fast-xml-parser/src/validator.js ***! \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const util = __webpack_require__(/*! ./util */ "4abu"); const defaultOptions = { allowBooleanAttributes: false, //A tag can have attributes without any value }; const props = ['allowBooleanAttributes']; //const tagsPattern = new RegExp("<\\/?([\\w:\\-_\.]+)\\s*\/?>","g"); exports.validate = function (xmlData, options) { options = util.buildOptions(options, defaultOptions, props); //xmlData = xmlData.replace(/(\r\n|\n|\r)/gm,"");//make it single line //xmlData = xmlData.replace(/(^\s*<\?xml.*?\?>)/g,"");//Remove XML starting tag //xmlData = xmlData.replace(/()/g,"");//Remove DOCTYPE const tags = []; let tagFound = false; //indicates that the root tag has been closed (aka. depth 0 has been reached) let reachedRoot = false; if (xmlData[0] === '\ufeff') { // check for byte order mark (BOM) xmlData = xmlData.substr(1); } for (let i = 0; i < xmlData.length; i++) { if (xmlData[i] === '<') { //starting of tag //read until you reach to '>' avoiding any '>' in attribute value i++; if (xmlData[i] === '?') { i = readPI(xmlData, ++i); if (i.err) { return i; } } else if (xmlData[i] === '!') { i = readCommentAndCDATA(xmlData, i); continue; } else { let closingTag = false; if (xmlData[i] === '/') { //closing tag closingTag = true; i++; } //read tagname let tagName = ''; for (; i < xmlData.length && xmlData[i] !== '>' && xmlData[i] !== ' ' && xmlData[i] !== '\t' && xmlData[i] !== '\n' && xmlData[i] !== '\r'; i++ ) { tagName += xmlData[i]; } tagName = tagName.trim(); //console.log(tagName); if (tagName[tagName.length - 1] === '/') { //self closing tag without attributes tagName = tagName.substring(0, tagName.length - 1); //continue; i--; } if (!validateTagName(tagName)) { let msg; if (tagName.trim().length === 0) { msg = "There is an unnecessary space between tag name and backward slash ' 0) { return getErrorObject('InvalidTag', "Closing tag '"+tagName+"' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, i)); } else { const otg = tags.pop(); if (tagName !== otg) { return getErrorObject('InvalidTag', "Closing tag '"+otg+"' is expected inplace of '"+tagName+"'.", getLineNumberForPosition(xmlData, i)); } //when there are no more tags, we reached the root level. if (tags.length == 0) { reachedRoot = true; } } } else { const isValid = validateAttributeString(attrStr, options); if (isValid !== true) { //the result from the nested function returns the position of the error within the attribute //in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute //this gives us the absolute index in the entire xml, which we can use to find the line at last return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line)); } //if the root level has been reached before ... if (reachedRoot === true) { return getErrorObject('InvalidXml', 'Multiple possible root nodes found.', getLineNumberForPosition(xmlData, i)); } else { tags.push(tagName); } tagFound = true; } //skip tag text value //It may include comments and CDATA value for (i++; i < xmlData.length; i++) { if (xmlData[i] === '<') { if (xmlData[i + 1] === '!') { //comment or CADATA i++; i = readCommentAndCDATA(xmlData, i); continue; } else { break; } } else if (xmlData[i] === '&') { const afterAmp = validateAmpersand(xmlData, i); if (afterAmp == -1) return getErrorObject('InvalidChar', "char '&' is not expected.", getLineNumberForPosition(xmlData, i)); i = afterAmp; } } //end of reading tag text value if (xmlData[i] === '<') { i--; } } } else { if (xmlData[i] === ' ' || xmlData[i] === '\t' || xmlData[i] === '\n' || xmlData[i] === '\r') { continue; } return getErrorObject('InvalidChar', "char '"+xmlData[i]+"' is not expected.", getLineNumberForPosition(xmlData, i)); } } if (!tagFound) { return getErrorObject('InvalidXml', 'Start tag expected.', 1); } else if (tags.length > 0) { return getErrorObject('InvalidXml', "Invalid '"+JSON.stringify(tags, null, 4).replace(/\r?\n/g, '')+"' found.", 1); } return true; }; /** * Read Processing insstructions and skip * @param {*} xmlData * @param {*} i */ function readPI(xmlData, i) { var start = i; for (; i < xmlData.length; i++) { if (xmlData[i] == '?' || xmlData[i] == ' ') { //tagname var tagname = xmlData.substr(start, i - start); if (i > 5 && tagname === 'xml') { return getErrorObject('InvalidXml', 'XML declaration allowed only at the start of the document.', getLineNumberForPosition(xmlData, i)); } else if (xmlData[i] == '?' && xmlData[i + 1] == '>') { //check if valid attribut string i++; break; } else { continue; } } } return i; } function readCommentAndCDATA(xmlData, i) { if (xmlData.length > i + 5 && xmlData[i + 1] === '-' && xmlData[i + 2] === '-') { //comment for (i += 3; i < xmlData.length; i++) { if (xmlData[i] === '-' && xmlData[i + 1] === '-' && xmlData[i + 2] === '>') { i += 2; break; } } } else if ( xmlData.length > i + 8 && xmlData[i + 1] === 'D' && xmlData[i + 2] === 'O' && xmlData[i + 3] === 'C' && xmlData[i + 4] === 'T' && xmlData[i + 5] === 'Y' && xmlData[i + 6] === 'P' && xmlData[i + 7] === 'E' ) { let angleBracketsCount = 1; for (i += 8; i < xmlData.length; i++) { if (xmlData[i] === '<') { angleBracketsCount++; } else if (xmlData[i] === '>') { angleBracketsCount--; if (angleBracketsCount === 0) { break; } } } } else if ( xmlData.length > i + 9 && xmlData[i + 1] === '[' && xmlData[i + 2] === 'C' && xmlData[i + 3] === 'D' && xmlData[i + 4] === 'A' && xmlData[i + 5] === 'T' && xmlData[i + 6] === 'A' && xmlData[i + 7] === '[' ) { for (i += 8; i < xmlData.length; i++) { if (xmlData[i] === ']' && xmlData[i + 1] === ']' && xmlData[i + 2] === '>') { i += 2; break; } } } return i; } var doubleQuote = '"'; var singleQuote = "'"; /** * Keep reading xmlData until '<' is found outside the attribute value. * @param {string} xmlData * @param {number} i */ function readAttributeStr(xmlData, i) { let attrStr = ''; let startChar = ''; let tagClosed = false; for (; i < xmlData.length; i++) { if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) { if (startChar === '') { startChar = xmlData[i]; } else if (startChar !== xmlData[i]) { //if vaue is enclosed with double quote then single quotes are allowed inside the value and vice versa continue; } else { startChar = ''; } } else if (xmlData[i] === '>') { if (startChar === '') { tagClosed = true; break; } } attrStr += xmlData[i]; } if (startChar !== '') { return false; } return { value: attrStr, index: i, tagClosed: tagClosed }; } /** * Select all the attributes whether valid or invalid. */ const validAttrStrRegxp = new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?', 'g'); //attr, ="sd", a="amit's", a="sd"b="saf", ab cd="" function validateAttributeString(attrStr, options) { //console.log("start:"+attrStr+":end"); //if(attrStr.trim().length === 0) return true; //empty string const matches = util.getAllMatches(attrStr, validAttrStrRegxp); const attrNames = {}; for (let i = 0; i < matches.length; i++) { if (matches[i][1].length === 0) { //nospace before attribute name: a="sd"b="saf" return getErrorObject('InvalidAttr', "Attribute '"+matches[i][2]+"' has no space in starting.", getPositionFromMatch(attrStr, matches[i][0])) } else if (matches[i][3] === undefined && !options.allowBooleanAttributes) { //independent attribute: ab return getErrorObject('InvalidAttr', "boolean attribute '"+matches[i][2]+"' is not allowed.", getPositionFromMatch(attrStr, matches[i][0])); } /* else if(matches[i][6] === undefined){//attribute without value: ab= return { err: { code:"InvalidAttr",msg:"attribute " + matches[i][2] + " has no value assigned."}}; } */ const attrName = matches[i][2]; if (!validateAttrName(attrName)) { return getErrorObject('InvalidAttr', "Attribute '"+attrName+"' is an invalid name.", getPositionFromMatch(attrStr, matches[i][0])); } if (!attrNames.hasOwnProperty(attrName)) { //check for duplicate attribute. attrNames[attrName] = 1; } else { return getErrorObject('InvalidAttr', "Attribute '"+attrName+"' is repeated.", getPositionFromMatch(attrStr, matches[i][0])); } } return true; } function validateNumberAmpersand(xmlData, i) { let re = /\d/; if (xmlData[i] === 'x') { i++; re = /[\da-fA-F]/; } for (; i < xmlData.length; i++) { if (xmlData[i] === ';') return i; if (!xmlData[i].match(re)) break; } return -1; } function validateAmpersand(xmlData, i) { // https://www.w3.org/TR/xml/#dt-charref i++; if (xmlData[i] === ';') return -1; if (xmlData[i] === '#') { i++; return validateNumberAmpersand(xmlData, i); } let count = 0; for (; i < xmlData.length; i++, count++) { if (xmlData[i].match(/\w/) && count < 20) continue; if (xmlData[i] === ';') break; return -1; } return i; } function getErrorObject(code, message, lineNumber) { return { err: { code: code, msg: message, line: lineNumber, }, }; } function validateAttrName(attrName) { return util.isName(attrName); } // const startsWithXML = /^xml/i; function validateTagName(tagname) { return util.isName(tagname) /* && !tagname.match(startsWithXML) */; } //this function returns the line number for the character at the given index function getLineNumberForPosition(xmlData, index) { var lines = xmlData.substring(0, index).split(/\r?\n/); return lines.length; } //this function returns the position of the last character of match within attrStr function getPositionFromMatch(attrStr, match) { return attrStr.indexOf(match) + match.length; } /***/ }), /***/ "cJkL": /*!*********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionCommand.js ***! \*********************************************************************************************/ /*! exports provided: GetCampaignVersionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionCommand", function() { return GetCampaignVersionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetCampaignVersionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignVersionCommand, _super); // Start section: command_properties // End section: command_properties function GetCampaignVersionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetCampaignVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCampaignVersionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCampaignVersionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetCampaignVersionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignVersionCommand"])(input, context); }; GetCampaignVersionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignVersionCommand"])(output, context); }; return GetCampaignVersionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetCampaignVersionCommand.js.map /***/ }), /***/ "cP6b": /*!****************************************!*\ !*** ./node_modules/zen-push/index.js ***! \****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var Observable = __webpack_require__(/*! zen-observable */ "/tqZ"); function addMethods(target, methods) { Object.keys(methods).forEach(function(k) { var desc = Object.getOwnPropertyDescriptor(methods, k); desc.enumerable = false; Object.defineProperty(target, k, desc); }); } function send(p, message, value) { if (p._observer) { sendMessage(p._observer, message, value); } else if (p._observers) { var list = []; p._observers.forEach(function(to) { list.push(to); }); list.forEach(function(to) { sendMessage(to, message, value); }); } } function sendMessage(observer, message, value) { if (observer.closed) { return; } switch (message) { case 'next': return observer.next(value); case 'error': return observer.error(value); case 'complete': return observer.complete(value); } } function hasObserver(p) { return p._observer || p._observers && p._observers.size > 0; } function addObserver(p, observer) { if (p._observers) { p._observers.add(observer); } else if (!p._observer) { p._observer = observer; } else { p._observers = new Set(); p._observers.add(p._observer); p._observers.add(observer); p._observer = null; } } function deleteObserver(p, observer) { if (p._observers) { p._observers.delete(observer); } else if (p._observer === observer) { p._observer = null; } } function notifyStart(p, opts) { !hasObserver(p) && opts && opts.start && opts.start(); } function notifyPause(p, opts) { !hasObserver(p) && opts && opts.pause && opts.pause(); } function PushStream(opts) { var p = this; this._observer = null; this._observers = null; this._observable = new Observable(function(observer) { notifyStart(p, opts); addObserver(p, observer); return function() { deleteObserver(p, observer); notifyPause(p, opts); }; }); } addMethods(PushStream.prototype, { get observable() { return this._observable; }, get observed() { return hasObserver(this); }, next: function(x) { send(this, 'next', x); }, error: function(e) { send(this, 'error', e); }, complete: function(x) { send(this, 'complete', x); }, }); module.exports = PushStream; /***/ }), /***/ "cQQO": /*!**************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/package.json ***! \**************************************************************/ /*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, author, license, default */ /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"@aws-sdk/client-s3\",\"description\":\"@aws-sdk/client-s3 client\",\"version\":\"1.0.0-gamma.8\",\"scripts\":{\"clean\":\"npm run remove-definitions && npm run remove-dist\",\"build-documentation\":\"npm run clean && typedoc ./\",\"prepublishOnly\":\"yarn build\",\"pretest\":\"yarn build:cjs\",\"remove-definitions\":\"rimraf ./types\",\"remove-dist\":\"rimraf ./dist\",\"remove-documentation\":\"rimraf ./docs\",\"test:unit\":\"mocha **/cjs/**/*.spec.js\",\"test:e2e\":\"mocha **/cjs/**/*.ispec.js && karma start karma.conf.js\",\"test\":\"yarn test:unit\",\"build:cjs\":\"tsc -p tsconfig.json\",\"build:es\":\"tsc -p tsconfig.es.json\",\"build\":\"yarn build:cjs && yarn build:es\"},\"main\":\"./dist/cjs/index.js\",\"types\":\"./types/index.d.ts\",\"module\":\"./dist/es/index.js\",\"browser\":{\"./runtimeConfig\":\"./runtimeConfig.browser\"},\"react-native\":{\"./runtimeConfig\":\"./runtimeConfig.native\"},\"sideEffects\":false,\"dependencies\":{\"@aws-crypto/sha256-browser\":\"^1.0.0-alpha.0\",\"@aws-crypto/sha256-js\":\"^1.0.0-alpha.0\",\"@aws-sdk/config-resolver\":\"1.0.0-gamma.7\",\"@aws-sdk/credential-provider-node\":\"1.0.0-gamma.7\",\"@aws-sdk/eventstream-serde-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/eventstream-serde-config-resolver\":\"1.0.0-gamma.6\",\"@aws-sdk/eventstream-serde-node\":\"1.0.0-gamma.7\",\"@aws-sdk/fetch-http-handler\":\"1.0.0-gamma.8\",\"@aws-sdk/hash-blob-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/hash-node\":\"1.0.0-gamma.7\",\"@aws-sdk/hash-stream-node\":\"1.0.0-gamma.7\",\"@aws-sdk/invalid-dependency\":\"1.0.0-gamma.5\",\"@aws-sdk/md5-js\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-apply-body-checksum\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-bucket-endpoint\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-content-length\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-expect-continue\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-host-header\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-location-constraint\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-logger\":\"1.0.0-gamma.1\",\"@aws-sdk/middleware-retry\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-sdk-s3\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-serde\":\"1.0.0-gamma.6\",\"@aws-sdk/middleware-signing\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-ssec\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-stack\":\"1.0.0-gamma.7\",\"@aws-sdk/middleware-user-agent\":\"1.0.0-gamma.7\",\"@aws-sdk/node-config-provider\":\"1.0.0-gamma.2\",\"@aws-sdk/node-http-handler\":\"1.0.0-gamma.7\",\"@aws-sdk/protocol-http\":\"1.0.0-gamma.7\",\"@aws-sdk/smithy-client\":\"1.0.0-gamma.7\",\"@aws-sdk/types\":\"1.0.0-gamma.6\",\"@aws-sdk/url-parser-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/url-parser-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-base64-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-base64-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-body-length-node\":\"1.0.0-gamma.6\",\"@aws-sdk/util-user-agent-browser\":\"1.0.0-gamma.7\",\"@aws-sdk/util-user-agent-node\":\"1.0.0-gamma.7\",\"@aws-sdk/util-utf8-browser\":\"1.0.0-gamma.6\",\"@aws-sdk/util-utf8-node\":\"1.0.0-gamma.6\",\"@aws-sdk/xml-builder\":\"1.0.0-gamma.6\",\"fast-xml-parser\":\"^3.16.0\",\"tslib\":\"^2.0.0\"},\"devDependencies\":{\"@aws-sdk/client-documentation-generator\":\"1.0.0-gamma.5\",\"@types/chai\":\"^4.2.11\",\"@types/mocha\":\"^7.0.2\",\"@types/node\":\"^12.7.5\",\"jest\":\"^25.1.0\",\"rimraf\":\"^3.0.0\",\"typedoc\":\"^0.17.8\",\"typescript\":\"~4.0.2\"},\"engines\":{\"node\":\">=8.0.0\"},\"author\":{\"name\":\"AWS SDK for JavaScript Team\",\"url\":\"https://aws.amazon.com/javascript/\"},\"license\":\"Apache-2.0\"}"); /***/ }), /***/ "cVRK": /*!*********************************************************************!*\ !*** ./node_modules/@aws-amplify/ui-components/dist/esm/loader.mjs ***! \*********************************************************************/ /*! exports provided: defineCustomElements */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defineCustomElements", function() { return defineCustomElements; }); /* harmony import */ var _index_39969785_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index-39969785.js */ "bRKV"); /* harmony import */ var _theme_b2a03c68_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./theme-b2a03c68.js */ "Pa4d"); /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-amplify/core */ "wAFy"); const defineCustomElements = (win, options) => { if (typeof window === 'undefined') return Promise.resolve(); return Object(_theme_b2a03c68_js__WEBPACK_IMPORTED_MODULE_1__["a"])().then(() => { return Object(_index_39969785_js__WEBPACK_IMPORTED_MODULE_0__["b"])([["amplify-icon",[[2,"amplify-icon",{"name":[1]}]]],["amplify-authenticator",[[1,"amplify-authenticator",{"initialAuthState":[1,"initial-auth-state"],"federated":[16],"usernameAlias":[1,"username-alias"],"handleAuthStateChange":[16],"authState":[32],"authData":[32],"toastMessage":[32]}]]],["amplify-federated-sign-in",[[1,"amplify-federated-sign-in",{"authState":[1,"auth-state"],"federated":[8]}]]],["amplify-select-mfa-type",[[1,"amplify-select-mfa-type",{"MFATypes":[16],"authData":[16],"handleSubmit":[16],"TOTPSetup":[32],"selectMessage":[32],"MFAMethod":[32],"isTOTP":[32],"isNoMFA":[32],"isSMS":[32],"loading":[32]}]]],["amplify-s3-image-picker",[[4,"amplify-s3-image-picker",{"path":[1],"contentType":[1,"content-type"],"level":[1],"track":[4],"identityId":[1,"identity-id"],"fileToKey":[16],"headerTitle":[1,"header-title"],"headerHint":[1,"header-hint"],"placeholderHint":[1,"placeholder-hint"],"buttonText":[1,"button-text"],"src":[32]}]]],["amplify-chatbot",[[1,"amplify-chatbot",{"botName":[1,"bot-name"],"clearOnComplete":[4,"clear-on-complete"],"conversationModeOn":[4,"conversation-mode-on"],"welcomeMessage":[1,"welcome-message"],"botTitle":[1,"bot-title"],"voiceEnabled":[4,"voice-enabled"],"textEnabled":[4,"text-enabled"],"silenceTime":[2,"silence-time"],"silenceThreshold":[2,"silence-threshold"],"messages":[32],"text":[32],"chatState":[32],"error":[32]},[[0,"formSubmit","submitHandler"]]]]],["amplify-greetings",[[1,"amplify-greetings",{"username":[1],"logo":[16],"handleAuthStateChange":[16]}]]],["amplify-s3-album",[[1,"amplify-s3-album",{"path":[1],"contentType":[1,"content-type"],"level":[1],"track":[4],"identityId":[1,"identity-id"],"fileToKey":[16],"filter":[16],"sort":[16],"picker":[4],"handleOnLoad":[16],"handleOnError":[16],"pickerText":[1,"picker-text"],"albumItems":[32]}]]],["amplify-s3-text-picker",[[1,"amplify-s3-text-picker",{"path":[1],"contentType":[1,"content-type"],"level":[1],"track":[4],"identityId":[1,"identity-id"],"fileToKey":[16],"fallbackText":[1,"fallback-text"],"src":[32]}]]],["amplify-tooltip",[[1,"amplify-tooltip",{"text":[1],"shouldAutoShow":[4,"should-auto-show"]}]]],["amplify-icon-button",[[1,"amplify-icon-button",{"name":[1],"tooltip":[1],"autoShowTooltip":[4,"auto-show-tooltip"]}]]],["amplify-checkbox",[[1,"amplify-checkbox",{"name":[1],"value":[1],"fieldId":[1,"field-id"],"label":[1],"checked":[4],"disabled":[4]}]]],["amplify-container",[[1,"amplify-container"]]],["amplify-link",[[1,"amplify-link",{"role":[1]}]]],["amplify-photo-picker",[[1,"amplify-photo-picker",{"headerTitle":[1,"header-title"],"headerHint":[1,"header-hint"],"placeholderHint":[1,"placeholder-hint"],"buttonText":[1,"button-text"],"previewSrc":[1,"preview-src"],"handleClick":[16],"previewState":[32],"file":[32]}]]],["amplify-s3-image",[[1,"amplify-s3-image",{"imgKey":[1,"img-key"],"path":[1],"body":[16],"contentType":[1,"content-type"],"level":[1],"track":[4],"identityId":[1,"identity-id"],"handleOnLoad":[16],"handleOnError":[16],"src":[32]}]]],["amplify-s3-text",[[1,"amplify-s3-text",{"textKey":[1,"text-key"],"path":[1],"body":[16],"contentType":[1,"content-type"],"level":[1],"track":[4],"identityId":[1,"identity-id"],"fallbackText":[1,"fallback-text"],"src":[32]}]]],["amplify-button_3",[[1,"amplify-loading-spinner"],[1,"amplify-section",{"role":[1]}],[1,"amplify-button",{"type":[1],"variant":[1],"handleButtonClick":[16],"disabled":[4],"icon":[1]}]]],["amplify-nav_2",[[1,"amplify-sign-out",{"handleAuthStateChange":[16],"buttonText":[1,"button-text"]}],[1,"amplify-nav"]]],["amplify-toast",[[1,"amplify-toast",{"handleClose":[16],"message":[1]}]]],["amplify-picker",[[1,"amplify-picker",{"pickerText":[1,"picker-text"],"acceptValue":[1,"accept-value"],"inputHandler":[16]}]]],["amplify-form-field_4",[[1,"amplify-form-field",{"fieldId":[1,"field-id"],"label":[1],"description":[1],"hint":[1],"type":[1],"required":[4],"handleInputChange":[16],"placeholder":[1],"name":[1],"value":[1],"inputProps":[16],"disabled":[4]}],[1,"amplify-hint"],[0,"amplify-input",{"fieldId":[1,"field-id"],"description":[1],"type":[1],"handleInputChange":[16],"placeholder":[1],"name":[1],"value":[1],"inputProps":[16],"disabled":[4]},[[0,"keydown","handleKeyDown"]]],[1,"amplify-label",{"htmlFor":[1,"html-for"]}]]],["amplify-radio-button_2",[[1,"amplify-totp-setup",{"user":[16],"handleAuthStateChange":[16],"headerText":[1,"header-text"],"issuer":[1],"code":[32],"setupMessage":[32],"qrCodeImageSource":[32],"qrCodeInput":[32],"loading":[32]}],[0,"amplify-radio-button",{"handleInputChange":[16],"name":[1],"value":[1],"placeholder":[1],"fieldId":[1,"field-id"],"label":[1],"checked":[4],"disabled":[4],"inputProps":[16]}]]],["amplify-sign-in-button",[[6,"amplify-sign-in-button",{"provider":[1]}]]],["amplify-amazon-button_5",[[1,"amplify-amazon-button",{"clientId":[1,"client-id"],"handleAuthStateChange":[16]}],[1,"amplify-auth0-button",{"config":[16],"handleAuthStateChange":[16]}],[1,"amplify-facebook-button",{"appId":[1,"app-id"],"handleAuthStateChange":[16]}],[1,"amplify-google-button",{"handleAuthStateChange":[16],"clientId":[1,"client-id"]}],[1,"amplify-oauth-button",{"config":[16]}]]],["amplify-federated-buttons_2",[[6,"amplify-strike"],[1,"amplify-federated-buttons",{"authState":[1,"auth-state"],"federated":[16],"handleAuthStateChange":[16]}]]],["amplify-auth-fields_9",[[1,"amplify-auth-fields",{"formFields":[16]}],[1,"amplify-phone-field",{"fieldId":[1,"field-id"],"label":[1],"placeholder":[1],"hint":[1],"required":[4],"handleInputChange":[16],"value":[1],"inputProps":[16],"disabled":[4],"dialCode":[8,"dial-code"]}],[1,"amplify-code-field",{"fieldId":[1,"field-id"],"label":[1],"placeholder":[1],"hint":[1],"required":[4],"handleInputChange":[16],"value":[1],"inputProps":[16],"disabled":[4]}],[1,"amplify-email-field",{"fieldId":[1,"field-id"],"label":[1],"placeholder":[1],"required":[4],"handleInputChange":[16],"value":[1],"inputProps":[16],"disabled":[4]}],[1,"amplify-password-field",{"fieldId":[1,"field-id"],"label":[1],"placeholder":[1],"hint":[1],"required":[4],"handleInputChange":[16],"value":[1],"inputProps":[16],"disabled":[4]}],[1,"amplify-username-field",{"fieldId":[1,"field-id"],"label":[1],"placeholder":[1],"required":[4],"handleInputChange":[16],"value":[1],"inputProps":[16],"disabled":[4]}],[1,"amplify-country-dial-code",{"fieldId":[1,"field-id"],"options":[16],"handleInputChange":[16],"dialCode":[8,"dial-code"]}],[1,"amplify-select",{"options":[16],"fieldId":[1,"field-id"],"handleInputChange":[16],"selected":[8]}],[1,"amplify-form-section",{"handleSubmit":[16],"submitButtonText":[1,"submit-button-text"],"headerText":[1,"header-text"],"testDataPrefix":[1,"test-data-prefix"],"loading":[4],"secondaryFooterContent":[1,"secondary-footer-content"]},[[0,"formSubmit","handleFormSubmit"]]]]],["amplify-confirm-sign-in_7",[[1,"amplify-sign-in",{"handleSubmit":[16],"headerText":[1,"header-text"],"submitButtonText":[1,"submit-button-text"],"federated":[16],"handleAuthStateChange":[16],"usernameAlias":[1,"username-alias"],"formFields":[16],"hideSignUp":[4,"hide-sign-up"],"loading":[32],"signInAttributes":[32]}],[1,"amplify-confirm-sign-in",{"handleSubmit":[16],"headerText":[1,"header-text"],"submitButtonText":[1,"submit-button-text"],"handleAuthStateChange":[16],"formFields":[16],"user":[16],"mfaOption":[32],"loading":[32],"code":[32]}],[1,"amplify-confirm-sign-up",{"handleSubmit":[16],"headerText":[1,"header-text"],"submitButtonText":[1,"submit-button-text"],"formFields":[16],"handleAuthStateChange":[16],"user":[16],"usernameAlias":[1,"username-alias"],"code":[32],"loading":[32],"userInput":[32]}],[1,"amplify-forgot-password",{"headerText":[1,"header-text"],"sendButtonText":[1,"send-button-text"],"submitButtonText":[1,"submit-button-text"],"formFields":[16],"handleSend":[16],"handleSubmit":[16],"handleAuthStateChange":[16],"usernameAlias":[1,"username-alias"],"delivery":[32],"loading":[32],"forgotPasswordAttrs":[32]}],[1,"amplify-require-new-password",{"headerText":[1,"header-text"],"submitButtonText":[1,"submit-button-text"],"handleSubmit":[16],"handleAuthStateChange":[16],"user":[16],"formFields":[16],"currentUser":[32],"password":[32],"loading":[32]}],[1,"amplify-sign-up",{"handleSubmit":[16],"validationErrors":[1,"validation-errors"],"headerText":[1,"header-text"],"submitButtonText":[1,"submit-button-text"],"haveAccountText":[1,"have-account-text"],"signInText":[1,"sign-in-text"],"formFields":[16],"handleAuthStateChange":[16],"usernameAlias":[1,"username-alias"],"loading":[32],"signUpAttributes":[32]}],[1,"amplify-verify-contact",{"handleAuthStateChange":[16],"user":[16],"verifyAttr":[32],"loading":[32],"code":[32],"contact":[32]}]]]], options); }); }; /***/ }), /***/ "cZ61": /*!***************************************************************!*\ !*** ./node_modules/@aws-crypto/sha256-js/build/RawSha256.js ***! \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = __webpack_require__(/*! ./constants */ "vdHl"); /** * @internal */ var RawSha256 = /** @class */ (function () { function RawSha256() { this.state = Int32Array.from(constants_1.INIT); this.temp = new Int32Array(64); this.buffer = new Uint8Array(64); this.bufferLength = 0; this.bytesHashed = 0; /** * @internal */ this.finished = false; } RawSha256.prototype.update = function (data) { if (this.finished) { throw new Error("Attempted to update an already finished hash."); } var position = 0; var byteLength = data.byteLength; this.bytesHashed += byteLength; if (this.bytesHashed * 8 > constants_1.MAX_HASHABLE_LENGTH) { throw new Error("Cannot hash more than 2^53 - 1 bits"); } while (byteLength > 0) { this.buffer[this.bufferLength++] = data[position++]; byteLength--; if (this.bufferLength === constants_1.BLOCK_SIZE) { this.hashBuffer(); this.bufferLength = 0; } } }; RawSha256.prototype.digest = function () { if (!this.finished) { var bitsHashed = this.bytesHashed * 8; var bufferView = new DataView(this.buffer.buffer, this.buffer.byteOffset, this.buffer.byteLength); var undecoratedLength = this.bufferLength; bufferView.setUint8(this.bufferLength++, 0x80); // Ensure the final block has enough room for the hashed length if (undecoratedLength % constants_1.BLOCK_SIZE >= constants_1.BLOCK_SIZE - 8) { for (var i = this.bufferLength; i < constants_1.BLOCK_SIZE; i++) { bufferView.setUint8(i, 0); } this.hashBuffer(); this.bufferLength = 0; } for (var i = this.bufferLength; i < constants_1.BLOCK_SIZE - 8; i++) { bufferView.setUint8(i, 0); } bufferView.setUint32(constants_1.BLOCK_SIZE - 8, Math.floor(bitsHashed / 0x100000000), true); bufferView.setUint32(constants_1.BLOCK_SIZE - 4, bitsHashed); this.hashBuffer(); this.finished = true; } // The value in state is little-endian rather than big-endian, so flip // each word into a new Uint8Array var out = new Uint8Array(constants_1.DIGEST_LENGTH); for (var i = 0; i < 8; i++) { out[i * 4] = (this.state[i] >>> 24) & 0xff; out[i * 4 + 1] = (this.state[i] >>> 16) & 0xff; out[i * 4 + 2] = (this.state[i] >>> 8) & 0xff; out[i * 4 + 3] = (this.state[i] >>> 0) & 0xff; } return out; }; RawSha256.prototype.hashBuffer = function () { var _a = this, buffer = _a.buffer, state = _a.state; var state0 = state[0], state1 = state[1], state2 = state[2], state3 = state[3], state4 = state[4], state5 = state[5], state6 = state[6], state7 = state[7]; for (var i = 0; i < constants_1.BLOCK_SIZE; i++) { if (i < 16) { this.temp[i] = ((buffer[i * 4] & 0xff) << 24) | ((buffer[i * 4 + 1] & 0xff) << 16) | ((buffer[i * 4 + 2] & 0xff) << 8) | (buffer[i * 4 + 3] & 0xff); } else { var u = this.temp[i - 2]; var t1_1 = ((u >>> 17) | (u << 15)) ^ ((u >>> 19) | (u << 13)) ^ (u >>> 10); u = this.temp[i - 15]; var t2_1 = ((u >>> 7) | (u << 25)) ^ ((u >>> 18) | (u << 14)) ^ (u >>> 3); this.temp[i] = ((t1_1 + this.temp[i - 7]) | 0) + ((t2_1 + this.temp[i - 16]) | 0); } var t1 = ((((((state4 >>> 6) | (state4 << 26)) ^ ((state4 >>> 11) | (state4 << 21)) ^ ((state4 >>> 25) | (state4 << 7))) + ((state4 & state5) ^ (~state4 & state6))) | 0) + ((state7 + ((constants_1.KEY[i] + this.temp[i]) | 0)) | 0)) | 0; var t2 = ((((state0 >>> 2) | (state0 << 30)) ^ ((state0 >>> 13) | (state0 << 19)) ^ ((state0 >>> 22) | (state0 << 10))) + ((state0 & state1) ^ (state0 & state2) ^ (state1 & state2))) | 0; state7 = state6; state6 = state5; state5 = state4; state4 = (state3 + t1) | 0; state3 = state2; state2 = state1; state1 = state0; state0 = (t1 + t2) | 0; } state[0] += state0; state[1] += state1; state[2] += state2; state[3] += state3; state[4] += state4; state[5] += state5; state[6] += state6; state[7] += state7; }; return RawSha256; }()); exports.RawSha256 = RawSha256; //# sourceMappingURL=RawSha256.js.map /***/ }), /***/ "ca8x": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/ListObjectsV2Command.js ***! \**********************************************************************************/ /*! exports provided: ListObjectsV2Command */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListObjectsV2Command", function() { return ListObjectsV2Command; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListObjectsV2Command = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListObjectsV2Command, _super); // Start section: command_properties // End section: command_properties function ListObjectsV2Command(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListObjectsV2Command.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListObjectsV2Request"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListObjectsV2Output"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListObjectsV2Command.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlListObjectsV2Command"])(input, context); }; ListObjectsV2Command.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlListObjectsV2Command"])(output, context); }; return ListObjectsV2Command; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=ListObjectsV2Command.js.map /***/ }), /***/ "caCD": /*!*******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateGcmChannelCommand.js ***! \*******************************************************************************************/ /*! exports provided: UpdateGcmChannelCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelCommand", function() { return UpdateGcmChannelCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var UpdateGcmChannelCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateGcmChannelCommand, _super); // Start section: command_properties // End section: command_properties function UpdateGcmChannelCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } UpdateGcmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateGcmChannelRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["UpdateGcmChannelResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UpdateGcmChannelCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateGcmChannelCommand"])(input, context); }; UpdateGcmChannelCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateGcmChannelCommand"])(output, context); }; return UpdateGcmChannelCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=UpdateGcmChannelCommand.js.map /***/ }), /***/ "cbkQ": /*!*********************************************************!*\ !*** ./node_modules/graphql/utilities/extendSchema.mjs ***! \*********************************************************/ /*! exports provided: extendSchema */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extendSchema", function() { return extendSchema; }); /* harmony import */ var _jsutils_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsutils/invariant */ "2C6G"); /* harmony import */ var _jsutils_keyMap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../jsutils/keyMap */ "kBjl"); /* harmony import */ var _jsutils_keyValMap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../jsutils/keyValMap */ "WXJZ"); /* harmony import */ var _jsutils_objectValues__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../jsutils/objectValues */ "S4Ci"); /* harmony import */ var _buildASTSchema__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./buildASTSchema */ "Yen0"); /* harmony import */ var _validation_validate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../validation/validate */ "EkME"); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../error/GraphQLError */ "dWS+"); /* harmony import */ var _type_schema__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../type/schema */ "51nL"); /* harmony import */ var _type_introspection__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../type/introspection */ "LViu"); /* harmony import */ var _type_scalars__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../type/scalars */ "19Hc"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../type/definition */ "axIb"); /* harmony import */ var _type_directives__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../type/directives */ "4suF"); /* harmony import */ var _language_kinds__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../language/kinds */ "/jXB"); /* harmony import */ var _language_predicates__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../language/predicates */ "Xizt"); function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Produces a new schema given an existing schema and a document which may * contain GraphQL type extensions and definitions. The original schema will * remain unaltered. * * Because a schema represents a graph of references, a schema cannot be * extended without effectively making an entire copy. We do not know until it's * too late if subgraphs remain unchanged. * * This algorithm copies the provided schema, applying extensions while * producing the copy. The original schema remains unaltered. * * Accepts options as a third argument: * * - commentDescriptions: * Provide true to use preceding comments as the description. * */ function extendSchema(schema, documentAST, options) { !Object(_type_schema__WEBPACK_IMPORTED_MODULE_7__["isSchema"])(schema) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_0__["default"])(0, 'Must provide valid GraphQLSchema') : void 0; !(documentAST && documentAST.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_12__["Kind"].DOCUMENT) ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_0__["default"])(0, 'Must provide valid Document AST') : void 0; if (!options || !(options.assumeValid || options.assumeValidSDL)) { Object(_validation_validate__WEBPACK_IMPORTED_MODULE_5__["assertValidSDLExtension"])(documentAST, schema); } // Collect the type definitions and extensions found in the document. var typeDefinitionMap = Object.create(null); var typeExtensionsMap = Object.create(null); // New directives and types are separate because a directives and types can // have the same name. For example, a type named "skip". var directiveDefinitions = []; var schemaDef; // Schema extensions are collected which may add additional operation types. var schemaExtensions = []; for (var i = 0; i < documentAST.definitions.length; i++) { var def = documentAST.definitions[i]; if (def.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_12__["Kind"].SCHEMA_DEFINITION) { schemaDef = def; } else if (def.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_12__["Kind"].SCHEMA_EXTENSION) { schemaExtensions.push(def); } else if (Object(_language_predicates__WEBPACK_IMPORTED_MODULE_13__["isTypeDefinitionNode"])(def)) { // Sanity check that none of the defined types conflict with the // schema's existing types. var typeName = def.name.value; if (schema.getType(typeName)) { throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_6__["GraphQLError"]("Type \"".concat(typeName, "\" already exists in the schema. It cannot also ") + 'be defined in this type definition.', [def]); } typeDefinitionMap[typeName] = def; } else if (Object(_language_predicates__WEBPACK_IMPORTED_MODULE_13__["isTypeExtensionNode"])(def)) { // Sanity check that this type extension exists within the // schema's existing types. var extendedTypeName = def.name.value; var existingType = schema.getType(extendedTypeName); if (!existingType) { throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_6__["GraphQLError"]("Cannot extend type \"".concat(extendedTypeName, "\" because it does not ") + 'exist in the existing schema.', [def]); } checkExtensionNode(existingType, def); var existingTypeExtensions = typeExtensionsMap[extendedTypeName]; typeExtensionsMap[extendedTypeName] = existingTypeExtensions ? existingTypeExtensions.concat([def]) : [def]; } else if (def.kind === _language_kinds__WEBPACK_IMPORTED_MODULE_12__["Kind"].DIRECTIVE_DEFINITION) { var directiveName = def.name.value; var existingDirective = schema.getDirective(directiveName); if (existingDirective) { throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_6__["GraphQLError"]("Directive \"".concat(directiveName, "\" already exists in the schema. It ") + 'cannot be redefined.', [def]); } directiveDefinitions.push(def); } } // If this document contains no new types, extensions, or directives then // return the same unmodified GraphQLSchema instance. if (Object.keys(typeExtensionsMap).length === 0 && Object.keys(typeDefinitionMap).length === 0 && directiveDefinitions.length === 0 && schemaExtensions.length === 0 && !schemaDef) { return schema; } var astBuilder = new _buildASTSchema__WEBPACK_IMPORTED_MODULE_4__["ASTDefinitionBuilder"](typeDefinitionMap, options, function (typeRef) { var typeName = typeRef.name.value; var existingType = schema.getType(typeName); if (existingType) { return extendNamedType(existingType); } throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_6__["GraphQLError"]("Unknown type: \"".concat(typeName, "\". Ensure that this type exists ") + 'either in the original schema, or is added in a type definition.', [typeRef]); }); var extendTypeCache = Object.create(null); // Get the extended root operation types. var operationTypes = { query: extendMaybeNamedType(schema.getQueryType()), mutation: extendMaybeNamedType(schema.getMutationType()), subscription: extendMaybeNamedType(schema.getSubscriptionType()) }; if (schemaDef) { var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = schemaDef.operationTypes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var _ref2 = _step.value; var operation = _ref2.operation, type = _ref2.type; if (operationTypes[operation]) { throw new Error("Must provide only one ".concat(operation, " type in schema.")); } // Note: While this could make early assertions to get the correctly // typed values, that would throw immediately while type system // validation with validateSchema() will produce more actionable results. operationTypes[operation] = astBuilder.buildType(type); } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } } // Then, incorporate schema definition and all schema extensions. for (var _i = 0; _i < schemaExtensions.length; _i++) { var schemaExtension = schemaExtensions[_i]; if (schemaExtension.operationTypes) { var _iteratorNormalCompletion12 = true; var _didIteratorError12 = false; var _iteratorError12 = undefined; try { for (var _iterator12 = schemaExtension.operationTypes[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) { var _ref4 = _step12.value; var operation = _ref4.operation, type = _ref4.type; if (operationTypes[operation]) { throw new Error("Must provide only one ".concat(operation, " type in schema.")); } // Note: While this could make early assertions to get the correctly // typed values, that would throw immediately while type system // validation with validateSchema() will produce more actionable results. operationTypes[operation] = astBuilder.buildType(type); } } catch (err) { _didIteratorError12 = true; _iteratorError12 = err; } finally { try { if (!_iteratorNormalCompletion12 && _iterator12.return != null) { _iterator12.return(); } } finally { if (_didIteratorError12) { throw _iteratorError12; } } } } } var schemaExtensionASTNodes = schemaExtensions ? schema.extensionASTNodes ? schema.extensionASTNodes.concat(schemaExtensions) : schemaExtensions : schema.extensionASTNodes; var types = Object(_jsutils_objectValues__WEBPACK_IMPORTED_MODULE_3__["default"])(schema.getTypeMap()).map(function (type) { return extendNamedType(type); }).concat(Object(_jsutils_objectValues__WEBPACK_IMPORTED_MODULE_3__["default"])(typeDefinitionMap).map(function (type) { return astBuilder.buildType(type); })); // Support both original legacy names and extended legacy names. var allowedLegacyNames = schema.__allowedLegacyNames.concat(options && options.allowedLegacyNames || []); // Then produce and return a Schema with these types. return new _type_schema__WEBPACK_IMPORTED_MODULE_7__["GraphQLSchema"](_objectSpread({}, operationTypes, { types: types, directives: getMergedDirectives(), astNode: schema.astNode, extensionASTNodes: schemaExtensionASTNodes, allowedLegacyNames: allowedLegacyNames })); // Below are functions used for producing this schema that have closed over // this scope and have access to the schema, cache, and newly defined types. function getMergedDirectives() { var existingDirectives = schema.getDirectives().map(extendDirective); !existingDirectives ? Object(_jsutils_invariant__WEBPACK_IMPORTED_MODULE_0__["default"])(0, 'schema must have default directives') : void 0; return existingDirectives.concat(directiveDefinitions.map(function (node) { return astBuilder.buildDirective(node); })); } function extendMaybeNamedType(type) { return type ? extendNamedType(type) : null; } function extendNamedType(type) { if (Object(_type_introspection__WEBPACK_IMPORTED_MODULE_8__["isIntrospectionType"])(type) || Object(_type_scalars__WEBPACK_IMPORTED_MODULE_9__["isSpecifiedScalarType"])(type)) { // Builtin types are not extended. return type; } var name = type.name; if (!extendTypeCache[name]) { if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["isScalarType"])(type)) { extendTypeCache[name] = extendScalarType(type); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["isObjectType"])(type)) { extendTypeCache[name] = extendObjectType(type); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["isInterfaceType"])(type)) { extendTypeCache[name] = extendInterfaceType(type); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["isUnionType"])(type)) { extendTypeCache[name] = extendUnionType(type); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["isEnumType"])(type)) { extendTypeCache[name] = extendEnumType(type); } else if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["isInputObjectType"])(type)) { extendTypeCache[name] = extendInputObjectType(type); } } return extendTypeCache[name]; } function extendDirective(directive) { return new _type_directives__WEBPACK_IMPORTED_MODULE_11__["GraphQLDirective"]({ name: directive.name, description: directive.description, locations: directive.locations, args: extendArgs(directive.args), astNode: directive.astNode }); } function extendInputObjectType(type) { var name = type.name; var extensionASTNodes = typeExtensionsMap[name] ? type.extensionASTNodes ? type.extensionASTNodes.concat(typeExtensionsMap[name]) : typeExtensionsMap[name] : type.extensionASTNodes; return new _type_definition__WEBPACK_IMPORTED_MODULE_10__["GraphQLInputObjectType"]({ name: name, description: type.description, fields: function fields() { return extendInputFieldMap(type); }, astNode: type.astNode, extensionASTNodes: extensionASTNodes }); } function extendInputFieldMap(type) { var newFieldMap = Object.create(null); var oldFieldMap = type.getFields(); var _arr = Object.keys(oldFieldMap); for (var _i2 = 0; _i2 < _arr.length; _i2++) { var _fieldName = _arr[_i2]; var _field = oldFieldMap[_fieldName]; newFieldMap[_fieldName] = { description: _field.description, type: extendType(_field.type), defaultValue: _field.defaultValue, astNode: _field.astNode }; } // If there are any extensions to the fields, apply those here. var extensions = typeExtensionsMap[type.name]; if (extensions) { var _iteratorNormalCompletion2 = true; var _didIteratorError2 = false; var _iteratorError2 = undefined; try { for (var _iterator2 = extensions[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { var extension = _step2.value; var _iteratorNormalCompletion3 = true; var _didIteratorError3 = false; var _iteratorError3 = undefined; try { for (var _iterator3 = extension.fields[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { var field = _step3.value; var fieldName = field.name.value; if (oldFieldMap[fieldName]) { throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_6__["GraphQLError"]("Field \"".concat(type.name, ".").concat(fieldName, "\" already exists in the ") + 'schema. It cannot also be defined in this type extension.', [field]); } newFieldMap[fieldName] = astBuilder.buildInputField(field); } } catch (err) { _didIteratorError3 = true; _iteratorError3 = err; } finally { try { if (!_iteratorNormalCompletion3 && _iterator3.return != null) { _iterator3.return(); } } finally { if (_didIteratorError3) { throw _iteratorError3; } } } } } catch (err) { _didIteratorError2 = true; _iteratorError2 = err; } finally { try { if (!_iteratorNormalCompletion2 && _iterator2.return != null) { _iterator2.return(); } } finally { if (_didIteratorError2) { throw _iteratorError2; } } } } return newFieldMap; } function extendEnumType(type) { var name = type.name; var extensionASTNodes = typeExtensionsMap[name] ? type.extensionASTNodes ? type.extensionASTNodes.concat(typeExtensionsMap[name]) : typeExtensionsMap[name] : type.extensionASTNodes; return new _type_definition__WEBPACK_IMPORTED_MODULE_10__["GraphQLEnumType"]({ name: name, description: type.description, values: extendValueMap(type), astNode: type.astNode, extensionASTNodes: extensionASTNodes }); } function extendValueMap(type) { var newValueMap = Object.create(null); var oldValueMap = Object(_jsutils_keyMap__WEBPACK_IMPORTED_MODULE_1__["default"])(type.getValues(), function (value) { return value.name; }); var _arr2 = Object.keys(oldValueMap); for (var _i3 = 0; _i3 < _arr2.length; _i3++) { var _valueName = _arr2[_i3]; var _value = oldValueMap[_valueName]; newValueMap[_valueName] = { name: _value.name, description: _value.description, value: _value.value, deprecationReason: _value.deprecationReason, astNode: _value.astNode }; } // If there are any extensions to the values, apply those here. var extensions = typeExtensionsMap[type.name]; if (extensions) { var _iteratorNormalCompletion4 = true; var _didIteratorError4 = false; var _iteratorError4 = undefined; try { for (var _iterator4 = extensions[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) { var extension = _step4.value; var _iteratorNormalCompletion5 = true; var _didIteratorError5 = false; var _iteratorError5 = undefined; try { for (var _iterator5 = extension.values[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) { var value = _step5.value; var valueName = value.name.value; if (oldValueMap[valueName]) { throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_6__["GraphQLError"]("Enum value \"".concat(type.name, ".").concat(valueName, "\" already exists in the ") + 'schema. It cannot also be defined in this type extension.', [value]); } newValueMap[valueName] = astBuilder.buildEnumValue(value); } } catch (err) { _didIteratorError5 = true; _iteratorError5 = err; } finally { try { if (!_iteratorNormalCompletion5 && _iterator5.return != null) { _iterator5.return(); } } finally { if (_didIteratorError5) { throw _iteratorError5; } } } } } catch (err) { _didIteratorError4 = true; _iteratorError4 = err; } finally { try { if (!_iteratorNormalCompletion4 && _iterator4.return != null) { _iterator4.return(); } } finally { if (_didIteratorError4) { throw _iteratorError4; } } } } return newValueMap; } function extendScalarType(type) { var name = type.name; var extensionASTNodes = typeExtensionsMap[name] ? type.extensionASTNodes ? type.extensionASTNodes.concat(typeExtensionsMap[name]) : typeExtensionsMap[name] : type.extensionASTNodes; return new _type_definition__WEBPACK_IMPORTED_MODULE_10__["GraphQLScalarType"]({ name: name, description: type.description, astNode: type.astNode, extensionASTNodes: extensionASTNodes, serialize: type.serialize, parseValue: type.parseValue, parseLiteral: type.parseLiteral }); } function extendObjectType(type) { var name = type.name; var extensionASTNodes = typeExtensionsMap[name] ? type.extensionASTNodes ? type.extensionASTNodes.concat(typeExtensionsMap[name]) : typeExtensionsMap[name] : type.extensionASTNodes; return new _type_definition__WEBPACK_IMPORTED_MODULE_10__["GraphQLObjectType"]({ name: name, description: type.description, interfaces: function interfaces() { return extendImplementedInterfaces(type); }, fields: function fields() { return extendFieldMap(type); }, astNode: type.astNode, extensionASTNodes: extensionASTNodes, isTypeOf: type.isTypeOf }); } function extendArgs(args) { return Object(_jsutils_keyValMap__WEBPACK_IMPORTED_MODULE_2__["default"])(args, function (arg) { return arg.name; }, function (arg) { return { type: extendType(arg.type), defaultValue: arg.defaultValue, description: arg.description, astNode: arg.astNode }; }); } function extendInterfaceType(type) { var name = type.name; var extensionASTNodes = typeExtensionsMap[name] ? type.extensionASTNodes ? type.extensionASTNodes.concat(typeExtensionsMap[name]) : typeExtensionsMap[name] : type.extensionASTNodes; return new _type_definition__WEBPACK_IMPORTED_MODULE_10__["GraphQLInterfaceType"]({ name: type.name, description: type.description, fields: function fields() { return extendFieldMap(type); }, astNode: type.astNode, extensionASTNodes: extensionASTNodes, resolveType: type.resolveType }); } function extendUnionType(type) { var name = type.name; var extensionASTNodes = typeExtensionsMap[name] ? type.extensionASTNodes ? type.extensionASTNodes.concat(typeExtensionsMap[name]) : typeExtensionsMap[name] : type.extensionASTNodes; return new _type_definition__WEBPACK_IMPORTED_MODULE_10__["GraphQLUnionType"]({ name: name, description: type.description, types: function types() { return extendPossibleTypes(type); }, astNode: type.astNode, resolveType: type.resolveType, extensionASTNodes: extensionASTNodes }); } function extendPossibleTypes(type) { var possibleTypes = type.getTypes().map(extendNamedType); // If there are any extensions to the union, apply those here. var extensions = typeExtensionsMap[type.name]; if (extensions) { var _iteratorNormalCompletion6 = true; var _didIteratorError6 = false; var _iteratorError6 = undefined; try { for (var _iterator6 = extensions[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) { var extension = _step6.value; var _iteratorNormalCompletion7 = true; var _didIteratorError7 = false; var _iteratorError7 = undefined; try { for (var _iterator7 = extension.types[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) { var namedType = _step7.value; // Note: While this could make early assertions to get the correctly // typed values, that would throw immediately while type system // validation with validateSchema() will produce more actionable results. possibleTypes.push(astBuilder.buildType(namedType)); } } catch (err) { _didIteratorError7 = true; _iteratorError7 = err; } finally { try { if (!_iteratorNormalCompletion7 && _iterator7.return != null) { _iterator7.return(); } } finally { if (_didIteratorError7) { throw _iteratorError7; } } } } } catch (err) { _didIteratorError6 = true; _iteratorError6 = err; } finally { try { if (!_iteratorNormalCompletion6 && _iterator6.return != null) { _iterator6.return(); } } finally { if (_didIteratorError6) { throw _iteratorError6; } } } } return possibleTypes; } function extendImplementedInterfaces(type) { var interfaces = type.getInterfaces().map(extendNamedType); // If there are any extensions to the interfaces, apply those here. var extensions = typeExtensionsMap[type.name]; if (extensions) { var _iteratorNormalCompletion8 = true; var _didIteratorError8 = false; var _iteratorError8 = undefined; try { for (var _iterator8 = extensions[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) { var extension = _step8.value; var _iteratorNormalCompletion9 = true; var _didIteratorError9 = false; var _iteratorError9 = undefined; try { for (var _iterator9 = extension.interfaces[Symbol.iterator](), _step9; !(_iteratorNormalCompletion9 = (_step9 = _iterator9.next()).done); _iteratorNormalCompletion9 = true) { var namedType = _step9.value; // Note: While this could make early assertions to get the correctly // typed values, that would throw immediately while type system // validation with validateSchema() will produce more actionable results. interfaces.push(astBuilder.buildType(namedType)); } } catch (err) { _didIteratorError9 = true; _iteratorError9 = err; } finally { try { if (!_iteratorNormalCompletion9 && _iterator9.return != null) { _iterator9.return(); } } finally { if (_didIteratorError9) { throw _iteratorError9; } } } } } catch (err) { _didIteratorError8 = true; _iteratorError8 = err; } finally { try { if (!_iteratorNormalCompletion8 && _iterator8.return != null) { _iterator8.return(); } } finally { if (_didIteratorError8) { throw _iteratorError8; } } } } return interfaces; } function extendFieldMap(type) { var newFieldMap = Object.create(null); var oldFieldMap = type.getFields(); var _arr3 = Object.keys(oldFieldMap); for (var _i4 = 0; _i4 < _arr3.length; _i4++) { var _fieldName2 = _arr3[_i4]; var _field2 = oldFieldMap[_fieldName2]; newFieldMap[_fieldName2] = { description: _field2.description, deprecationReason: _field2.deprecationReason, type: extendType(_field2.type), args: extendArgs(_field2.args), astNode: _field2.astNode, resolve: _field2.resolve }; } // If there are any extensions to the fields, apply those here. var extensions = typeExtensionsMap[type.name]; if (extensions) { var _iteratorNormalCompletion10 = true; var _didIteratorError10 = false; var _iteratorError10 = undefined; try { for (var _iterator10 = extensions[Symbol.iterator](), _step10; !(_iteratorNormalCompletion10 = (_step10 = _iterator10.next()).done); _iteratorNormalCompletion10 = true) { var extension = _step10.value; var _iteratorNormalCompletion11 = true; var _didIteratorError11 = false; var _iteratorError11 = undefined; try { for (var _iterator11 = extension.fields[Symbol.iterator](), _step11; !(_iteratorNormalCompletion11 = (_step11 = _iterator11.next()).done); _iteratorNormalCompletion11 = true) { var field = _step11.value; var fieldName = field.name.value; if (oldFieldMap[fieldName]) { throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_6__["GraphQLError"]("Field \"".concat(type.name, ".").concat(fieldName, "\" already exists in the ") + 'schema. It cannot also be defined in this type extension.', [field]); } newFieldMap[fieldName] = astBuilder.buildField(field); } } catch (err) { _didIteratorError11 = true; _iteratorError11 = err; } finally { try { if (!_iteratorNormalCompletion11 && _iterator11.return != null) { _iterator11.return(); } } finally { if (_didIteratorError11) { throw _iteratorError11; } } } } } catch (err) { _didIteratorError10 = true; _iteratorError10 = err; } finally { try { if (!_iteratorNormalCompletion10 && _iterator10.return != null) { _iterator10.return(); } } finally { if (_didIteratorError10) { throw _iteratorError10; } } } } return newFieldMap; } function extendType(typeDef) { if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["isListType"])(typeDef)) { return Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["GraphQLList"])(extendType(typeDef.ofType)); } if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["isNonNullType"])(typeDef)) { return Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["GraphQLNonNull"])(extendType(typeDef.ofType)); } return extendNamedType(typeDef); } } function checkExtensionNode(type, node) { switch (node.kind) { case _language_kinds__WEBPACK_IMPORTED_MODULE_12__["Kind"].OBJECT_TYPE_EXTENSION: if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["isObjectType"])(type)) { throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_6__["GraphQLError"]("Cannot extend non-object type \"".concat(type.name, "\"."), [node]); } break; case _language_kinds__WEBPACK_IMPORTED_MODULE_12__["Kind"].INTERFACE_TYPE_EXTENSION: if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["isInterfaceType"])(type)) { throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_6__["GraphQLError"]("Cannot extend non-interface type \"".concat(type.name, "\"."), [node]); } break; case _language_kinds__WEBPACK_IMPORTED_MODULE_12__["Kind"].ENUM_TYPE_EXTENSION: if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["isEnumType"])(type)) { throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_6__["GraphQLError"]("Cannot extend non-enum type \"".concat(type.name, "\"."), [node]); } break; case _language_kinds__WEBPACK_IMPORTED_MODULE_12__["Kind"].UNION_TYPE_EXTENSION: if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["isUnionType"])(type)) { throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_6__["GraphQLError"]("Cannot extend non-union type \"".concat(type.name, "\"."), [node]); } break; case _language_kinds__WEBPACK_IMPORTED_MODULE_12__["Kind"].INPUT_OBJECT_TYPE_EXTENSION: if (!Object(_type_definition__WEBPACK_IMPORTED_MODULE_10__["isInputObjectType"])(type)) { throw new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_6__["GraphQLError"]("Cannot extend non-input object type \"".concat(type.name, "\"."), [node]); } break; } } /***/ }), /***/ "cfWc": /*!***********************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/StartDocumentClassificationJobCommand.js ***! \***********************************************************************************************************/ /*! exports provided: StartDocumentClassificationJobCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartDocumentClassificationJobCommand", function() { return StartDocumentClassificationJobCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StartDocumentClassificationJobCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartDocumentClassificationJobCommand, _super); // Start section: command_properties // End section: command_properties function StartDocumentClassificationJobCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StartDocumentClassificationJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartDocumentClassificationJobRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartDocumentClassificationJobResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StartDocumentClassificationJobCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartDocumentClassificationJobCommand"])(input, context); }; StartDocumentClassificationJobCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartDocumentClassificationJobCommand"])(output, context); }; return StartDocumentClassificationJobCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StartDocumentClassificationJobCommand.js.map /***/ }), /***/ "cfc+": /*!******************************************************************************!*\ !*** ./node_modules/graphql/validation/rules/VariablesInAllowedPosition.mjs ***! \******************************************************************************/ /*! exports provided: badVarPosMessage, VariablesInAllowedPosition */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "badVarPosMessage", function() { return badVarPosMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VariablesInAllowedPosition", function() { return VariablesInAllowedPosition; }); /* harmony import */ var _jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../jsutils/inspect */ "rWdj"); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /* harmony import */ var _language_kinds__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../language/kinds */ "/jXB"); /* harmony import */ var _type_definition__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../type/definition */ "axIb"); /* harmony import */ var _utilities_typeComparators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utilities/typeComparators */ "sJV+"); /* harmony import */ var _utilities_typeFromAST__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utilities/typeFromAST */ "umOc"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function badVarPosMessage(varName, varType, expectedType) { return "Variable \"$".concat(varName, "\" of type \"").concat(varType, "\" used in ") + "position expecting type \"".concat(expectedType, "\"."); } /** * Variables passed to field arguments conform to type */ function VariablesInAllowedPosition(context) { var varDefMap = Object.create(null); return { OperationDefinition: { enter: function enter() { varDefMap = Object.create(null); }, leave: function leave(operation) { var usages = context.getRecursiveVariableUsages(operation); var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = usages[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var _ref2 = _step.value; var node = _ref2.node, type = _ref2.type, defaultValue = _ref2.defaultValue; var varName = node.name.value; var varDef = varDefMap[varName]; if (varDef && type) { // A var type is allowed if it is the same or more strict (e.g. is // a subtype of) than the expected type. It can be more strict if // the variable type is non-null when the expected type is nullable. // If both are list types, the variable item type can be more strict // than the expected item type (contravariant). var schema = context.getSchema(); var varType = Object(_utilities_typeFromAST__WEBPACK_IMPORTED_MODULE_5__["typeFromAST"])(schema, varDef.type); if (varType && !allowedVariableUsage(schema, varType, varDef.defaultValue, type, defaultValue)) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_1__["GraphQLError"](badVarPosMessage(varName, Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(varType), Object(_jsutils_inspect__WEBPACK_IMPORTED_MODULE_0__["default"])(type)), [varDef, node])); } } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } } }, VariableDefinition: function VariableDefinition(node) { varDefMap[node.variable.name.value] = node; } }; } /** * Returns true if the variable is allowed in the location it was found, * which includes considering if default values exist for either the variable * or the location at which it is located. */ function allowedVariableUsage(schema, varType, varDefaultValue, locationType, locationDefaultValue) { if (Object(_type_definition__WEBPACK_IMPORTED_MODULE_3__["isNonNullType"])(locationType) && !Object(_type_definition__WEBPACK_IMPORTED_MODULE_3__["isNonNullType"])(varType)) { var hasNonNullVariableDefaultValue = varDefaultValue && varDefaultValue.kind !== _language_kinds__WEBPACK_IMPORTED_MODULE_2__["Kind"].NULL; var hasLocationDefaultValue = locationDefaultValue !== undefined; if (!hasNonNullVariableDefaultValue && !hasLocationDefaultValue) { return false; } var nullableLocationType = locationType.ofType; return Object(_utilities_typeComparators__WEBPACK_IMPORTED_MODULE_4__["isTypeSubTypeOf"])(schema, varType, nullableLocationType); } return Object(_utilities_typeComparators__WEBPACK_IMPORTED_MODULE_4__["isTypeSubTypeOf"])(schema, varType, locationType); } /***/ }), /***/ "chq2": /*!***********************************************************!*\ !*** ./node_modules/graphql/utilities/isValidJSValue.mjs ***! \***********************************************************/ /*! exports provided: isValidJSValue */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidJSValue", function() { return isValidJSValue; }); /* harmony import */ var _coerceValue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./coerceValue */ "1MZE"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Deprecated. Use coerceValue() directly for richer information. * * This function will be removed in v15 */ function isValidJSValue(value, type) { var errors = Object(_coerceValue__WEBPACK_IMPORTED_MODULE_0__["coerceValue"])(value, type).errors; return errors ? errors.map(function (error) { return error.message; }) : []; } /***/ }), /***/ "chvA": /*!**************************************************************************************************!*\ !*** ./node_modules/@aws-amplify/interactions/lib-esm/Providers/AWSLexProviderHelper/convert.js ***! \**************************************************************************************************/ /*! exports provided: convert */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convert", function() { return convert; }); var convert = function (stream) { if (stream instanceof Blob || stream instanceof ReadableStream) { return new Response(stream) .arrayBuffer() .then(function (buffer) { return new Uint8Array(buffer); }); } else { throw new Error('Readable is not supported.'); } }; //# sourceMappingURL=convert.js.map /***/ }), /***/ "ck+9": /*!*****************************************************************!*\ !*** ./node_modules/@aws-amplify/interactions/lib-esm/index.js ***! \*****************************************************************/ /*! exports provided: default, AWSLexProvider, Interactions */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Interactions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Interactions */ "tZc9"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Interactions", function() { return _Interactions__WEBPACK_IMPORTED_MODULE_0__["Interactions"]; }); /* harmony import */ var _Providers_AWSLexProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Providers/AWSLexProvider */ "GLgX"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSLexProvider", function() { return _Providers_AWSLexProvider__WEBPACK_IMPORTED_MODULE_1__["AWSLexProvider"]; }); /* * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (_Interactions__WEBPACK_IMPORTED_MODULE_0__["Interactions"]); //# sourceMappingURL=index.js.map /***/ }), /***/ "ckW+": /*!*************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/StartPersonTrackingCommand.js ***! \*************************************************************************************************/ /*! exports provided: StartPersonTrackingCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartPersonTrackingCommand", function() { return StartPersonTrackingCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StartPersonTrackingCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartPersonTrackingCommand, _super); // Start section: command_properties // End section: command_properties function StartPersonTrackingCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StartPersonTrackingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartPersonTrackingRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartPersonTrackingResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StartPersonTrackingCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartPersonTrackingCommand"])(input, context); }; StartPersonTrackingCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartPersonTrackingCommand"])(output, context); }; return StartPersonTrackingCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StartPersonTrackingCommand.js.map /***/ }), /***/ "coGc": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/delayWhen.js ***! \********************************************************************/ /*! exports provided: delayWhen */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "delayWhen", function() { return delayWhen; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE"); /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj"); function delayWhen(delayDurationSelector, subscriptionDelay) { if (subscriptionDelay) { return (source) => new SubscriptionDelayObservable(source, subscriptionDelay) .lift(new DelayWhenOperator(delayDurationSelector)); } return (source) => source.lift(new DelayWhenOperator(delayDurationSelector)); } class DelayWhenOperator { constructor(delayDurationSelector) { this.delayDurationSelector = delayDurationSelector; } call(subscriber, source) { return source.subscribe(new DelayWhenSubscriber(subscriber, this.delayDurationSelector)); } } class DelayWhenSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"] { constructor(destination, delayDurationSelector) { super(destination); this.delayDurationSelector = delayDurationSelector; this.completed = false; this.delayNotifierSubscriptions = []; this.index = 0; } notifyNext(outerValue, _innerValue, _outerIndex, _innerIndex, innerSub) { this.destination.next(outerValue); this.removeSubscription(innerSub); this.tryComplete(); } notifyError(error, innerSub) { this._error(error); } notifyComplete(innerSub) { const value = this.removeSubscription(innerSub); if (value) { this.destination.next(value); } this.tryComplete(); } _next(value) { const index = this.index++; try { const delayNotifier = this.delayDurationSelector(value, index); if (delayNotifier) { this.tryDelay(delayNotifier, value); } } catch (err) { this.destination.error(err); } } _complete() { this.completed = true; this.tryComplete(); this.unsubscribe(); } removeSubscription(subscription) { subscription.unsubscribe(); const subscriptionIdx = this.delayNotifierSubscriptions.indexOf(subscription); if (subscriptionIdx !== -1) { this.delayNotifierSubscriptions.splice(subscriptionIdx, 1); } return subscription.outerValue; } tryDelay(delayNotifier, value) { const notifierSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__["subscribeToResult"])(this, delayNotifier, value); if (notifierSubscription && !notifierSubscription.closed) { const destination = this.destination; destination.add(notifierSubscription); this.delayNotifierSubscriptions.push(notifierSubscription); } } tryComplete() { if (this.completed && this.delayNotifierSubscriptions.length === 0) { this.destination.complete(); } } } class SubscriptionDelayObservable extends _Observable__WEBPACK_IMPORTED_MODULE_1__["Observable"] { constructor(source, subscriptionDelay) { super(); this.source = source; this.subscriptionDelay = subscriptionDelay; } _subscribe(subscriber) { this.subscriptionDelay.subscribe(new SubscriptionDelaySubscriber(subscriber, this.source)); } } class SubscriptionDelaySubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(parent, source) { super(); this.parent = parent; this.source = source; this.sourceSubscribed = false; } _next(unused) { this.subscribeToSource(); } _error(err) { this.unsubscribe(); this.parent.error(err); } _complete() { this.unsubscribe(); this.subscribeToSource(); } subscribeToSource() { if (!this.sourceSubscribed) { this.sourceSubscribed = true; this.unsubscribe(); this.source.subscribe(this.parent); } } } //# sourceMappingURL=delayWhen.js.map /***/ }), /***/ "cp0P": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/observable/forkJoin.js ***! \********************************************************************/ /*! exports provided: forkJoin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "forkJoin", function() { return forkJoin; }); /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC"); /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isArray */ "DH7j"); /* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operators/map */ "lJxs"); /* harmony import */ var _util_isObject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/isObject */ "XoHu"); /* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./from */ "Cfvw"); function forkJoin(...sources) { if (sources.length === 1) { const first = sources[0]; if (Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(first)) { return forkJoinInternal(first, null); } if (Object(_util_isObject__WEBPACK_IMPORTED_MODULE_3__["isObject"])(first) && Object.getPrototypeOf(first) === Object.prototype) { const keys = Object.keys(first); return forkJoinInternal(keys.map(key => first[key]), keys); } } if (typeof sources[sources.length - 1] === 'function') { const resultSelector = sources.pop(); sources = (sources.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(sources[0])) ? sources[0] : sources; return forkJoinInternal(sources, null).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_2__["map"])((args) => resultSelector(...args))); } return forkJoinInternal(sources, null); } function forkJoinInternal(sources, keys) { return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => { const len = sources.length; if (len === 0) { subscriber.complete(); return; } const values = new Array(len); let completed = 0; let emitted = 0; for (let i = 0; i < len; i++) { const source = Object(_from__WEBPACK_IMPORTED_MODULE_4__["from"])(sources[i]); let hasValue = false; subscriber.add(source.subscribe({ next: value => { if (!hasValue) { hasValue = true; emitted++; } values[i] = value; }, error: err => subscriber.error(err), complete: () => { completed++; if (completed === len || !hasValue) { if (emitted === len) { subscriber.next(keys ? keys.reduce((result, key, i) => (result[key] = values[i], result), {}) : values); } subscriber.complete(); } } })); } }); } //# sourceMappingURL=forkJoin.js.map /***/ }), /***/ "crJd": /*!*****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/DetectSyntaxCommand.js ***! \*****************************************************************************************/ /*! exports provided: DetectSyntaxCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetectSyntaxCommand", function() { return DetectSyntaxCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DetectSyntaxCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DetectSyntaxCommand, _super); // Start section: command_properties // End section: command_properties function DetectSyntaxCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DetectSyntaxCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DetectSyntaxRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DetectSyntaxResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DetectSyntaxCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DetectSyntaxCommand"])(input, context); }; DetectSyntaxCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DetectSyntaxCommand"])(output, context); }; return DetectSyntaxCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DetectSyntaxCommand.js.map /***/ }), /***/ "csDh": /*!*********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-translate/dist/es/runtimeConfig.browser.js ***! \*********************************************************************************/ /*! exports provided: ClientDefaultValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientDefaultValues", function() { return ClientDefaultValues; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./package.json */ "Mx8r"); var _package_json__WEBPACK_IMPORTED_MODULE_1___namespace = /*#__PURE__*/__webpack_require__.t(/*! ./package.json */ "Mx8r", 1); /* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-crypto/sha256-browser */ "viNG"); /* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/fetch-http-handler */ "LUnR"); /* harmony import */ var _aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/invalid-dependency */ "J2eM"); /* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "UMev"); /* harmony import */ var _aws_sdk_url_parser_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/url-parser-browser */ "c14h"); /* harmony import */ var _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/util-base64-browser */ "S3Uu"); /* harmony import */ var _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/util-body-length-browser */ "N9sX"); /* harmony import */ var _aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/util-user-agent-browser */ "wU8f"); /* harmony import */ var _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "kg8h"); /* harmony import */ var _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./runtimeConfig.shared */ "WOLP"); var ClientDefaultValues = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__["ClientSharedValues"]), { runtime: "browser", base64Decoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__["fromBase64"], base64Encoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__["toBase64"], bodyLengthChecker: _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_8__["calculateBodyLength"], credentialDefaultProvider: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__["invalidFunction"])("Credential is missing"), defaultUserAgent: Object(_aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_9__["defaultUserAgent"])(_package_json__WEBPACK_IMPORTED_MODULE_1__["name"], _package_json__WEBPACK_IMPORTED_MODULE_1__["version"]), maxAttempts: _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__["DEFAULT_MAX_ATTEMPTS"], region: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__["invalidFunction"])("Region is missing"), requestHandler: new _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["FetchHttpHandler"](), sha256: _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__["Sha256"], streamCollector: _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["streamCollector"], urlParser: _aws_sdk_url_parser_browser__WEBPACK_IMPORTED_MODULE_6__["parseUrl"], utf8Decoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__["fromUtf8"], utf8Encoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__["toUtf8"] }); //# sourceMappingURL=runtimeConfig.browser.js.map /***/ }), /***/ "cx9U": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/single.js ***! \*****************************************************************/ /*! exports provided: single */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "single", function() { return single; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); /* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/EmptyError */ "sVev"); function single(predicate) { return (source) => source.lift(new SingleOperator(predicate, source)); } class SingleOperator { constructor(predicate, source) { this.predicate = predicate; this.source = source; } call(subscriber, source) { return source.subscribe(new SingleSubscriber(subscriber, this.predicate, this.source)); } } class SingleSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination, predicate, source) { super(destination); this.predicate = predicate; this.source = source; this.seenValue = false; this.index = 0; } applySingleValue(value) { if (this.seenValue) { this.destination.error('Sequence contains more than one element'); } else { this.seenValue = true; this.singleValue = value; } } _next(value) { const index = this.index++; if (this.predicate) { this.tryNext(value, index); } else { this.applySingleValue(value); } } tryNext(value, index) { try { if (this.predicate(value, index, this.source)) { this.applySingleValue(value); } } catch (err) { this.destination.error(err); } } _complete() { const destination = this.destination; if (this.index > 0) { destination.next(this.seenValue ? this.singleValue : undefined); destination.complete(); } else { destination.error(new _util_EmptyError__WEBPACK_IMPORTED_MODULE_1__["EmptyError"]); } } } //# sourceMappingURL=single.js.map /***/ }), /***/ "d0mk": /*!**************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/pagination/GetTextDetectionPaginator.js ***! \**************************************************************************************************/ /*! exports provided: getTextDetectionPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTextDetectionPaginate", function() { return getTextDetectionPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Rekognition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Rekognition */ "MjkZ"); /* harmony import */ var _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../RekognitionClient */ "YOij"); /* harmony import */ var _commands_GetTextDetectionCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/GetTextDetectionCommand */ "pfJv"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_GetTextDetectionCommand__WEBPACK_IMPORTED_MODULE_3__["GetTextDetectionCommand"].bind.apply(_commands_GetTextDetectionCommand__WEBPACK_IMPORTED_MODULE_3__["GetTextDetectionCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.getTextDetection.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function getTextDetectionPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function getTextDetectionPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Rekognition__WEBPACK_IMPORTED_MODULE_1__["Rekognition"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__["RekognitionClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Rekognition | RekognitionClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=GetTextDetectionPaginator.js.map /***/ }), /***/ "d3V/": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-polly/dist/es/commands/GetLexiconCommand.js ***! \**********************************************************************************/ /*! exports provided: GetLexiconCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetLexiconCommand", function() { return GetLexiconCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "uUVK"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "h3LU"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetLexiconCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetLexiconCommand, _super); // Start section: command_properties // End section: command_properties function GetLexiconCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetLexiconCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetLexiconInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetLexiconOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetLexiconCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetLexiconCommand"])(input, context); }; GetLexiconCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetLexiconCommand"])(output, context); }; return GetLexiconCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetLexiconCommand.js.map /***/ }), /***/ "dAmv": /*!*******************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/pagination/Interfaces.js ***! \*******************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Interfaces.js.map /***/ }), /***/ "dD9F": /*!**************************************************!*\ !*** ./node_modules/lodash/_baseIsTypedArray.js ***! \**************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "NykK"), isLength = __webpack_require__(/*! ./isLength */ "shjB"), isObjectLike = __webpack_require__(/*! ./isObjectLike */ "ExA7"); /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values of typed arrays. */ var typedArrayTags = {}; typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; /** * The base implementation of `_.isTypedArray` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. */ function baseIsTypedArray(value) { return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; } module.exports = baseIsTypedArray; /***/ }), /***/ "dFEU": /*!*********************************************************************!*\ !*** ./node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js ***! \*********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Sha256 = void 0; var isEmptyData_1 = __webpack_require__(/*! ./isEmptyData */ "kQNw"); var constants_1 = __webpack_require__(/*! ./constants */ "p72H"); var util_utf8_browser_1 = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "XWO8"); var util_locate_window_1 = __webpack_require__(/*! @aws-sdk/util-locate-window */ "tlIM"); var Sha256 = /** @class */ (function () { function Sha256(secret) { if (secret) { this.operation = getKeyPromise(secret).then(function (keyData) { return util_locate_window_1.locateWindow().msCrypto.subtle.sign(constants_1.SHA_256_HMAC_ALGO, keyData); }); this.operation.catch(function () { }); } else { this.operation = Promise.resolve(util_locate_window_1.locateWindow().msCrypto.subtle.digest("SHA-256")); } } Sha256.prototype.update = function (toHash) { var _this = this; if (isEmptyData_1.isEmptyData(toHash)) { return; } this.operation = this.operation.then(function (operation) { operation.onerror = function () { _this.operation = Promise.reject(new Error("Error encountered updating hash")); }; operation.process(toArrayBufferView(toHash)); return operation; }); this.operation.catch(function () { }); }; Sha256.prototype.digest = function () { return this.operation.then(function (operation) { return new Promise(function (resolve, reject) { operation.onerror = function () { reject("Error encountered finalizing hash"); }; operation.oncomplete = function () { if (operation.result) { resolve(new Uint8Array(operation.result)); } reject("Error encountered finalizing hash"); }; operation.finish(); }); }); }; return Sha256; }()); exports.Sha256 = Sha256; function getKeyPromise(secret) { return new Promise(function (resolve, reject) { var keyOperation = util_locate_window_1.locateWindow().msCrypto.subtle.importKey("raw", toArrayBufferView(secret), constants_1.SHA_256_HMAC_ALGO, false, ["sign"]); keyOperation.oncomplete = function () { if (keyOperation.result) { resolve(keyOperation.result); } reject("ImportKey completed without importing key."); }; keyOperation.onerror = function () { reject("ImportKey failed to import key."); }; }); } function toArrayBufferView(data) { if (typeof data === "string") { return util_utf8_browser_1.fromUtf8(data); } if (ArrayBuffer.isView(data)) { return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); } return new Uint8Array(data); } //# sourceMappingURL=ie11Sha256.js.map /***/ }), /***/ "dINq": /*!********************************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/ClientDevice/browser.js ***! \********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); var Logger_1 = __webpack_require__(/*! ../Logger */ "t5A6"); var logger = new Logger_1.ConsoleLogger('ClientDevice_Browser'); function clientInfo() { if (typeof window === 'undefined') { return {}; } return browserClientInfo(); } exports.clientInfo = clientInfo; function browserClientInfo() { if (typeof window === 'undefined') { logger.warn('No window object available to get browser client info'); return {}; } var nav = window.navigator; if (!nav) { logger.warn('No navigator object available to get browser client info'); return {}; } var platform = nav.platform, product = nav.product, vendor = nav.vendor, userAgent = nav.userAgent, language = nav.language; var type = browserType(userAgent); var timezone = browserTimezone(); return { platform: platform, make: product || vendor, model: type.type, version: type.version, appVersion: [type.type, type.version].join('/'), language: language, timezone: timezone, }; } function dimension() { if (typeof window === 'undefined') { logger.warn('No window object available to get browser client info'); return { width: 320, height: 320 }; } return { width: window.innerWidth, height: window.innerHeight, }; } exports.dimension = dimension; function browserTimezone() { var tzMatch = /\(([A-Za-z\s].*)\)/.exec(new Date().toString()); return tzMatch ? tzMatch[1] || '' : ''; } function browserType(userAgent) { var operaMatch = /.+(Opera[\s[A-Z]*|OPR[\sA-Z]*)\/([0-9\.]+).*/i.exec(userAgent); if (operaMatch) { return { type: operaMatch[1], version: operaMatch[2] }; } var ieMatch = /.+(Trident|Edge)\/([0-9\.]+).*/i.exec(userAgent); if (ieMatch) { return { type: ieMatch[1], version: ieMatch[2] }; } var cfMatch = /.+(Chrome|Firefox|FxiOS)\/([0-9\.]+).*/i.exec(userAgent); if (cfMatch) { return { type: cfMatch[1], version: cfMatch[2] }; } var sMatch = /.+(Safari)\/([0-9\.]+).*/i.exec(userAgent); if (sMatch) { return { type: sMatch[1], version: sMatch[2] }; } var awkMatch = /.+(AppleWebKit)\/([0-9\.]+).*/i.exec(userAgent); if (awkMatch) { return { type: awkMatch[1], version: awkMatch[2] }; } var anyMatch = /.*([A-Z]+)\/([0-9\.]+).*/i.exec(userAgent); if (anyMatch) { return { type: anyMatch[1], version: anyMatch[2] }; } return { type: '', version: '' }; } //# sourceMappingURL=browser.js.map /***/ }), /***/ "dJY3": /*!*************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/GetBucketWebsiteCommand.js ***! \*************************************************************************************/ /*! exports provided: GetBucketWebsiteCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBucketWebsiteCommand", function() { return GetBucketWebsiteCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetBucketWebsiteCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetBucketWebsiteCommand, _super); // Start section: command_properties // End section: command_properties function GetBucketWebsiteCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetBucketWebsiteCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketWebsiteRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetBucketWebsiteOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetBucketWebsiteCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlGetBucketWebsiteCommand"])(input, context); }; GetBucketWebsiteCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlGetBucketWebsiteCommand"])(output, context); }; return GetBucketWebsiteCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=GetBucketWebsiteCommand.js.map /***/ }), /***/ "dJlu": /*!*******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetUserEndpointsCommand.js ***! \*******************************************************************************************/ /*! exports provided: GetUserEndpointsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsCommand", function() { return GetUserEndpointsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetUserEndpointsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetUserEndpointsCommand, _super); // Start section: command_properties // End section: command_properties function GetUserEndpointsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetUserEndpointsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetUserEndpointsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetUserEndpointsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetUserEndpointsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetUserEndpointsCommand"])(input, context); }; GetUserEndpointsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetUserEndpointsCommand"])(output, context); }; return GetUserEndpointsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetUserEndpointsCommand.js.map /***/ }), /***/ "dQau": /*!***************************************************!*\ !*** ./node_modules/graphql/language/printer.mjs ***! \***************************************************/ /*! exports provided: print */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "print", function() { return print; }); /* harmony import */ var _visitor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./visitor */ "L2ys"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * Converts an AST into a string, using one set of reasonable * formatting rules. */ function print(ast) { return Object(_visitor__WEBPACK_IMPORTED_MODULE_0__["visit"])(ast, { leave: printDocASTReducer }); } var printDocASTReducer = { Name: function Name(node) { return node.value; }, Variable: function Variable(node) { return '$' + node.name; }, // Document Document: function Document(node) { return join(node.definitions, '\n\n') + '\n'; }, OperationDefinition: function OperationDefinition(node) { var op = node.operation; var name = node.name; var varDefs = wrap('(', join(node.variableDefinitions, ', '), ')'); var directives = join(node.directives, ' '); var selectionSet = node.selectionSet; // Anonymous queries with no directives or variable definitions can use // the query short form. return !name && !directives && !varDefs && op === 'query' ? selectionSet : join([op, join([name, varDefs]), directives, selectionSet], ' '); }, VariableDefinition: function VariableDefinition(_ref) { var variable = _ref.variable, type = _ref.type, defaultValue = _ref.defaultValue, directives = _ref.directives; return variable + ': ' + type + wrap(' = ', defaultValue) + wrap(' ', join(directives, ' ')); }, SelectionSet: function SelectionSet(_ref2) { var selections = _ref2.selections; return block(selections); }, Field: function Field(_ref3) { var alias = _ref3.alias, name = _ref3.name, args = _ref3.arguments, directives = _ref3.directives, selectionSet = _ref3.selectionSet; return join([wrap('', alias, ': ') + name + wrap('(', join(args, ', '), ')'), join(directives, ' '), selectionSet], ' '); }, Argument: function Argument(_ref4) { var name = _ref4.name, value = _ref4.value; return name + ': ' + value; }, // Fragments FragmentSpread: function FragmentSpread(_ref5) { var name = _ref5.name, directives = _ref5.directives; return '...' + name + wrap(' ', join(directives, ' ')); }, InlineFragment: function InlineFragment(_ref6) { var typeCondition = _ref6.typeCondition, directives = _ref6.directives, selectionSet = _ref6.selectionSet; return join(['...', wrap('on ', typeCondition), join(directives, ' '), selectionSet], ' '); }, FragmentDefinition: function FragmentDefinition(_ref7) { var name = _ref7.name, typeCondition = _ref7.typeCondition, variableDefinitions = _ref7.variableDefinitions, directives = _ref7.directives, selectionSet = _ref7.selectionSet; return (// Note: fragment variable definitions are experimental and may be changed // or removed in the future. "fragment ".concat(name).concat(wrap('(', join(variableDefinitions, ', '), ')'), " ") + "on ".concat(typeCondition, " ").concat(wrap('', join(directives, ' '), ' ')) + selectionSet ); }, // Value IntValue: function IntValue(_ref8) { var value = _ref8.value; return value; }, FloatValue: function FloatValue(_ref9) { var value = _ref9.value; return value; }, StringValue: function StringValue(_ref10, key) { var value = _ref10.value, isBlockString = _ref10.block; return isBlockString ? printBlockString(value, key === 'description') : JSON.stringify(value); }, BooleanValue: function BooleanValue(_ref11) { var value = _ref11.value; return value ? 'true' : 'false'; }, NullValue: function NullValue() { return 'null'; }, EnumValue: function EnumValue(_ref12) { var value = _ref12.value; return value; }, ListValue: function ListValue(_ref13) { var values = _ref13.values; return '[' + join(values, ', ') + ']'; }, ObjectValue: function ObjectValue(_ref14) { var fields = _ref14.fields; return '{' + join(fields, ', ') + '}'; }, ObjectField: function ObjectField(_ref15) { var name = _ref15.name, value = _ref15.value; return name + ': ' + value; }, // Directive Directive: function Directive(_ref16) { var name = _ref16.name, args = _ref16.arguments; return '@' + name + wrap('(', join(args, ', '), ')'); }, // Type NamedType: function NamedType(_ref17) { var name = _ref17.name; return name; }, ListType: function ListType(_ref18) { var type = _ref18.type; return '[' + type + ']'; }, NonNullType: function NonNullType(_ref19) { var type = _ref19.type; return type + '!'; }, // Type System Definitions SchemaDefinition: function SchemaDefinition(_ref20) { var directives = _ref20.directives, operationTypes = _ref20.operationTypes; return join(['schema', join(directives, ' '), block(operationTypes)], ' '); }, OperationTypeDefinition: function OperationTypeDefinition(_ref21) { var operation = _ref21.operation, type = _ref21.type; return operation + ': ' + type; }, ScalarTypeDefinition: addDescription(function (_ref22) { var name = _ref22.name, directives = _ref22.directives; return join(['scalar', name, join(directives, ' ')], ' '); }), ObjectTypeDefinition: addDescription(function (_ref23) { var name = _ref23.name, interfaces = _ref23.interfaces, directives = _ref23.directives, fields = _ref23.fields; return join(['type', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' '); }), FieldDefinition: addDescription(function (_ref24) { var name = _ref24.name, args = _ref24.arguments, type = _ref24.type, directives = _ref24.directives; return name + (args.every(function (arg) { return arg.indexOf('\n') === -1; }) ? wrap('(', join(args, ', '), ')') : wrap('(\n', indent(join(args, '\n')), '\n)')) + ': ' + type + wrap(' ', join(directives, ' ')); }), InputValueDefinition: addDescription(function (_ref25) { var name = _ref25.name, type = _ref25.type, defaultValue = _ref25.defaultValue, directives = _ref25.directives; return join([name + ': ' + type, wrap('= ', defaultValue), join(directives, ' ')], ' '); }), InterfaceTypeDefinition: addDescription(function (_ref26) { var name = _ref26.name, directives = _ref26.directives, fields = _ref26.fields; return join(['interface', name, join(directives, ' '), block(fields)], ' '); }), UnionTypeDefinition: addDescription(function (_ref27) { var name = _ref27.name, directives = _ref27.directives, types = _ref27.types; return join(['union', name, join(directives, ' '), types && types.length !== 0 ? '= ' + join(types, ' | ') : ''], ' '); }), EnumTypeDefinition: addDescription(function (_ref28) { var name = _ref28.name, directives = _ref28.directives, values = _ref28.values; return join(['enum', name, join(directives, ' '), block(values)], ' '); }), EnumValueDefinition: addDescription(function (_ref29) { var name = _ref29.name, directives = _ref29.directives; return join([name, join(directives, ' ')], ' '); }), InputObjectTypeDefinition: addDescription(function (_ref30) { var name = _ref30.name, directives = _ref30.directives, fields = _ref30.fields; return join(['input', name, join(directives, ' '), block(fields)], ' '); }), DirectiveDefinition: addDescription(function (_ref31) { var name = _ref31.name, args = _ref31.arguments, locations = _ref31.locations; return 'directive @' + name + (args.every(function (arg) { return arg.indexOf('\n') === -1; }) ? wrap('(', join(args, ', '), ')') : wrap('(\n', indent(join(args, '\n')), '\n)')) + ' on ' + join(locations, ' | '); }), SchemaExtension: function SchemaExtension(_ref32) { var directives = _ref32.directives, operationTypes = _ref32.operationTypes; return join(['extend schema', join(directives, ' '), block(operationTypes)], ' '); }, ScalarTypeExtension: function ScalarTypeExtension(_ref33) { var name = _ref33.name, directives = _ref33.directives; return join(['extend scalar', name, join(directives, ' ')], ' '); }, ObjectTypeExtension: function ObjectTypeExtension(_ref34) { var name = _ref34.name, interfaces = _ref34.interfaces, directives = _ref34.directives, fields = _ref34.fields; return join(['extend type', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' '); }, InterfaceTypeExtension: function InterfaceTypeExtension(_ref35) { var name = _ref35.name, directives = _ref35.directives, fields = _ref35.fields; return join(['extend interface', name, join(directives, ' '), block(fields)], ' '); }, UnionTypeExtension: function UnionTypeExtension(_ref36) { var name = _ref36.name, directives = _ref36.directives, types = _ref36.types; return join(['extend union', name, join(directives, ' '), types && types.length !== 0 ? '= ' + join(types, ' | ') : ''], ' '); }, EnumTypeExtension: function EnumTypeExtension(_ref37) { var name = _ref37.name, directives = _ref37.directives, values = _ref37.values; return join(['extend enum', name, join(directives, ' '), block(values)], ' '); }, InputObjectTypeExtension: function InputObjectTypeExtension(_ref38) { var name = _ref38.name, directives = _ref38.directives, fields = _ref38.fields; return join(['extend input', name, join(directives, ' '), block(fields)], ' '); } }; function addDescription(cb) { return function (node) { return join([node.description, cb(node)], '\n'); }; } /** * Given maybeArray, print an empty string if it is null or empty, otherwise * print all items together separated by separator if provided */ function join(maybeArray, separator) { return maybeArray ? maybeArray.filter(function (x) { return x; }).join(separator || '') : ''; } /** * Given array, print each item on its own line, wrapped in an * indented "{ }" block. */ function block(array) { return array && array.length !== 0 ? '{\n' + indent(join(array, '\n')) + '\n}' : ''; } /** * If maybeString is not null or empty, then wrap with start and end, otherwise * print an empty string. */ function wrap(start, maybeString, end) { return maybeString ? start + maybeString + (end || '') : ''; } function indent(maybeString) { return maybeString && ' ' + maybeString.replace(/\n/g, '\n '); } /** * Print a block string in the indented block form by adding a leading and * trailing blank line. However, if a block string starts with whitespace and is * a single-line, adding a leading blank line would strip that whitespace. */ function printBlockString(value, isDescription) { var escaped = value.replace(/"""/g, '\\"""'); return (value[0] === ' ' || value[0] === '\t') && value.indexOf('\n') === -1 ? "\"\"\"".concat(escaped.replace(/"$/, '"\n'), "\"\"\"") : "\"\"\"\n".concat(isDescription ? escaped : indent(escaped), "\n\"\"\""); } /***/ }), /***/ "dTNM": /*!*******************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/RemoveAttributesCommand.js ***! \*******************************************************************************************/ /*! exports provided: RemoveAttributesCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesCommand", function() { return RemoveAttributesCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var RemoveAttributesCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RemoveAttributesCommand, _super); // Start section: command_properties // End section: command_properties function RemoveAttributesCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } RemoveAttributesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["RemoveAttributesRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["RemoveAttributesResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; RemoveAttributesCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1RemoveAttributesCommand"])(input, context); }; RemoveAttributesCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1RemoveAttributesCommand"])(output, context); }; return RemoveAttributesCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=RemoveAttributesCommand.js.map /***/ }), /***/ "dTWp": /*!********************************************************************!*\ !*** ./node_modules/@aws-amplify/cache/lib-esm/Utils/CacheList.js ***! \********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ var __values = (undefined && undefined.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var DoubleLinkedNode = /** @class */ (function () { function DoubleLinkedNode(keyVal) { this.key = keyVal ? keyVal : ''; this.prevNode = null; this.nextNode = null; } return DoubleLinkedNode; }()); /** * double linked list plus a hash table inside * each key in the cache stored as a node in the list * recently visited node will be rotated to the head * so the Last Recently Visited node will be at the tail * * @member head - dummy head of the linked list * @member tail - dummy tail of the linked list * @member hashtable - the hashtable which maps cache key to list node * @member length - length of the list */ var CacheList = /** @class */ (function () { /** * initialization */ function CacheList() { this.head = new DoubleLinkedNode(); this.tail = new DoubleLinkedNode(); this.hashtable = {}; this.length = 0; this.head.nextNode = this.tail; this.tail.prevNode = this.head; } /** * insert node to the head of the list * * @param node */ CacheList.prototype.insertNodeToHead = function (node) { var tmp = this.head.nextNode; this.head.nextNode = node; node.nextNode = tmp; node.prevNode = this.head; tmp.prevNode = node; this.length = this.length + 1; }; /** * remove node * * @param node */ CacheList.prototype.removeNode = function (node) { node.prevNode.nextNode = node.nextNode; node.nextNode.prevNode = node.prevNode; node.prevNode = null; node.nextNode = null; this.length = this.length - 1; }; /** * @return true if list is empty */ CacheList.prototype.isEmpty = function () { return this.length === 0; }; /** * refresh node so it is rotated to the head * * @param key - key of the node */ CacheList.prototype.refresh = function (key) { var node = this.hashtable[key]; this.removeNode(node); this.insertNodeToHead(node); }; /** * insert new node to the head and add it in the hashtable * * @param key - the key of the node */ CacheList.prototype.insertItem = function (key) { var node = new DoubleLinkedNode(key); this.hashtable[key] = node; this.insertNodeToHead(node); }; /** * @return the LAST Recently Visited key */ CacheList.prototype.getLastItem = function () { return this.tail.prevNode.key; }; /** * remove the cache key from the list and hashtable * @param key - the key of the node */ CacheList.prototype.removeItem = function (key) { var removedItem = this.hashtable[key]; this.removeNode(removedItem); delete this.hashtable[key]; }; /** * @return length of the list */ CacheList.prototype.getSize = function () { return this.length; }; /** * @return true if the key is in the hashtable * @param key */ CacheList.prototype.containsKey = function (key) { return key in this.hashtable; }; /** * clean up the list and hashtable */ CacheList.prototype.clearList = function () { var e_1, _a; try { for (var _b = __values(Object.keys(this.hashtable)), _c = _b.next(); !_c.done; _c = _b.next()) { var key = _c.value; if (this.hashtable.hasOwnProperty(key)) { delete this.hashtable[key]; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.head.nextNode = this.tail; this.tail.prevNode = this.head; this.length = 0; }; /** * @return all keys in the hashtable */ CacheList.prototype.getKeys = function () { return Object.keys(this.hashtable); }; /** * mainly for test * * @param key * @return true if key is the head node */ CacheList.prototype.isHeadNode = function (key) { var node = this.hashtable[key]; return node.prevNode === this.head; }; /** * mainly for test * * @param key * @return true if key is the tail node */ CacheList.prototype.isTailNode = function (key) { var node = this.hashtable[key]; return node.nextNode === this.tail; }; return CacheList; }()); /* harmony default export */ __webpack_exports__["default"] = (CacheList); //# sourceMappingURL=CacheList.js.map /***/ }), /***/ "dWS+": /*!*****************************************************!*\ !*** ./node_modules/graphql/error/GraphQLError.mjs ***! \*****************************************************/ /*! exports provided: GraphQLError */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLError", function() { return GraphQLError; }); /* harmony import */ var _printError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./printError */ "oNwi"); /* harmony import */ var _language_location__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../language/location */ "y4cC"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function GraphQLError( // eslint-disable-line no-redeclare message, nodes, source, positions, path, originalError, extensions) { // Compute list of blame nodes. var _nodes = Array.isArray(nodes) ? nodes.length !== 0 ? nodes : undefined : nodes ? [nodes] : undefined; // Compute locations in the source for the given nodes/positions. var _source = source; if (!_source && _nodes) { var node = _nodes[0]; _source = node && node.loc && node.loc.source; } var _positions = positions; if (!_positions && _nodes) { _positions = _nodes.reduce(function (list, node) { if (node.loc) { list.push(node.loc.start); } return list; }, []); } if (_positions && _positions.length === 0) { _positions = undefined; } var _locations; if (positions && source) { _locations = positions.map(function (pos) { return Object(_language_location__WEBPACK_IMPORTED_MODULE_1__["getLocation"])(source, pos); }); } else if (_nodes) { _locations = _nodes.reduce(function (list, node) { if (node.loc) { list.push(Object(_language_location__WEBPACK_IMPORTED_MODULE_1__["getLocation"])(node.loc.source, node.loc.start)); } return list; }, []); } var _extensions = extensions || originalError && originalError.extensions; Object.defineProperties(this, { message: { value: message, // By being enumerable, JSON.stringify will include `message` in the // resulting output. This ensures that the simplest possible GraphQL // service adheres to the spec. enumerable: true, writable: true }, locations: { // Coercing falsey values to undefined ensures they will not be included // in JSON.stringify() when not provided. value: _locations || undefined, // By being enumerable, JSON.stringify will include `locations` in the // resulting output. This ensures that the simplest possible GraphQL // service adheres to the spec. enumerable: Boolean(_locations) }, path: { // Coercing falsey values to undefined ensures they will not be included // in JSON.stringify() when not provided. value: path || undefined, // By being enumerable, JSON.stringify will include `path` in the // resulting output. This ensures that the simplest possible GraphQL // service adheres to the spec. enumerable: Boolean(path) }, nodes: { value: _nodes || undefined }, source: { value: _source || undefined }, positions: { value: _positions || undefined }, originalError: { value: originalError }, extensions: { // Coercing falsey values to undefined ensures they will not be included // in JSON.stringify() when not provided. value: _extensions || undefined, // By being enumerable, JSON.stringify will include `path` in the // resulting output. This ensures that the simplest possible GraphQL // service adheres to the spec. enumerable: Boolean(_extensions) } }); // Include (non-enumerable) stack trace. if (originalError && originalError.stack) { Object.defineProperty(this, 'stack', { value: originalError.stack, writable: true, configurable: true }); } else if (Error.captureStackTrace) { Error.captureStackTrace(this, GraphQLError); } else { Object.defineProperty(this, 'stack', { value: Error().stack, writable: true, configurable: true }); } } GraphQLError.prototype = Object.create(Error.prototype, { constructor: { value: GraphQLError }, name: { value: 'GraphQLError' }, toString: { value: function toString() { return Object(_printError__WEBPACK_IMPORTED_MODULE_0__["printError"])(this); } } }); /***/ }), /***/ "dWXQ": /*!**********************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/Util/Mutex.js ***! \**********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /*! * The MIT License (MIT) * * Copyright (c) 2016 Christian Speckner * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ Object.defineProperty(exports, "__esModule", { value: true }); var Mutex = /** @class */ (function () { function Mutex() { this._queue = []; this._pending = false; } Mutex.prototype.isLocked = function () { return this._pending; }; Mutex.prototype.acquire = function () { var _this = this; var ticket = new Promise(function (resolve) { return _this._queue.push(resolve); }); if (!this._pending) { this._dispatchNext(); } return ticket; }; Mutex.prototype.runExclusive = function (callback) { return this.acquire().then(function (release) { var result; try { result = callback(); } catch (e) { release(); throw e; } return Promise.resolve(result).then(function (x) { return (release(), x); }, function (e) { release(); throw e; }); }); }; Mutex.prototype._dispatchNext = function () { if (this._queue.length > 0) { this._pending = true; this._queue.shift()(this._dispatchNext.bind(this)); } else { this._pending = false; } }; return Mutex; }()); exports.default = Mutex; //# sourceMappingURL=Mutex.js.map /***/ }), /***/ "dYIA": /*!************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-polly/dist/es/commands/StartSpeechSynthesisTaskCommand.js ***! \************************************************************************************************/ /*! exports provided: StartSpeechSynthesisTaskCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartSpeechSynthesisTaskCommand", function() { return StartSpeechSynthesisTaskCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "uUVK"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "h3LU"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StartSpeechSynthesisTaskCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartSpeechSynthesisTaskCommand, _super); // Start section: command_properties // End section: command_properties function StartSpeechSynthesisTaskCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StartSpeechSynthesisTaskCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartSpeechSynthesisTaskInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartSpeechSynthesisTaskOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StartSpeechSynthesisTaskCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1StartSpeechSynthesisTaskCommand"])(input, context); }; StartSpeechSynthesisTaskCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1StartSpeechSynthesisTaskCommand"])(output, context); }; return StartSpeechSynthesisTaskCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StartSpeechSynthesisTaskCommand.js.map /***/ }), /***/ "das/": /*!****************************************************!*\ !*** ./node_modules/graphql/jsutils/isNullish.mjs ***! \****************************************************/ /*! exports provided: default */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isNullish; }); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /** * Returns true if a value is null, undefined, or NaN. */ function isNullish(value) { return value === null || value === undefined || value !== value; } /***/ }), /***/ "dkDA": /*!**********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/materialize.js ***! \**********************************************************************/ /*! exports provided: materialize */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "materialize", function() { return materialize; }); /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q"); /* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Notification */ "WMd4"); function materialize() { return function materializeOperatorFunction(source) { return source.lift(new MaterializeOperator()); }; } class MaterializeOperator { call(subscriber, source) { return source.subscribe(new MaterializeSubscriber(subscriber)); } } class MaterializeSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] { constructor(destination) { super(destination); } _next(value) { this.destination.next(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createNext(value)); } _error(err) { const destination = this.destination; destination.next(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createError(err)); destination.complete(); } _complete() { const destination = this.destination; destination.next(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createComplete()); destination.complete(); } } //# sourceMappingURL=materialize.js.map /***/ }), /***/ "dmdZ": /*!**********************************************************************************!*\ !*** ./node_modules/@aws-sdk/eventstream-marshaller/dist/es/HeaderMarshaller.js ***! \**********************************************************************************/ /*! exports provided: HeaderMarshaller */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderMarshaller", function() { return HeaderMarshaller; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "7JaV"); /* harmony import */ var _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/util-hex-encoding */ "7Z+r"); /* harmony import */ var _Int64__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Int64 */ "HZ7d"); /** * @internal */ var HeaderMarshaller = /** @class */ (function () { function HeaderMarshaller(toUtf8, fromUtf8) { this.toUtf8 = toUtf8; this.fromUtf8 = fromUtf8; } HeaderMarshaller.prototype.format = function (headers) { var e_1, _a, e_2, _b; var chunks = []; try { for (var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(headers)), _d = _c.next(); !_d.done; _d = _c.next()) { var headerName = _d.value; var bytes = this.fromUtf8(headerName); chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName])); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_1) throw e_1.error; } } var out = new Uint8Array(chunks.reduce(function (carry, bytes) { return carry + bytes.byteLength; }, 0)); var position = 0; try { for (var chunks_1 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(chunks), chunks_1_1 = chunks_1.next(); !chunks_1_1.done; chunks_1_1 = chunks_1.next()) { var chunk = chunks_1_1.value; out.set(chunk, position); position += chunk.byteLength; } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (chunks_1_1 && !chunks_1_1.done && (_b = chunks_1.return)) _b.call(chunks_1); } finally { if (e_2) throw e_2.error; } } return out; }; HeaderMarshaller.prototype.formatHeaderValue = function (header) { switch (header.type) { case "boolean": return Uint8Array.from([header.value ? 0 /* boolTrue */ : 1 /* boolFalse */]); case "byte": return Uint8Array.from([2 /* byte */, header.value]); case "short": var shortView = new DataView(new ArrayBuffer(3)); shortView.setUint8(0, 3 /* short */); shortView.setInt16(1, header.value, false); return new Uint8Array(shortView.buffer); case "integer": var intView = new DataView(new ArrayBuffer(5)); intView.setUint8(0, 4 /* integer */); intView.setInt32(1, header.value, false); return new Uint8Array(intView.buffer); case "long": var longBytes = new Uint8Array(9); longBytes[0] = 5 /* long */; longBytes.set(header.value.bytes, 1); return longBytes; case "binary": var binView = new DataView(new ArrayBuffer(3 + header.value.byteLength)); binView.setUint8(0, 6 /* byteArray */); binView.setUint16(1, header.value.byteLength, false); var binBytes = new Uint8Array(binView.buffer); binBytes.set(header.value, 3); return binBytes; case "string": var utf8Bytes = this.fromUtf8(header.value); var strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength)); strView.setUint8(0, 7 /* string */); strView.setUint16(1, utf8Bytes.byteLength, false); var strBytes = new Uint8Array(strView.buffer); strBytes.set(utf8Bytes, 3); return strBytes; case "timestamp": var tsBytes = new Uint8Array(9); tsBytes[0] = 8 /* timestamp */; tsBytes.set(_Int64__WEBPACK_IMPORTED_MODULE_2__["Int64"].fromNumber(header.value.valueOf()).bytes, 1); return tsBytes; case "uuid": if (!UUID_PATTERN.test(header.value)) { throw new Error("Invalid UUID received: " + header.value); } var uuidBytes = new Uint8Array(17); uuidBytes[0] = 9 /* uuid */; uuidBytes.set(Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["fromHex"])(header.value.replace(/\-/g, "")), 1); return uuidBytes; } }; HeaderMarshaller.prototype.parse = function (headers) { var out = {}; var position = 0; while (position < headers.byteLength) { var nameLength = headers.getUint8(position++); var name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength)); position += nameLength; switch (headers.getUint8(position++)) { case 0 /* boolTrue */: out[name] = { type: BOOLEAN_TAG, value: true, }; break; case 1 /* boolFalse */: out[name] = { type: BOOLEAN_TAG, value: false, }; break; case 2 /* byte */: out[name] = { type: BYTE_TAG, value: headers.getInt8(position++), }; break; case 3 /* short */: out[name] = { type: SHORT_TAG, value: headers.getInt16(position, false), }; position += 2; break; case 4 /* integer */: out[name] = { type: INT_TAG, value: headers.getInt32(position, false), }; position += 4; break; case 5 /* long */: out[name] = { type: LONG_TAG, value: new _Int64__WEBPACK_IMPORTED_MODULE_2__["Int64"](new Uint8Array(headers.buffer, headers.byteOffset + position, 8)), }; position += 8; break; case 6 /* byteArray */: var binaryLength = headers.getUint16(position, false); position += 2; out[name] = { type: BINARY_TAG, value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength), }; position += binaryLength; break; case 7 /* string */: var stringLength = headers.getUint16(position, false); position += 2; out[name] = { type: STRING_TAG, value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength)), }; position += stringLength; break; case 8 /* timestamp */: out[name] = { type: TIMESTAMP_TAG, value: new Date(new _Int64__WEBPACK_IMPORTED_MODULE_2__["Int64"](new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()), }; position += 8; break; case 9 /* uuid */: var uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16); position += 16; out[name] = { type: UUID_TAG, value: Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"])(uuidBytes.subarray(0, 4)) + "-" + Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"])(uuidBytes.subarray(4, 6)) + "-" + Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"])(uuidBytes.subarray(6, 8)) + "-" + Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"])(uuidBytes.subarray(8, 10)) + "-" + Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"])(uuidBytes.subarray(10)), }; break; default: throw new Error("Unrecognized header type tag"); } } return out; }; return HeaderMarshaller; }()); var HEADER_VALUE_TYPE; (function (HEADER_VALUE_TYPE) { HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolTrue"] = 0] = "boolTrue"; HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolFalse"] = 1] = "boolFalse"; HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byte"] = 2] = "byte"; HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["short"] = 3] = "short"; HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["integer"] = 4] = "integer"; HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["long"] = 5] = "long"; HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byteArray"] = 6] = "byteArray"; HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["string"] = 7] = "string"; HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["timestamp"] = 8] = "timestamp"; HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["uuid"] = 9] = "uuid"; })(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {})); var BOOLEAN_TAG = "boolean"; var BYTE_TAG = "byte"; var SHORT_TAG = "short"; var INT_TAG = "integer"; var LONG_TAG = "long"; var BINARY_TAG = "binary"; var STRING_TAG = "string"; var TIMESTAMP_TAG = "timestamp"; var UUID_TAG = "uuid"; var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSGVhZGVyTWFyc2hhbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9IZWFkZXJNYXJzaGFsbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxPQUFPLEVBQUUsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBRTVELE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFFaEM7O0dBRUc7QUFDSDtJQUNFLDBCQUE2QixNQUFlLEVBQW1CLFFBQWlCO1FBQW5ELFdBQU0sR0FBTixNQUFNLENBQVM7UUFBbUIsYUFBUSxHQUFSLFFBQVEsQ0FBUztJQUFHLENBQUM7SUFFcEYsaUNBQU0sR0FBTixVQUFPLE9BQXVCOztRQUM1QixJQUFNLE1BQU0sR0FBc0IsRUFBRSxDQUFDOztZQUVyQyxLQUF5QixJQUFBLEtBQUEsU0FBQSxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFBLGdCQUFBLDRCQUFFO2dCQUExQyxJQUFNLFVBQVUsV0FBQTtnQkFDbkIsSUFBTSxLQUFLLEdBQUcsSUFBSSxDQUFDLFFBQVEsQ0FBQyxVQUFVLENBQUMsQ0FBQztnQkFDeEMsTUFBTSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxDQUFDLEVBQUUsS0FBSyxFQUFFLElBQUksQ0FBQyxpQkFBaUIsQ0FBQyxPQUFPLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDO2FBQ3RHOzs7Ozs7Ozs7UUFFRCxJQUFNLEdBQUcsR0FBRyxJQUFJLFVBQVUsQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLFVBQUMsS0FBSyxFQUFFLEtBQUssSUFBSyxPQUFBLEtBQUssR0FBRyxLQUFLLENBQUMsVUFBVSxFQUF4QixDQUF3QixFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDekYsSUFBSSxRQUFRLEdBQUcsQ0FBQyxDQUFDOztZQUNqQixLQUFvQixJQUFBLFdBQUEsU0FBQSxNQUFNLENBQUEsOEJBQUEsa0RBQUU7Z0JBQXZCLElBQU0sS0FBSyxtQkFBQTtnQkFDZCxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxRQUFRLENBQUMsQ0FBQztnQkFDekIsUUFBUSxJQUFJLEtBQUssQ0FBQyxVQUFVLENBQUM7YUFDOUI7Ozs7Ozs7OztRQUVELE9BQU8sR0FBRyxDQUFDO0lBQ2IsQ0FBQztJQUVPLDRDQUFpQixHQUF6QixVQUEwQixNQUEwQjtRQUNsRCxRQUFRLE1BQU0sQ0FBQyxJQUFJLEVBQUU7WUFDbkIsS0FBSyxTQUFTO2dCQUNaLE9BQU8sVUFBVSxDQUFDLElBQUksQ0FBQyxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQyxrQkFBNEIsQ0FBQyxrQkFBNEIsQ0FBQyxDQUFDLENBQUM7WUFDcEcsS0FBSyxNQUFNO2dCQUNULE9BQU8sVUFBVSxDQUFDLElBQUksQ0FBQyxlQUF5QixNQUFNLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztZQUNqRSxLQUFLLE9BQU87Z0JBQ1YsSUFBTSxTQUFTLEdBQUcsSUFBSSxRQUFRLENBQUMsSUFBSSxXQUFXLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztnQkFDbkQsU0FBUyxDQUFDLFFBQVEsQ0FBQyxDQUFDLGdCQUEwQixDQUFDO2dCQUMvQyxTQUFTLENBQUMsUUFBUSxDQUFDLENBQUMsRUFBRSxNQUFNLENBQUMsS0FBSyxFQUFFLEtBQUssQ0FBQyxDQUFDO2dCQUMzQyxPQUFPLElBQUksVUFBVSxDQUFDLFNBQVMsQ0FBQyxNQUFNLENBQUMsQ0FBQztZQUMxQyxLQUFLLFNBQVM7Z0JBQ1osSUFBTSxPQUFPLEdBQUcsSUFBSSxRQUFRLENBQUMsSUFBSSxXQUFXLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztnQkFDakQsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDLGtCQUE0QixDQUFDO2dCQUMvQyxPQUFPLENBQUMsUUFBUSxDQUFDLENBQUMsRUFBRSxNQUFNLENBQUMsS0FBSyxFQUFFLEtBQUssQ0FBQyxDQUFDO2dCQUN6QyxPQUFPLElBQUksVUFBVSxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQztZQUN4QyxLQUFLLE1BQU07Z0JBQ1QsSUFBTSxTQUFTLEdBQUcsSUFBSSxVQUFVLENBQUMsQ0FBQyxDQUFDLENBQUM7Z0JBQ3BDLFNBQVMsQ0FBQyxDQUFDLENBQUMsZUFBeUIsQ0FBQztnQkFDdEMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLEtBQUssRUFBRSxDQUFDLENBQUMsQ0FBQztnQkFDckMsT0FBTyxTQUFTLENBQUM7WUFDbkIsS0FBSyxRQUFRO2dCQUNYLElBQU0sT0FBTyxHQUFHLElBQUksUUFBUSxDQUFDLElBQUksV0FBVyxDQUFDLENBQUMsR0FBRyxNQUFNLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUM7Z0JBQzNFLE9BQU8sQ0FBQyxRQUFRLENBQUMsQ0FBQyxvQkFBOEIsQ0FBQztnQkFDakQsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDLEVBQUUsTUFBTSxDQUFDLEtBQUssQ0FBQyxVQUFVLEVBQUUsS0FBSyxDQUFDLENBQUM7Z0JBQ3JELElBQU0sUUFBUSxHQUFHLElBQUksVUFBVSxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQztnQkFDaEQsUUFBUSxDQUFDLEdBQUcsQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQyxDQUFDO2dCQUM5QixPQUFPLFFBQVEsQ0FBQztZQUNsQixLQUFLLFFBQVE7Z0JBQ1gsSUFBTSxTQUFTLEdBQUcsSUFBSSxDQUFDLFFBQVEsQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLENBQUM7Z0JBQzlDLElBQU0sT0FBTyxHQUFHLElBQUksUUFBUSxDQUFDLElBQUksV0FBVyxDQUFDLENBQUMsR0FBRyxTQUFTLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQztnQkFDeEUsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDLGlCQUEyQixDQUFDO2dCQUM5QyxPQUFPLENBQUMsU0FBUyxDQUFDLENBQUMsRUFBRSxTQUFTLENBQUMsVUFBVSxFQUFFLEtBQUssQ0FBQyxDQUFDO2dCQUNsRCxJQUFNLFFBQVEsR0FBRyxJQUFJLFVBQVUsQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUM7Z0JBQ2hELFFBQVEsQ0FBQyxHQUFHLENBQUMsU0FBUyxFQUFFLENBQUMsQ0FBQyxDQUFDO2dCQUMzQixPQUFPLFFBQVEsQ0FBQztZQUNsQixLQUFLLFdBQVc7Z0JBQ2QsSUFBTSxPQUFPLEdBQUcsSUFBSSxVQUFVLENBQUMsQ0FBQyxDQUFDLENBQUM7Z0JBQ2xDLE9BQU8sQ0FBQyxDQUFDLENBQUMsb0JBQThCLENBQUM7Z0JBQ3pDLE9BQU8sQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLE9BQU8sRUFBRSxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQyxDQUFDO2dCQUMvRCxPQUFPLE9BQU8sQ0FBQztZQUNqQixLQUFLLE1BQU07Z0JBQ1QsSUFBSSxDQUFDLFlBQVksQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxFQUFFO29CQUNwQyxNQUFNLElBQUksS0FBSyxDQUFDLDRCQUEwQixNQUFNLENBQUMsS0FBTyxDQUFDLENBQUM7aUJBQzNEO2dCQUVELElBQU0sU0FBUyxHQUFHLElBQUksVUFBVSxDQUFDLEVBQUUsQ0FBQyxDQUFDO2dCQUNyQyxTQUFTLENBQUMsQ0FBQyxDQUFDLGVBQXlCLENBQUM7Z0JBQ3RDLFNBQVMsQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDO2dCQUMzRCxPQUFPLFNBQVMsQ0FBQztTQUNwQjtJQUNILENBQUM7SUFFRCxnQ0FBSyxHQUFMLFVBQU0sT0FBaUI7UUFDckIsSUFBTSxHQUFHLEdBQW1CLEVBQUUsQ0FBQztRQUMvQixJQUFJLFFBQVEsR0FBRyxDQUFDLENBQUM7UUFFakIsT0FBTyxRQUFRLEdBQUcsT0FBTyxDQUFDLFVBQVUsRUFBRTtZQUNwQyxJQUFNLFVBQVUsR0FBRyxPQUFPLENBQUMsUUFBUSxDQUFDLFFBQVEsRUFBRSxDQUFDLENBQUM7WUFDaEQsSUFBTSxJQUFJLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQyxJQUFJLFVBQVUsQ0FBQyxPQUFPLENBQUMsTUFBTSxFQUFFLE9BQU8sQ0FBQyxVQUFVLEdBQUcsUUFBUSxFQUFFLFVBQVUsQ0FBQyxDQUFDLENBQUM7WUFDcEcsUUFBUSxJQUFJLFVBQVUsQ0FBQztZQUV2QixRQUFRLE9BQU8sQ0FBQyxRQUFRLENBQUMsUUFBUSxFQUFFLENBQUMsRUFBRTtnQkFDcEM7b0JBQ0UsR0FBRyxDQUFDLElBQUksQ0FBQyxHQUFHO3dCQUNWLElBQUksRUFBRSxXQUFXO3dCQUNqQixLQUFLLEVBQUUsSUFBSTtxQkFDWixDQUFDO29CQUNGLE1BQU07Z0JBQ1I7b0JBQ0UsR0FBRyxDQUFDLElBQUksQ0FBQyxHQUFHO3dCQUNWLElBQUksRUFBRSxXQUFXO3dCQUNqQixLQUFLLEVBQUUsS0FBSztxQkFDYixDQUFDO29CQUNGLE1BQU07Z0JBQ1I7b0JBQ0UsR0FBRyxDQUFDLElBQUksQ0FBQyxHQUFHO3dCQUNWLElBQUksRUFBRSxRQUFRO3dCQUNkLEtBQUssRUFBRSxPQUFPLENBQUMsT0FBTyxDQUFDLFFBQVEsRUFBRSxDQUFDO3FCQUNuQyxDQUFDO29CQUNGLE1BQU07Z0JBQ1I7b0JBQ0UsR0FBRyxDQUFDLElBQUksQ0FBQyxHQUFHO3dCQUNWLElBQUksRUFBRSxTQUFTO3dCQUNmLEtBQUssRUFBRSxPQUFPLENBQUMsUUFBUSxDQUFDLFFBQVEsRUFBRSxLQUFLLENBQUM7cUJBQ3pDLENBQUM7b0JBQ0YsUUFBUSxJQUFJLENBQUMsQ0FBQztvQkFDZCxNQUFNO2dCQUNSO29CQUNFLEdBQUcsQ0FBQyxJQUFJLENBQUMsR0FBRzt3QkFDVixJQUFJLEVBQUUsT0FBTzt3QkFDYixLQUFLLEVBQUUsT0FBTyxDQUFDLFFBQVEsQ0FBQyxRQUFRLEVBQUUsS0FBSyxDQUFDO3FCQUN6QyxDQUFDO29CQUNGLFFBQVEsSUFBSSxDQUFDLENBQUM7b0JBQ2QsTUFBTTtnQkFDUjtvQkFDRSxHQUFHLENBQUMsSUFBSSxDQUFDLEdBQUc7d0JBQ1YsSUFBSSxFQUFFLFFBQVE7d0JBQ2QsS0FBSyxFQUFFLElBQUksS0FBSyxDQUFDLElBQUksVUFBVSxDQUFDLE9BQU8sQ0FBQyxNQUFNLEVBQUUsT0FBTyxDQUFDLFVBQVUsR0FBRyxRQUFRLEVBQUUsQ0FBQyxDQUFDLENBQUM7cUJBQ25GLENBQUM7b0JBQ0YsUUFBUSxJQUFJLENBQUMsQ0FBQztvQkFDZCxNQUFNO2dCQUNSO29CQUNFLElBQU0sWUFBWSxHQUFHLE9BQU8sQ0FBQyxTQUFTLENBQUMsUUFBUSxFQUFFLEtBQUssQ0FBQyxDQUFDO29CQUN4RCxRQUFRLElBQUksQ0FBQyxDQUFDO29CQUNkLEdBQUcsQ0FBQyxJQUFJLENBQUMsR0FBRzt3QkFDVixJQUFJLEVBQUUsVUFBVTt3QkFDaEIsS0FBSyxFQUFFLElBQUksVUFBVSxDQUFDLE9BQU8sQ0FBQyxNQUFNLEVBQUUsT0FBTyxDQUFDLFVBQVUsR0FBRyxRQUFRLEVBQUUsWUFBWSxDQUFDO3FCQUNuRixDQUFDO29CQUNGLFFBQVEsSUFBSSxZQUFZLENBQUM7b0JBQ3pCLE1BQU07Z0JBQ1I7b0JBQ0UsSUFBTSxZQUFZLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQyxRQUFRLEVBQUUsS0FBSyxDQUFDLENBQUM7b0JBQ3hELFFBQVEsSUFBSSxDQUFDLENBQUM7b0JBQ2QsR0FBRyxDQUFDLElBQUksQ0FBQyxHQUFHO3dCQUNWLElBQUksRUFBRSxVQUFVO3dCQUNoQixLQUFLLEVBQUUsSUFBSSxDQUFDLE1BQU0sQ0FBQyxJQUFJLFVBQVUsQ0FBQyxPQUFPLENBQUMsTUFBTSxFQUFFLE9BQU8sQ0FBQyxVQUFVLEdBQUcsUUFBUSxFQUFFLFlBQVksQ0FBQyxDQUFDO3FCQUNoRyxDQUFDO29CQUNGLFFBQVEsSUFBSSxZQUFZLENBQUM7b0JBQ3pCLE1BQU07Z0JBQ1I7b0JBQ0UsR0FBRyxDQUFDLElBQUksQ0FBQyxHQUFHO3dCQUNWLElBQUksRUFBRSxhQUFhO3dCQUNuQixLQUFLLEVBQUUsSUFBSSxJQUFJLENBQUMsSUFBSSxLQUFLLENBQUMsSUFBSSxVQUFVLENBQUMsT0FBTyxDQUFDLE1BQU0sRUFBRSxPQUFPLENBQUMsVUFBVSxHQUFHLFFBQVEsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLE9BQU8sRUFBRSxDQUFDO3FCQUN2RyxDQUFDO29CQUNGLFFBQVEsSUFBSSxDQUFDLENBQUM7b0JBQ2QsTUFBTTtnQkFDUjtvQkFDRSxJQUFNLFNBQVMsR0FBRyxJQUFJLFVBQVUsQ0FBQyxPQUFPLENBQUMsTUFBTSxFQUFFLE9BQU8sQ0FBQyxVQUFVLEdBQUcsUUFBUSxFQUFFLEVBQUUsQ0FBQyxDQUFDO29CQUNwRixRQUFRLElBQUksRUFBRSxDQUFDO29CQUNmLEdBQUcsQ0FBQyxJQUFJLENBQUMsR0FBRzt3QkFDVixJQUFJLEVBQUUsUUFBUTt3QkFDZCxLQUFLLEVBQUssS0FBSyxDQUFDLFNBQVMsQ0FBQyxRQUFRLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLFNBQUksS0FBSyxDQUFDLFNBQVMsQ0FBQyxRQUFRLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLFNBQUksS0FBSyxDQUNuRixTQUFTLENBQUMsUUFBUSxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FDekIsU0FBSSxLQUFLLENBQUMsU0FBUyxDQUFDLFFBQVEsQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUMsU0FBSSxLQUFLLENBQUMsU0FBUyxDQUFDLFFBQVEsQ0FBQyxFQUFFLENBQUMsQ0FBRztxQkFDekUsQ0FBQztvQkFDRixNQUFNO2dCQUNSO29CQUNFLE1BQU0sSUFBSSxLQUFLLENBQUMsOEJBQThCLENBQUMsQ0FBQzthQUNuRDtTQUNGO1FBRUQsT0FBTyxHQUFHLENBQUM7SUFDYixDQUFDO0lBQ0gsdUJBQUM7QUFBRCxDQUFDLEFBcktELElBcUtDOztBQUVELElBQVcsaUJBV1Y7QUFYRCxXQUFXLGlCQUFpQjtJQUMxQixpRUFBWSxDQUFBO0lBQ1osbUVBQVMsQ0FBQTtJQUNULHlEQUFJLENBQUE7SUFDSiwyREFBSyxDQUFBO0lBQ0wsK0RBQU8sQ0FBQTtJQUNQLHlEQUFJLENBQUE7SUFDSixtRUFBUyxDQUFBO0lBQ1QsNkRBQU0sQ0FBQTtJQUNOLG1FQUFTLENBQUE7SUFDVCx5REFBSSxDQUFBO0FBQ04sQ0FBQyxFQVhVLGlCQUFpQixLQUFqQixpQkFBaUIsUUFXM0I7QUFFRCxJQUFNLFdBQVcsR0FBRyxTQUFTLENBQUM7QUFDOUIsSUFBTSxRQUFRLEdBQUcsTUFBTSxDQUFDO0FBQ3hCLElBQU0sU0FBUyxHQUFHLE9BQU8sQ0FBQztBQUMxQixJQUFNLE9BQU8sR0FBRyxTQUFTLENBQUM7QUFDMUIsSUFBTSxRQUFRLEdBQUcsTUFBTSxDQUFDO0FBQ3hCLElBQU0sVUFBVSxHQUFHLFFBQVEsQ0FBQztBQUM1QixJQUFNLFVBQVUsR0FBRyxRQUFRLENBQUM7QUFDNUIsSUFBTSxhQUFhLEdBQUcsV0FBVyxDQUFDO0FBQ2xDLElBQU0sUUFBUSxHQUFHLE1BQU0sQ0FBQztBQUV4QixJQUFNLFlBQVksR0FBRyxnRUFBZ0UsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERlY29kZXIsIEVuY29kZXIsIE1lc3NhZ2VIZWFkZXJzLCBNZXNzYWdlSGVhZGVyVmFsdWUgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcbmltcG9ydCB7IGZyb21IZXgsIHRvSGV4IH0gZnJvbSBcIkBhd3Mtc2RrL3V0aWwtaGV4LWVuY29kaW5nXCI7XG5cbmltcG9ydCB7IEludDY0IH0gZnJvbSBcIi4vSW50NjRcIjtcblxuLyoqXG4gKiBAaW50ZXJuYWxcbiAqL1xuZXhwb3J0IGNsYXNzIEhlYWRlck1hcnNoYWxsZXIge1xuICBjb25zdHJ1Y3Rvcihwcml2YXRlIHJlYWRvbmx5IHRvVXRmODogRW5jb2RlciwgcHJpdmF0ZSByZWFkb25seSBmcm9tVXRmODogRGVjb2Rlcikge31cblxuICBmb3JtYXQoaGVhZGVyczogTWVzc2FnZUhlYWRlcnMpOiBVaW50OEFycmF5IHtcbiAgICBjb25zdCBjaHVua3M6IEFycmF5PFVpbnQ4QXJyYXk+ID0gW107XG5cbiAgICBmb3IgKGNvbnN0IGhlYWRlck5hbWUgb2YgT2JqZWN0LmtleXMoaGVhZGVycykpIHtcbiAgICAgIGNvbnN0IGJ5dGVzID0gdGhpcy5mcm9tVXRmOChoZWFkZXJOYW1lKTtcbiAgICAgIGNodW5rcy5wdXNoKFVpbnQ4QXJyYXkuZnJvbShbYnl0ZXMuYnl0ZUxlbmd0aF0pLCBieXRlcywgdGhpcy5mb3JtYXRIZWFkZXJWYWx1ZShoZWFkZXJzW2hlYWRlck5hbWVdKSk7XG4gICAgfVxuXG4gICAgY29uc3Qgb3V0ID0gbmV3IFVpbnQ4QXJyYXkoY2h1bmtzLnJlZHVjZSgoY2FycnksIGJ5dGVzKSA9PiBjYXJyeSArIGJ5dGVzLmJ5dGVMZW5ndGgsIDApKTtcbiAgICBsZXQgcG9zaXRpb24gPSAwO1xuICAgIGZvciAoY29uc3QgY2h1bmsgb2YgY2h1bmtzKSB7XG4gICAgICBvdXQuc2V0KGNodW5rLCBwb3NpdGlvbik7XG4gICAgICBwb3NpdGlvbiArPSBjaHVuay5ieXRlTGVuZ3RoO1xuICAgIH1cblxuICAgIHJldHVybiBvdXQ7XG4gIH1cblxuICBwcml2YXRlIGZvcm1hdEhlYWRlclZhbHVlKGhlYWRlcjogTWVzc2FnZUhlYWRlclZhbHVlKTogVWludDhBcnJheSB7XG4gICAgc3dpdGNoIChoZWFkZXIudHlwZSkge1xuICAgICAgY2FzZSBcImJvb2xlYW5cIjpcbiAgICAgICAgcmV0dXJuIFVpbnQ4QXJyYXkuZnJvbShbaGVhZGVyLnZhbHVlID8gSEVBREVSX1ZBTFVFX1RZUEUuYm9vbFRydWUgOiBIRUFERVJfVkFMVUVfVFlQRS5ib29sRmFsc2VdKTtcbiAgICAgIGNhc2UgXCJieXRlXCI6XG4gICAgICAgIHJldHVybiBVaW50OEFycmF5LmZyb20oW0hFQURFUl9WQUxVRV9UWVBFLmJ5dGUsIGhlYWRlci52YWx1ZV0pO1xuICAgICAgY2FzZSBcInNob3J0XCI6XG4gICAgICAgIGNvbnN0IHNob3J0VmlldyA9IG5ldyBEYXRhVmlldyhuZXcgQXJyYXlCdWZmZXIoMykpO1xuICAgICAgICBzaG9ydFZpZXcuc2V0VWludDgoMCwgSEVBREVSX1ZBTFVFX1RZUEUuc2hvcnQpO1xuICAgICAgICBzaG9ydFZpZXcuc2V0SW50MTYoMSwgaGVhZGVyLnZhbHVlLCBmYWxzZSk7XG4gICAgICAgIHJldHVybiBuZXcgVWludDhBcnJheShzaG9ydFZpZXcuYnVmZmVyKTtcbiAgICAgIGNhc2UgXCJpbnRlZ2VyXCI6XG4gICAgICAgIGNvbnN0IGludFZpZXcgPSBuZXcgRGF0YVZpZXcobmV3IEFycmF5QnVmZmVyKDUpKTtcbiAgICAgICAgaW50Vmlldy5zZXRVaW50OCgwLCBIRUFERVJfVkFMVUVfVFlQRS5pbnRlZ2VyKTtcbiAgICAgICAgaW50Vmlldy5zZXRJbnQzMigxLCBoZWFkZXIudmFsdWUsIGZhbHNlKTtcbiAgICAgICAgcmV0dXJuIG5ldyBVaW50OEFycmF5KGludFZpZXcuYnVmZmVyKTtcbiAgICAgIGNhc2UgXCJsb25nXCI6XG4gICAgICAgIGNvbnN0IGxvbmdCeXRlcyA9IG5ldyBVaW50OEFycmF5KDkpO1xuICAgICAgICBsb25nQnl0ZXNbMF0gPSBIRUFERVJfVkFMVUVfVFlQRS5sb25nO1xuICAgICAgICBsb25nQnl0ZXMuc2V0KGhlYWRlci52YWx1ZS5ieXRlcywgMSk7XG4gICAgICAgIHJldHVybiBsb25nQnl0ZXM7XG4gICAgICBjYXNlIFwiYmluYXJ5XCI6XG4gICAgICAgIGNvbnN0IGJpblZpZXcgPSBuZXcgRGF0YVZpZXcobmV3IEFycmF5QnVmZmVyKDMgKyBoZWFkZXIudmFsdWUuYnl0ZUxlbmd0aCkpO1xuICAgICAgICBiaW5WaWV3LnNldFVpbnQ4KDAsIEhFQURFUl9WQUxVRV9UWVBFLmJ5dGVBcnJheSk7XG4gICAgICAgIGJpblZpZXcuc2V0VWludDE2KDEsIGhlYWRlci52YWx1ZS5ieXRlTGVuZ3RoLCBmYWxzZSk7XG4gICAgICAgIGNvbnN0IGJpbkJ5dGVzID0gbmV3IFVpbnQ4QXJyYXkoYmluVmlldy5idWZmZXIpO1xuICAgICAgICBiaW5CeXRlcy5zZXQoaGVhZGVyLnZhbHVlLCAzKTtcbiAgICAgICAgcmV0dXJuIGJpbkJ5dGVzO1xuICAgICAgY2FzZSBcInN0cmluZ1wiOlxuICAgICAgICBjb25zdCB1dGY4Qnl0ZXMgPSB0aGlzLmZyb21VdGY4KGhlYWRlci52YWx1ZSk7XG4gICAgICAgIGNvbnN0IHN0clZpZXcgPSBuZXcgRGF0YVZpZXcobmV3IEFycmF5QnVmZmVyKDMgKyB1dGY4Qnl0ZXMuYnl0ZUxlbmd0aCkpO1xuICAgICAgICBzdHJWaWV3LnNldFVpbnQ4KDAsIEhFQURFUl9WQUxVRV9UWVBFLnN0cmluZyk7XG4gICAgICAgIHN0clZpZXcuc2V0VWludDE2KDEsIHV0ZjhCeXRlcy5ieXRlTGVuZ3RoLCBmYWxzZSk7XG4gICAgICAgIGNvbnN0IHN0ckJ5dGVzID0gbmV3IFVpbnQ4QXJyYXkoc3RyVmlldy5idWZmZXIpO1xuICAgICAgICBzdHJCeXRlcy5zZXQodXRmOEJ5dGVzLCAzKTtcbiAgICAgICAgcmV0dXJuIHN0ckJ5dGVzO1xuICAgICAgY2FzZSBcInRpbWVzdGFtcFwiOlxuICAgICAgICBjb25zdCB0c0J5dGVzID0gbmV3IFVpbnQ4QXJyYXkoOSk7XG4gICAgICAgIHRzQnl0ZXNbMF0gPSBIRUFERVJfVkFMVUVfVFlQRS50aW1lc3RhbXA7XG4gICAgICAgIHRzQnl0ZXMuc2V0KEludDY0LmZyb21OdW1iZXIoaGVhZGVyLnZhbHVlLnZhbHVlT2YoKSkuYnl0ZXMsIDEpO1xuICAgICAgICByZXR1cm4gdHNCeXRlcztcbiAgICAgIGNhc2UgXCJ1dWlkXCI6XG4gICAgICAgIGlmICghVVVJRF9QQVRURVJOLnRlc3QoaGVhZGVyLnZhbHVlKSkge1xuICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgSW52YWxpZCBVVUlEIHJlY2VpdmVkOiAke2hlYWRlci52YWx1ZX1gKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IHV1aWRCeXRlcyA9IG5ldyBVaW50OEFycmF5KDE3KTtcbiAgICAgICAgdXVpZEJ5dGVzWzBdID0gSEVBREVSX1ZBTFVFX1RZUEUudXVpZDtcbiAgICAgICAgdXVpZEJ5dGVzLnNldChmcm9tSGV4KGhlYWRlci52YWx1ZS5yZXBsYWNlKC9cXC0vZywgXCJcIikpLCAxKTtcbiAgICAgICAgcmV0dXJuIHV1aWRCeXRlcztcbiAgICB9XG4gIH1cblxuICBwYXJzZShoZWFkZXJzOiBEYXRhVmlldyk6IE1lc3NhZ2VIZWFkZXJzIHtcbiAgICBjb25zdCBvdXQ6IE1lc3NhZ2VIZWFkZXJzID0ge307XG4gICAgbGV0IHBvc2l0aW9uID0gMDtcblxuICAgIHdoaWxlIChwb3NpdGlvbiA8IGhlYWRlcnMuYnl0ZUxlbmd0aCkge1xuICAgICAgY29uc3QgbmFtZUxlbmd0aCA9IGhlYWRlcnMuZ2V0VWludDgocG9zaXRpb24rKyk7XG4gICAgICBjb25zdCBuYW1lID0gdGhpcy50b1V0ZjgobmV3IFVpbnQ4QXJyYXkoaGVhZGVycy5idWZmZXIsIGhlYWRlcnMuYnl0ZU9mZnNldCArIHBvc2l0aW9uLCBuYW1lTGVuZ3RoKSk7XG4gICAgICBwb3NpdGlvbiArPSBuYW1lTGVuZ3RoO1xuXG4gICAgICBzd2l0Y2ggKGhlYWRlcnMuZ2V0VWludDgocG9zaXRpb24rKykpIHtcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5ib29sVHJ1ZTpcbiAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICB0eXBlOiBCT09MRUFOX1RBRyxcbiAgICAgICAgICAgIHZhbHVlOiB0cnVlLFxuICAgICAgICAgIH07XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgSEVBREVSX1ZBTFVFX1RZUEUuYm9vbEZhbHNlOlxuICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgIHR5cGU6IEJPT0xFQU5fVEFHLFxuICAgICAgICAgICAgdmFsdWU6IGZhbHNlLFxuICAgICAgICAgIH07XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgSEVBREVSX1ZBTFVFX1RZUEUuYnl0ZTpcbiAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICB0eXBlOiBCWVRFX1RBRyxcbiAgICAgICAgICAgIHZhbHVlOiBoZWFkZXJzLmdldEludDgocG9zaXRpb24rKyksXG4gICAgICAgICAgfTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5zaG9ydDpcbiAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICB0eXBlOiBTSE9SVF9UQUcsXG4gICAgICAgICAgICB2YWx1ZTogaGVhZGVycy5nZXRJbnQxNihwb3NpdGlvbiwgZmFsc2UpLFxuICAgICAgICAgIH07XG4gICAgICAgICAgcG9zaXRpb24gKz0gMjtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5pbnRlZ2VyOlxuICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgIHR5cGU6IElOVF9UQUcsXG4gICAgICAgICAgICB2YWx1ZTogaGVhZGVycy5nZXRJbnQzMihwb3NpdGlvbiwgZmFsc2UpLFxuICAgICAgICAgIH07XG4gICAgICAgICAgcG9zaXRpb24gKz0gNDtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5sb25nOlxuICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgIHR5cGU6IExPTkdfVEFHLFxuICAgICAgICAgICAgdmFsdWU6IG5ldyBJbnQ2NChuZXcgVWludDhBcnJheShoZWFkZXJzLmJ1ZmZlciwgaGVhZGVycy5ieXRlT2Zmc2V0ICsgcG9zaXRpb24sIDgpKSxcbiAgICAgICAgICB9O1xuICAgICAgICAgIHBvc2l0aW9uICs9IDg7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgSEVBREVSX1ZBTFVFX1RZUEUuYnl0ZUFycmF5OlxuICAgICAgICAgIGNvbnN0IGJpbmFyeUxlbmd0aCA9IGhlYWRlcnMuZ2V0VWludDE2KHBvc2l0aW9uLCBmYWxzZSk7XG4gICAgICAgICAgcG9zaXRpb24gKz0gMjtcbiAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICB0eXBlOiBCSU5BUllfVEFHLFxuICAgICAgICAgICAgdmFsdWU6IG5ldyBVaW50OEFycmF5KGhlYWRlcnMuYnVmZmVyLCBoZWFkZXJzLmJ5dGVPZmZzZXQgKyBwb3NpdGlvbiwgYmluYXJ5TGVuZ3RoKSxcbiAgICAgICAgICB9O1xuICAgICAgICAgIHBvc2l0aW9uICs9IGJpbmFyeUxlbmd0aDtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5zdHJpbmc6XG4gICAgICAgICAgY29uc3Qgc3RyaW5nTGVuZ3RoID0gaGVhZGVycy5nZXRVaW50MTYocG9zaXRpb24sIGZhbHNlKTtcbiAgICAgICAgICBwb3NpdGlvbiArPSAyO1xuICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgIHR5cGU6IFNUUklOR19UQUcsXG4gICAgICAgICAgICB2YWx1ZTogdGhpcy50b1V0ZjgobmV3IFVpbnQ4QXJyYXkoaGVhZGVycy5idWZmZXIsIGhlYWRlcnMuYnl0ZU9mZnNldCArIHBvc2l0aW9uLCBzdHJpbmdMZW5ndGgpKSxcbiAgICAgICAgICB9O1xuICAgICAgICAgIHBvc2l0aW9uICs9IHN0cmluZ0xlbmd0aDtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS50aW1lc3RhbXA6XG4gICAgICAgICAgb3V0W25hbWVdID0ge1xuICAgICAgICAgICAgdHlwZTogVElNRVNUQU1QX1RBRyxcbiAgICAgICAgICAgIHZhbHVlOiBuZXcgRGF0ZShuZXcgSW50NjQobmV3IFVpbnQ4QXJyYXkoaGVhZGVycy5idWZmZXIsIGhlYWRlcnMuYnl0ZU9mZnNldCArIHBvc2l0aW9uLCA4KSkudmFsdWVPZigpKSxcbiAgICAgICAgICB9O1xuICAgICAgICAgIHBvc2l0aW9uICs9IDg7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgSEVBREVSX1ZBTFVFX1RZUEUudXVpZDpcbiAgICAgICAgICBjb25zdCB1dWlkQnl0ZXMgPSBuZXcgVWludDhBcnJheShoZWFkZXJzLmJ1ZmZlciwgaGVhZGVycy5ieXRlT2Zmc2V0ICsgcG9zaXRpb24sIDE2KTtcbiAgICAgICAgICBwb3NpdGlvbiArPSAxNjtcbiAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICB0eXBlOiBVVUlEX1RBRyxcbiAgICAgICAgICAgIHZhbHVlOiBgJHt0b0hleCh1dWlkQnl0ZXMuc3ViYXJyYXkoMCwgNCkpfS0ke3RvSGV4KHV1aWRCeXRlcy5zdWJhcnJheSg0LCA2KSl9LSR7dG9IZXgoXG4gICAgICAgICAgICAgIHV1aWRCeXRlcy5zdWJhcnJheSg2LCA4KVxuICAgICAgICAgICAgKX0tJHt0b0hleCh1dWlkQnl0ZXMuc3ViYXJyYXkoOCwgMTApKX0tJHt0b0hleCh1dWlkQnl0ZXMuc3ViYXJyYXkoMTApKX1gLFxuICAgICAgICAgIH07XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBVbnJlY29nbml6ZWQgaGVhZGVyIHR5cGUgdGFnYCk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIG91dDtcbiAgfVxufVxuXG5jb25zdCBlbnVtIEhFQURFUl9WQUxVRV9UWVBFIHtcbiAgYm9vbFRydWUgPSAwLFxuICBib29sRmFsc2UsXG4gIGJ5dGUsXG4gIHNob3J0LFxuICBpbnRlZ2VyLFxuICBsb25nLFxuICBieXRlQXJyYXksXG4gIHN0cmluZyxcbiAgdGltZXN0YW1wLFxuICB1dWlkLFxufVxuXG5jb25zdCBCT09MRUFOX1RBRyA9IFwiYm9vbGVhblwiO1xuY29uc3QgQllURV9UQUcgPSBcImJ5dGVcIjtcbmNvbnN0IFNIT1JUX1RBRyA9IFwic2hvcnRcIjtcbmNvbnN0IElOVF9UQUcgPSBcImludGVnZXJcIjtcbmNvbnN0IExPTkdfVEFHID0gXCJsb25nXCI7XG5jb25zdCBCSU5BUllfVEFHID0gXCJiaW5hcnlcIjtcbmNvbnN0IFNUUklOR19UQUcgPSBcInN0cmluZ1wiO1xuY29uc3QgVElNRVNUQU1QX1RBRyA9IFwidGltZXN0YW1wXCI7XG5jb25zdCBVVUlEX1RBRyA9IFwidXVpZFwiO1xuXG5jb25zdCBVVUlEX1BBVFRFUk4gPSAvXlthLWYwLTldezh9LVthLWYwLTldezR9LVthLWYwLTldezR9LVthLWYwLTldezR9LVthLWYwLTldezEyfSQvO1xuIl19 /***/ }), /***/ "doVe": /*!********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-textract/dist/es/protocols/Aws_json1_1.js ***! \********************************************************************************/ /*! exports provided: serializeAws_json1_1AnalyzeDocumentCommand, serializeAws_json1_1DetectDocumentTextCommand, serializeAws_json1_1GetDocumentAnalysisCommand, serializeAws_json1_1GetDocumentTextDetectionCommand, serializeAws_json1_1StartDocumentAnalysisCommand, serializeAws_json1_1StartDocumentTextDetectionCommand, deserializeAws_json1_1AnalyzeDocumentCommand, deserializeAws_json1_1DetectDocumentTextCommand, deserializeAws_json1_1GetDocumentAnalysisCommand, deserializeAws_json1_1GetDocumentTextDetectionCommand, deserializeAws_json1_1StartDocumentAnalysisCommand, deserializeAws_json1_1StartDocumentTextDetectionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1AnalyzeDocumentCommand", function() { return serializeAws_json1_1AnalyzeDocumentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DetectDocumentTextCommand", function() { return serializeAws_json1_1DetectDocumentTextCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetDocumentAnalysisCommand", function() { return serializeAws_json1_1GetDocumentAnalysisCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetDocumentTextDetectionCommand", function() { return serializeAws_json1_1GetDocumentTextDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartDocumentAnalysisCommand", function() { return serializeAws_json1_1StartDocumentAnalysisCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartDocumentTextDetectionCommand", function() { return serializeAws_json1_1StartDocumentTextDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1AnalyzeDocumentCommand", function() { return deserializeAws_json1_1AnalyzeDocumentCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DetectDocumentTextCommand", function() { return deserializeAws_json1_1DetectDocumentTextCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetDocumentAnalysisCommand", function() { return deserializeAws_json1_1GetDocumentAnalysisCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetDocumentTextDetectionCommand", function() { return deserializeAws_json1_1GetDocumentTextDetectionCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartDocumentAnalysisCommand", function() { return deserializeAws_json1_1StartDocumentAnalysisCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartDocumentTextDetectionCommand", function() { return deserializeAws_json1_1StartDocumentTextDetectionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "Enk7"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var serializeAws_json1_1AnalyzeDocumentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Textract.AnalyzeDocument", }; body = JSON.stringify(serializeAws_json1_1AnalyzeDocumentRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DetectDocumentTextCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Textract.DetectDocumentText", }; body = JSON.stringify(serializeAws_json1_1DetectDocumentTextRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetDocumentAnalysisCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Textract.GetDocumentAnalysis", }; body = JSON.stringify(serializeAws_json1_1GetDocumentAnalysisRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetDocumentTextDetectionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Textract.GetDocumentTextDetection", }; body = JSON.stringify(serializeAws_json1_1GetDocumentTextDetectionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartDocumentAnalysisCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Textract.StartDocumentAnalysis", }; body = JSON.stringify(serializeAws_json1_1StartDocumentAnalysisRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartDocumentTextDetectionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "Textract.StartDocumentTextDetection", }; body = JSON.stringify(serializeAws_json1_1StartDocumentTextDetectionRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var deserializeAws_json1_1AnalyzeDocumentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1AnalyzeDocumentCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1AnalyzeDocumentResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "AnalyzeDocumentResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1AnalyzeDocumentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, parsedBody, message; var _o; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_p) { switch (_p.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _o = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_o.body = _p.sent(), _o)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.textract#AccessDeniedException": return [3 /*break*/, 2]; case "BadDocumentException": return [3 /*break*/, 4]; case "com.amazonaws.textract#BadDocumentException": return [3 /*break*/, 4]; case "DocumentTooLargeException": return [3 /*break*/, 6]; case "com.amazonaws.textract#DocumentTooLargeException": return [3 /*break*/, 6]; case "HumanLoopQuotaExceededException": return [3 /*break*/, 8]; case "com.amazonaws.textract#HumanLoopQuotaExceededException": return [3 /*break*/, 8]; case "InternalServerError": return [3 /*break*/, 10]; case "com.amazonaws.textract#InternalServerError": return [3 /*break*/, 10]; case "InvalidParameterException": return [3 /*break*/, 12]; case "com.amazonaws.textract#InvalidParameterException": return [3 /*break*/, 12]; case "InvalidS3ObjectException": return [3 /*break*/, 14]; case "com.amazonaws.textract#InvalidS3ObjectException": return [3 /*break*/, 14]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 16]; case "com.amazonaws.textract#ProvisionedThroughputExceededException": return [3 /*break*/, 16]; case "ThrottlingException": return [3 /*break*/, 18]; case "com.amazonaws.textract#ThrottlingException": return [3 /*break*/, 18]; case "UnsupportedDocumentException": return [3 /*break*/, 20]; case "com.amazonaws.textract#UnsupportedDocumentException": return [3 /*break*/, 20]; } return [3 /*break*/, 22]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1BadDocumentExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1DocumentTooLargeExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1HumanLoopQuotaExceededExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 20: _m = [{}]; return [4 /*yield*/, deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context)]; case 21: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 23]; case 22: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _p.label = 23; case 23: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DetectDocumentTextCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DetectDocumentTextCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DetectDocumentTextResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DetectDocumentTextResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DetectDocumentTextCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message; var _m; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_o) { switch (_o.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _m = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_m.body = _o.sent(), _m)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.textract#AccessDeniedException": return [3 /*break*/, 2]; case "BadDocumentException": return [3 /*break*/, 4]; case "com.amazonaws.textract#BadDocumentException": return [3 /*break*/, 4]; case "DocumentTooLargeException": return [3 /*break*/, 6]; case "com.amazonaws.textract#DocumentTooLargeException": return [3 /*break*/, 6]; case "InternalServerError": return [3 /*break*/, 8]; case "com.amazonaws.textract#InternalServerError": return [3 /*break*/, 8]; case "InvalidParameterException": return [3 /*break*/, 10]; case "com.amazonaws.textract#InvalidParameterException": return [3 /*break*/, 10]; case "InvalidS3ObjectException": return [3 /*break*/, 12]; case "com.amazonaws.textract#InvalidS3ObjectException": return [3 /*break*/, 12]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "com.amazonaws.textract#ProvisionedThroughputExceededException": return [3 /*break*/, 14]; case "ThrottlingException": return [3 /*break*/, 16]; case "com.amazonaws.textract#ThrottlingException": return [3 /*break*/, 16]; case "UnsupportedDocumentException": return [3 /*break*/, 18]; case "com.amazonaws.textract#UnsupportedDocumentException": return [3 /*break*/, 18]; } return [3 /*break*/, 20]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1BadDocumentExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1DocumentTooLargeExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 21]; case 20: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _o.label = 21; case 21: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetDocumentAnalysisCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetDocumentAnalysisCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetDocumentAnalysisResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetDocumentAnalysisResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetDocumentAnalysisCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.textract#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.textract#InternalServerError": return [3 /*break*/, 4]; case "InvalidJobIdException": return [3 /*break*/, 6]; case "com.amazonaws.textract#InvalidJobIdException": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.textract#InvalidParameterException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.textract#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ThrottlingException": return [3 /*break*/, 12]; case "com.amazonaws.textract#ThrottlingException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidJobIdExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetDocumentTextDetectionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetDocumentTextDetectionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetDocumentTextDetectionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetDocumentTextDetectionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetDocumentTextDetectionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, parsedBody, message; var _j; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_k) { switch (_k.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _j = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_j.body = _k.sent(), _j)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.textract#AccessDeniedException": return [3 /*break*/, 2]; case "InternalServerError": return [3 /*break*/, 4]; case "com.amazonaws.textract#InternalServerError": return [3 /*break*/, 4]; case "InvalidJobIdException": return [3 /*break*/, 6]; case "com.amazonaws.textract#InvalidJobIdException": return [3 /*break*/, 6]; case "InvalidParameterException": return [3 /*break*/, 8]; case "com.amazonaws.textract#InvalidParameterException": return [3 /*break*/, 8]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "com.amazonaws.textract#ProvisionedThroughputExceededException": return [3 /*break*/, 10]; case "ThrottlingException": return [3 /*break*/, 12]; case "com.amazonaws.textract#ThrottlingException": return [3 /*break*/, 12]; } return [3 /*break*/, 14]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidJobIdExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 15]; case 14: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _k.label = 15; case 15: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartDocumentAnalysisCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartDocumentAnalysisCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartDocumentAnalysisResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartDocumentAnalysisResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartDocumentAnalysisCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, parsedBody, message; var _p; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_q) { switch (_q.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _p = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_p.body = _q.sent(), _p)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.textract#AccessDeniedException": return [3 /*break*/, 2]; case "BadDocumentException": return [3 /*break*/, 4]; case "com.amazonaws.textract#BadDocumentException": return [3 /*break*/, 4]; case "DocumentTooLargeException": return [3 /*break*/, 6]; case "com.amazonaws.textract#DocumentTooLargeException": return [3 /*break*/, 6]; case "IdempotentParameterMismatchException": return [3 /*break*/, 8]; case "com.amazonaws.textract#IdempotentParameterMismatchException": return [3 /*break*/, 8]; case "InternalServerError": return [3 /*break*/, 10]; case "com.amazonaws.textract#InternalServerError": return [3 /*break*/, 10]; case "InvalidParameterException": return [3 /*break*/, 12]; case "com.amazonaws.textract#InvalidParameterException": return [3 /*break*/, 12]; case "InvalidS3ObjectException": return [3 /*break*/, 14]; case "com.amazonaws.textract#InvalidS3ObjectException": return [3 /*break*/, 14]; case "LimitExceededException": return [3 /*break*/, 16]; case "com.amazonaws.textract#LimitExceededException": return [3 /*break*/, 16]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 18]; case "com.amazonaws.textract#ProvisionedThroughputExceededException": return [3 /*break*/, 18]; case "ThrottlingException": return [3 /*break*/, 20]; case "com.amazonaws.textract#ThrottlingException": return [3 /*break*/, 20]; case "UnsupportedDocumentException": return [3 /*break*/, 22]; case "com.amazonaws.textract#UnsupportedDocumentException": return [3 /*break*/, 22]; } return [3 /*break*/, 24]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1BadDocumentExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1DocumentTooLargeExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 20: _m = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 21: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _m.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 22: _o = [{}]; return [4 /*yield*/, deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context)]; case 23: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _o.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 24: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _q.label = 25; case 25: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartDocumentTextDetectionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartDocumentTextDetectionCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartDocumentTextDetectionResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartDocumentTextDetectionResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartDocumentTextDetectionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, parsedBody, message; var _p; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_q) { switch (_q.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _p = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_p.body = _q.sent(), _p)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "AccessDeniedException": return [3 /*break*/, 2]; case "com.amazonaws.textract#AccessDeniedException": return [3 /*break*/, 2]; case "BadDocumentException": return [3 /*break*/, 4]; case "com.amazonaws.textract#BadDocumentException": return [3 /*break*/, 4]; case "DocumentTooLargeException": return [3 /*break*/, 6]; case "com.amazonaws.textract#DocumentTooLargeException": return [3 /*break*/, 6]; case "IdempotentParameterMismatchException": return [3 /*break*/, 8]; case "com.amazonaws.textract#IdempotentParameterMismatchException": return [3 /*break*/, 8]; case "InternalServerError": return [3 /*break*/, 10]; case "com.amazonaws.textract#InternalServerError": return [3 /*break*/, 10]; case "InvalidParameterException": return [3 /*break*/, 12]; case "com.amazonaws.textract#InvalidParameterException": return [3 /*break*/, 12]; case "InvalidS3ObjectException": return [3 /*break*/, 14]; case "com.amazonaws.textract#InvalidS3ObjectException": return [3 /*break*/, 14]; case "LimitExceededException": return [3 /*break*/, 16]; case "com.amazonaws.textract#LimitExceededException": return [3 /*break*/, 16]; case "ProvisionedThroughputExceededException": return [3 /*break*/, 18]; case "com.amazonaws.textract#ProvisionedThroughputExceededException": return [3 /*break*/, 18]; case "ThrottlingException": return [3 /*break*/, 20]; case "com.amazonaws.textract#ThrottlingException": return [3 /*break*/, 20]; case "UnsupportedDocumentException": return [3 /*break*/, 22]; case "com.amazonaws.textract#UnsupportedDocumentException": return [3 /*break*/, 22]; } return [3 /*break*/, 24]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1BadDocumentExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1DocumentTooLargeExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 18: _l = [{}]; return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)]; case 19: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 20: _m = [{}]; return [4 /*yield*/, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)]; case 21: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _m.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 22: _o = [{}]; return [4 /*yield*/, deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context)]; case 23: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _o.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 25]; case 24: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _q.label = 25; case 25: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1AccessDeniedExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1AccessDeniedException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "AccessDeniedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1BadDocumentExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1BadDocumentException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "BadDocumentException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1DocumentTooLargeExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1DocumentTooLargeException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "DocumentTooLargeException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1HumanLoopQuotaExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1HumanLoopQuotaExceededException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "HumanLoopQuotaExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1IdempotentParameterMismatchException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "IdempotentParameterMismatchException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InternalServerErrorResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InternalServerError(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InternalServerError", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InvalidJobIdExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InvalidJobIdException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidJobIdException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InvalidParameterException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidParameterException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InvalidS3ObjectExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InvalidS3ObjectException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidS3ObjectException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1LimitExceededException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ProvisionedThroughputExceededException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ProvisionedThroughputExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ThrottlingException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ThrottlingException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1UnsupportedDocumentExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1UnsupportedDocumentException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "UnsupportedDocumentException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var serializeAws_json1_1AnalyzeDocumentRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Document !== undefined && { Document: serializeAws_json1_1Document(input.Document, context) })), (input.FeatureTypes !== undefined && { FeatureTypes: serializeAws_json1_1FeatureTypes(input.FeatureTypes, context), })), (input.HumanLoopConfig !== undefined && { HumanLoopConfig: serializeAws_json1_1HumanLoopConfig(input.HumanLoopConfig, context), })); }; var serializeAws_json1_1ContentClassifiers = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1DetectDocumentTextRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Document !== undefined && { Document: serializeAws_json1_1Document(input.Document, context) })); }; var serializeAws_json1_1Document = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Bytes !== undefined && { Bytes: context.base64Encoder(input.Bytes) })), (input.S3Object !== undefined && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) })); }; var serializeAws_json1_1DocumentLocation = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.S3Object !== undefined && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) })); }; var serializeAws_json1_1FeatureTypes = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1GetDocumentAnalysisRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1GetDocumentTextDetectionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1HumanLoopConfig = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DataAttributes !== undefined && { DataAttributes: serializeAws_json1_1HumanLoopDataAttributes(input.DataAttributes, context), })), (input.FlowDefinitionArn !== undefined && { FlowDefinitionArn: input.FlowDefinitionArn })), (input.HumanLoopName !== undefined && { HumanLoopName: input.HumanLoopName })); }; var serializeAws_json1_1HumanLoopDataAttributes = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ContentClassifiers !== undefined && { ContentClassifiers: serializeAws_json1_1ContentClassifiers(input.ContentClassifiers, context), })); }; var serializeAws_json1_1NotificationChannel = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.RoleArn !== undefined && { RoleArn: input.RoleArn })), (input.SNSTopicArn !== undefined && { SNSTopicArn: input.SNSTopicArn })); }; var serializeAws_json1_1S3Object = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Bucket !== undefined && { Bucket: input.Bucket })), (input.Name !== undefined && { Name: input.Name })), (input.Version !== undefined && { Version: input.Version })); }; var serializeAws_json1_1StartDocumentAnalysisRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ClientRequestToken !== undefined && { ClientRequestToken: input.ClientRequestToken })), (input.DocumentLocation !== undefined && { DocumentLocation: serializeAws_json1_1DocumentLocation(input.DocumentLocation, context), })), (input.FeatureTypes !== undefined && { FeatureTypes: serializeAws_json1_1FeatureTypes(input.FeatureTypes, context), })), (input.JobTag !== undefined && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined && { NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context), })); }; var serializeAws_json1_1StartDocumentTextDetectionRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ClientRequestToken !== undefined && { ClientRequestToken: input.ClientRequestToken })), (input.DocumentLocation !== undefined && { DocumentLocation: serializeAws_json1_1DocumentLocation(input.DocumentLocation, context), })), (input.JobTag !== undefined && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined && { NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context), })); }; var deserializeAws_json1_1AccessDeniedException = function (output, context) { return { __type: "AccessDeniedException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1AnalyzeDocumentResponse = function (output, context) { return { __type: "AnalyzeDocumentResponse", AnalyzeDocumentModelVersion: output.AnalyzeDocumentModelVersion !== undefined && output.AnalyzeDocumentModelVersion !== null ? output.AnalyzeDocumentModelVersion : undefined, Blocks: output.Blocks !== undefined && output.Blocks !== null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined, DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null ? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context) : undefined, HumanLoopActivationOutput: output.HumanLoopActivationOutput !== undefined && output.HumanLoopActivationOutput !== null ? deserializeAws_json1_1HumanLoopActivationOutput(output.HumanLoopActivationOutput, context) : undefined, }; }; var deserializeAws_json1_1BadDocumentException = function (output, context) { return { __type: "BadDocumentException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1Block = function (output, context) { return { __type: "Block", BlockType: output.BlockType !== undefined && output.BlockType !== null ? output.BlockType : undefined, ColumnIndex: output.ColumnIndex !== undefined && output.ColumnIndex !== null ? output.ColumnIndex : undefined, ColumnSpan: output.ColumnSpan !== undefined && output.ColumnSpan !== null ? output.ColumnSpan : undefined, Confidence: output.Confidence !== undefined && output.Confidence !== null ? output.Confidence : undefined, EntityTypes: output.EntityTypes !== undefined && output.EntityTypes !== null ? deserializeAws_json1_1EntityTypes(output.EntityTypes, context) : undefined, Geometry: output.Geometry !== undefined && output.Geometry !== null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined, Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, Page: output.Page !== undefined && output.Page !== null ? output.Page : undefined, Relationships: output.Relationships !== undefined && output.Relationships !== null ? deserializeAws_json1_1RelationshipList(output.Relationships, context) : undefined, RowIndex: output.RowIndex !== undefined && output.RowIndex !== null ? output.RowIndex : undefined, RowSpan: output.RowSpan !== undefined && output.RowSpan !== null ? output.RowSpan : undefined, SelectionStatus: output.SelectionStatus !== undefined && output.SelectionStatus !== null ? output.SelectionStatus : undefined, Text: output.Text !== undefined && output.Text !== null ? output.Text : undefined, }; }; var deserializeAws_json1_1BlockList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Block(entry, context); }); }; var deserializeAws_json1_1BoundingBox = function (output, context) { return { __type: "BoundingBox", Height: output.Height !== undefined && output.Height !== null ? output.Height : undefined, Left: output.Left !== undefined && output.Left !== null ? output.Left : undefined, Top: output.Top !== undefined && output.Top !== null ? output.Top : undefined, Width: output.Width !== undefined && output.Width !== null ? output.Width : undefined, }; }; var deserializeAws_json1_1DetectDocumentTextResponse = function (output, context) { return { __type: "DetectDocumentTextResponse", Blocks: output.Blocks !== undefined && output.Blocks !== null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined, DetectDocumentTextModelVersion: output.DetectDocumentTextModelVersion !== undefined && output.DetectDocumentTextModelVersion !== null ? output.DetectDocumentTextModelVersion : undefined, DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null ? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context) : undefined, }; }; var deserializeAws_json1_1DocumentMetadata = function (output, context) { return { __type: "DocumentMetadata", Pages: output.Pages !== undefined && output.Pages !== null ? output.Pages : undefined, }; }; var deserializeAws_json1_1DocumentTooLargeException = function (output, context) { return { __type: "DocumentTooLargeException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1EntityTypes = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1Geometry = function (output, context) { return { __type: "Geometry", BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined, Polygon: output.Polygon !== undefined && output.Polygon !== null ? deserializeAws_json1_1Polygon(output.Polygon, context) : undefined, }; }; var deserializeAws_json1_1GetDocumentAnalysisResponse = function (output, context) { return { __type: "GetDocumentAnalysisResponse", AnalyzeDocumentModelVersion: output.AnalyzeDocumentModelVersion !== undefined && output.AnalyzeDocumentModelVersion !== null ? output.AnalyzeDocumentModelVersion : undefined, Blocks: output.Blocks !== undefined && output.Blocks !== null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined, DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null ? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context) : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined, Warnings: output.Warnings !== undefined && output.Warnings !== null ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined, }; }; var deserializeAws_json1_1GetDocumentTextDetectionResponse = function (output, context) { return { __type: "GetDocumentTextDetectionResponse", Blocks: output.Blocks !== undefined && output.Blocks !== null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined, DetectDocumentTextModelVersion: output.DetectDocumentTextModelVersion !== undefined && output.DetectDocumentTextModelVersion !== null ? output.DetectDocumentTextModelVersion : undefined, DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null ? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context) : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined, Warnings: output.Warnings !== undefined && output.Warnings !== null ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined, }; }; var deserializeAws_json1_1HumanLoopActivationOutput = function (output, context) { return { __type: "HumanLoopActivationOutput", HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults !== undefined && output.HumanLoopActivationConditionsEvaluationResults !== null ? new _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["LazyJsonString"](output.HumanLoopActivationConditionsEvaluationResults) : undefined, HumanLoopActivationReasons: output.HumanLoopActivationReasons !== undefined && output.HumanLoopActivationReasons !== null ? deserializeAws_json1_1HumanLoopActivationReasons(output.HumanLoopActivationReasons, context) : undefined, HumanLoopArn: output.HumanLoopArn !== undefined && output.HumanLoopArn !== null ? output.HumanLoopArn : undefined, }; }; var deserializeAws_json1_1HumanLoopActivationReasons = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1HumanLoopQuotaExceededException = function (output, context) { return { __type: "HumanLoopQuotaExceededException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, QuotaCode: output.QuotaCode !== undefined && output.QuotaCode !== null ? output.QuotaCode : undefined, ResourceType: output.ResourceType !== undefined && output.ResourceType !== null ? output.ResourceType : undefined, ServiceCode: output.ServiceCode !== undefined && output.ServiceCode !== null ? output.ServiceCode : undefined, }; }; var deserializeAws_json1_1IdempotentParameterMismatchException = function (output, context) { return { __type: "IdempotentParameterMismatchException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1IdList = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1InternalServerError = function (output, context) { return { __type: "InternalServerError", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1InvalidJobIdException = function (output, context) { return { __type: "InvalidJobIdException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1InvalidParameterException = function (output, context) { return { __type: "InvalidParameterException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1InvalidS3ObjectException = function (output, context) { return { __type: "InvalidS3ObjectException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1LimitExceededException = function (output, context) { return { __type: "LimitExceededException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1Pages = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1Point = function (output, context) { return { __type: "Point", X: output.X !== undefined && output.X !== null ? output.X : undefined, Y: output.Y !== undefined && output.Y !== null ? output.Y : undefined, }; }; var deserializeAws_json1_1Polygon = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Point(entry, context); }); }; var deserializeAws_json1_1ProvisionedThroughputExceededException = function (output, context) { return { __type: "ProvisionedThroughputExceededException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1Relationship = function (output, context) { return { __type: "Relationship", Ids: output.Ids !== undefined && output.Ids !== null ? deserializeAws_json1_1IdList(output.Ids, context) : undefined, Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, }; }; var deserializeAws_json1_1RelationshipList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Relationship(entry, context); }); }; var deserializeAws_json1_1StartDocumentAnalysisResponse = function (output, context) { return { __type: "StartDocumentAnalysisResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, }; }; var deserializeAws_json1_1StartDocumentTextDetectionResponse = function (output, context) { return { __type: "StartDocumentTextDetectionResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, }; }; var deserializeAws_json1_1ThrottlingException = function (output, context) { return { __type: "ThrottlingException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1UnsupportedDocumentException = function (output, context) { return { __type: "UnsupportedDocumentException", Code: output.Code !== undefined && output.Code !== null ? output.Code : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1Warning = function (output, context) { return { __type: "Warning", ErrorCode: output.ErrorCode !== undefined && output.ErrorCode !== null ? output.ErrorCode : undefined, Pages: output.Pages !== undefined && output.Pages !== null ? deserializeAws_json1_1Pages(output.Pages, context) : undefined, }; }; var deserializeAws_json1_1Warnings = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Warning(entry, context); }); }; var deserializeMetadata = function (output) { return ({ httpStatusCode: output.statusCode, httpHeaders: output.headers, requestId: output.headers["x-amzn-requestid"], }); }; // Collect low-level response body stream to Uint8Array. var collectBody = function (streamBody, context) { if (streamBody === void 0) { streamBody = new Uint8Array(); } if (streamBody instanceof Uint8Array) { return Promise.resolve(streamBody); } return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); }; // Encode Uint8Array data into string with utf-8. var collectBodyString = function (streamBody, context) { return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); }); }; var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var _a, hostname, _b, protocol, port, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; contents = { protocol: protocol, hostname: hostname, port: port, method: "POST", path: path, headers: headers, }; if (resolvedHostname !== undefined) { contents.hostname = resolvedHostname; } if (body !== undefined) { contents.body = body; } return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"](contents)]; } }); }); }; var parseBody = function (streamBody, context) { return collectBodyString(streamBody, context).then(function (encoded) { if (encoded.length) { return JSON.parse(encoded); } return {}; }); }; //# sourceMappingURL=Aws_json1_1.js.map /***/ }), /***/ "dt0z": /*!*****************************************!*\ !*** ./node_modules/lodash/toString.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var baseToString = __webpack_require__(/*! ./_baseToString */ "zoYe"); /** * Converts `value` to a string. An empty string is returned for `null` * and `undefined` values. The sign of `-0` is preserved. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {string} Returns the converted string. * @example * * _.toString(null); * // => '' * * _.toString(-0); * // => '-0' * * _.toString([1, 2, 3]); * // => '1,2,3' */ function toString(value) { return value == null ? '' : baseToString(value); } module.exports = toString; /***/ }), /***/ "duQQ": /*!*******************************************************************!*\ !*** ./node_modules/@aws-crypto/ie11-detection/build/MsWindow.js ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isMsWindow = void 0; var msSubtleCryptoMethods = [ "decrypt", "digest", "encrypt", "exportKey", "generateKey", "importKey", "sign", "verify" ]; function quacksLikeAnMsWindow(window) { return "MSInputMethodContext" in window && "msCrypto" in window; } /** * Determines if the provided window is (or is like) the window object one would * expect to encounter in Internet Explorer 11. */ function isMsWindow(window) { if (quacksLikeAnMsWindow(window) && window.msCrypto.subtle !== undefined) { var _a = window.msCrypto, getRandomValues = _a.getRandomValues, subtle_1 = _a.subtle; return msSubtleCryptoMethods .map(function (methodName) { return subtle_1[methodName]; }) .concat(getRandomValues) .every(function (method) { return typeof method === "function"; }); } return false; } exports.isMsWindow = isMsWindow; //# sourceMappingURL=MsWindow.js.map /***/ }), /***/ "dwPZ": /*!*************************************************************************!*\ !*** ./node_modules/graphql/validation/rules/UniqueInputFieldNames.mjs ***! \*************************************************************************/ /*! exports provided: duplicateInputFieldMessage, UniqueInputFieldNames */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "duplicateInputFieldMessage", function() { return duplicateInputFieldMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UniqueInputFieldNames", function() { return UniqueInputFieldNames; }); /* harmony import */ var _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error/GraphQLError */ "dWS+"); /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ function duplicateInputFieldMessage(fieldName) { return "There can be only one input field named \"".concat(fieldName, "\"."); } /** * Unique input field names * * A GraphQL input object value is only valid if all supplied fields are * uniquely named. */ function UniqueInputFieldNames(context) { var knownNameStack = []; var knownNames = Object.create(null); return { ObjectValue: { enter: function enter() { knownNameStack.push(knownNames); knownNames = Object.create(null); }, leave: function leave() { knownNames = knownNameStack.pop(); } }, ObjectField: function ObjectField(node) { var fieldName = node.name.value; if (knownNames[fieldName]) { context.reportError(new _error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](duplicateInputFieldMessage(fieldName), [knownNames[fieldName], node.name])); } else { knownNames[fieldName] = node.name; } return false; } }; } /***/ }), /***/ "e/0r": /*!******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/StopSentimentDetectionJobCommand.js ***! \******************************************************************************************************/ /*! exports provided: StopSentimentDetectionJobCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopSentimentDetectionJobCommand", function() { return StopSentimentDetectionJobCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StopSentimentDetectionJobCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StopSentimentDetectionJobCommand, _super); // Start section: command_properties // End section: command_properties function StopSentimentDetectionJobCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StopSentimentDetectionJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StopSentimentDetectionJobRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StopSentimentDetectionJobResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StopSentimentDetectionJobCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StopSentimentDetectionJobCommand"])(input, context); }; StopSentimentDetectionJobCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StopSentimentDetectionJobCommand"])(output, context); }; return StopSentimentDetectionJobCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StopSentimentDetectionJobCommand.js.map /***/ }), /***/ "e0nL": /*!************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateAppCommand.js ***! \************************************************************************************/ /*! exports provided: CreateAppCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateAppCommand", function() { return CreateAppCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var CreateAppCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateAppCommand, _super); // Start section: command_properties // End section: command_properties function CreateAppCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } CreateAppCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateAppRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["CreateAppResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; CreateAppCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateAppCommand"])(input, context); }; CreateAppCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateAppCommand"])(output, context); }; return CreateAppCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=CreateAppCommand.js.map /***/ }), /***/ "e4Nc": /*!******************************************!*\ !*** ./node_modules/lodash/_MapCache.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "fGT3"), mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "k+1r"), mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "JHgL"), mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "pSRY"), mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "H8j4"); /** * Creates a map cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function MapCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `MapCache`. MapCache.prototype.clear = mapCacheClear; MapCache.prototype['delete'] = mapCacheDelete; MapCache.prototype.get = mapCacheGet; MapCache.prototype.has = mapCacheHas; MapCache.prototype.set = mapCacheSet; module.exports = MapCache; /***/ }), /***/ "e5cp": /*!*************************************************!*\ !*** ./node_modules/lodash/_baseIsEqualDeep.js ***! \*************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var Stack = __webpack_require__(/*! ./_Stack */ "fmRc"), equalArrays = __webpack_require__(/*! ./_equalArrays */ "or5M"), equalByTag = __webpack_require__(/*! ./_equalByTag */ "HDyB"), equalObjects = __webpack_require__(/*! ./_equalObjects */ "seXi"), getTag = __webpack_require__(/*! ./_getTag */ "QqLw"), isArray = __webpack_require__(/*! ./isArray */ "Z0cm"), isBuffer = __webpack_require__(/*! ./isBuffer */ "DSRE"), isTypedArray = __webpack_require__(/*! ./isTypedArray */ "c6wG"); /** Used to compose bitmasks for value comparisons. */ var COMPARE_PARTIAL_FLAG = 1; /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', objectTag = '[object Object]'; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * A specialized version of `baseIsEqual` for arrays and objects which performs * deep comparisons and tracks traversed objects enabling objects with circular * references to be compared. * * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} [stack] Tracks traversed `object` and `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other); objTag = objTag == argsTag ? objectTag : objTag; othTag = othTag == argsTag ? objectTag : othTag; var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; if (isSameTag && isBuffer(object)) { if (!isBuffer(other)) { return false; } objIsArr = true; objIsObj = false; } if (isSameTag && !objIsObj) { stack || (stack = new Stack); return (objIsArr || isTypedArray(object)) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); } if (!(bitmask & COMPARE_PARTIAL_FLAG)) { var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); if (objIsWrapped || othIsWrapped) { var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; stack || (stack = new Stack); return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); } } if (!isSameTag) { return false; } stack || (stack = new Stack); return equalObjects(object, other, bitmask, customizer, equalFunc, stack); } module.exports = baseIsEqualDeep; /***/ }), /***/ "e8O2": /*!***************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignsCommand.js ***! \***************************************************************************************/ /*! exports provided: GetCampaignsCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsCommand", function() { return GetCampaignsCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetCampaignsCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignsCommand, _super); // Start section: command_properties // End section: command_properties function GetCampaignsCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetCampaignsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCampaignsRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetCampaignsResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetCampaignsCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignsCommand"])(input, context); }; GetCampaignsCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignsCommand"])(output, context); }; return GetCampaignsCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetCampaignsCommand.js.map /***/ }), /***/ "eAe6": /*!******************************************************************!*\ !*** ./node_modules/@aws-sdk/property-provider/dist/es/index.js ***! \******************************************************************/ /*! exports provided: chain, fromStatic, memoize, ProviderError */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _chain__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chain */ "IkIO"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "chain", function() { return _chain__WEBPACK_IMPORTED_MODULE_0__["chain"]; }); /* harmony import */ var _fromStatic__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./fromStatic */ "hM1C"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "fromStatic", function() { return _fromStatic__WEBPACK_IMPORTED_MODULE_1__["fromStatic"]; }); /* harmony import */ var _memoize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./memoize */ "sbYH"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "memoize", function() { return _memoize__WEBPACK_IMPORTED_MODULE_2__["memoize"]; }); /* harmony import */ var _ProviderError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ProviderError */ "v8xh"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProviderError", function() { return _ProviderError__WEBPACK_IMPORTED_MODULE_3__["ProviderError"]; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxTQUFTLENBQUM7QUFDeEIsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxpQkFBaUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2NoYWluXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9mcm9tU3RhdGljXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9tZW1vaXplXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9Qcm92aWRlckVycm9yXCI7XG4iXX0= /***/ }), /***/ "eBKz": /*!**********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/StopStreamEncryptionCommand.js ***! \**********************************************************************************************/ /*! exports provided: StopStreamEncryptionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopStreamEncryptionCommand", function() { return StopStreamEncryptionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StopStreamEncryptionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StopStreamEncryptionCommand, _super); // Start section: command_properties // End section: command_properties function StopStreamEncryptionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StopStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StopStreamEncryptionInput"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StopStreamEncryptionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StopStreamEncryptionCommand"])(input, context); }; StopStreamEncryptionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StopStreamEncryptionCommand"])(output, context); }; return StopStreamEncryptionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StopStreamEncryptionCommand.js.map /***/ }), /***/ "eHe1": /*!***************************************************!*\ !*** ./node_modules/graphql/jsutils/isFinite.mjs ***! \***************************************************/ /*! exports provided: default */ /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /** * Copyright (c) 2018-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * strict */ /* eslint-disable no-redeclare */ // $FlowFixMe workaround for: https://github.com/facebook/flow/issues/4441 var isFinite = Number.isFinite || function (value) { return typeof value === 'number' && isFinite(value); }; /* harmony default export */ __webpack_exports__["default"] = (isFinite); /***/ }), /***/ "eIcr": /*!*************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/commands/StartLabelDetectionCommand.js ***! \*************************************************************************************************/ /*! exports provided: StartLabelDetectionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartLabelDetectionCommand", function() { return StartLabelDetectionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "wUEh"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "TuaZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StartLabelDetectionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartLabelDetectionCommand, _super); // Start section: command_properties // End section: command_properties function StartLabelDetectionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StartLabelDetectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartLabelDetectionRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartLabelDetectionResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StartLabelDetectionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartLabelDetectionCommand"])(input, context); }; StartLabelDetectionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartLabelDetectionCommand"])(output, context); }; return StartLabelDetectionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StartLabelDetectionCommand.js.map /***/ }), /***/ "eIep": /*!********************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/switchMap.js ***! \********************************************************************/ /*! exports provided: switchMap */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "switchMap", function() { return switchMap; }); /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./map */ "lJxs"); /* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../observable/from */ "Cfvw"); /* harmony import */ var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../innerSubscribe */ "zx2A"); function switchMap(project, resultSelector) { if (typeof resultSelector === 'function') { return (source) => source.pipe(switchMap((a, i) => Object(_observable_from__WEBPACK_IMPORTED_MODULE_1__["from"])(project(a, i)).pipe(Object(_map__WEBPACK_IMPORTED_MODULE_0__["map"])((b, ii) => resultSelector(a, b, i, ii))))); } return (source) => source.lift(new SwitchMapOperator(project)); } class SwitchMapOperator { constructor(project) { this.project = project; } call(subscriber, source) { return source.subscribe(new SwitchMapSubscriber(subscriber, this.project)); } } class SwitchMapSubscriber extends _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleOuterSubscriber"] { constructor(destination, project) { super(destination); this.project = project; this.index = 0; } _next(value) { let result; const index = this.index++; try { result = this.project(value, index); } catch (error) { this.destination.error(error); return; } this._innerSub(result); } _innerSub(result) { const innerSubscription = this.innerSubscription; if (innerSubscription) { innerSubscription.unsubscribe(); } const innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleInnerSubscriber"](this); const destination = this.destination; destination.add(innerSubscriber); this.innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["innerSubscribe"])(result, innerSubscriber); if (this.innerSubscription !== innerSubscriber) { destination.add(this.innerSubscription); } } _complete() { const { innerSubscription } = this; if (!innerSubscription || innerSubscription.closed) { super._complete(); } this.unsubscribe(); } _unsubscribe() { this.innerSubscription = undefined; } notifyComplete() { this.innerSubscription = undefined; if (this.isStopped) { super._complete(); } } notifyNext(innerValue) { this.destination.next(innerValue); } } //# sourceMappingURL=switchMap.js.map /***/ }), /***/ "eIkY": /*!**************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib/JS.js ***! \**************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); var MIME_MAP = [ { type: 'text/plain', ext: 'txt' }, { type: 'text/html', ext: 'html' }, { type: 'text/javascript', ext: 'js' }, { type: 'text/css', ext: 'css' }, { type: 'text/csv', ext: 'csv' }, { type: 'text/yaml', ext: 'yml' }, { type: 'text/yaml', ext: 'yaml' }, { type: 'text/calendar', ext: 'ics' }, { type: 'text/calendar', ext: 'ical' }, { type: 'image/apng', ext: 'apng' }, { type: 'image/bmp', ext: 'bmp' }, { type: 'image/gif', ext: 'gif' }, { type: 'image/x-icon', ext: 'ico' }, { type: 'image/x-icon', ext: 'cur' }, { type: 'image/jpeg', ext: 'jpg' }, { type: 'image/jpeg', ext: 'jpeg' }, { type: 'image/jpeg', ext: 'jfif' }, { type: 'image/jpeg', ext: 'pjp' }, { type: 'image/jpeg', ext: 'pjpeg' }, { type: 'image/png', ext: 'png' }, { type: 'image/svg+xml', ext: 'svg' }, { type: 'image/tiff', ext: 'tif' }, { type: 'image/tiff', ext: 'tiff' }, { type: 'image/webp', ext: 'webp' }, { type: 'application/json', ext: 'json' }, { type: 'application/xml', ext: 'xml' }, { type: 'application/x-sh', ext: 'sh' }, { type: 'application/zip', ext: 'zip' }, { type: 'application/x-rar-compressed', ext: 'rar' }, { type: 'application/x-tar', ext: 'tar' }, { type: 'application/x-bzip', ext: 'bz' }, { type: 'application/x-bzip2', ext: 'bz2' }, { type: 'application/pdf', ext: 'pdf' }, { type: 'application/java-archive', ext: 'jar' }, { type: 'application/msword', ext: 'doc' }, { type: 'application/vnd.ms-excel', ext: 'xls' }, { type: 'application/vnd.ms-excel', ext: 'xlsx' }, { type: 'message/rfc822', ext: 'eml' }, ]; exports.isEmpty = function (obj) { if (obj === void 0) { obj = {}; } return Object.keys(obj).length === 0; }; exports.sortByField = function (list, field, dir) { if (!list || !list.sort) { return false; } var dirX = dir && dir === 'desc' ? -1 : 1; list.sort(function (a, b) { var a_val = a[field]; var b_val = b[field]; if (typeof b_val === 'undefined') { return typeof a_val === 'undefined' ? 0 : 1 * dirX; } if (typeof a_val === 'undefined') { return -1 * dirX; } if (a_val < b_val) { return -1 * dirX; } if (a_val > b_val) { return 1 * dirX; } return 0; }); return true; }; exports.objectLessAttributes = function (obj, less) { var ret = Object.assign({}, obj); if (less) { if (typeof less === 'string') { delete ret[less]; } else { less.forEach(function (attr) { delete ret[attr]; }); } } return ret; }; exports.filenameToContentType = function (filename, defVal) { if (defVal === void 0) { defVal = 'application/octet-stream'; } var name = filename.toLowerCase(); var filtered = MIME_MAP.filter(function (mime) { return name.endsWith('.' + mime.ext); }); return filtered.length > 0 ? filtered[0].type : defVal; }; exports.isTextFile = function (contentType) { var type = contentType.toLowerCase(); if (type.startsWith('text/')) { return true; } return ('application/json' === type || 'application/xml' === type || 'application/sh' === type); }; exports.generateRandomString = function () { var result = ''; var chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; for (var i = 32; i > 0; i -= 1) { result += chars[Math.floor(Math.random() * chars.length)]; } return result; }; exports.makeQuerablePromise = function (promise) { if (promise.isResolved) return promise; var isPending = true; var isRejected = false; var isFullfilled = false; var result = promise.then(function (data) { isFullfilled = true; isPending = false; return data; }, function (e) { isRejected = true; isPending = false; throw e; }); result.isFullfilled = function () { return isFullfilled; }; result.isPending = function () { return isPending; }; result.isRejected = function () { return isRejected; }; return result; }; exports.isWebWorker = function () { if (typeof self === 'undefined') { return false; } var selfContext = self; return typeof selfContext.WorkerGlobalScope !== 'undefined' && self instanceof selfContext.WorkerGlobalScope; }; exports.browserOrNode = function () { var isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined'; var isNode = typeof process !== 'undefined' && process.versions != null && process.versions.node != null; return { isBrowser: isBrowser, isNode: isNode, }; }; /** * transfer the first letter of the keys to lowercase * @param {Object} obj - the object need to be transferred * @param {Array} whiteListForItself - whitelist itself from being transferred * @param {Array} whiteListForChildren - whitelist its children keys from being transferred */ exports.transferKeyToLowerCase = function (obj, whiteListForItself, whiteListForChildren) { if (whiteListForItself === void 0) { whiteListForItself = []; } if (whiteListForChildren === void 0) { whiteListForChildren = []; } if (!exports.isStrictObject(obj)) return obj; var ret = {}; for (var key in obj) { if (obj.hasOwnProperty(key)) { var transferedKey = whiteListForItself.includes(key) ? key : key[0].toLowerCase() + key.slice(1); ret[transferedKey] = whiteListForChildren.includes(key) ? obj[key] : exports.transferKeyToLowerCase(obj[key], whiteListForItself, whiteListForChildren); } } return ret; }; /** * transfer the first letter of the keys to lowercase * @param {Object} obj - the object need to be transferred * @param {Array} whiteListForItself - whitelist itself from being transferred * @param {Array} whiteListForChildren - whitelist its children keys from being transferred */ exports.transferKeyToUpperCase = function (obj, whiteListForItself, whiteListForChildren) { if (whiteListForItself === void 0) { whiteListForItself = []; } if (whiteListForChildren === void 0) { whiteListForChildren = []; } if (!exports.isStrictObject(obj)) return obj; var ret = {}; for (var key in obj) { if (obj.hasOwnProperty(key)) { var transferredKey = whiteListForItself.includes(key) ? key : key[0].toUpperCase() + key.slice(1); ret[transferredKey] = whiteListForChildren.includes(key) ? obj[key] : exports.transferKeyToUpperCase(obj[key], whiteListForItself, whiteListForChildren); } } return ret; }; /** * Return true if the object is a strict object * which means it's not Array, Function, Number, String, Boolean or Null * @param obj the Object */ exports.isStrictObject = function (obj) { return (obj instanceof Object && !(obj instanceof Array) && !(obj instanceof Function) && !(obj instanceof Number) && !(obj instanceof String) && !(obj instanceof Boolean)); }; /** * @deprecated use per-function imports */ var JS = /** @class */ (function () { function JS() { } JS.isEmpty = exports.isEmpty; JS.sortByField = exports.sortByField; JS.objectLessAttributes = exports.objectLessAttributes; JS.filenameToContentType = exports.filenameToContentType; JS.isTextFile = exports.isTextFile; JS.generateRandomString = exports.generateRandomString; JS.makeQuerablePromise = exports.makeQuerablePromise; JS.isWebWorker = exports.isWebWorker; JS.browserOrNode = exports.browserOrNode; JS.transferKeyToLowerCase = exports.transferKeyToLowerCase; JS.transferKeyToUpperCase = exports.transferKeyToUpperCase; JS.isStrictObject = exports.isStrictObject; return JS; }()); exports.JS = JS; /** * @deprecated use per-function imports */ exports.default = JS; //# sourceMappingURL=JS.js.map /***/ }), /***/ "eNwd": /*!*************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/scheduler/animationFrame.js ***! \*************************************************************************/ /*! exports provided: animationFrameScheduler, animationFrame */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "animationFrameScheduler", function() { return animationFrameScheduler; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "animationFrame", function() { return animationFrame; }); /* harmony import */ var _AnimationFrameAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AnimationFrameAction */ "Vpsf"); /* harmony import */ var _AnimationFrameScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AnimationFrameScheduler */ "znLP"); const animationFrameScheduler = new _AnimationFrameScheduler__WEBPACK_IMPORTED_MODULE_1__["AnimationFrameScheduler"](_AnimationFrameAction__WEBPACK_IMPORTED_MODULE_0__["AnimationFrameAction"]); const animationFrame = animationFrameScheduler; //# sourceMappingURL=animationFrame.js.map /***/ }), /***/ "eRTg": /*!******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-rekognition/dist/es/pagination/ListStreamProcessorsPaginator.js ***! \******************************************************************************************************/ /*! exports provided: listStreamProcessorsPaginate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "listStreamProcessorsPaginate", function() { return listStreamProcessorsPaginate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _Rekognition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Rekognition */ "MjkZ"); /* harmony import */ var _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../RekognitionClient */ "YOij"); /* harmony import */ var _commands_ListStreamProcessorsCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/ListStreamProcessorsCommand */ "weia"); var makePagedClientRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.send(new (_commands_ListStreamProcessorsCommand__WEBPACK_IMPORTED_MODULE_3__["ListStreamProcessorsCommand"].bind.apply(_commands_ListStreamProcessorsCommand__WEBPACK_IMPORTED_MODULE_3__["ListStreamProcessorsCommand"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([void 0, input], args)))())]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; var makePagedRequest = function (client, input) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, client.listStreamProcessors.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))]; case 1: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); }; function listStreamProcessorsPaginate(config, input) { var additionalArguments = []; for (var _i = 2; _i < arguments.length; _i++) { additionalArguments[_i - 2] = arguments[_i]; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function listStreamProcessorsPaginate_1() { var token, hasNext, page; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: token = config.startingToken || ""; hasNext = true; _a.label = 1; case 1: if (!hasNext) return [3 /*break*/, 9]; input["NextToken"] = token; input["MaxResults"] = config.pageSize; if (!(config.client instanceof _Rekognition__WEBPACK_IMPORTED_MODULE_1__["Rekognition"])) return [3 /*break*/, 3]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 2: page = _a.sent(); return [3 /*break*/, 6]; case 3: if (!(config.client instanceof _RekognitionClient__WEBPACK_IMPORTED_MODULE_2__["RekognitionClient"])) return [3 /*break*/, 5]; return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))]; case 4: page = _a.sent(); return [3 /*break*/, 6]; case 5: throw new Error("Invalid client, expected Rekognition | RekognitionClient"); case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)]; case 7: return [4 /*yield*/, _a.sent()]; case 8: _a.sent(); token = page["NextToken"]; hasNext = !!token; return [3 /*break*/, 1]; case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)]; case 10: // @ts-ignore return [2 /*return*/, _a.sent()]; } }); }); } //# sourceMappingURL=ListStreamProcessorsPaginator.js.map /***/ }), /***/ "eUgh": /*!******************************************!*\ !*** ./node_modules/lodash/_arrayMap.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * A specialized version of `_.map` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the new mapped array. */ function arrayMap(array, iteratee) { var index = -1, length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { result[index] = iteratee(array[index], index, array); } return result; } module.exports = arrayMap; /***/ }), /***/ "ebwN": /*!*************************************!*\ !*** ./node_modules/lodash/_Map.js ***! \*************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__(/*! ./_getNative */ "Cwc5"), root = __webpack_require__(/*! ./_root */ "Kz5y"); /* Built-in method references that are verified to be native. */ var Map = getNative(root, 'Map'); module.exports = Map; /***/ }), /***/ "edJK": /*!******************************************************!*\ !*** ./node_modules/idb/build/esm/wrap-idb-value.js ***! \******************************************************/ /*! exports provided: a, i, r, u, w */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return reverseTransformCache; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return instanceOfAny; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return replaceTraps; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return unwrap; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return wrap; }); const instanceOfAny = (object, constructors) => constructors.some((c) => object instanceof c); let idbProxyableTypes; let cursorAdvanceMethods; // This is a function to prevent it throwing up in node environments. function getIdbProxyableTypes() { return (idbProxyableTypes || (idbProxyableTypes = [ IDBDatabase, IDBObjectStore, IDBIndex, IDBCursor, IDBTransaction, ])); } // This is a function to prevent it throwing up in node environments. function getCursorAdvanceMethods() { return (cursorAdvanceMethods || (cursorAdvanceMethods = [ IDBCursor.prototype.advance, IDBCursor.prototype.continue, IDBCursor.prototype.continuePrimaryKey, ])); } const cursorRequestMap = new WeakMap(); const transactionDoneMap = new WeakMap(); const transactionStoreNamesMap = new WeakMap(); const transformCache = new WeakMap(); const reverseTransformCache = new WeakMap(); function promisifyRequest(request) { const promise = new Promise((resolve, reject) => { const unlisten = () => { request.removeEventListener('success', success); request.removeEventListener('error', error); }; const success = () => { resolve(wrap(request.result)); unlisten(); }; const error = () => { reject(request.error); unlisten(); }; request.addEventListener('success', success); request.addEventListener('error', error); }); promise .then((value) => { // Since cursoring reuses the IDBRequest (*sigh*), we cache it for later retrieval // (see wrapFunction). if (value instanceof IDBCursor) { cursorRequestMap.set(value, request); } // Catching to avoid "Uncaught Promise exceptions" }) .catch(() => { }); // This mapping exists in reverseTransformCache but doesn't doesn't exist in transformCache. This // is because we create many promises from a single IDBRequest. reverseTransformCache.set(promise, request); return promise; } function cacheDonePromiseForTransaction(tx) { // Early bail if we've already created a done promise for this transaction. if (transactionDoneMap.has(tx)) return; const done = new Promise((resolve, reject) => { const unlisten = () => { tx.removeEventListener('complete', complete); tx.removeEventListener('error', error); tx.removeEventListener('abort', error); }; const complete = () => { resolve(); unlisten(); }; const error = () => { reject(tx.error || new DOMException('AbortError', 'AbortError')); unlisten(); }; tx.addEventListener('complete', complete); tx.addEventListener('error', error); tx.addEventListener('abort', error); }); // Cache it for later retrieval. transactionDoneMap.set(tx, done); } let idbProxyTraps = { get(target, prop, receiver) { if (target instanceof IDBTransaction) { // Special handling for transaction.done. if (prop === 'done') return transactionDoneMap.get(target); // Polyfill for objectStoreNames because of Edge. if (prop === 'objectStoreNames') { return target.objectStoreNames || transactionStoreNamesMap.get(target); } // Make tx.store return the only store in the transaction, or undefined if there are many. if (prop === 'store') { return receiver.objectStoreNames[1] ? undefined : receiver.objectStore(receiver.objectStoreNames[0]); } } // Else transform whatever we get back. return wrap(target[prop]); }, set(target, prop, value) { target[prop] = value; return true; }, has(target, prop) { if (target instanceof IDBTransaction && (prop === 'done' || prop === 'store')) { return true; } return prop in target; }, }; function replaceTraps(callback) { idbProxyTraps = callback(idbProxyTraps); } function wrapFunction(func) { // Due to expected object equality (which is enforced by the caching in `wrap`), we // only create one new func per func. // Edge doesn't support objectStoreNames (booo), so we polyfill it here. if (func === IDBDatabase.prototype.transaction && !('objectStoreNames' in IDBTransaction.prototype)) { return function (storeNames, ...args) { const tx = func.call(unwrap(this), storeNames, ...args); transactionStoreNamesMap.set(tx, storeNames.sort ? storeNames.sort() : [storeNames]); return wrap(tx); }; } // Cursor methods are special, as the behaviour is a little more different to standard IDB. In // IDB, you advance the cursor and wait for a new 'success' on the IDBRequest that gave you the // cursor. It's kinda like a promise that can resolve with many values. That doesn't make sense // with real promises, so each advance methods returns a new promise for the cursor object, or // undefined if the end of the cursor has been reached. if (getCursorAdvanceMethods().includes(func)) { return function (...args) { // Calling the original function with the proxy as 'this' causes ILLEGAL INVOCATION, so we use // the original object. func.apply(unwrap(this), args); return wrap(cursorRequestMap.get(this)); }; } return function (...args) { // Calling the original function with the proxy as 'this' causes ILLEGAL INVOCATION, so we use // the original object. return wrap(func.apply(unwrap(this), args)); }; } function transformCachableValue(value) { if (typeof value === 'function') return wrapFunction(value); // This doesn't return, it just creates a 'done' promise for the transaction, // which is later returned for transaction.done (see idbObjectHandler). if (value instanceof IDBTransaction) cacheDonePromiseForTransaction(value); if (instanceOfAny(value, getIdbProxyableTypes())) return new Proxy(value, idbProxyTraps); // Return the same value back if we're not going to transform it. return value; } function wrap(value) { // We sometimes generate multiple promises from a single IDBRequest (eg when cursoring), because // IDB is weird and a single IDBRequest can yield many responses, so these can't be cached. if (value instanceof IDBRequest) return promisifyRequest(value); // If we've already transformed this value before, reuse the transformed value. // This is faster, but it also provides object equality. if (transformCache.has(value)) return transformCache.get(value); const newValue = transformCachableValue(value); // Not all types are transformed. // These may be primitive types, so they can't be WeakMap keys. if (newValue !== value) { transformCache.set(value, newValue); reverseTransformCache.set(newValue, value); } return newValue; } const unwrap = (value) => reverseTransformCache.get(value); /***/ }), /***/ "edo5": /*!**************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/endpoints.js ***! \**************************************************************/ /*! exports provided: defaultRegionInfoProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRegionInfoProvider", function() { return defaultRegionInfoProvider; }); // Partition default templates var AWS_TEMPLATE = "s3.{region}.amazonaws.com"; var AWS_CN_TEMPLATE = "s3.{region}.amazonaws.com.cn"; var AWS_ISO_TEMPLATE = "s3.{region}.c2s.ic.gov"; var AWS_ISO_B_TEMPLATE = "s3.{region}.sc2s.sgov.gov"; var AWS_US_GOV_TEMPLATE = "s3.{region}.amazonaws.com"; // Partition regions var AWS_REGIONS = new Set([ "ap-east-1", "ap-northeast-1", "ap-northeast-2", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "eu-central-1", "eu-north-1", "eu-west-1", "eu-west-2", "eu-west-3", "me-south-1", "sa-east-1", "us-east-1", "us-east-2", "us-west-1", "us-west-2", ]); var AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]); var AWS_ISO_REGIONS = new Set(["us-iso-east-1"]); var AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]); var AWS_US_GOV_REGIONS = new Set(["us-gov-east-1", "us-gov-west-1"]); var defaultRegionInfoProvider = function (region, options) { var regionInfo = undefined; switch (region) { // First, try to match exact region names. case "ap-east-1": regionInfo = { hostname: "s3.ap-east-1.amazonaws.com", partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "s3.ap-northeast-1.amazonaws.com", partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "s3.ap-northeast-2.amazonaws.com", partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "s3.ap-south-1.amazonaws.com", partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "s3.ap-southeast-1.amazonaws.com", partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "s3.ap-southeast-2.amazonaws.com", partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "s3.ca-central-1.amazonaws.com", partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "s3.cn-north-1.amazonaws.com.cn", partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "s3.cn-northwest-1.amazonaws.com.cn", partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "s3.eu-central-1.amazonaws.com", partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "s3.eu-north-1.amazonaws.com", partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "s3.eu-west-1.amazonaws.com", partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "s3.eu-west-2.amazonaws.com", partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "s3.eu-west-3.amazonaws.com", partition: "aws", }; break; case "fips-us-gov-west-1": regionInfo = { hostname: "s3-fips-us-gov-west-1.amazonaws.com", partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "me-south-1": regionInfo = { hostname: "s3.me-south-1.amazonaws.com", partition: "aws", }; break; case "s3-external-1": regionInfo = { hostname: "s3-external-1.amazonaws.com", partition: "aws", signingRegion: "us-east-1", }; break; case "sa-east-1": regionInfo = { hostname: "s3.sa-east-1.amazonaws.com", partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "s3.amazonaws.com", partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "s3.us-east-2.amazonaws.com", partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "s3.us-gov-east-1.amazonaws.com", partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "s3.us-gov-west-1.amazonaws.com", partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "s3.us-iso-east-1.c2s.ic.gov", partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "s3.us-isob-east-1.sc2s.sgov.gov", partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "s3.us-west-1.amazonaws.com", partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "s3.us-west-2.amazonaws.com", partition: "aws", }; break; // Next, try to match partition endpoints. default: if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), partition: "aws", }; } } return Promise.resolve(regionInfo); }; //# sourceMappingURL=endpoints.js.map /***/ }), /***/ "eh4a": /*!*********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-translate/dist/es/protocols/Aws_json1_1.js ***! \*********************************************************************************/ /*! exports provided: serializeAws_json1_1DeleteTerminologyCommand, serializeAws_json1_1DescribeTextTranslationJobCommand, serializeAws_json1_1GetTerminologyCommand, serializeAws_json1_1ImportTerminologyCommand, serializeAws_json1_1ListTerminologiesCommand, serializeAws_json1_1ListTextTranslationJobsCommand, serializeAws_json1_1StartTextTranslationJobCommand, serializeAws_json1_1StopTextTranslationJobCommand, serializeAws_json1_1TranslateTextCommand, deserializeAws_json1_1DeleteTerminologyCommand, deserializeAws_json1_1DescribeTextTranslationJobCommand, deserializeAws_json1_1GetTerminologyCommand, deserializeAws_json1_1ImportTerminologyCommand, deserializeAws_json1_1ListTerminologiesCommand, deserializeAws_json1_1ListTextTranslationJobsCommand, deserializeAws_json1_1StartTextTranslationJobCommand, deserializeAws_json1_1StopTextTranslationJobCommand, deserializeAws_json1_1TranslateTextCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeleteTerminologyCommand", function() { return serializeAws_json1_1DeleteTerminologyCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeTextTranslationJobCommand", function() { return serializeAws_json1_1DescribeTextTranslationJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetTerminologyCommand", function() { return serializeAws_json1_1GetTerminologyCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ImportTerminologyCommand", function() { return serializeAws_json1_1ImportTerminologyCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListTerminologiesCommand", function() { return serializeAws_json1_1ListTerminologiesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListTextTranslationJobsCommand", function() { return serializeAws_json1_1ListTextTranslationJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartTextTranslationJobCommand", function() { return serializeAws_json1_1StartTextTranslationJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StopTextTranslationJobCommand", function() { return serializeAws_json1_1StopTextTranslationJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1TranslateTextCommand", function() { return serializeAws_json1_1TranslateTextCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeleteTerminologyCommand", function() { return deserializeAws_json1_1DeleteTerminologyCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeTextTranslationJobCommand", function() { return deserializeAws_json1_1DescribeTextTranslationJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetTerminologyCommand", function() { return deserializeAws_json1_1GetTerminologyCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ImportTerminologyCommand", function() { return deserializeAws_json1_1ImportTerminologyCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListTerminologiesCommand", function() { return deserializeAws_json1_1ListTerminologiesCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListTextTranslationJobsCommand", function() { return deserializeAws_json1_1ListTextTranslationJobsCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartTextTranslationJobCommand", function() { return deserializeAws_json1_1StartTextTranslationJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StopTextTranslationJobCommand", function() { return deserializeAws_json1_1StopTextTranslationJobCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1TranslateTextCommand", function() { return deserializeAws_json1_1TranslateTextCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "Enk7"); /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! uuid */ "EcEN"); /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_2__); var serializeAws_json1_1DeleteTerminologyCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSShineFrontendService_20170701.DeleteTerminology", }; body = JSON.stringify(serializeAws_json1_1DeleteTerminologyRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1DescribeTextTranslationJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSShineFrontendService_20170701.DescribeTextTranslationJob", }; body = JSON.stringify(serializeAws_json1_1DescribeTextTranslationJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1GetTerminologyCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSShineFrontendService_20170701.GetTerminology", }; body = JSON.stringify(serializeAws_json1_1GetTerminologyRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ImportTerminologyCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSShineFrontendService_20170701.ImportTerminology", }; body = JSON.stringify(serializeAws_json1_1ImportTerminologyRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListTerminologiesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSShineFrontendService_20170701.ListTerminologies", }; body = JSON.stringify(serializeAws_json1_1ListTerminologiesRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1ListTextTranslationJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSShineFrontendService_20170701.ListTextTranslationJobs", }; body = JSON.stringify(serializeAws_json1_1ListTextTranslationJobsRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StartTextTranslationJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSShineFrontendService_20170701.StartTextTranslationJob", }; body = JSON.stringify(serializeAws_json1_1StartTextTranslationJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1StopTextTranslationJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSShineFrontendService_20170701.StopTextTranslationJob", }; body = JSON.stringify(serializeAws_json1_1StopTextTranslationJobRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var serializeAws_json1_1TranslateTextCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var headers, body; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { headers = { "Content-Type": "application/x-amz-json-1.1", "X-Amz-Target": "AWSShineFrontendService_20170701.TranslateText", }; body = JSON.stringify(serializeAws_json1_1TranslateTextRequest(input, context)); return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)]; }); }); }; var deserializeAws_json1_1DeleteTerminologyCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DeleteTerminologyCommandError(output, context)]; } return [4 /*yield*/, collectBody(output.body, context)]; case 1: _a.sent(); response = { $metadata: deserializeMetadata(output), }; return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DeleteTerminologyCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, parsedBody, message; var _f; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _f = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.translate#InternalServerException": return [3 /*break*/, 2]; case "ResourceNotFoundException": return [3 /*break*/, 4]; case "com.amazonaws.translate#ResourceNotFoundException": return [3 /*break*/, 4]; case "TooManyRequestsException": return [3 /*break*/, 6]; case "com.amazonaws.translate#TooManyRequestsException": return [3 /*break*/, 6]; } return [3 /*break*/, 8]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 8: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _g.label = 9; case 9: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DescribeTextTranslationJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1DescribeTextTranslationJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1DescribeTextTranslationJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "DescribeTextTranslationJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1DescribeTextTranslationJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, parsedBody, message; var _f; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _f = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.translate#InternalServerException": return [3 /*break*/, 2]; case "ResourceNotFoundException": return [3 /*break*/, 4]; case "com.amazonaws.translate#ResourceNotFoundException": return [3 /*break*/, 4]; case "TooManyRequestsException": return [3 /*break*/, 6]; case "com.amazonaws.translate#TooManyRequestsException": return [3 /*break*/, 6]; } return [3 /*break*/, 8]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 8: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _g.label = 9; case 9: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1GetTerminologyCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1GetTerminologyCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1GetTerminologyResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "GetTerminologyResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1GetTerminologyCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.translate#InternalServerException": return [3 /*break*/, 2]; case "InvalidParameterValueException": return [3 /*break*/, 4]; case "com.amazonaws.translate#InvalidParameterValueException": return [3 /*break*/, 4]; case "ResourceNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.translate#ResourceNotFoundException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.translate#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ImportTerminologyCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ImportTerminologyCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ImportTerminologyResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ImportTerminologyResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ImportTerminologyCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.translate#InternalServerException": return [3 /*break*/, 2]; case "InvalidParameterValueException": return [3 /*break*/, 4]; case "com.amazonaws.translate#InvalidParameterValueException": return [3 /*break*/, 4]; case "LimitExceededException": return [3 /*break*/, 6]; case "com.amazonaws.translate#LimitExceededException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.translate#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListTerminologiesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListTerminologiesCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListTerminologiesResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListTerminologiesResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListTerminologiesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, parsedBody, message; var _f; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _f = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.translate#InternalServerException": return [3 /*break*/, 2]; case "InvalidParameterValueException": return [3 /*break*/, 4]; case "com.amazonaws.translate#InvalidParameterValueException": return [3 /*break*/, 4]; case "TooManyRequestsException": return [3 /*break*/, 6]; case "com.amazonaws.translate#TooManyRequestsException": return [3 /*break*/, 6]; } return [3 /*break*/, 8]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 8: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _g.label = 9; case 9: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1ListTextTranslationJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1ListTextTranslationJobsCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1ListTextTranslationJobsResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "ListTextTranslationJobsResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1ListTextTranslationJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, parsedBody, message; var _g; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _g = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.translate#InternalServerException": return [3 /*break*/, 2]; case "InvalidFilterException": return [3 /*break*/, 4]; case "com.amazonaws.translate#InvalidFilterException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.translate#InvalidRequestException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.translate#TooManyRequestsException": return [3 /*break*/, 8]; } return [3 /*break*/, 10]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 11]; case 10: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _h.label = 11; case 11: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StartTextTranslationJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StartTextTranslationJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StartTextTranslationJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StartTextTranslationJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StartTextTranslationJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, parsedBody, message; var _h; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) { switch (_j.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _h = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.translate#InternalServerException": return [3 /*break*/, 2]; case "InvalidRequestException": return [3 /*break*/, 4]; case "com.amazonaws.translate#InvalidRequestException": return [3 /*break*/, 4]; case "ResourceNotFoundException": return [3 /*break*/, 6]; case "com.amazonaws.translate#ResourceNotFoundException": return [3 /*break*/, 6]; case "TooManyRequestsException": return [3 /*break*/, 8]; case "com.amazonaws.translate#TooManyRequestsException": return [3 /*break*/, 8]; case "UnsupportedLanguagePairException": return [3 /*break*/, 10]; case "com.amazonaws.translate#UnsupportedLanguagePairException": return [3 /*break*/, 10]; } return [3 /*break*/, 12]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1UnsupportedLanguagePairExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 13]; case 12: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _j.label = 13; case 13: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1StopTextTranslationJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1StopTextTranslationJobCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1StopTextTranslationJobResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "StopTextTranslationJobResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1StopTextTranslationJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, parsedBody, message; var _f; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _f = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "InternalServerException": return [3 /*break*/, 2]; case "com.amazonaws.translate#InternalServerException": return [3 /*break*/, 2]; case "ResourceNotFoundException": return [3 /*break*/, 4]; case "com.amazonaws.translate#ResourceNotFoundException": return [3 /*break*/, 4]; case "TooManyRequestsException": return [3 /*break*/, 6]; case "com.amazonaws.translate#TooManyRequestsException": return [3 /*break*/, 6]; } return [3 /*break*/, 8]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 9]; case 8: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _g.label = 9; case 9: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1TranslateTextCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var data, contents, response; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (output.statusCode >= 400) { return [2 /*return*/, deserializeAws_json1_1TranslateTextCommandError(output, context)]; } return [4 /*yield*/, parseBody(output.body, context)]; case 1: data = _a.sent(); contents = {}; contents = deserializeAws_json1_1TranslateTextResponse(data, context); response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output), __type: "TranslateTextResponse" }, contents); return [2 /*return*/, Promise.resolve(response)]; } }); }); }; var deserializeAws_json1_1TranslateTextCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var parsedOutput, _a, response, errorCode, errorTypeParts, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; var _l; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) { switch (_m.label) { case 0: _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)]; _l = {}; return [4 /*yield*/, parseBody(output.body, context)]; case 1: parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)])); errorCode = "UnknownError"; errorTypeParts = parsedOutput.body["__type"].split("#"); errorCode = errorTypeParts[1] === undefined ? errorTypeParts[0] : errorTypeParts[1]; _b = errorCode; switch (_b) { case "DetectedLanguageLowConfidenceException": return [3 /*break*/, 2]; case "com.amazonaws.translate#DetectedLanguageLowConfidenceException": return [3 /*break*/, 2]; case "InternalServerException": return [3 /*break*/, 4]; case "com.amazonaws.translate#InternalServerException": return [3 /*break*/, 4]; case "InvalidRequestException": return [3 /*break*/, 6]; case "com.amazonaws.translate#InvalidRequestException": return [3 /*break*/, 6]; case "ResourceNotFoundException": return [3 /*break*/, 8]; case "com.amazonaws.translate#ResourceNotFoundException": return [3 /*break*/, 8]; case "ServiceUnavailableException": return [3 /*break*/, 10]; case "com.amazonaws.translate#ServiceUnavailableException": return [3 /*break*/, 10]; case "TextSizeLimitExceededException": return [3 /*break*/, 12]; case "com.amazonaws.translate#TextSizeLimitExceededException": return [3 /*break*/, 12]; case "TooManyRequestsException": return [3 /*break*/, 14]; case "com.amazonaws.translate#TooManyRequestsException": return [3 /*break*/, 14]; case "UnsupportedLanguagePairException": return [3 /*break*/, 16]; case "com.amazonaws.translate#UnsupportedLanguagePairException": return [3 /*break*/, 16]; } return [3 /*break*/, 18]; case 2: _c = [{}]; return [4 /*yield*/, deserializeAws_json1_1DetectedLanguageLowConfidenceExceptionResponse(parsedOutput, context)]; case 3: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 4: _d = [{}]; return [4 /*yield*/, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)]; case 5: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 6: _e = [{}]; return [4 /*yield*/, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)]; case 7: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 8: _f = [{}]; return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; case 9: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 10: _g = [{}]; return [4 /*yield*/, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)]; case 11: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 12: _h = [{}]; return [4 /*yield*/, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)]; case 13: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 14: _j = [{}]; return [4 /*yield*/, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)]; case 15: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 16: _k = [{}]; return [4 /*yield*/, deserializeAws_json1_1UnsupportedLanguagePairExceptionResponse(parsedOutput, context)]; case 17: response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); return [3 /*break*/, 19]; case 18: parsedBody = parsedOutput.body; errorCode = parsedBody.code || parsedBody.Code || errorCode; response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); _m.label = 19; case 19: message = response.message || response.Message || errorCode; response.message = message; delete response.Message; return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; } }); }); }; var deserializeAws_json1_1DetectedLanguageLowConfidenceExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1DetectedLanguageLowConfidenceException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "DetectedLanguageLowConfidenceException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InternalServerException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InternalServerException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InvalidFilterExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InvalidFilterException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidFilterException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InvalidParameterValueExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InvalidParameterValueException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidParameterValueException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1InvalidRequestException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidRequestException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1LimitExceededException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ServiceUnavailableException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1TextSizeLimitExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1TextSizeLimitExceededException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "TextSizeLimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1TooManyRequestsException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "TooManyRequestsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var deserializeAws_json1_1UnsupportedLanguagePairExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var body, deserialized, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { body = parsedOutput.body; deserialized = deserializeAws_json1_1UnsupportedLanguagePairException(body, context); contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "UnsupportedLanguagePairException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized); return [2 /*return*/, contents]; }); }); }; var serializeAws_json1_1DeleteTerminologyRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Name !== undefined && { Name: input.Name })); }; var serializeAws_json1_1DescribeTextTranslationJobRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })); }; var serializeAws_json1_1EncryptionKey = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Id !== undefined && { Id: input.Id })), (input.Type !== undefined && { Type: input.Type })); }; var serializeAws_json1_1GetTerminologyRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Name !== undefined && { Name: input.Name })), (input.TerminologyDataFormat !== undefined && { TerminologyDataFormat: input.TerminologyDataFormat })); }; var serializeAws_json1_1ImportTerminologyRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Description !== undefined && { Description: input.Description })), (input.EncryptionKey !== undefined && { EncryptionKey: serializeAws_json1_1EncryptionKey(input.EncryptionKey, context), })), (input.MergeStrategy !== undefined && { MergeStrategy: input.MergeStrategy })), (input.Name !== undefined && { Name: input.Name })), (input.TerminologyData !== undefined && { TerminologyData: serializeAws_json1_1TerminologyData(input.TerminologyData, context), })); }; var serializeAws_json1_1InputDataConfig = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ContentType !== undefined && { ContentType: input.ContentType })), (input.S3Uri !== undefined && { S3Uri: input.S3Uri })); }; var serializeAws_json1_1ListTerminologiesRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1ListTextTranslationJobsRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Filter !== undefined && { Filter: serializeAws_json1_1TextTranslationJobFilter(input.Filter, context) })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })); }; var serializeAws_json1_1OutputDataConfig = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.S3Uri !== undefined && { S3Uri: input.S3Uri })); }; var serializeAws_json1_1ResourceNameList = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1StartTextTranslationJobRequest = function (input, context) { var _a; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v4"])() }, (input.DataAccessRoleArn !== undefined && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined && { InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context), })), (input.JobName !== undefined && { JobName: input.JobName })), (input.OutputDataConfig !== undefined && { OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context), })), (input.SourceLanguageCode !== undefined && { SourceLanguageCode: input.SourceLanguageCode })), (input.TargetLanguageCodes !== undefined && { TargetLanguageCodes: serializeAws_json1_1TargetLanguageCodeStringList(input.TargetLanguageCodes, context), })), (input.TerminologyNames !== undefined && { TerminologyNames: serializeAws_json1_1ResourceNameList(input.TerminologyNames, context), })); }; var serializeAws_json1_1StopTextTranslationJobRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobId !== undefined && { JobId: input.JobId })); }; var serializeAws_json1_1TargetLanguageCodeStringList = function (input, context) { return input.map(function (entry) { return entry; }); }; var serializeAws_json1_1TerminologyData = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.File !== undefined && { File: context.base64Encoder(input.File) })), (input.Format !== undefined && { Format: input.Format })); }; var serializeAws_json1_1TextTranslationJobFilter = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.JobName !== undefined && { JobName: input.JobName })), (input.JobStatus !== undefined && { JobStatus: input.JobStatus })), (input.SubmittedAfterTime !== undefined && { SubmittedAfterTime: Math.round(input.SubmittedAfterTime.getTime() / 1000), })), (input.SubmittedBeforeTime !== undefined && { SubmittedBeforeTime: Math.round(input.SubmittedBeforeTime.getTime() / 1000), })); }; var serializeAws_json1_1TranslateTextRequest = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.SourceLanguageCode !== undefined && { SourceLanguageCode: input.SourceLanguageCode })), (input.TargetLanguageCode !== undefined && { TargetLanguageCode: input.TargetLanguageCode })), (input.TerminologyNames !== undefined && { TerminologyNames: serializeAws_json1_1ResourceNameList(input.TerminologyNames, context), })), (input.Text !== undefined && { Text: input.Text })); }; var deserializeAws_json1_1AppliedTerminology = function (output, context) { return { __type: "AppliedTerminology", Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, Terms: output.Terms !== undefined && output.Terms !== null ? deserializeAws_json1_1TermList(output.Terms, context) : undefined, }; }; var deserializeAws_json1_1AppliedTerminologyList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1AppliedTerminology(entry, context); }); }; var deserializeAws_json1_1DescribeTextTranslationJobResponse = function (output, context) { return { __type: "DescribeTextTranslationJobResponse", TextTranslationJobProperties: output.TextTranslationJobProperties !== undefined && output.TextTranslationJobProperties !== null ? deserializeAws_json1_1TextTranslationJobProperties(output.TextTranslationJobProperties, context) : undefined, }; }; var deserializeAws_json1_1DetectedLanguageLowConfidenceException = function (output, context) { return { __type: "DetectedLanguageLowConfidenceException", DetectedLanguageCode: output.DetectedLanguageCode !== undefined && output.DetectedLanguageCode !== null ? output.DetectedLanguageCode : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1EncryptionKey = function (output, context) { return { __type: "EncryptionKey", Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined, Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined, }; }; var deserializeAws_json1_1GetTerminologyResponse = function (output, context) { return { __type: "GetTerminologyResponse", TerminologyDataLocation: output.TerminologyDataLocation !== undefined && output.TerminologyDataLocation !== null ? deserializeAws_json1_1TerminologyDataLocation(output.TerminologyDataLocation, context) : undefined, TerminologyProperties: output.TerminologyProperties !== undefined && output.TerminologyProperties !== null ? deserializeAws_json1_1TerminologyProperties(output.TerminologyProperties, context) : undefined, }; }; var deserializeAws_json1_1ImportTerminologyResponse = function (output, context) { return { __type: "ImportTerminologyResponse", TerminologyProperties: output.TerminologyProperties !== undefined && output.TerminologyProperties !== null ? deserializeAws_json1_1TerminologyProperties(output.TerminologyProperties, context) : undefined, }; }; var deserializeAws_json1_1InputDataConfig = function (output, context) { return { __type: "InputDataConfig", ContentType: output.ContentType !== undefined && output.ContentType !== null ? output.ContentType : undefined, S3Uri: output.S3Uri !== undefined && output.S3Uri !== null ? output.S3Uri : undefined, }; }; var deserializeAws_json1_1InternalServerException = function (output, context) { return { __type: "InternalServerException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1InvalidFilterException = function (output, context) { return { __type: "InvalidFilterException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1InvalidParameterValueException = function (output, context) { return { __type: "InvalidParameterValueException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1InvalidRequestException = function (output, context) { return { __type: "InvalidRequestException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1JobDetails = function (output, context) { return { __type: "JobDetails", DocumentsWithErrorsCount: output.DocumentsWithErrorsCount !== undefined && output.DocumentsWithErrorsCount !== null ? output.DocumentsWithErrorsCount : undefined, InputDocumentsCount: output.InputDocumentsCount !== undefined && output.InputDocumentsCount !== null ? output.InputDocumentsCount : undefined, TranslatedDocumentsCount: output.TranslatedDocumentsCount !== undefined && output.TranslatedDocumentsCount !== null ? output.TranslatedDocumentsCount : undefined, }; }; var deserializeAws_json1_1LanguageCodeStringList = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1LimitExceededException = function (output, context) { return { __type: "LimitExceededException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1ListTerminologiesResponse = function (output, context) { return { __type: "ListTerminologiesResponse", NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, TerminologyPropertiesList: output.TerminologyPropertiesList !== undefined && output.TerminologyPropertiesList !== null ? deserializeAws_json1_1TerminologyPropertiesList(output.TerminologyPropertiesList, context) : undefined, }; }; var deserializeAws_json1_1ListTextTranslationJobsResponse = function (output, context) { return { __type: "ListTextTranslationJobsResponse", NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined, TextTranslationJobPropertiesList: output.TextTranslationJobPropertiesList !== undefined && output.TextTranslationJobPropertiesList !== null ? deserializeAws_json1_1TextTranslationJobPropertiesList(output.TextTranslationJobPropertiesList, context) : undefined, }; }; var deserializeAws_json1_1OutputDataConfig = function (output, context) { return { __type: "OutputDataConfig", S3Uri: output.S3Uri !== undefined && output.S3Uri !== null ? output.S3Uri : undefined, }; }; var deserializeAws_json1_1ResourceNameList = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1ResourceNotFoundException = function (output, context) { return { __type: "ResourceNotFoundException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1ServiceUnavailableException = function (output, context) { return { __type: "ServiceUnavailableException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1StartTextTranslationJobResponse = function (output, context) { return { __type: "StartTextTranslationJobResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, }; }; var deserializeAws_json1_1StopTextTranslationJobResponse = function (output, context) { return { __type: "StopTextTranslationJobResponse", JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, }; }; var deserializeAws_json1_1TargetLanguageCodeStringList = function (output, context) { return (output || []).map(function (entry) { return entry; }); }; var deserializeAws_json1_1Term = function (output, context) { return { __type: "Term", SourceText: output.SourceText !== undefined && output.SourceText !== null ? output.SourceText : undefined, TargetText: output.TargetText !== undefined && output.TargetText !== null ? output.TargetText : undefined, }; }; var deserializeAws_json1_1TerminologyDataLocation = function (output, context) { return { __type: "TerminologyDataLocation", Location: output.Location !== undefined && output.Location !== null ? output.Location : undefined, RepositoryType: output.RepositoryType !== undefined && output.RepositoryType !== null ? output.RepositoryType : undefined, }; }; var deserializeAws_json1_1TerminologyProperties = function (output, context) { return { __type: "TerminologyProperties", Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined, CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(Math.round(output.CreatedAt * 1000)) : undefined, Description: output.Description !== undefined && output.Description !== null ? output.Description : undefined, EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null ? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context) : undefined, LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null ? new Date(Math.round(output.LastUpdatedAt * 1000)) : undefined, Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined, SizeBytes: output.SizeBytes !== undefined && output.SizeBytes !== null ? output.SizeBytes : undefined, SourceLanguageCode: output.SourceLanguageCode !== undefined && output.SourceLanguageCode !== null ? output.SourceLanguageCode : undefined, TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null ? deserializeAws_json1_1LanguageCodeStringList(output.TargetLanguageCodes, context) : undefined, TermCount: output.TermCount !== undefined && output.TermCount !== null ? output.TermCount : undefined, }; }; var deserializeAws_json1_1TerminologyPropertiesList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1TerminologyProperties(entry, context); }); }; var deserializeAws_json1_1TermList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1Term(entry, context); }); }; var deserializeAws_json1_1TextSizeLimitExceededException = function (output, context) { return { __type: "TextSizeLimitExceededException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1TextTranslationJobProperties = function (output, context) { return { __type: "TextTranslationJobProperties", DataAccessRoleArn: output.DataAccessRoleArn !== undefined && output.DataAccessRoleArn !== null ? output.DataAccessRoleArn : undefined, EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined, InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null ? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context) : undefined, JobDetails: output.JobDetails !== undefined && output.JobDetails !== null ? deserializeAws_json1_1JobDetails(output.JobDetails, context) : undefined, JobId: output.JobId !== undefined && output.JobId !== null ? output.JobId : undefined, JobName: output.JobName !== undefined && output.JobName !== null ? output.JobName : undefined, JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined, Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null ? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context) : undefined, SourceLanguageCode: output.SourceLanguageCode !== undefined && output.SourceLanguageCode !== null ? output.SourceLanguageCode : undefined, SubmittedTime: output.SubmittedTime !== undefined && output.SubmittedTime !== null ? new Date(Math.round(output.SubmittedTime * 1000)) : undefined, TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null ? deserializeAws_json1_1TargetLanguageCodeStringList(output.TargetLanguageCodes, context) : undefined, TerminologyNames: output.TerminologyNames !== undefined && output.TerminologyNames !== null ? deserializeAws_json1_1ResourceNameList(output.TerminologyNames, context) : undefined, }; }; var deserializeAws_json1_1TextTranslationJobPropertiesList = function (output, context) { return (output || []).map(function (entry) { return deserializeAws_json1_1TextTranslationJobProperties(entry, context); }); }; var deserializeAws_json1_1TooManyRequestsException = function (output, context) { return { __type: "TooManyRequestsException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, }; }; var deserializeAws_json1_1TranslateTextResponse = function (output, context) { return { __type: "TranslateTextResponse", AppliedTerminologies: output.AppliedTerminologies !== undefined && output.AppliedTerminologies !== null ? deserializeAws_json1_1AppliedTerminologyList(output.AppliedTerminologies, context) : undefined, SourceLanguageCode: output.SourceLanguageCode !== undefined && output.SourceLanguageCode !== null ? output.SourceLanguageCode : undefined, TargetLanguageCode: output.TargetLanguageCode !== undefined && output.TargetLanguageCode !== null ? output.TargetLanguageCode : undefined, TranslatedText: output.TranslatedText !== undefined && output.TranslatedText !== null ? output.TranslatedText : undefined, }; }; var deserializeAws_json1_1UnsupportedLanguagePairException = function (output, context) { return { __type: "UnsupportedLanguagePairException", Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined, SourceLanguageCode: output.SourceLanguageCode !== undefined && output.SourceLanguageCode !== null ? output.SourceLanguageCode : undefined, TargetLanguageCode: output.TargetLanguageCode !== undefined && output.TargetLanguageCode !== null ? output.TargetLanguageCode : undefined, }; }; var deserializeMetadata = function (output) { return ({ httpStatusCode: output.statusCode, httpHeaders: output.headers, requestId: output.headers["x-amzn-requestid"], }); }; // Collect low-level response body stream to Uint8Array. var collectBody = function (streamBody, context) { if (streamBody === void 0) { streamBody = new Uint8Array(); } if (streamBody instanceof Uint8Array) { return Promise.resolve(streamBody); } return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); }; // Encode Uint8Array data into string with utf-8. var collectBodyString = function (streamBody, context) { return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); }); }; var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () { var _a, hostname, _b, protocol, port, contents; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: return [4 /*yield*/, context.endpoint()]; case 1: _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; contents = { protocol: protocol, hostname: hostname, port: port, method: "POST", path: path, headers: headers, }; if (resolvedHostname !== undefined) { contents.hostname = resolvedHostname; } if (body !== undefined) { contents.body = body; } return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"](contents)]; } }); }); }; var parseBody = function (streamBody, context) { return collectBodyString(streamBody, context).then(function (encoded) { if (encoded.length) { return JSON.parse(encoded); } return {}; }); }; //# sourceMappingURL=Aws_json1_1.js.map /***/ }), /***/ "ehIN": /*!***********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/PutObjectLockConfigurationCommand.js ***! \***********************************************************************************************/ /*! exports provided: PutObjectLockConfigurationCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutObjectLockConfigurationCommand", function() { return PutObjectLockConfigurationCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var PutObjectLockConfigurationCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutObjectLockConfigurationCommand, _super); // Start section: command_properties // End section: command_properties function PutObjectLockConfigurationCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } PutObjectLockConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutObjectLockConfigurationRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["PutObjectLockConfigurationOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; PutObjectLockConfigurationCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlPutObjectLockConfigurationCommand"])(input, context); }; PutObjectLockConfigurationCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlPutObjectLockConfigurationCommand"])(output, context); }; return PutObjectLockConfigurationCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=PutObjectLockConfigurationCommand.js.map /***/ }), /***/ "eiRf": /*!*******************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-firehose/dist/es/commands/StopDeliveryStreamEncryptionCommand.js ***! \*******************************************************************************************************/ /*! exports provided: StopDeliveryStreamEncryptionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionCommand", function() { return StopDeliveryStreamEncryptionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "qPic"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "IZqD"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StopDeliveryStreamEncryptionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StopDeliveryStreamEncryptionCommand, _super); // Start section: command_properties // End section: command_properties function StopDeliveryStreamEncryptionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StopDeliveryStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StopDeliveryStreamEncryptionInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StopDeliveryStreamEncryptionOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StopDeliveryStreamEncryptionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StopDeliveryStreamEncryptionCommand"])(input, context); }; StopDeliveryStreamEncryptionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StopDeliveryStreamEncryptionCommand"])(output, context); }; return StopDeliveryStreamEncryptionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StopDeliveryStreamEncryptionCommand.js.map /***/ }), /***/ "ekgI": /*!*****************************************!*\ !*** ./node_modules/lodash/_hashHas.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "YESw"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Checks if a hash value for `key` exists. * * @private * @name has * @memberOf Hash * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function hashHas(key) { var data = this.__data__; return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); } module.exports = hashHas; /***/ }), /***/ "elGS": /*!****************************************************!*\ !*** ./node_modules/fast-xml-parser/src/parser.js ***! \****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const nodeToJson = __webpack_require__(/*! ./node2json */ "j/LU"); const xmlToNodeobj = __webpack_require__(/*! ./xmlstr2xmlnode */ "E1E9"); const x2xmlnode = __webpack_require__(/*! ./xmlstr2xmlnode */ "E1E9"); const buildOptions = __webpack_require__(/*! ./util */ "4abu").buildOptions; const validator = __webpack_require__(/*! ./validator */ "cIfH"); exports.parse = function(xmlData, options, validationOption) { if( validationOption){ if(validationOption === true) validationOption = {} const result = validator.validate(xmlData, validationOption); if (result !== true) { throw Error( result.err.msg) } } options = buildOptions(options, x2xmlnode.defaultOptions, x2xmlnode.props); const traversableObj = xmlToNodeobj.getTraversalObj(xmlData, options) //print(traversableObj, " "); return nodeToJson.convertToJson(traversableObj, options); }; exports.convertTonimn = __webpack_require__(/*! ../src/nimndata */ "vtNb").convert2nimn; exports.getTraversalObj = xmlToNodeobj.getTraversalObj; exports.convertToJson = nodeToJson.convertToJson; exports.convertToJsonString = __webpack_require__(/*! ./node2json_str */ "t6xR").convertToJsonString; exports.validate = validator.validate; exports.j2xParser = __webpack_require__(/*! ./json2xml */ "p1mf"); exports.parseToNimn = function(xmlData, schema, options) { return exports.convertTonimn(exports.getTraversalObj(xmlData, options), schema, options); }; function print(xmlNode, indentation){ if(xmlNode){ console.log(indentation + "{") console.log(indentation + " \"tagName\": \"" + xmlNode.tagname + "\", "); if(xmlNode.parent){ console.log(indentation + " \"parent\": \"" + xmlNode.parent.tagname + "\", "); } console.log(indentation + " \"val\": \"" + xmlNode.val + "\", "); console.log(indentation + " \"attrs\": " + JSON.stringify(xmlNode.attrsMap,null,4) + ", "); if(xmlNode.child){ console.log(indentation + "\"child\": {") const indentation2 = indentation + indentation; Object.keys(xmlNode.child).forEach( function(key) { const node = xmlNode.child[key]; if(Array.isArray(node)){ console.log(indentation + "\""+key+"\" :[") node.forEach( function(item,index) { //console.log(indentation + " \""+index+"\" : [") print(item, indentation2); }) console.log(indentation + "],") }else{ console.log(indentation + " \""+key+"\" : {") print(node, indentation2); console.log(indentation + "},") } }); console.log(indentation + "},") } console.log(indentation + "},") } } /***/ }), /***/ "endd": /*!*************************************************!*\ !*** ./node_modules/axios/lib/cancel/Cancel.js ***! \*************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * A `Cancel` is an object that is thrown when an operation is canceled. * * @class * @param {string=} message The message. */ function Cancel(message) { this.message = message; } Cancel.prototype.toString = function toString() { return 'Cancel' + (this.message ? ': ' + this.message : ''); }; Cancel.prototype.__CANCEL__ = true; module.exports = Cancel; /***/ }), /***/ "eo2V": /*!********************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-firehose/dist/es/runtimeConfig.browser.js ***! \********************************************************************************/ /*! exports provided: ClientDefaultValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientDefaultValues", function() { return ClientDefaultValues; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./package.json */ "bDIM"); var _package_json__WEBPACK_IMPORTED_MODULE_1___namespace = /*#__PURE__*/__webpack_require__.t(/*! ./package.json */ "bDIM", 1); /* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-crypto/sha256-browser */ "viNG"); /* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/fetch-http-handler */ "LUnR"); /* harmony import */ var _aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/invalid-dependency */ "J2eM"); /* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "UMev"); /* harmony import */ var _aws_sdk_url_parser_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/url-parser-browser */ "c14h"); /* harmony import */ var _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/util-base64-browser */ "S3Uu"); /* harmony import */ var _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/util-body-length-browser */ "N9sX"); /* harmony import */ var _aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/util-user-agent-browser */ "wU8f"); /* harmony import */ var _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "kg8h"); /* harmony import */ var _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./runtimeConfig.shared */ "CoXs"); var ClientDefaultValues = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__["ClientSharedValues"]), { runtime: "browser", base64Decoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__["fromBase64"], base64Encoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__["toBase64"], bodyLengthChecker: _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_8__["calculateBodyLength"], credentialDefaultProvider: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__["invalidFunction"])("Credential is missing"), defaultUserAgent: Object(_aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_9__["defaultUserAgent"])(_package_json__WEBPACK_IMPORTED_MODULE_1__["name"], _package_json__WEBPACK_IMPORTED_MODULE_1__["version"]), maxAttempts: _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__["DEFAULT_MAX_ATTEMPTS"], region: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__["invalidFunction"])("Region is missing"), requestHandler: new _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["FetchHttpHandler"](), sha256: _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__["Sha256"], streamCollector: _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["streamCollector"], urlParser: _aws_sdk_url_parser_browser__WEBPACK_IMPORTED_MODULE_6__["parseUrl"], utf8Decoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__["fromUtf8"], utf8Encoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__["toUtf8"] }); //# sourceMappingURL=runtimeConfig.browser.js.map /***/ }), /***/ "eqyj": /*!***************************************************!*\ !*** ./node_modules/axios/lib/helpers/cookies.js ***! \***************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./../utils */ "xTJ+"); module.exports = ( utils.isStandardBrowserEnv() ? // Standard browser envs support document.cookie (function standardBrowserEnv() { return { write: function write(name, value, expires, path, domain, secure) { var cookie = []; cookie.push(name + '=' + encodeURIComponent(value)); if (utils.isNumber(expires)) { cookie.push('expires=' + new Date(expires).toGMTString()); } if (utils.isString(path)) { cookie.push('path=' + path); } if (utils.isString(domain)) { cookie.push('domain=' + domain); } if (secure === true) { cookie.push('secure'); } document.cookie = cookie.join('; '); }, read: function read(name) { var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); return (match ? decodeURIComponent(match[3]) : null); }, remove: function remove(name) { this.write(name, '', Date.now() - 86400000); } }; })() : // Non standard browser env (web workers, react-native) lack needed support. (function nonStandardBrowserEnv() { return { write: function write() {}, read: function read() { return null; }, remove: function remove() {} }; })() ); /***/ }), /***/ "f/Jk": /*!*************************************************************************!*\ !*** ./node_modules/@aws-sdk/eventstream-marshaller/dist/es/Message.js ***! \*************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWVzc2FnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9NZXNzYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbnQ2NCB9IGZyb20gXCIuL0ludDY0XCI7XG5cbi8qKlxuICogQW4gZXZlbnQgc3RyZWFtIG1lc3NhZ2UuIFRoZSBoZWFkZXJzIGFuZCBib2R5IHByb3BlcnRpZXMgd2lsbCBhbHdheXMgYmVcbiAqIGRlZmluZWQsIHdpdGggZW1wdHkgaGVhZGVycyByZXByZXNlbnRlZCBhcyBhbiBvYmplY3Qgd2l0aCBubyBrZXlzIGFuZCBhblxuICogZW1wdHkgYm9keSByZXByZXNlbnRlZCBhcyBhIHplcm8tbGVuZ3RoIFVpbnQ4QXJyYXkuXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgTWVzc2FnZSB7XG4gIGhlYWRlcnM6IE1lc3NhZ2VIZWFkZXJzO1xuICBib2R5OiBVaW50OEFycmF5O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIE1lc3NhZ2VIZWFkZXJzIHtcbiAgW25hbWU6IHN0cmluZ106IE1lc3NhZ2VIZWFkZXJWYWx1ZTtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBCb29sZWFuSGVhZGVyVmFsdWUge1xuICB0eXBlOiBcImJvb2xlYW5cIjtcbiAgdmFsdWU6IGJvb2xlYW47XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgQnl0ZUhlYWRlclZhbHVlIHtcbiAgdHlwZTogXCJieXRlXCI7XG4gIHZhbHVlOiBudW1iZXI7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgU2hvcnRIZWFkZXJWYWx1ZSB7XG4gIHR5cGU6IFwic2hvcnRcIjtcbiAgdmFsdWU6IG51bWJlcjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBJbnRlZ2VySGVhZGVyVmFsdWUge1xuICB0eXBlOiBcImludGVnZXJcIjtcbiAgdmFsdWU6IG51bWJlcjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBMb25nSGVhZGVyVmFsdWUge1xuICB0eXBlOiBcImxvbmdcIjtcbiAgdmFsdWU6IEludDY0O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEJpbmFyeUhlYWRlclZhbHVlIHtcbiAgdHlwZTogXCJiaW5hcnlcIjtcbiAgdmFsdWU6IFVpbnQ4QXJyYXk7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgU3RyaW5nSGVhZGVyVmFsdWUge1xuICB0eXBlOiBcInN0cmluZ1wiO1xuICB2YWx1ZTogc3RyaW5nO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFRpbWVzdGFtcEhlYWRlclZhbHVlIHtcbiAgdHlwZTogXCJ0aW1lc3RhbXBcIjtcbiAgdmFsdWU6IERhdGU7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgVXVpZEhlYWRlclZhbHVlIHtcbiAgdHlwZTogXCJ1dWlkXCI7XG4gIHZhbHVlOiBzdHJpbmc7XG59XG5cbmV4cG9ydCB0eXBlIE1lc3NhZ2VIZWFkZXJWYWx1ZSA9XG4gIHwgQm9vbGVhbkhlYWRlclZhbHVlXG4gIHwgQnl0ZUhlYWRlclZhbHVlXG4gIHwgU2hvcnRIZWFkZXJWYWx1ZVxuICB8IEludGVnZXJIZWFkZXJWYWx1ZVxuICB8IExvbmdIZWFkZXJWYWx1ZVxuICB8IEJpbmFyeUhlYWRlclZhbHVlXG4gIHwgU3RyaW5nSGVhZGVyVmFsdWVcbiAgfCBUaW1lc3RhbXBIZWFkZXJWYWx1ZVxuICB8IFV1aWRIZWFkZXJWYWx1ZTtcbiJdfQ== /***/ }), /***/ "f1ex": /*!************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-cognito-identity/dist/es/index.js ***! \************************************************************************/ /*! exports provided: CognitoIdentityClient, CognitoIdentity, CreateIdentityPoolCommand, DeleteIdentitiesCommand, DeleteIdentityPoolCommand, DescribeIdentityCommand, DescribeIdentityPoolCommand, GetCredentialsForIdentityCommand, GetIdCommand, GetIdentityPoolRolesCommand, GetOpenIdTokenCommand, GetOpenIdTokenForDeveloperIdentityCommand, ListIdentitiesCommand, ListIdentityPoolsCommand, ListTagsForResourceCommand, LookupDeveloperIdentityCommand, MergeDeveloperIdentitiesCommand, SetIdentityPoolRolesCommand, TagResourceCommand, UnlinkDeveloperIdentityCommand, UnlinkIdentityCommand, UntagResourceCommand, UpdateIdentityPoolCommand, AmbiguousRoleResolutionType, CognitoIdentityProvider, ConcurrentModificationException, CreateIdentityPoolInput, Credentials, DeleteIdentitiesInput, DeleteIdentitiesResponse, DeleteIdentityPoolInput, DescribeIdentityInput, DescribeIdentityPoolInput, DeveloperUserAlreadyRegisteredException, ErrorCode, ExternalServiceException, GetCredentialsForIdentityInput, GetCredentialsForIdentityResponse, GetIdentityPoolRolesInput, GetIdentityPoolRolesResponse, GetIdInput, GetIdResponse, GetOpenIdTokenForDeveloperIdentityInput, GetOpenIdTokenForDeveloperIdentityResponse, GetOpenIdTokenInput, GetOpenIdTokenResponse, IdentityDescription, IdentityPool, IdentityPoolShortDescription, InternalErrorException, InvalidIdentityPoolConfigurationException, InvalidParameterException, LimitExceededException, ListIdentitiesInput, ListIdentitiesResponse, ListIdentityPoolsInput, ListIdentityPoolsResponse, ListTagsForResourceInput, ListTagsForResourceResponse, LookupDeveloperIdentityInput, LookupDeveloperIdentityResponse, MappingRule, MappingRuleMatchType, MergeDeveloperIdentitiesInput, MergeDeveloperIdentitiesResponse, NotAuthorizedException, ResourceConflictException, ResourceNotFoundException, RoleMapping, RoleMappingType, RulesConfigurationType, SetIdentityPoolRolesInput, TagResourceInput, TagResourceResponse, TooManyRequestsException, UnlinkDeveloperIdentityInput, UnlinkIdentityInput, UnprocessedIdentityId, UntagResourceInput, UntagResourceResponse */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _CognitoIdentityClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CognitoIdentityClient */ "gmVG"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CognitoIdentityClient", function() { return _CognitoIdentityClient__WEBPACK_IMPORTED_MODULE_0__["CognitoIdentityClient"]; }); /* harmony import */ var _CognitoIdentity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CognitoIdentity */ "0lu8"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CognitoIdentity", function() { return _CognitoIdentity__WEBPACK_IMPORTED_MODULE_1__["CognitoIdentity"]; }); /* harmony import */ var _commands_CreateIdentityPoolCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/CreateIdentityPoolCommand */ "JjY0"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateIdentityPoolCommand", function() { return _commands_CreateIdentityPoolCommand__WEBPACK_IMPORTED_MODULE_2__["CreateIdentityPoolCommand"]; }); /* harmony import */ var _commands_DeleteIdentitiesCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/DeleteIdentitiesCommand */ "ArSr"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteIdentitiesCommand", function() { return _commands_DeleteIdentitiesCommand__WEBPACK_IMPORTED_MODULE_3__["DeleteIdentitiesCommand"]; }); /* harmony import */ var _commands_DeleteIdentityPoolCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/DeleteIdentityPoolCommand */ "HxMu"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteIdentityPoolCommand", function() { return _commands_DeleteIdentityPoolCommand__WEBPACK_IMPORTED_MODULE_4__["DeleteIdentityPoolCommand"]; }); /* harmony import */ var _commands_DescribeIdentityCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/DescribeIdentityCommand */ "5hen"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeIdentityCommand", function() { return _commands_DescribeIdentityCommand__WEBPACK_IMPORTED_MODULE_5__["DescribeIdentityCommand"]; }); /* harmony import */ var _commands_DescribeIdentityPoolCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/DescribeIdentityPoolCommand */ "UF2x"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeIdentityPoolCommand", function() { return _commands_DescribeIdentityPoolCommand__WEBPACK_IMPORTED_MODULE_6__["DescribeIdentityPoolCommand"]; }); /* harmony import */ var _commands_GetCredentialsForIdentityCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/GetCredentialsForIdentityCommand */ "GegD"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCredentialsForIdentityCommand", function() { return _commands_GetCredentialsForIdentityCommand__WEBPACK_IMPORTED_MODULE_7__["GetCredentialsForIdentityCommand"]; }); /* harmony import */ var _commands_GetIdCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/GetIdCommand */ "ROOK"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetIdCommand", function() { return _commands_GetIdCommand__WEBPACK_IMPORTED_MODULE_8__["GetIdCommand"]; }); /* harmony import */ var _commands_GetIdentityPoolRolesCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/GetIdentityPoolRolesCommand */ "kpNz"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetIdentityPoolRolesCommand", function() { return _commands_GetIdentityPoolRolesCommand__WEBPACK_IMPORTED_MODULE_9__["GetIdentityPoolRolesCommand"]; }); /* harmony import */ var _commands_GetOpenIdTokenCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/GetOpenIdTokenCommand */ "47v2"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetOpenIdTokenCommand", function() { return _commands_GetOpenIdTokenCommand__WEBPACK_IMPORTED_MODULE_10__["GetOpenIdTokenCommand"]; }); /* harmony import */ var _commands_GetOpenIdTokenForDeveloperIdentityCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/GetOpenIdTokenForDeveloperIdentityCommand */ "CRyI"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetOpenIdTokenForDeveloperIdentityCommand", function() { return _commands_GetOpenIdTokenForDeveloperIdentityCommand__WEBPACK_IMPORTED_MODULE_11__["GetOpenIdTokenForDeveloperIdentityCommand"]; }); /* harmony import */ var _commands_ListIdentitiesCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/ListIdentitiesCommand */ "vAiO"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListIdentitiesCommand", function() { return _commands_ListIdentitiesCommand__WEBPACK_IMPORTED_MODULE_12__["ListIdentitiesCommand"]; }); /* harmony import */ var _commands_ListIdentityPoolsCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/ListIdentityPoolsCommand */ "5Etk"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListIdentityPoolsCommand", function() { return _commands_ListIdentityPoolsCommand__WEBPACK_IMPORTED_MODULE_13__["ListIdentityPoolsCommand"]; }); /* harmony import */ var _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/ListTagsForResourceCommand */ "NL7a"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceCommand", function() { return _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_14__["ListTagsForResourceCommand"]; }); /* harmony import */ var _commands_LookupDeveloperIdentityCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/LookupDeveloperIdentityCommand */ "GdT8"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LookupDeveloperIdentityCommand", function() { return _commands_LookupDeveloperIdentityCommand__WEBPACK_IMPORTED_MODULE_15__["LookupDeveloperIdentityCommand"]; }); /* harmony import */ var _commands_MergeDeveloperIdentitiesCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/MergeDeveloperIdentitiesCommand */ "HbM5"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MergeDeveloperIdentitiesCommand", function() { return _commands_MergeDeveloperIdentitiesCommand__WEBPACK_IMPORTED_MODULE_16__["MergeDeveloperIdentitiesCommand"]; }); /* harmony import */ var _commands_SetIdentityPoolRolesCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/SetIdentityPoolRolesCommand */ "Eau9"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SetIdentityPoolRolesCommand", function() { return _commands_SetIdentityPoolRolesCommand__WEBPACK_IMPORTED_MODULE_17__["SetIdentityPoolRolesCommand"]; }); /* harmony import */ var _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/TagResourceCommand */ "UXVc"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagResourceCommand", function() { return _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_18__["TagResourceCommand"]; }); /* harmony import */ var _commands_UnlinkDeveloperIdentityCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/UnlinkDeveloperIdentityCommand */ "8pxE"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UnlinkDeveloperIdentityCommand", function() { return _commands_UnlinkDeveloperIdentityCommand__WEBPACK_IMPORTED_MODULE_19__["UnlinkDeveloperIdentityCommand"]; }); /* harmony import */ var _commands_UnlinkIdentityCommand__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./commands/UnlinkIdentityCommand */ "GAK+"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UnlinkIdentityCommand", function() { return _commands_UnlinkIdentityCommand__WEBPACK_IMPORTED_MODULE_20__["UnlinkIdentityCommand"]; }); /* harmony import */ var _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/UntagResourceCommand */ "FVs0"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagResourceCommand", function() { return _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_21__["UntagResourceCommand"]; }); /* harmony import */ var _commands_UpdateIdentityPoolCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/UpdateIdentityPoolCommand */ "aaE5"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateIdentityPoolCommand", function() { return _commands_UpdateIdentityPoolCommand__WEBPACK_IMPORTED_MODULE_22__["UpdateIdentityPoolCommand"]; }); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./models/index */ "j/EQ"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AmbiguousRoleResolutionType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["AmbiguousRoleResolutionType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CognitoIdentityProvider", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["CognitoIdentityProvider"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConcurrentModificationException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["ConcurrentModificationException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateIdentityPoolInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["CreateIdentityPoolInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Credentials", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["Credentials"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteIdentitiesInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["DeleteIdentitiesInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteIdentitiesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["DeleteIdentitiesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteIdentityPoolInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["DeleteIdentityPoolInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeIdentityInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["DescribeIdentityInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeIdentityPoolInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["DescribeIdentityPoolInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeveloperUserAlreadyRegisteredException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["DeveloperUserAlreadyRegisteredException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ErrorCode", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["ErrorCode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExternalServiceException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["ExternalServiceException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCredentialsForIdentityInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["GetCredentialsForIdentityInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCredentialsForIdentityResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["GetCredentialsForIdentityResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetIdentityPoolRolesInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["GetIdentityPoolRolesInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetIdentityPoolRolesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["GetIdentityPoolRolesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetIdInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["GetIdInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetIdResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["GetIdResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetOpenIdTokenForDeveloperIdentityInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["GetOpenIdTokenForDeveloperIdentityInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetOpenIdTokenForDeveloperIdentityResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["GetOpenIdTokenForDeveloperIdentityResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetOpenIdTokenInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["GetOpenIdTokenInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetOpenIdTokenResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["GetOpenIdTokenResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IdentityDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["IdentityDescription"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IdentityPool", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["IdentityPool"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IdentityPoolShortDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["IdentityPoolShortDescription"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InternalErrorException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["InternalErrorException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidIdentityPoolConfigurationException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["InvalidIdentityPoolConfigurationException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidParameterException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["InvalidParameterException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["LimitExceededException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListIdentitiesInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["ListIdentitiesInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListIdentitiesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["ListIdentitiesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListIdentityPoolsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["ListIdentityPoolsInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListIdentityPoolsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["ListIdentityPoolsResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["ListTagsForResourceInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["ListTagsForResourceResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LookupDeveloperIdentityInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["LookupDeveloperIdentityInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LookupDeveloperIdentityResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["LookupDeveloperIdentityResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MappingRule", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["MappingRule"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MappingRuleMatchType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["MappingRuleMatchType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MergeDeveloperIdentitiesInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["MergeDeveloperIdentitiesInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MergeDeveloperIdentitiesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["MergeDeveloperIdentitiesResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotAuthorizedException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["NotAuthorizedException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceConflictException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["ResourceConflictException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["ResourceNotFoundException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RoleMapping", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["RoleMapping"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RoleMappingType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["RoleMappingType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RulesConfigurationType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["RulesConfigurationType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SetIdentityPoolRolesInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["SetIdentityPoolRolesInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagResourceInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["TagResourceInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagResourceResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["TagResourceResponse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooManyRequestsException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["TooManyRequestsException"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UnlinkDeveloperIdentityInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["UnlinkDeveloperIdentityInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UnlinkIdentityInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["UnlinkIdentityInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UnprocessedIdentityId", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["UnprocessedIdentityId"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagResourceInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["UntagResourceInput"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagResourceResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_23__["UntagResourceResponse"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "f29J": /*!*****************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/concat.js ***! \*****************************************************************/ /*! exports provided: concat */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concat", function() { return concat; }); /* harmony import */ var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/concat */ "GyhO"); function concat(...observables) { return (source) => source.lift.call(Object(_observable_concat__WEBPACK_IMPORTED_MODULE_0__["concat"])(source, ...observables)); } //# sourceMappingURL=concat.js.map /***/ }), /***/ "f2PL": /*!**************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-polly/dist/es/commands/DescribeVoicesCommand.js ***! \**************************************************************************************/ /*! exports provided: DescribeVoicesCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeVoicesCommand", function() { return DescribeVoicesCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "uUVK"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "h3LU"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var DescribeVoicesCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeVoicesCommand, _super); // Start section: command_properties // End section: command_properties function DescribeVoicesCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } DescribeVoicesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeVoicesInput"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["DescribeVoicesOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; DescribeVoicesCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DescribeVoicesCommand"])(input, context); }; DescribeVoicesCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DescribeVoicesCommand"])(output, context); }; return DescribeVoicesCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=DescribeVoicesCommand.js.map /***/ }), /***/ "f3Bl": /*!***************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobCommand.js ***! \***************************************************************************************/ /*! exports provided: GetImportJobCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetImportJobCommand", function() { return GetImportJobCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "xdo1"); /* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "LhCc"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var GetImportJobCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetImportJobCommand, _super); // Start section: command_properties // End section: command_properties function GetImportJobCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } GetImportJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetImportJobRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["GetImportJobResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; GetImportJobCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetImportJobCommand"])(input, context); }; GetImportJobCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetImportJobCommand"])(output, context); }; return GetImportJobCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=GetImportJobCommand.js.map /***/ }), /***/ "f5h3": /*!*****************************************************************************!*\ !*** ./node_modules/@aws-amplify/ui-components/dist/esm/polyfills/index.js ***! \*****************************************************************************/ /*! exports provided: applyPolyfills */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyPolyfills", function() { return applyPolyfills; }); function applyPolyfills() { var promises = []; if (typeof window !== 'undefined') { var win = window; if (!win.customElements || (win.Element && (!win.Element.prototype.closest || !win.Element.prototype.matches || !win.Element.prototype.remove || !win.Element.prototype.getRootNode))) { promises.push(__webpack_require__.e(/*! import() | polyfills-dom */ "polyfills-dom").then(__webpack_require__.t.bind(null, /*! ./dom.js */ "0bxi", 7))); } function checkIfURLIsSupported() { try { var u = new URL('b', 'http://a'); u.pathname = 'c%20d'; return (u.href === 'http://a/c%20d') && u.searchParams; } catch (e) { return false; } } if ( 'function' !== typeof Object.assign || !Object.entries || !Array.prototype.find || !Array.prototype.includes || !String.prototype.startsWith || !String.prototype.endsWith || (win.NodeList && !win.NodeList.prototype.forEach) || !win.fetch || !checkIfURLIsSupported() || typeof WeakMap == 'undefined' ) { promises.push(__webpack_require__.e(/*! import() | polyfills-core-js */ "polyfills-core-js").then(__webpack_require__.t.bind(null, /*! ./core-js.js */ "fAns", 7))); } } return Promise.all(promises); } /***/ }), /***/ "fFD9": /*!************************************************************************!*\ !*** ./node_modules/rxjs/_esm2015/internal/operators/combineLatest.js ***! \************************************************************************/ /*! exports provided: combineLatest */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "combineLatest", function() { return combineLatest; }); /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isArray */ "DH7j"); /* harmony import */ var _observable_combineLatest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../observable/combineLatest */ "itXk"); /* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/from */ "Cfvw"); const none = {}; function combineLatest(...observables) { let project = null; if (typeof observables[observables.length - 1] === 'function') { project = observables.pop(); } if (observables.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(observables[0])) { observables = observables[0].slice(); } return (source) => source.lift.call(Object(_observable_from__WEBPACK_IMPORTED_MODULE_2__["from"])([source, ...observables]), new _observable_combineLatest__WEBPACK_IMPORTED_MODULE_1__["CombineLatestOperator"](project)); } //# sourceMappingURL=combineLatest.js.map /***/ }), /***/ "fGT3": /*!***********************************************!*\ !*** ./node_modules/lodash/_mapCacheClear.js ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var Hash = __webpack_require__(/*! ./_Hash */ "4kuk"), ListCache = __webpack_require__(/*! ./_ListCache */ "Xi7e"), Map = __webpack_require__(/*! ./_Map */ "ebwN"); /** * Removes all key-value entries from the map. * * @private * @name clear * @memberOf MapCache */ function mapCacheClear() { this.size = 0; this.__data__ = { 'hash': new Hash, 'map': new (Map || ListCache), 'string': new Hash }; } module.exports = mapCacheClear; /***/ }), /***/ "fO6j": /*!**************************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-comprehend/dist/es/commands/ListEntityRecognizersCommand.js ***! \**************************************************************************************************/ /*! exports provided: ListEntityRecognizersCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListEntityRecognizersCommand", function() { return ListEntityRecognizersCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "AS27"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "YKlZ"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var ListEntityRecognizersCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListEntityRecognizersCommand, _super); // Start section: command_properties // End section: command_properties function ListEntityRecognizersCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } ListEntityRecognizersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListEntityRecognizersRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["ListEntityRecognizersResponse"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; ListEntityRecognizersCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListEntityRecognizersCommand"])(input, context); }; ListEntityRecognizersCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListEntityRecognizersCommand"])(output, context); }; return ListEntityRecognizersCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=ListEntityRecognizersCommand.js.map /***/ }), /***/ "fQM2": /*!***********************************************************!*\ !*** ./node_modules/@aws-amplify/core/lib-esm/Amplify.js ***! \***********************************************************/ /*! exports provided: AmplifyClass, Amplify, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmplifyClass", function() { return AmplifyClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Amplify", function() { return Amplify; }); /* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Logger */ "RCJS"); var __read = (undefined && undefined.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var logger = new _Logger__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('Amplify'); var AmplifyClass = /** @class */ (function () { function AmplifyClass() { // Everything that is `register`ed is tracked here this._components = []; this._config = {}; // All modules (with `getModuleName()`) are stored here for dependency injection this._modules = {}; // for backward compatibility to avoid breaking change // if someone is using like Amplify.Auth this.Auth = null; this.Analytics = null; this.API = null; this.Credentials = null; this.Storage = null; this.I18n = null; this.Cache = null; this.PubSub = null; this.Interactions = null; this.Pushnotification = null; this.UI = null; this.XR = null; this.Predictions = null; this.DataStore = null; this.Logger = _Logger__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]; this.ServiceWorker = null; } AmplifyClass.prototype.register = function (comp) { logger.debug('component registered in amplify', comp); this._components.push(comp); if (typeof comp.getModuleName === 'function') { this._modules[comp.getModuleName()] = comp; this[comp.getModuleName()] = comp; } else { logger.debug('no getModuleName method for component', comp); } // Finally configure this new component(category) loaded // With the new modularization changes in Amplify V3, all the Amplify // component are not loaded/registered right away but when they are // imported (and hence instantiated) in the client's app. This ensures // that all new components imported get correctly configured with the // configuration that Amplify.configure() was called with. comp.configure(this._config); }; AmplifyClass.prototype.configure = function (config) { var _this = this; if (!config) return this._config; this._config = Object.assign(this._config, config); logger.debug('amplify config', this._config); // Dependency Injection via property-setting. // This avoids introducing a public method/interface/setter that's difficult to remove later. // Plus, it reduces `if` statements within the `constructor` and `configure` of each module Object.entries(this._modules).forEach(function (_a) { var _b = __read(_a, 2), Name = _b[0], comp = _b[1]; // e.g. Auth.* Object.keys(comp).forEach(function (property) { // e.g. Auth["Credentials"] = this._modules["Credentials"] when set if (_this._modules[property]) { comp[property] = _this._modules[property]; } }); }); this._components.map(function (comp) { comp.configure(_this._config); }); return this._config; }; AmplifyClass.prototype.addPluggable = function (pluggable) { if (pluggable && pluggable['getCategory'] && typeof pluggable['getCategory'] === 'function') { this._components.map(function (comp) { if (comp['addPluggable'] && typeof comp['addPluggable'] === 'function') { comp.addPluggable(pluggable); } }); } }; return AmplifyClass; }()); var Amplify = new AmplifyClass(); /** * @deprecated use named import */ /* harmony default export */ __webpack_exports__["default"] = (Amplify); //# sourceMappingURL=Amplify.js.map /***/ }), /***/ "fR/l": /*!************************************************!*\ !*** ./node_modules/lodash/_baseGetAllKeys.js ***! \************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__(/*! ./_arrayPush */ "CH3K"), isArray = __webpack_require__(/*! ./isArray */ "Z0cm"); /** * The base implementation of `getAllKeys` and `getAllKeysIn` which uses * `keysFunc` and `symbolsFunc` to get the enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @param {Function} keysFunc The function to get the keys of `object`. * @param {Function} symbolsFunc The function to get the symbols of `object`. * @returns {Array} Returns the array of property names and symbols. */ function baseGetAllKeys(object, keysFunc, symbolsFunc) { var result = keysFunc(object); return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); } module.exports = baseGetAllKeys; /***/ }), /***/ "fRz2": /*!*****************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-s3/dist/es/commands/AbortMultipartUploadCommand.js ***! \*****************************************************************************************/ /*! exports provided: AbortMultipartUploadCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AbortMultipartUploadCommand", function() { return AbortMultipartUploadCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "rrRf"); /* harmony import */ var _protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restXml */ "mL/g"); /* harmony import */ var _aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-bucket-endpoint */ "4pdS"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var AbortMultipartUploadCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AbortMultipartUploadCommand, _super); // Start section: command_properties // End section: command_properties function AbortMultipartUploadCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } AbortMultipartUploadCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_4__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(Object(_aws_sdk_middleware_bucket_endpoint__WEBPACK_IMPORTED_MODULE_3__["getBucketEndpointPlugin"])(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["AbortMultipartUploadRequest"].filterSensitiveLog, outputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["AbortMultipartUploadOutput"].filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; AbortMultipartUploadCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restXmlAbortMultipartUploadCommand"])(input, context); }; AbortMultipartUploadCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_restXml__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restXmlAbortMultipartUploadCommand"])(output, context); }; return AbortMultipartUploadCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_5__["Command"])); //# sourceMappingURL=AbortMultipartUploadCommand.js.map /***/ }), /***/ "fW1I": /*!***********************************************************************************************!*\ !*** ./node_modules/@aws-sdk/client-kinesis/dist/es/commands/StartStreamEncryptionCommand.js ***! \***********************************************************************************************/ /*! exports provided: StartStreamEncryptionCommand */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartStreamEncryptionCommand", function() { return StartStreamEncryptionCommand; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG"); /* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/index */ "96Y9"); /* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "if7T"); /* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "mRvm"); /* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "EI00"); var StartStreamEncryptionCommand = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartStreamEncryptionCommand, _super); // Start section: command_properties // End section: command_properties function StartStreamEncryptionCommand(input) { var _this = // Start section: command_constructor _super.call(this) || this; _this.input = input; return _this; // End section: command_constructor } StartStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var handlerExecutionContext = { logger: logger, inputFilterSensitiveLog: _models_index__WEBPACK_IMPORTED_MODULE_1__["StartStreamEncryptionInput"].filterSensitiveLog, outputFilterSensitiveLog: function (output) { return output; }, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; StartStreamEncryptionCommand.prototype.serialize = function (input, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartStreamEncryptionCommand"])(input, context); }; StartStreamEncryptionCommand.prototype.deserialize = function (output, context) { return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartStreamEncryptionCommand"])(output, context); }; return StartStreamEncryptionCommand; }(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"])); //# sourceMappingURL=StartStreamEncryptionCommand.js.map /***/ }), /***/ "fXoL": /*!******************************************************************!*\ !*** ./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js ***! \******************************************************************/ /*! exports provided: ANALYZE_FOR_ENTRY_COMPONENTS, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory, ComponentFactoryResolver, ComponentRef, ContentChild, ContentChildren, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, DefaultIterableDiffer, Directive, ElementRef, EmbeddedViewRef, ErrorHandler, EventEmitter, Host, HostBinding, HostListener, INJECTOR, Inject, InjectFlags, Injectable, InjectionToken, Injector, Input, IterableDiffers, KeyValueDiffers, LOCALE_ID, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory, NgModuleFactoryLoader, NgModuleRef, NgProbeToken, NgZone, Optional, Output, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, Pipe, PlatformRef, Query, QueryList, ReflectiveInjector, ReflectiveKey, Renderer2, RendererFactory2, RendererStyleFlags2, ResolvedReflectiveFactory, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, SystemJsNgModuleLoader, SystemJsNgModuleLoaderConfig, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, Type, VERSION, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation, ViewRef, WrappedValue, asNativeElements, assertPlatform, createPlatform, createPlatformFactory, defineInjectable, destroyPlatform, enableProdMode, forwardRef, getDebugNode, getModuleFactory, getPlatform, inject, isDevMode, platformCore, resolveForwardRef, setTestabilityGetter, ɵ0, ɵ1, ɵALLOW_MULTIPLE_PLATFORMS, ɵAPP_ID_RANDOM_PROVIDER, ɵChangeDetectorStatus, ɵCodegenComponentFactoryResolver, ɵCompiler_compileModuleAndAllComponentsAsync__POST_R3__, ɵCompiler_compileModuleAndAllComponentsSync__POST_R3__, ɵCompiler_compileModuleAsync__POST_R3__, ɵCompiler_compileModuleSync__POST_R3__, ɵComponentFactory, ɵConsole, ɵDEFAULT_LOCALE_ID, ɵEMPTY_ARRAY, ɵEMPTY_MAP, ɵINJECTOR_IMPL__POST_R3__, ɵINJECTOR_SCOPE, ɵLifecycleHooksFeature, ɵLocaleDataIndex, ɵNG_COMP_DEF, ɵNG_DIR_DEF, ɵNG_ELEMENT_ID, ɵNG_INJ_DEF, ɵNG_MOD_DEF, ɵNG_PIPE_DEF, ɵNG_PROV_DEF, ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, ɵNO_CHANGE, ɵNgModuleFactory, ɵNoopNgZone, ɵReflectionCapabilities, ɵRender3ComponentFactory, ɵRender3ComponentRef, ɵRender3NgModuleRef, ɵSWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__, ɵSWITCH_COMPILE_COMPONENT__POST_R3__, ɵSWITCH_COMPILE_DIRECTIVE__POST_R3__, ɵSWITCH_COMPILE_INJECTABLE__POST_R3__, ɵSWITCH_COMPILE_NGMODULE__POST_R3__, ɵSWITCH_COMPILE_PIPE__POST_R3__, ɵSWITCH_ELEMENT_REF_FACTORY__POST_R3__, ɵSWITCH_IVY_ENABLED__POST_R3__, ɵSWITCH_RENDERER2_FACTORY__POST_R3__, ɵSWITCH_TEMPLATE_REF_FACTORY__POST_R3__, ɵSWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__, ɵ_sanitizeHtml, ɵ_sanitizeUrl, ɵallowSanitizationBypassAndThrow, ɵand, ɵangular_packages_core_core_a, ɵangular_packages_core_core_b, ɵangular_packages_core_core_ba, ɵangular_packages_core_core_bb, ɵangular_packages_core_core_bc, ɵangular_packages_core_core_bd, ɵangular_packages_core_core_bf, ɵangular_packages_core_core_bg, ɵangular_packages_core_core_bh, ɵangular_packages_core_core_bi, ɵangular_packages_core_core_bj, ɵangular_packages_core_core_bk, ɵangular_packages_core_core_bl, ɵangular_packages_core_core_bm, ɵangular_packages_core_core_bn, ɵangular_packages_core_core_bp, ɵangular_packages_core_core_bq, ɵangular_packages_core_core_c, ɵangular_packages_core_core_d, ɵangular_packages_core_core_e, ɵangular_packages_core_core_f, ɵangular_packages_core_core_g, ɵangular_packages_core_core_h, ɵangular_packages_core_core_i, ɵangular_packages_core_core_j, ɵangular_packages_core_core_k, ɵangular_packages_core_core_l, ɵangular_packages_core_core_m, ɵangular_packages_core_core_n, ɵangular_packages_core_core_o, ɵangular_packages_core_core_p, ɵangular_packages_core_core_q, ɵangular_packages_core_core_r, ɵangular_packages_core_core_s, ɵangular_packages_core_core_t, ɵangular_packages_core_core_u, ɵangular_packages_core_core_v, ɵangular_packages_core_core_w, ɵangular_packages_core_core_x, ɵangular_packages_core_core_y, ɵangular_packages_core_core_z, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustResourceUrl, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustUrl, ɵccf, ɵclearOverrides, ɵclearResolutionOfComponentResourcesQueue, ɵcmf, ɵcompileComponent, ɵcompileDirective, ɵcompileNgModule, ɵcompileNgModuleDefs, ɵcompileNgModuleFactory__POST_R3__, ɵcompilePipe, ɵcreateInjector, ɵcrt, ɵdefaultIterableDiffers, ɵdefaultKeyValueDiffers, ɵdetectChanges, ɵdevModeEqual, ɵdid, ɵeld, ɵfindLocaleData, ɵflushModuleScopingQueueAsMuchAsPossible, ɵgetComponentViewDefinitionFactory, ɵgetDebugNodeR2, ɵgetDebugNode__POST_R3__, ɵgetDirectives, ɵgetHostElement, ɵgetInjectableDef, ɵgetLContext, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, ɵgetModuleFactory__POST_R3__, ɵgetSanitizationBypassType, ɵglobal, ɵinitServicesIfNeeded, ɵinlineInterpolate, ɵinterpolate, ɵisBoundToModule__POST_R3__, ɵisDefaultChangeDetectionStrategy, ɵisListLikeIterable, ɵisObservable, ɵisPromise, ɵivyEnabled, ɵmakeDecorator, ɵmarkDirty, ɵmod, ɵmpd, ɵncd, ɵnoSideEffects, ɵnov, ɵoverrideComponentView, ɵoverrideProvider, ɵpad, ɵpatchComponentDefWithScope, ɵpid, ɵpod, ɵppd, ɵprd, ɵpublishDefaultGlobalUtils, ɵpublishGlobalUtil, ɵqud, ɵregisterLocaleData, ɵregisterModuleFactory, ɵregisterNgModuleType, ɵrenderComponent, ɵresetCompiledComponents, ɵresetJitOptions, ɵresolveComponentResources, ɵsetClassMetadata, ɵsetCurrentInjector, ɵsetDocument, ɵsetLocaleId, ɵstore, ɵstringify, ɵted, ɵtransitiveScopesFor, ɵunregisterLocaleData, ɵunv, ɵunwrapSafeValue, ɵvid, ɵwhenRendered, ɵɵCopyDefinitionFeature, ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵadvance, ɵɵattribute, ɵɵattributeInterpolate1, ɵɵattributeInterpolate2, ɵɵattributeInterpolate3, ɵɵattributeInterpolate4, ɵɵattributeInterpolate5, ɵɵattributeInterpolate6, ɵɵattributeInterpolate7, ɵɵattributeInterpolate8, ɵɵattributeInterpolateV, ɵɵclassMap, ɵɵclassMapInterpolate1, ɵɵclassMapInterpolate2, ɵɵclassMapInterpolate3, ɵɵclassMapInterpolate4, ɵɵclassMapInterpolate5, ɵɵclassMapInterpolate6, ɵɵclassMapInterpolate7, ɵɵclassMapInterpolate8, ɵɵclassMapInterpolateV, ɵɵclassProp, ɵɵcontentQuery, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineInjectable, ɵɵdefineInjector, ɵɵdefineNgModule, ɵɵdefinePipe, ɵɵdirectiveInject, ɵɵdisableBindings, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵenableBindings, ɵɵgetCurrentView, ɵɵgetFactoryOf, ɵɵgetInheritedFactory, ɵɵhostProperty, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinject, ɵɵinjectAttribute, ɵɵinjectPipeChangeDetectorRef, ɵɵinvalidFactory, ɵɵinvalidFactoryDep, ɵɵlistener, ɵɵloadQuery, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵnextContext, ɵɵpipe, ɵɵpipeBind1, ɵɵpipeBind2, ɵɵpipeBind3, ɵɵpipeBind4, ɵɵpipeBindV, ɵɵprojection, ɵɵprojectionDef, ɵɵproperty, ɵɵpropertyInterpolate, ɵɵpropertyInterpolate1, ɵɵpropertyInterpolate2, ɵɵpropertyInterpolate3, ɵɵpropertyInterpolate4, ɵɵpropertyInterpolate5, ɵɵpropertyInterpolate6, ɵɵpropertyInterpolate7, ɵɵpropertyInterpolate8, ɵɵpropertyInterpolateV, ɵɵpureFunction0, ɵɵpureFunction1, ɵɵpureFunction2, ɵɵpureFunction3, ɵɵpureFunction4, ɵɵpureFunction5, ɵɵpureFunction6, ɵɵpureFunction7, ɵɵpureFunction8, ɵɵpureFunctionV, ɵɵqueryRefresh, ɵɵreference, ɵɵresolveBody, ɵɵresolveDocument, ɵɵresolveWindow, ɵɵrestoreView, ɵɵsanitizeHtml, ɵɵsanitizeResourceUrl, ɵɵsanitizeScript, ɵɵsanitizeStyle, ɵɵsanitizeUrl, ɵɵsanitizeUrlOrResourceUrl, ɵɵsetComponentScope, ɵɵsetNgModuleScope, ɵɵstaticContentQuery, ɵɵstaticViewQuery, ɵɵstyleMap, ɵɵstyleMapInterpolate1, ɵɵstyleMapInterpolate2, ɵɵstyleMapInterpolate3, ɵɵstyleMapInterpolate4, ɵɵstyleMapInterpolate5, ɵɵstyleMapInterpolate6, ɵɵstyleMapInterpolate7, ɵɵstyleMapInterpolate8, ɵɵstyleMapInterpolateV, ɵɵstyleProp, ɵɵstylePropInterpolate1, ɵɵstylePropInterpolate2, ɵɵstylePropInterpolate3, ɵɵstylePropInterpolate4, ɵɵstylePropInterpolate5, ɵɵstylePropInterpolate6, ɵɵstylePropInterpolate7, ɵɵstylePropInterpolate8, ɵɵstylePropInterpolateV, ɵɵsyntheticHostListener, ɵɵsyntheticHostProperty, ɵɵtemplate, ɵɵtemplateRefExtractor, ɵɵtext, ɵɵtextInterpolate, ɵɵtextInterpolate1, ɵɵtextInterpolate2, ɵɵtextInterpolate3, ɵɵtextInterpolate4, ɵɵtextInterpolate5, ɵɵtextInterpolate6, ɵɵtextInterpolate7, ɵɵtextInterpolate8, ɵɵtextInterpolateV, ɵɵviewQuery */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ANALYZE_FOR_ENTRY_COMPONENTS", function() { return ANALYZE_FOR_ENTRY_COMPONENTS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APP_BOOTSTRAP_LISTENER", function() { return APP_BOOTSTRAP_LISTENER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APP_ID", function() { return APP_ID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APP_INITIALIZER", function() { return APP_INITIALIZER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApplicationInitStatus", function() { return ApplicationInitStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApplicationModule", function() { return ApplicationModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApplicationRef", function() { return ApplicationRef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Attribute", function() { return Attribute; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMPILER_OPTIONS", function() { return COMPILER_OPTIONS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CUSTOM_ELEMENTS_SCHEMA", function() { return CUSTOM_ELEMENTS_SCHEMA; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChangeDetectionStrategy", function() { return ChangeDetectionStrategy; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChangeDetectorRef", function() { return ChangeDetectorRef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Compiler", function() { return Compiler; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompilerFactory", function() { return CompilerFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Component", function() { return Component; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComponentFactory", function() { return ComponentFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComponentFactoryResolver", function() { return ComponentFactoryResolver; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComponentRef", function() { return ComponentRef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContentChild", function() { return ContentChild; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContentChildren", function() { return ContentChildren; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_CURRENCY_CODE", function() { return DEFAULT_CURRENCY_CODE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DebugElement", function() { return DebugElement; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DebugEventListener", function() { return DebugEventListener; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DebugNode", function() { return DebugNode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultIterableDiffer", function() { return DefaultIterableDiffer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Directive", function() { return Directive; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ElementRef", function() { return ElementRef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmbeddedViewRef", function() { return EmbeddedViewRef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ErrorHandler", function() { return ErrorHandler; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventEmitter", function() { return EventEmitter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Host", function() { return Host; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HostBinding", function() { return HostBinding; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HostListener", function() { return HostListener; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INJECTOR", function() { return INJECTOR; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Inject", function() { return Inject; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InjectFlags", function() { return InjectFlags; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Injectable", function() { return Injectable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InjectionToken", function() { return InjectionToken; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Injector", function() { return Injector; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Input", function() { return Input; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IterableDiffers", function() { return IterableDiffers; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KeyValueDiffers", function() { return KeyValueDiffers; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LOCALE_ID", function() { return LOCALE_ID$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MissingTranslationStrategy", function() { return MissingTranslationStrategy; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ModuleWithComponentFactories", function() { return ModuleWithComponentFactories; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NO_ERRORS_SCHEMA", function() { return NO_ERRORS_SCHEMA; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgModule", function() { return NgModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgModuleFactory", function() { return NgModuleFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgModuleFactoryLoader", function() { return NgModuleFactoryLoader; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgModuleRef", function() { return NgModuleRef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgProbeToken", function() { return NgProbeToken; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgZone", function() { return NgZone; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Optional", function() { return Optional; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Output", function() { return Output; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PACKAGE_ROOT_URL", function() { return PACKAGE_ROOT_URL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PLATFORM_ID", function() { return PLATFORM_ID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PLATFORM_INITIALIZER", function() { return PLATFORM_INITIALIZER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pipe", function() { return Pipe; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlatformRef", function() { return PlatformRef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Query", function() { return Query; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QueryList", function() { return QueryList; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReflectiveInjector", function() { return ReflectiveInjector; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReflectiveKey", function() { return ReflectiveKey; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Renderer2", function() { return Renderer2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RendererFactory2", function() { return RendererFactory2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RendererStyleFlags2", function() { return RendererStyleFlags2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResolvedReflectiveFactory", function() { return ResolvedReflectiveFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sanitizer", function() { return Sanitizer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SecurityContext", function() { return SecurityContext; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Self", function() { return Self; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimpleChange", function() { return SimpleChange; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkipSelf", function() { return SkipSelf; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SystemJsNgModuleLoader", function() { return SystemJsNgModuleLoader; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SystemJsNgModuleLoaderConfig", function() { return SystemJsNgModuleLoaderConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TRANSLATIONS", function() { return TRANSLATIONS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TRANSLATIONS_FORMAT", function() { return TRANSLATIONS_FORMAT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplateRef", function() { return TemplateRef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Testability", function() { return Testability; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TestabilityRegistry", function() { return TestabilityRegistry; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Type", function() { return Type; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Version", function() { return Version; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewChild", function() { return ViewChild; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewChildren", function() { return ViewChildren; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewContainerRef", function() { return ViewContainerRef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewEncapsulation", function() { return ViewEncapsulation$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewRef", function() { return ViewRef$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WrappedValue", function() { return WrappedValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asNativeElements", function() { return asNativeElements; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertPlatform", function() { return assertPlatform; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createPlatform", function() { return createPlatform; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createPlatformFactory", function() { return createPlatformFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defineInjectable", function() { return defineInjectable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "destroyPlatform", function() { return destroyPlatform; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enableProdMode", function() { return enableProdMode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "forwardRef", function() { return forwardRef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDebugNode", function() { return getDebugNode$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getModuleFactory", function() { return getModuleFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPlatform", function() { return getPlatform; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inject", function() { return inject; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isDevMode", function() { return isDevMode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "platformCore", function() { return platformCore; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveForwardRef", function() { return resolveForwardRef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTestabilityGetter", function() { return setTestabilityGetter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ0", function() { return ɵ0; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ1", function() { return ɵ1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵALLOW_MULTIPLE_PLATFORMS", function() { return ALLOW_MULTIPLE_PLATFORMS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵAPP_ID_RANDOM_PROVIDER", function() { return APP_ID_RANDOM_PROVIDER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵChangeDetectorStatus", function() { return ChangeDetectorStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵCodegenComponentFactoryResolver", function() { return CodegenComponentFactoryResolver; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵCompiler_compileModuleAndAllComponentsAsync__POST_R3__", function() { return Compiler_compileModuleAndAllComponentsAsync__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵCompiler_compileModuleAndAllComponentsSync__POST_R3__", function() { return Compiler_compileModuleAndAllComponentsSync__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵCompiler_compileModuleAsync__POST_R3__", function() { return Compiler_compileModuleAsync__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵCompiler_compileModuleSync__POST_R3__", function() { return Compiler_compileModuleSync__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵComponentFactory", function() { return ComponentFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵConsole", function() { return Console; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵDEFAULT_LOCALE_ID", function() { return DEFAULT_LOCALE_ID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵEMPTY_ARRAY", function() { return EMPTY_ARRAY$4; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵEMPTY_MAP", function() { return EMPTY_MAP; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵINJECTOR_IMPL__POST_R3__", function() { return INJECTOR_IMPL__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵINJECTOR_SCOPE", function() { return INJECTOR_SCOPE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵLifecycleHooksFeature", function() { return LifecycleHooksFeature; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵLocaleDataIndex", function() { return LocaleDataIndex; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNG_COMP_DEF", function() { return NG_COMP_DEF; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNG_DIR_DEF", function() { return NG_DIR_DEF; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNG_ELEMENT_ID", function() { return NG_ELEMENT_ID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNG_INJ_DEF", function() { return NG_INJ_DEF; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNG_MOD_DEF", function() { return NG_MOD_DEF; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNG_PIPE_DEF", function() { return NG_PIPE_DEF; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNG_PROV_DEF", function() { return NG_PROV_DEF; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR", function() { return NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNO_CHANGE", function() { return NO_CHANGE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNgModuleFactory", function() { return NgModuleFactory$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNoopNgZone", function() { return NoopNgZone; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵReflectionCapabilities", function() { return ReflectionCapabilities; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵRender3ComponentFactory", function() { return ComponentFactory$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵRender3ComponentRef", function() { return ComponentRef$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵRender3NgModuleRef", function() { return NgModuleRef$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__", function() { return SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_COMPONENT__POST_R3__", function() { return SWITCH_COMPILE_COMPONENT__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_DIRECTIVE__POST_R3__", function() { return SWITCH_COMPILE_DIRECTIVE__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_INJECTABLE__POST_R3__", function() { return SWITCH_COMPILE_INJECTABLE__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_NGMODULE__POST_R3__", function() { return SWITCH_COMPILE_NGMODULE__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_PIPE__POST_R3__", function() { return SWITCH_COMPILE_PIPE__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_ELEMENT_REF_FACTORY__POST_R3__", function() { return SWITCH_ELEMENT_REF_FACTORY__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_IVY_ENABLED__POST_R3__", function() { return SWITCH_IVY_ENABLED__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_RENDERER2_FACTORY__POST_R3__", function() { return SWITCH_RENDERER2_FACTORY__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_TEMPLATE_REF_FACTORY__POST_R3__", function() { return SWITCH_TEMPLATE_REF_FACTORY__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__", function() { return SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ_sanitizeHtml", function() { return _sanitizeHtml; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ_sanitizeUrl", function() { return _sanitizeUrl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵallowSanitizationBypassAndThrow", function() { return allowSanitizationBypassAndThrow; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵand", function() { return anchorDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_a", function() { return isForwardRef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_b", function() { return injectInjectorOnly; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_ba", function() { return instructionState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bb", function() { return getLView; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bc", function() { return getBindingRoot; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bd", function() { return nextContextImpl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bf", function() { return pureFunction1Internal; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bg", function() { return pureFunction2Internal; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bh", function() { return pureFunction3Internal; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bi", function() { return pureFunction4Internal; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bj", function() { return pureFunctionVInternal; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bk", function() { return getUrlSanitizer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bl", function() { return makeParamDecorator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bm", function() { return makePropDecorator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bn", function() { return getClosureSafeProperty; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bp", function() { return getRootContext; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bq", function() { return i18nPostprocess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_c", function() { return NullInjector; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_d", function() { return ReflectiveInjector_; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_e", function() { return ReflectiveDependency; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_f", function() { return resolveReflectiveProviders; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_g", function() { return _appIdRandomProviderFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_h", function() { return createElementRef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_i", function() { return createTemplateRef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_j", function() { return getModuleFactory__PRE_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_k", function() { return DebugNode__PRE_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_l", function() { return DebugElement__PRE_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_m", function() { return getDebugNodeR2__PRE_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_n", function() { return DefaultIterableDifferFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_o", function() { return DefaultKeyValueDifferFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_p", function() { return _iterableDiffersFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_q", function() { return _keyValueDiffersFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_r", function() { return _localeFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_s", function() { return APPLICATION_MODULE_PROVIDERS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_t", function() { return zoneSchedulerFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_u", function() { return USD_CURRENCY_CODE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_v", function() { return _def; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_w", function() { return DebugContext; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_x", function() { return NgOnChangesFeatureImpl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_y", function() { return SCHEDULER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_z", function() { return injectAttributeImpl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustHtml", function() { return bypassSanitizationTrustHtml; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustResourceUrl", function() { return bypassSanitizationTrustResourceUrl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustScript", function() { return bypassSanitizationTrustScript; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustStyle", function() { return bypassSanitizationTrustStyle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustUrl", function() { return bypassSanitizationTrustUrl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵccf", function() { return createComponentFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵclearOverrides", function() { return clearOverrides; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵclearResolutionOfComponentResourcesQueue", function() { return clearResolutionOfComponentResourcesQueue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcmf", function() { return createNgModuleFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcompileComponent", function() { return compileComponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcompileDirective", function() { return compileDirective; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcompileNgModule", function() { return compileNgModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcompileNgModuleDefs", function() { return compileNgModuleDefs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcompileNgModuleFactory__POST_R3__", function() { return compileNgModuleFactory__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcompilePipe", function() { return compilePipe; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcreateInjector", function() { return createInjector; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcrt", function() { return createRendererType2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵdefaultIterableDiffers", function() { return defaultIterableDiffers; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵdefaultKeyValueDiffers", function() { return defaultKeyValueDiffers; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵdetectChanges", function() { return detectChanges; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵdevModeEqual", function() { return devModeEqual; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵdid", function() { return directiveDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵeld", function() { return elementDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵfindLocaleData", function() { return findLocaleData; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵflushModuleScopingQueueAsMuchAsPossible", function() { return flushModuleScopingQueueAsMuchAsPossible; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetComponentViewDefinitionFactory", function() { return getComponentViewDefinitionFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetDebugNodeR2", function() { return getDebugNodeR2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetDebugNode__POST_R3__", function() { return getDebugNode__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetDirectives", function() { return getDirectives; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetHostElement", function() { return getHostElement; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetInjectableDef", function() { return getInjectableDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetLContext", function() { return getLContext; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetLocaleCurrencyCode", function() { return getLocaleCurrencyCode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetLocalePluralCase", function() { return getLocalePluralCase; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetModuleFactory__POST_R3__", function() { return getModuleFactory__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetSanitizationBypassType", function() { return getSanitizationBypassType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵglobal", function() { return _global; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵinitServicesIfNeeded", function() { return initServicesIfNeeded; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵinlineInterpolate", function() { return inlineInterpolate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵinterpolate", function() { return interpolate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵisBoundToModule__POST_R3__", function() { return isBoundToModule__POST_R3__; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵisDefaultChangeDetectionStrategy", function() { return isDefaultChangeDetectionStrategy; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵisListLikeIterable", function() { return isListLikeIterable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵisObservable", function() { return isObservable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵisPromise", function() { return isPromise; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵivyEnabled", function() { return ivyEnabled; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵmakeDecorator", function() { return makeDecorator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵmarkDirty", function() { return markDirty; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵmod", function() { return moduleDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵmpd", function() { return moduleProvideDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵncd", function() { return ngContentDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵnoSideEffects", function() { return noSideEffects; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵnov", function() { return nodeValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵoverrideComponentView", function() { return overrideComponentView; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵoverrideProvider", function() { return overrideProvider; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵpad", function() { return pureArrayDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵpatchComponentDefWithScope", function() { return patchComponentDefWithScope; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵpid", function() { return pipeDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵpod", function() { return pureObjectDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵppd", function() { return purePipeDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵprd", function() { return providerDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵpublishDefaultGlobalUtils", function() { return publishDefaultGlobalUtils; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵpublishGlobalUtil", function() { return publishGlobalUtil; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵqud", function() { return queryDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵregisterLocaleData", function() { return registerLocaleData; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵregisterModuleFactory", function() { return registerModuleFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵregisterNgModuleType", function() { return registerNgModuleType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵrenderComponent", function() { return renderComponent$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵresetCompiledComponents", function() { return resetCompiledComponents; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵresetJitOptions", function() { return resetJitOptions; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵresolveComponentResources", function() { return resolveComponentResources; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵsetClassMetadata", function() { return setClassMetadata; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵsetCurrentInjector", function() { return setCurrentInjector; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵsetDocument", function() { return setDocument; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵsetLocaleId", function() { return setLocaleId; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵstore", function() { return store; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵstringify", function() { return stringify; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵted", function() { return textDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵtransitiveScopesFor", function() { return transitiveScopesFor; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵunregisterLocaleData", function() { return unregisterAllLocaleData; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵunv", function() { return unwrapValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵunwrapSafeValue", function() { return unwrapSafeValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵvid", function() { return viewDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵwhenRendered", function() { return whenRendered; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵCopyDefinitionFeature", function() { return ɵɵCopyDefinitionFeature; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵInheritDefinitionFeature", function() { return ɵɵInheritDefinitionFeature; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵNgOnChangesFeature", function() { return ɵɵNgOnChangesFeature; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵProvidersFeature", function() { return ɵɵProvidersFeature; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵadvance", function() { return ɵɵadvance; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattribute", function() { return ɵɵattribute; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate1", function() { return ɵɵattributeInterpolate1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate2", function() { return ɵɵattributeInterpolate2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate3", function() { return ɵɵattributeInterpolate3; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate4", function() { return ɵɵattributeInterpolate4; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate5", function() { return ɵɵattributeInterpolate5; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate6", function() { return ɵɵattributeInterpolate6; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate7", function() { return ɵɵattributeInterpolate7; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate8", function() { return ɵɵattributeInterpolate8; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolateV", function() { return ɵɵattributeInterpolateV; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMap", function() { return ɵɵclassMap; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate1", function() { return ɵɵclassMapInterpolate1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate2", function() { return ɵɵclassMapInterpolate2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate3", function() { return ɵɵclassMapInterpolate3; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate4", function() { return ɵɵclassMapInterpolate4; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate5", function() { return ɵɵclassMapInterpolate5; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate6", function() { return ɵɵclassMapInterpolate6; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate7", function() { return ɵɵclassMapInterpolate7; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate8", function() { return ɵɵclassMapInterpolate8; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolateV", function() { return ɵɵclassMapInterpolateV; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassProp", function() { return ɵɵclassProp; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵcontentQuery", function() { return ɵɵcontentQuery; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵdefineComponent", function() { return ɵɵdefineComponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵdefineDirective", function() { return ɵɵdefineDirective; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵdefineInjectable", function() { return ɵɵdefineInjectable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵdefineInjector", function() { return ɵɵdefineInjector; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵdefineNgModule", function() { return ɵɵdefineNgModule; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵdefinePipe", function() { return ɵɵdefinePipe; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵdirectiveInject", function() { return ɵɵdirectiveInject; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵdisableBindings", function() { return ɵɵdisableBindings; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵelement", function() { return ɵɵelement; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵelementContainer", function() { return ɵɵelementContainer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵelementContainerEnd", function() { return ɵɵelementContainerEnd; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵelementContainerStart", function() { return ɵɵelementContainerStart; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵelementEnd", function() { return ɵɵelementEnd; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵelementStart", function() { return ɵɵelementStart; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵenableBindings", function() { return ɵɵenableBindings; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵgetCurrentView", function() { return ɵɵgetCurrentView; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵgetFactoryOf", function() { return ɵɵgetFactoryOf; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵgetInheritedFactory", function() { return ɵɵgetInheritedFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵhostProperty", function() { return ɵɵhostProperty; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵi18n", function() { return ɵɵi18n; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵi18nApply", function() { return ɵɵi18nApply; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵi18nAttributes", function() { return ɵɵi18nAttributes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵi18nEnd", function() { return ɵɵi18nEnd; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵi18nExp", function() { return ɵɵi18nExp; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵi18nPostprocess", function() { return ɵɵi18nPostprocess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵi18nStart", function() { return ɵɵi18nStart; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵinject", function() { return ɵɵinject; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵinjectAttribute", function() { return ɵɵinjectAttribute; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵinjectPipeChangeDetectorRef", function() { return ɵɵinjectPipeChangeDetectorRef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵinvalidFactory", function() { return ɵɵinvalidFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵinvalidFactoryDep", function() { return ɵɵinvalidFactoryDep; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵlistener", function() { return ɵɵlistener; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵloadQuery", function() { return ɵɵloadQuery; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵnamespaceHTML", function() { return ɵɵnamespaceHTML; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵnamespaceMathML", function() { return ɵɵnamespaceMathML; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵnamespaceSVG", function() { return ɵɵnamespaceSVG; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵnextContext", function() { return ɵɵnextContext; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpipe", function() { return ɵɵpipe; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpipeBind1", function() { return ɵɵpipeBind1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpipeBind2", function() { return ɵɵpipeBind2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpipeBind3", function() { return ɵɵpipeBind3; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpipeBind4", function() { return ɵɵpipeBind4; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpipeBindV", function() { return ɵɵpipeBindV; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵprojection", function() { return ɵɵprojection; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵprojectionDef", function() { return ɵɵprojectionDef; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵproperty", function() { return ɵɵproperty; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate", function() { return ɵɵpropertyInterpolate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate1", function() { return ɵɵpropertyInterpolate1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate2", function() { return ɵɵpropertyInterpolate2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate3", function() { return ɵɵpropertyInterpolate3; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate4", function() { return ɵɵpropertyInterpolate4; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate5", function() { return ɵɵpropertyInterpolate5; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate6", function() { return ɵɵpropertyInterpolate6; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate7", function() { return ɵɵpropertyInterpolate7; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate8", function() { return ɵɵpropertyInterpolate8; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolateV", function() { return ɵɵpropertyInterpolateV; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction0", function() { return ɵɵpureFunction0; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction1", function() { return ɵɵpureFunction1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction2", function() { return ɵɵpureFunction2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction3", function() { return ɵɵpureFunction3; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction4", function() { return ɵɵpureFunction4; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction5", function() { return ɵɵpureFunction5; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction6", function() { return ɵɵpureFunction6; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction7", function() { return ɵɵpureFunction7; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction8", function() { return ɵɵpureFunction8; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunctionV", function() { return ɵɵpureFunctionV; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵqueryRefresh", function() { return ɵɵqueryRefresh; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵreference", function() { return ɵɵreference; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵresolveBody", function() { return ɵɵresolveBody; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵresolveDocument", function() { return ɵɵresolveDocument; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵresolveWindow", function() { return ɵɵresolveWindow; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵrestoreView", function() { return ɵɵrestoreView; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeHtml", function() { return ɵɵsanitizeHtml; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeResourceUrl", function() { return ɵɵsanitizeResourceUrl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeScript", function() { return ɵɵsanitizeScript; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeStyle", function() { return ɵɵsanitizeStyle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeUrl", function() { return ɵɵsanitizeUrl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeUrlOrResourceUrl", function() { return ɵɵsanitizeUrlOrResourceUrl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsetComponentScope", function() { return ɵɵsetComponentScope; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsetNgModuleScope", function() { return ɵɵsetNgModuleScope; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstaticContentQuery", function() { return ɵɵstaticContentQuery; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstaticViewQuery", function() { return ɵɵstaticViewQuery; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMap", function() { return ɵɵstyleMap; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate1", function() { return ɵɵstyleMapInterpolate1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate2", function() { return ɵɵstyleMapInterpolate2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate3", function() { return ɵɵstyleMapInterpolate3; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate4", function() { return ɵɵstyleMapInterpolate4; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate5", function() { return ɵɵstyleMapInterpolate5; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate6", function() { return ɵɵstyleMapInterpolate6; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate7", function() { return ɵɵstyleMapInterpolate7; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate8", function() { return ɵɵstyleMapInterpolate8; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolateV", function() { return ɵɵstyleMapInterpolateV; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleProp", function() { return ɵɵstyleProp; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate1", function() { return ɵɵstylePropInterpolate1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate2", function() { return ɵɵstylePropInterpolate2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate3", function() { return ɵɵstylePropInterpolate3; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate4", function() { return ɵɵstylePropInterpolate4; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate5", function() { return ɵɵstylePropInterpolate5; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate6", function() { return ɵɵstylePropInterpolate6; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate7", function() { return ɵɵstylePropInterpolate7; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate8", function() { return ɵɵstylePropInterpolate8; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolateV", function() { return ɵɵstylePropInterpolateV; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsyntheticHostListener", function() { return ɵɵsyntheticHostListener; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsyntheticHostProperty", function() { return ɵɵsyntheticHostProperty; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtemplate", function() { return ɵɵtemplate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtemplateRefExtractor", function() { return ɵɵtemplateRefExtractor; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtext", function() { return ɵɵtext; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate", function() { return ɵɵtextInterpolate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate1", function() { return ɵɵtextInterpolate1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate2", function() { return ɵɵtextInterpolate2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate3", function() { return ɵɵtextInterpolate3; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate4", function() { return ɵɵtextInterpolate4; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate5", function() { return ɵɵtextInterpolate5; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate6", function() { return ɵɵtextInterpolate6; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate7", function() { return ɵɵtextInterpolate7; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate8", function() { return ɵɵtextInterpolate8; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolateV", function() { return ɵɵtextInterpolateV; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵviewQuery", function() { return ɵɵviewQuery; }); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ "qCKp"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M"); /** * @license Angular v10.1.5 * (c) 2010-2020 Google LLC. https://angular.io/ * License: MIT */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Convince closure compiler that the wrapped function has no side-effects. * * Closure compiler always assumes that `toString` has no side-effects. We use this quirk to * allow us to execute a function but have closure compiler mark the call as no-side-effects. * It is important that the return value for the `noSideEffects` function be assigned * to something which is retained otherwise the call to `noSideEffects` will be removed by closure * compiler. */ function noSideEffects(fn) { return { toString: fn }.toString(); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const ANNOTATIONS = '__annotations__'; const PARAMETERS = '__parameters__'; const PROP_METADATA = '__prop__metadata__'; /** * @suppress {globalThis} */ function makeDecorator(name, props, parentClass, additionalProcessing, typeFn) { return noSideEffects(() => { const metaCtor = makeMetadataCtor(props); function DecoratorFactory(...args) { if (this instanceof DecoratorFactory) { metaCtor.call(this, ...args); return this; } const annotationInstance = new DecoratorFactory(...args); return function TypeDecorator(cls) { if (typeFn) typeFn(cls, ...args); // Use of Object.defineProperty is important since it creates non-enumerable property which // prevents the property is copied during subclassing. const annotations = cls.hasOwnProperty(ANNOTATIONS) ? cls[ANNOTATIONS] : Object.defineProperty(cls, ANNOTATIONS, { value: [] })[ANNOTATIONS]; annotations.push(annotationInstance); if (additionalProcessing) additionalProcessing(cls); return cls; }; } if (parentClass) { DecoratorFactory.prototype = Object.create(parentClass.prototype); } DecoratorFactory.prototype.ngMetadataName = name; DecoratorFactory.annotationCls = DecoratorFactory; return DecoratorFactory; }); } function makeMetadataCtor(props) { return function ctor(...args) { if (props) { const values = props(...args); for (const propName in values) { this[propName] = values[propName]; } } }; } function makeParamDecorator(name, props, parentClass) { return noSideEffects(() => { const metaCtor = makeMetadataCtor(props); function ParamDecoratorFactory(...args) { if (this instanceof ParamDecoratorFactory) { metaCtor.apply(this, args); return this; } const annotationInstance = new ParamDecoratorFactory(...args); ParamDecorator.annotation = annotationInstance; return ParamDecorator; function ParamDecorator(cls, unusedKey, index) { // Use of Object.defineProperty is important since it creates non-enumerable property which // prevents the property is copied during subclassing. const parameters = cls.hasOwnProperty(PARAMETERS) ? cls[PARAMETERS] : Object.defineProperty(cls, PARAMETERS, { value: [] })[PARAMETERS]; // there might be gaps if some in between parameters do not have annotations. // we pad with nulls. while (parameters.length <= index) { parameters.push(null); } (parameters[index] = parameters[index] || []).push(annotationInstance); return cls; } } if (parentClass) { ParamDecoratorFactory.prototype = Object.create(parentClass.prototype); } ParamDecoratorFactory.prototype.ngMetadataName = name; ParamDecoratorFactory.annotationCls = ParamDecoratorFactory; return ParamDecoratorFactory; }); } function makePropDecorator(name, props, parentClass, additionalProcessing) { return noSideEffects(() => { const metaCtor = makeMetadataCtor(props); function PropDecoratorFactory(...args) { if (this instanceof PropDecoratorFactory) { metaCtor.apply(this, args); return this; } const decoratorInstance = new PropDecoratorFactory(...args); function PropDecorator(target, name) { const constructor = target.constructor; // Use of Object.defineProperty is important because it creates a non-enumerable property // which prevents the property from being copied during subclassing. const meta = constructor.hasOwnProperty(PROP_METADATA) ? constructor[PROP_METADATA] : Object.defineProperty(constructor, PROP_METADATA, { value: {} })[PROP_METADATA]; meta[name] = meta.hasOwnProperty(name) && meta[name] || []; meta[name].unshift(decoratorInstance); if (additionalProcessing) additionalProcessing(target, name, ...args); } return PropDecorator; } if (parentClass) { PropDecoratorFactory.prototype = Object.create(parentClass.prototype); } PropDecoratorFactory.prototype.ngMetadataName = name; PropDecoratorFactory.annotationCls = PropDecoratorFactory; return PropDecoratorFactory; }); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const ɵ0 = (token) => ({ token }); /** * Inject decorator and metadata. * * @Annotation * @publicApi */ const Inject = makeParamDecorator('Inject', ɵ0); /** * Optional decorator and metadata. * * @Annotation * @publicApi */ const Optional = makeParamDecorator('Optional'); /** * Self decorator and metadata. * * @Annotation * @publicApi */ const Self = makeParamDecorator('Self'); /** * `SkipSelf` decorator and metadata. * * @Annotation * @publicApi */ const SkipSelf = makeParamDecorator('SkipSelf'); /** * Host decorator and metadata. * * @Annotation * @publicApi */ const Host = makeParamDecorator('Host'); const ɵ1 = (attributeName) => ({ attributeName }); /** * Attribute decorator and metadata. * * @Annotation * @publicApi */ const Attribute = makeParamDecorator('Attribute', ɵ1); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Injection flags for DI. * * @publicApi */ var InjectFlags; (function (InjectFlags) { // TODO(alxhub): make this 'const' when ngc no longer writes exports of it into ngfactory files. /** Check self and check parent injector if needed */ InjectFlags[InjectFlags["Default"] = 0] = "Default"; /** * Specifies that an injector should retrieve a dependency from any injector until reaching the * host element of the current component. (Only used with Element Injector) */ InjectFlags[InjectFlags["Host"] = 1] = "Host"; /** Don't ascend to ancestors of the node requesting injection. */ InjectFlags[InjectFlags["Self"] = 2] = "Self"; /** Skip the node that is requesting injection. */ InjectFlags[InjectFlags["SkipSelf"] = 4] = "SkipSelf"; /** Inject `defaultValue` instead if token not found. */ InjectFlags[InjectFlags["Optional"] = 8] = "Optional"; })(InjectFlags || (InjectFlags = {})); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function getClosureSafeProperty(objWithPropertyToExtract) { for (let key in objWithPropertyToExtract) { if (objWithPropertyToExtract[key] === getClosureSafeProperty) { return key; } } throw Error('Could not find renamed property on target object.'); } /** * Sets properties on a target object from a source object, but only if * the property doesn't already exist on the target object. * @param target The target to set properties on * @param source The source of the property keys and values to set */ function fillProperties(target, source) { for (const key in source) { if (source.hasOwnProperty(key) && !target.hasOwnProperty(key)) { target[key] = source[key]; } } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Construct an `InjectableDef` which defines how a token will be constructed by the DI system, and * in which injectors (if any) it will be available. * * This should be assigned to a static `ɵprov` field on a type, which will then be an * `InjectableType`. * * Options: * * `providedIn` determines which injectors will include the injectable, by either associating it * with an `@NgModule` or other `InjectorType`, or by specifying that this injectable should be * provided in the `'root'` injector, which will be the application-level injector in most apps. * * `factory` gives the zero argument function which will create an instance of the injectable. * The factory can call `inject` to access the `Injector` and request injection of dependencies. * * @codeGenApi * @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm. */ function ɵɵdefineInjectable(opts) { return { token: opts.token, providedIn: opts.providedIn || null, factory: opts.factory, value: undefined, }; } /** * @deprecated in v8, delete after v10. This API should be used only be generated code, and that * code should now use ɵɵdefineInjectable instead. * @publicApi */ const defineInjectable = ɵɵdefineInjectable; /** * Construct an `InjectorDef` which configures an injector. * * This should be assigned to a static injector def (`ɵinj`) field on a type, which will then be an * `InjectorType`. * * Options: * * * `factory`: an `InjectorType` is an instantiable type, so a zero argument `factory` function to * create the type must be provided. If that factory function needs to inject arguments, it can * use the `inject` function. * * `providers`: an optional array of providers to add to the injector. Each provider must * either have a factory or point to a type which has a `ɵprov` static property (the * type must be an `InjectableType`). * * `imports`: an optional array of imports of other `InjectorType`s or `InjectorTypeWithModule`s * whose providers will also be added to the injector. Locally provided types will override * providers from imports. * * @codeGenApi */ function ɵɵdefineInjector(options) { return { factory: options.factory, providers: options.providers || [], imports: options.imports || [], }; } /** * Read the injectable def (`ɵprov`) for `type` in a way which is immune to accidentally reading * inherited value. * * @param type A type which may have its own (non-inherited) `ɵprov`. */ function getInjectableDef(type) { return getOwnDefinition(type, type[NG_PROV_DEF]) || getOwnDefinition(type, type[NG_INJECTABLE_DEF]); } /** * Return `def` only if it is defined directly on `type` and is not inherited from a base * class of `type`. * * The function `Object.hasOwnProperty` is not sufficient to distinguish this case because in older * browsers (e.g. IE10) static property inheritance is implemented by copying the properties. * * Instead, the definition's `token` is compared to the `type`, and if they don't match then the * property was not defined directly on the type itself, and was likely inherited. The definition * is only returned if the `type` matches the `def.token`. */ function getOwnDefinition(type, def) { return def && def.token === type ? def : null; } /** * Read the injectable def (`ɵprov`) for `type` or read the `ɵprov` from one of its ancestors. * * @param type A type which may have `ɵprov`, via inheritance. * * @deprecated Will be removed in a future version of Angular, where an error will occur in the * scenario if we find the `ɵprov` on an ancestor only. */ function getInheritedInjectableDef(type) { // See `jit/injectable.ts#compileInjectable` for context on NG_PROV_DEF_FALLBACK. const def = type && (type[NG_PROV_DEF] || type[NG_INJECTABLE_DEF] || (type[NG_PROV_DEF_FALLBACK] && type[NG_PROV_DEF_FALLBACK]())); if (def) { const typeName = getTypeName(type); // TODO(FW-1307): Re-add ngDevMode when closure can handle it // ngDevMode && console.warn(`DEPRECATED: DI is instantiating a token "${typeName}" that inherits its @Injectable decorator but does not provide one itself.\n` + `This will become an error in a future version of Angular. Please add @Injectable() to the "${typeName}" class.`); return def; } else { return null; } } /** Gets the name of a type, accounting for some cross-browser differences. */ function getTypeName(type) { // `Function.prototype.name` behaves differently between IE and other browsers. In most browsers // it'll always return the name of the function itself, no matter how many other functions it // inherits from. On IE the function doesn't have its own `name` property, but it takes it from // the lowest level in the prototype chain. E.g. if we have `class Foo extends Parent` most // browsers will evaluate `Foo.name` to `Foo` while IE will return `Parent`. We work around // the issue by converting the function to a string and parsing its name out that way via a regex. if (type.hasOwnProperty('name')) { return type.name; } const match = ('' + type).match(/^function\s*([^\s(]+)/); return match === null ? '' : match[1]; } /** * Read the injector def type in a way which is immune to accidentally reading inherited value. * * @param type type which may have an injector def (`ɵinj`) */ function getInjectorDef(type) { return type && (type.hasOwnProperty(NG_INJ_DEF) || type.hasOwnProperty(NG_INJECTOR_DEF)) ? type[NG_INJ_DEF] : null; } const NG_PROV_DEF = getClosureSafeProperty({ ɵprov: getClosureSafeProperty }); const NG_INJ_DEF = getClosureSafeProperty({ ɵinj: getClosureSafeProperty }); // On IE10 properties defined via `defineProperty` won't be inherited by child classes, // which will break inheriting the injectable definition from a grandparent through an // undecorated parent class. We work around it by defining a fallback method which will be // used to retrieve the definition. This should only be a problem in JIT mode, because in // AOT TypeScript seems to have a workaround for static properties. When inheriting from an // undecorated parent is no longer supported in v10, this can safely be removed. const NG_PROV_DEF_FALLBACK = getClosureSafeProperty({ ɵprovFallback: getClosureSafeProperty }); // We need to keep these around so we can read off old defs if new defs are unavailable const NG_INJECTABLE_DEF = getClosureSafeProperty({ ngInjectableDef: getClosureSafeProperty }); const NG_INJECTOR_DEF = getClosureSafeProperty({ ngInjectorDef: getClosureSafeProperty }); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function stringify(token) { if (typeof token === 'string') { return token; } if (Array.isArray(token)) { return '[' + token.map(stringify).join(', ') + ']'; } if (token == null) { return '' + token; } if (token.overriddenName) { return `${token.overriddenName}`; } if (token.name) { return `${token.name}`; } const res = token.toString(); if (res == null) { return '' + res; } const newLineIndex = res.indexOf('\n'); return newLineIndex === -1 ? res : res.substring(0, newLineIndex); } /** * Concatenates two strings with separator, allocating new strings only when necessary. * * @param before before string. * @param separator separator string. * @param after after string. * @returns concatenated string. */ function concatStringsWithSpace(before, after) { return (before == null || before === '') ? (after === null ? '' : after) : ((after == null || after === '') ? before : before + ' ' + after); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const __forward_ref__ = getClosureSafeProperty({ __forward_ref__: getClosureSafeProperty }); /** * Allows to refer to references which are not yet defined. * * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of * DI is declared, but not yet defined. It is also used when the `token` which we use when creating * a query is not yet defined. * * @usageNotes * ### Example * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'} * @publicApi */ function forwardRef(forwardRefFn) { forwardRefFn.__forward_ref__ = forwardRef; forwardRefFn.toString = function () { return stringify(this()); }; return forwardRefFn; } /** * Lazily retrieves the reference value from a forwardRef. * * Acts as the identity function when given a non-forward-ref value. * * @usageNotes * ### Example * * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'} * * @see `forwardRef` * @publicApi */ function resolveForwardRef(type) { return isForwardRef(type) ? type() : type; } /** Checks whether a function is wrapped by a `forwardRef`. */ function isForwardRef(fn) { return typeof fn === 'function' && fn.hasOwnProperty(__forward_ref__) && fn.__forward_ref__ === forwardRef; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const __globalThis = typeof globalThis !== 'undefined' && globalThis; const __window = typeof window !== 'undefined' && window; const __self = typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope && self; const __global = typeof global !== 'undefined' && global; // Always use __globalThis if available, which is the spec-defined global variable across all // environments, then fallback to __global first, because in Node tests both __global and // __window may be defined and _global should be __global in that case. const _global = __globalThis || __global || __window || __self; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var R3ResolvedDependencyType; (function (R3ResolvedDependencyType) { R3ResolvedDependencyType[R3ResolvedDependencyType["Token"] = 0] = "Token"; R3ResolvedDependencyType[R3ResolvedDependencyType["Attribute"] = 1] = "Attribute"; R3ResolvedDependencyType[R3ResolvedDependencyType["ChangeDetectorRef"] = 2] = "ChangeDetectorRef"; R3ResolvedDependencyType[R3ResolvedDependencyType["Invalid"] = 3] = "Invalid"; })(R3ResolvedDependencyType || (R3ResolvedDependencyType = {})); var R3FactoryTarget; (function (R3FactoryTarget) { R3FactoryTarget[R3FactoryTarget["Directive"] = 0] = "Directive"; R3FactoryTarget[R3FactoryTarget["Component"] = 1] = "Component"; R3FactoryTarget[R3FactoryTarget["Injectable"] = 2] = "Injectable"; R3FactoryTarget[R3FactoryTarget["Pipe"] = 3] = "Pipe"; R3FactoryTarget[R3FactoryTarget["NgModule"] = 4] = "NgModule"; })(R3FactoryTarget || (R3FactoryTarget = {})); var ViewEncapsulation; (function (ViewEncapsulation) { ViewEncapsulation[ViewEncapsulation["Emulated"] = 0] = "Emulated"; ViewEncapsulation[ViewEncapsulation["Native"] = 1] = "Native"; ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None"; ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom"; })(ViewEncapsulation || (ViewEncapsulation = {})); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function getCompilerFacade() { const globalNg = _global['ng']; if (!globalNg || !globalNg.ɵcompilerFacade) { throw new Error(`Angular JIT compilation failed: '@angular/compiler' not loaded!\n` + ` - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n` + ` - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n` + ` - Alternatively provide the compiler with 'import "@angular/compiler";' before bootstrapping.`); } return globalNg.ɵcompilerFacade; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const NG_COMP_DEF = getClosureSafeProperty({ ɵcmp: getClosureSafeProperty }); const NG_DIR_DEF = getClosureSafeProperty({ ɵdir: getClosureSafeProperty }); const NG_PIPE_DEF = getClosureSafeProperty({ ɵpipe: getClosureSafeProperty }); const NG_MOD_DEF = getClosureSafeProperty({ ɵmod: getClosureSafeProperty }); const NG_LOC_ID_DEF = getClosureSafeProperty({ ɵloc: getClosureSafeProperty }); const NG_FACTORY_DEF = getClosureSafeProperty({ ɵfac: getClosureSafeProperty }); /** * If a directive is diPublic, bloomAdd sets a property on the type with this constant as * the key and the directive's unique ID as the value. This allows us to map directives to their * bloom filter bit for DI. */ // TODO(misko): This is wrong. The NG_ELEMENT_ID should never be minified. const NG_ELEMENT_ID = getClosureSafeProperty({ __NG_ELEMENT_ID__: getClosureSafeProperty }); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function ngDevModeResetPerfCounters() { const locationString = typeof location !== 'undefined' ? location.toString() : ''; const newCounters = { namedConstructors: locationString.indexOf('ngDevMode=namedConstructors') != -1, firstCreatePass: 0, tNode: 0, tView: 0, rendererCreateTextNode: 0, rendererSetText: 0, rendererCreateElement: 0, rendererAddEventListener: 0, rendererSetAttribute: 0, rendererRemoveAttribute: 0, rendererSetProperty: 0, rendererSetClassName: 0, rendererAddClass: 0, rendererRemoveClass: 0, rendererSetStyle: 0, rendererRemoveStyle: 0, rendererDestroy: 0, rendererDestroyNode: 0, rendererMoveNode: 0, rendererRemoveNode: 0, rendererAppendChild: 0, rendererInsertBefore: 0, rendererCreateComment: 0, }; // Make sure to refer to ngDevMode as ['ngDevMode'] for closure. const allowNgDevModeTrue = locationString.indexOf('ngDevMode=false') === -1; _global['ngDevMode'] = allowNgDevModeTrue && newCounters; return newCounters; } /** * This function checks to see if the `ngDevMode` has been set. If yes, * then we honor it, otherwise we default to dev mode with additional checks. * * The idea is that unless we are doing production build where we explicitly * set `ngDevMode == false` we should be helping the developer by providing * as much early warning and errors as possible. * * `ɵɵdefineComponent` is guaranteed to have been called before any component template functions * (and thus Ivy instructions), so a single initialization there is sufficient to ensure ngDevMode * is defined for the entire instruction set. * * When checking `ngDevMode` on toplevel, always init it before referencing it * (e.g. `((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode())`), otherwise you can * get a `ReferenceError` like in https://github.com/angular/angular/issues/31595. * * Details on possible values for `ngDevMode` can be found on its docstring. * * NOTE: * - changes to the `ngDevMode` name must be synced with `compiler-cli/src/tooling.ts`. */ function initNgDevMode() { // The below checks are to ensure that calling `initNgDevMode` multiple times does not // reset the counters. // If the `ngDevMode` is not an object, then it means we have not created the perf counters // yet. if (typeof ngDevMode === 'undefined' || ngDevMode) { if (typeof ngDevMode !== 'object') { ngDevModeResetPerfCounters(); } return !!ngDevMode; } return false; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function assertNumber(actual, msg) { if (!(typeof actual === 'number')) { throwError(msg, typeof actual, 'number', '==='); } } function assertNumberInRange(actual, minInclusive, maxInclusive) { assertNumber(actual, 'Expected a number'); assertLessThanOrEqual(actual, maxInclusive, 'Expected number to be less than or equal to'); assertGreaterThanOrEqual(actual, minInclusive, 'Expected number to be greater than or equal to'); } function assertString(actual, msg) { if (!(typeof actual === 'string')) { throwError(msg, actual === null ? 'null' : typeof actual, 'string', '==='); } } function assertEqual(actual, expected, msg) { if (!(actual == expected)) { throwError(msg, actual, expected, '=='); } } function assertNotEqual(actual, expected, msg) { if (!(actual != expected)) { throwError(msg, actual, expected, '!='); } } function assertSame(actual, expected, msg) { if (!(actual === expected)) { throwError(msg, actual, expected, '==='); } } function assertNotSame(actual, expected, msg) { if (!(actual !== expected)) { throwError(msg, actual, expected, '!=='); } } function assertLessThan(actual, expected, msg) { if (!(actual < expected)) { throwError(msg, actual, expected, '<'); } } function assertLessThanOrEqual(actual, expected, msg) { if (!(actual <= expected)) { throwError(msg, actual, expected, '<='); } } function assertGreaterThan(actual, expected, msg) { if (!(actual > expected)) { throwError(msg, actual, expected, '>'); } } function assertGreaterThanOrEqual(actual, expected, msg) { if (!(actual >= expected)) { throwError(msg, actual, expected, '>='); } } function assertNotDefined(actual, msg) { if (actual != null) { throwError(msg, actual, null, '=='); } } function assertDefined(actual, msg) { if (actual == null) { throwError(msg, actual, null, '!='); } } function throwError(msg, actual, expected, comparison) { throw new Error(`ASSERTION ERROR: ${msg}` + (comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`)); } function assertDomNode(node) { // If we're in a worker, `Node` will not be defined. assertEqual((typeof Node !== 'undefined' && node instanceof Node) || (typeof node === 'object' && node != null && node.constructor.name === 'WebWorkerRenderNode'), true, `The provided value must be an instance of a DOM Node but got ${stringify(node)}`); } function assertIndexInRange(arr, index) { const maxLen = arr ? arr.length : 0; assertLessThan(index, maxLen, `Index expected to be less than ${maxLen} but got ${index}`); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Creates a token that can be used in a DI Provider. * * Use an `InjectionToken` whenever the type you are injecting is not reified (does not have a * runtime representation) such as when injecting an interface, callable type, array or * parameterized type. * * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by * the `Injector`. This provides additional level of type safety. * * ``` * interface MyInterface {...} * var myInterface = injector.get(new InjectionToken('SomeToken')); * // myInterface is inferred to be MyInterface. * ``` * * When creating an `InjectionToken`, you can optionally specify a factory function which returns * (possibly by creating) a default value of the parameterized type `T`. This sets up the * `InjectionToken` using this factory as a provider as if it was defined explicitly in the * application's root injector. If the factory function, which takes zero arguments, needs to inject * dependencies, it can do so using the `inject` function. See below for an example. * * Additionally, if a `factory` is specified you can also specify the `providedIn` option, which * overrides the above behavior and marks the token as belonging to a particular `@NgModule`. As * mentioned above, `'root'` is the default value for `providedIn`. * * @usageNotes * ### Basic Example * * ### Plain InjectionToken * * {@example core/di/ts/injector_spec.ts region='InjectionToken'} * * ### Tree-shakable InjectionToken * * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'} * * * @publicApi */ class InjectionToken { constructor(_desc, options) { this._desc = _desc; /** @internal */ this.ngMetadataName = 'InjectionToken'; this.ɵprov = undefined; if (typeof options == 'number') { // This is a special hack to assign __NG_ELEMENT_ID__ to this instance. // __NG_ELEMENT_ID__ is Used by Ivy to determine bloom filter id. // We are using it to assign `-1` which is used to identify `Injector`. this.__NG_ELEMENT_ID__ = options; } else if (options !== undefined) { this.ɵprov = ɵɵdefineInjectable({ token: this, providedIn: options.providedIn || 'root', factory: options.factory, }); } } toString() { return `InjectionToken ${this._desc}`; } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * An InjectionToken that gets the current `Injector` for `createInjector()`-style injectors. * * Requesting this token instead of `Injector` allows `StaticInjector` to be tree-shaken from a * project. * * @publicApi */ const INJECTOR = new InjectionToken('INJECTOR', -1 // `-1` is used by Ivy DI system as special value to recognize it as `Injector`. ); const _THROW_IF_NOT_FOUND = {}; const THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND; const NG_TEMP_TOKEN_PATH = 'ngTempTokenPath'; const NG_TOKEN_PATH = 'ngTokenPath'; const NEW_LINE = /\n/gm; const NO_NEW_LINE = 'ɵ'; const SOURCE = '__source'; const ɵ0$1 = getClosureSafeProperty; const USE_VALUE = getClosureSafeProperty({ provide: String, useValue: ɵ0$1 }); /** * Current injector value used by `inject`. * - `undefined`: it is an error to call `inject` * - `null`: `inject` can be called but there is no injector (limp-mode). * - Injector instance: Use the injector for resolution. */ let _currentInjector = undefined; function setCurrentInjector(injector) { const former = _currentInjector; _currentInjector = injector; return former; } /** * Current implementation of inject. * * By default, it is `injectInjectorOnly`, which makes it `Injector`-only aware. It can be changed * to `directiveInject`, which brings in the `NodeInjector` system of ivy. It is designed this * way for two reasons: * 1. `Injector` should not depend on ivy logic. * 2. To maintain tree shake-ability we don't want to bring in unnecessary code. */ let _injectImplementation; /** * Sets the current inject implementation. */ function setInjectImplementation(impl) { const previous = _injectImplementation; _injectImplementation = impl; return previous; } /** * Assert that `_injectImplementation` is not `fn`. * * This is useful, to prevent infinite recursion. * * @param fn Function which it should not equal to */ function assertInjectImplementationNot(fn) { ngDevMode && assertNotEqual(_injectImplementation, fn, 'Calling ɵɵinject would cause infinite recursion'); } function injectInjectorOnly(token, flags = InjectFlags.Default) { if (_currentInjector === undefined) { throw new Error(`inject() must be called from an injection context`); } else if (_currentInjector === null) { return injectRootLimpMode(token, undefined, flags); } else { return _currentInjector.get(token, flags & InjectFlags.Optional ? null : undefined, flags); } } function ɵɵinject(token, flags = InjectFlags.Default) { return (_injectImplementation || injectInjectorOnly)(resolveForwardRef(token), flags); } /** * Throws an error indicating that a factory function could not be generated by the compiler for a * particular class. * * This instruction allows the actual error message to be optimized away when ngDevMode is turned * off, saving bytes of generated code while still providing a good experience in dev mode. * * The name of the class is not mentioned here, but will be in the generated factory function name * and thus in the stack trace. * * @codeGenApi */ function ɵɵinvalidFactoryDep(index) { const msg = ngDevMode ? `This constructor is not compatible with Angular Dependency Injection because its dependency at index ${index} of the parameter list is invalid. This can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator. Please check that 1) the type for the parameter at index ${index} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.` : 'invalid'; throw new Error(msg); } /** * Injects a token from the currently active injector. * * Must be used in the context of a factory function such as one defined for an * `InjectionToken`. Throws an error if not called from such a context. * * Within such a factory function, using this function to request injection of a dependency * is faster and more type-safe than providing an additional array of dependencies * (as has been common with `useFactory` providers). * * @param token The injection token for the dependency to be injected. * @param flags Optional flags that control how injection is executed. * The flags correspond to injection strategies that can be specified with * parameter decorators `@Host`, `@Self`, `@SkipSef`, and `@Optional`. * @returns True if injection is successful, null otherwise. * * @usageNotes * * ### Example * * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'} * * @publicApi */ const inject = ɵɵinject; /** * Injects `root` tokens in limp mode. * * If no injector exists, we can still inject tree-shakable providers which have `providedIn` set to * `"root"`. This is known as the limp mode injection. In such case the value is stored in the * `InjectableDef`. */ function injectRootLimpMode(token, notFoundValue, flags) { const injectableDef = getInjectableDef(token); if (injectableDef && injectableDef.providedIn == 'root') { return injectableDef.value === undefined ? injectableDef.value = injectableDef.factory() : injectableDef.value; } if (flags & InjectFlags.Optional) return null; if (notFoundValue !== undefined) return notFoundValue; throw new Error(`Injector: NOT_FOUND [${stringify(token)}]`); } function injectArgs(types) { const args = []; for (let i = 0; i < types.length; i++) { const arg = resolveForwardRef(types[i]); if (Array.isArray(arg)) { if (arg.length === 0) { throw new Error('Arguments array must have arguments.'); } let type = undefined; let flags = InjectFlags.Default; for (let j = 0; j < arg.length; j++) { const meta = arg[j]; if (meta instanceof Optional || meta.ngMetadataName === 'Optional' || meta === Optional) { flags |= InjectFlags.Optional; } else if (meta instanceof SkipSelf || meta.ngMetadataName === 'SkipSelf' || meta === SkipSelf) { flags |= InjectFlags.SkipSelf; } else if (meta instanceof Self || meta.ngMetadataName === 'Self' || meta === Self) { flags |= InjectFlags.Self; } else if (meta instanceof Inject || meta === Inject) { type = meta.token; } else { type = meta; } } args.push(ɵɵinject(type, flags)); } else { args.push(ɵɵinject(arg)); } } return args; } class NullInjector { get(token, notFoundValue = THROW_IF_NOT_FOUND) { if (notFoundValue === THROW_IF_NOT_FOUND) { // Intentionally left behind: With dev tools open the debugger will stop here. There is no // reason why correctly written application should cause this exception. // TODO(misko): uncomment the next line once `ngDevMode` works with closure. // if (ngDevMode) debugger; const error = new Error(`NullInjectorError: No provider for ${stringify(token)}!`); error.name = 'NullInjectorError'; throw error; } return notFoundValue; } } function catchInjectorError(e, token, injectorErrorName, source) { const tokenPath = e[NG_TEMP_TOKEN_PATH]; if (token[SOURCE]) { tokenPath.unshift(token[SOURCE]); } e.message = formatError('\n' + e.message, tokenPath, injectorErrorName, source); e[NG_TOKEN_PATH] = tokenPath; e[NG_TEMP_TOKEN_PATH] = null; throw e; } function formatError(text, obj, injectorErrorName, source = null) { text = text && text.charAt(0) === '\n' && text.charAt(1) == NO_NEW_LINE ? text.substr(2) : text; let context = stringify(obj); if (Array.isArray(obj)) { context = obj.map(stringify).join(' -> '); } else if (typeof obj === 'object') { let parts = []; for (let key in obj) { if (obj.hasOwnProperty(key)) { let value = obj[key]; parts.push(key + ':' + (typeof value === 'string' ? JSON.stringify(value) : stringify(value))); } } context = `{${parts.join(', ')}}`; } return `${injectorErrorName}${source ? '(' + source + ')' : ''}[${context}]: ${text.replace(NEW_LINE, '\n ')}`; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * A mapping of the @angular/core API surface used in generated expressions to the actual symbols. * * This should be kept up to date with the public exports of @angular/core. */ const angularCoreDiEnv = { 'ɵɵdefineInjectable': ɵɵdefineInjectable, 'ɵɵdefineInjector': ɵɵdefineInjector, 'ɵɵinject': ɵɵinject, 'ɵɵgetFactoryOf': getFactoryOf, 'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep, }; function getFactoryOf(type) { const typeAny = type; if (isForwardRef(type)) { return (() => { const factory = getFactoryOf(resolveForwardRef(typeAny)); return factory ? factory() : null; }); } const def = getInjectableDef(typeAny) || getInjectorDef(typeAny); if (!def || def.factory === undefined) { return null; } return def.factory; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Represents an instance of an `NgModule` created by an `NgModuleFactory`. * Provides access to the `NgModule` instance and related objects. * * @publicApi */ class NgModuleRef { } /** * @publicApi */ class NgModuleFactory { } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Equivalent to ES6 spread, add each item to an array. * * @param items The items to add * @param arr The array to which you want to add the items */ function addAllToArray(items, arr) { for (let i = 0; i < items.length; i++) { arr.push(items[i]); } } /** * Flattens an array. */ function flatten(list, dst) { if (dst === undefined) dst = list; for (let i = 0; i < list.length; i++) { let item = list[i]; if (Array.isArray(item)) { // we need to inline it. if (dst === list) { // Our assumption that the list was already flat was wrong and // we need to clone flat since we need to write to it. dst = list.slice(0, i); } flatten(item, dst); } else if (dst !== list) { dst.push(item); } } return dst; } function deepForEach(input, fn) { input.forEach(value => Array.isArray(value) ? deepForEach(value, fn) : fn(value)); } function addToArray(arr, index, value) { // perf: array.push is faster than array.splice! if (index >= arr.length) { arr.push(value); } else { arr.splice(index, 0, value); } } function removeFromArray(arr, index) { // perf: array.pop is faster than array.splice! if (index >= arr.length - 1) { return arr.pop(); } else { return arr.splice(index, 1)[0]; } } function newArray(size, value) { const list = []; for (let i = 0; i < size; i++) { list.push(value); } return list; } /** * Remove item from array (Same as `Array.splice()` but faster.) * * `Array.splice()` is not as fast because it has to allocate an array for the elements which were * removed. This causes memory pressure and slows down code when most of the time we don't * care about the deleted items array. * * https://jsperf.com/fast-array-splice (About 20x faster) * * @param array Array to splice * @param index Index of element in array to remove. * @param count Number of items to remove. */ function arraySplice(array, index, count) { const length = array.length - count; while (index < length) { array[index] = array[index + count]; index++; } while (count--) { array.pop(); // shrink the array } } /** * Same as `Array.splice(index, 0, value)` but faster. * * `Array.splice()` is not fast because it has to allocate an array for the elements which were * removed. This causes memory pressure and slows down code when most of the time we don't * care about the deleted items array. * * @param array Array to splice. * @param index Index in array where the `value` should be added. * @param value Value to add to array. */ function arrayInsert(array, index, value) { ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\'t insert past array end.'); let end = array.length; while (end > index) { const previousEnd = end - 1; array[end] = array[previousEnd]; end = previousEnd; } array[index] = value; } /** * Same as `Array.splice2(index, 0, value1, value2)` but faster. * * `Array.splice()` is not fast because it has to allocate an array for the elements which were * removed. This causes memory pressure and slows down code when most of the time we don't * care about the deleted items array. * * @param array Array to splice. * @param index Index in array where the `value` should be added. * @param value1 Value to add to array. * @param value2 Value to add to array. */ function arrayInsert2(array, index, value1, value2) { ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\'t insert past array end.'); let end = array.length; if (end == index) { // inserting at the end. array.push(value1, value2); } else if (end === 1) { // corner case when we have less items in array than we have items to insert. array.push(value2, array[0]); array[0] = value1; } else { end--; array.push(array[end - 1], array[end]); while (end > index) { const previousEnd = end - 2; array[end] = array[previousEnd]; end--; } array[index] = value1; array[index + 1] = value2; } } /** * Insert a `value` into an `array` so that the array remains sorted. * * NOTE: * - Duplicates are not allowed, and are ignored. * - This uses binary search algorithm for fast inserts. * * @param array A sorted array to insert into. * @param value The value to insert. * @returns index of the inserted value. */ function arrayInsertSorted(array, value) { let index = arrayIndexOfSorted(array, value); if (index < 0) { // if we did not find it insert it. index = ~index; arrayInsert(array, index, value); } return index; } /** * Remove `value` from a sorted `array`. * * NOTE: * - This uses binary search algorithm for fast removals. * * @param array A sorted array to remove from. * @param value The value to remove. * @returns index of the removed value. * - positive index if value found and removed. * - negative index if value not found. (`~index` to get the value where it should have been * inserted) */ function arrayRemoveSorted(array, value) { const index = arrayIndexOfSorted(array, value); if (index >= 0) { arraySplice(array, index, 1); } return index; } /** * Get an index of an `value` in a sorted `array`. * * NOTE: * - This uses binary search algorithm for fast removals. * * @param array A sorted array to binary search. * @param value The value to look for. * @returns index of the value. * - positive index if value found. * - negative index if value not found. (`~index` to get the value where it should have been * located) */ function arrayIndexOfSorted(array, value) { return _arrayIndexOfSorted(array, value, 0); } /** * Set a `value` for a `key`. * * @param keyValueArray to modify. * @param key The key to locate or create. * @param value The value to set for a `key`. * @returns index (always even) of where the value vas set. */ function keyValueArraySet(keyValueArray, key, value) { let index = keyValueArrayIndexOf(keyValueArray, key); if (index >= 0) { // if we found it set it. keyValueArray[index | 1] = value; } else { index = ~index; arrayInsert2(keyValueArray, index, key, value); } return index; } /** * Retrieve a `value` for a `key` (on `undefined` if not found.) * * @param keyValueArray to search. * @param key The key to locate. * @return The `value` stored at the `key` location or `undefined if not found. */ function keyValueArrayGet(keyValueArray, key) { const index = keyValueArrayIndexOf(keyValueArray, key); if (index >= 0) { // if we found it retrieve it. return keyValueArray[index | 1]; } return undefined; } /** * Retrieve a `key` index value in the array or `-1` if not found. * * @param keyValueArray to search. * @param key The key to locate. * @returns index of where the key is (or should have been.) * - positive (even) index if key found. * - negative index if key not found. (`~index` (even) to get the index where it should have * been inserted.) */ function keyValueArrayIndexOf(keyValueArray, key) { return _arrayIndexOfSorted(keyValueArray, key, 1); } /** * Delete a `key` (and `value`) from the `KeyValueArray`. * * @param keyValueArray to modify. * @param key The key to locate or delete (if exist). * @returns index of where the key was (or should have been.) * - positive (even) index if key found and deleted. * - negative index if key not found. (`~index` (even) to get the index where it should have * been.) */ function keyValueArrayDelete(keyValueArray, key) { const index = keyValueArrayIndexOf(keyValueArray, key); if (index >= 0) { // if we found it remove it. arraySplice(keyValueArray, index, 2); } return index; } /** * INTERNAL: Get an index of an `value` in a sorted `array` by grouping search by `shift`. * * NOTE: * - This uses binary search algorithm for fast removals. * * @param array A sorted array to binary search. * @param value The value to look for. * @param shift grouping shift. * - `0` means look at every location * - `1` means only look at every other (even) location (the odd locations are to be ignored as * they are values.) * @returns index of the value. * - positive index if value found. * - negative index if value not found. (`~index` to get the value where it should have been * inserted) */ function _arrayIndexOfSorted(array, value, shift) { ngDevMode && assertEqual(Array.isArray(array), true, 'Expecting an array'); let start = 0; let end = array.length >> shift; while (end !== start) { const middle = start + ((end - start) >> 1); // find the middle. const current = array[middle << shift]; if (value === current) { return (middle << shift); } else if (current > value) { end = middle; } else { start = middle + 1; // We already searched middle so make it non-inclusive by adding 1 } } return ~(end << shift); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * The strategy that the default change detector uses to detect changes. * When set, takes effect the next time change detection is triggered. * * @see {@link ChangeDetectorRef#usage-notes Change detection usage} * * @publicApi */ var ChangeDetectionStrategy; (function (ChangeDetectionStrategy) { /** * Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated * until reactivated by setting the strategy to `Default` (`CheckAlways`). * Change detection can still be explicitly invoked. * This strategy applies to all child directives and cannot be overridden. */ ChangeDetectionStrategy[ChangeDetectionStrategy["OnPush"] = 0] = "OnPush"; /** * Use the default `CheckAlways` strategy, in which change detection is automatic until * explicitly deactivated. */ ChangeDetectionStrategy[ChangeDetectionStrategy["Default"] = 1] = "Default"; })(ChangeDetectionStrategy || (ChangeDetectionStrategy = {})); /** * Defines the possible states of the default change detector. * @see `ChangeDetectorRef` */ var ChangeDetectorStatus; (function (ChangeDetectorStatus) { /** * A state in which, after calling `detectChanges()`, the change detector * state becomes `Checked`, and must be explicitly invoked or reactivated. */ ChangeDetectorStatus[ChangeDetectorStatus["CheckOnce"] = 0] = "CheckOnce"; /** * A state in which change detection is skipped until the change detector mode * becomes `CheckOnce`. */ ChangeDetectorStatus[ChangeDetectorStatus["Checked"] = 1] = "Checked"; /** * A state in which change detection continues automatically until explicitly * deactivated. */ ChangeDetectorStatus[ChangeDetectorStatus["CheckAlways"] = 2] = "CheckAlways"; /** * A state in which a change detector sub tree is not a part of the main tree and * should be skipped. */ ChangeDetectorStatus[ChangeDetectorStatus["Detached"] = 3] = "Detached"; /** * Indicates that the change detector encountered an error checking a binding * or calling a directive lifecycle method and is now in an inconsistent state. Change * detectors in this state do not detect changes. */ ChangeDetectorStatus[ChangeDetectorStatus["Errored"] = 4] = "Errored"; /** * Indicates that the change detector has been destroyed. */ ChangeDetectorStatus[ChangeDetectorStatus["Destroyed"] = 5] = "Destroyed"; })(ChangeDetectorStatus || (ChangeDetectorStatus = {})); /** * Reports whether a given strategy is currently the default for change detection. * @param changeDetectionStrategy The strategy to check. * @returns True if the given strategy is the current default, false otherwise. * @see `ChangeDetectorStatus` * @see `ChangeDetectorRef` */ function isDefaultChangeDetectionStrategy(changeDetectionStrategy) { return changeDetectionStrategy == null || changeDetectionStrategy === ChangeDetectionStrategy.Default; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Defines template and style encapsulation options available for Component's {@link Component}. * * See {@link Component#encapsulation encapsulation}. * * @usageNotes * ### Example * * {@example core/ts/metadata/encapsulation.ts region='longform'} * * @publicApi */ var ViewEncapsulation$1; (function (ViewEncapsulation) { /** * Emulate `Native` scoping of styles by adding an attribute containing surrogate id to the Host * Element and pre-processing the style rules provided via {@link Component#styles styles} or * {@link Component#styleUrls styleUrls}, and adding the new Host Element attribute to all * selectors. * * This is the default option. */ ViewEncapsulation[ViewEncapsulation["Emulated"] = 0] = "Emulated"; /** * @deprecated v6.1.0 - use {ViewEncapsulation.ShadowDom} instead. * Use the native encapsulation mechanism of the renderer. * * For the DOM this means using the deprecated [Shadow DOM * v0](https://w3c.github.io/webcomponents/spec/shadow/) and * creating a ShadowRoot for Component's Host Element. */ ViewEncapsulation[ViewEncapsulation["Native"] = 1] = "Native"; /** * Don't provide any template or style encapsulation. */ ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None"; /** * Use Shadow DOM to encapsulate styles. * * For the DOM this means using modern [Shadow * DOM](https://w3c.github.io/webcomponents/spec/shadow/) and * creating a ShadowRoot for Component's Host Element. */ ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom"; })(ViewEncapsulation$1 || (ViewEncapsulation$1 = {})); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * This file contains reuseable "empty" symbols that can be used as default return values * in different parts of the rendering code. Because the same symbols are returned, this * allows for identity checks against these values to be consistently used by the framework * code. */ const EMPTY_OBJ = {}; const EMPTY_ARRAY = []; // freezing the values prevents any code from accidentally inserting new values in if ((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode()) { // These property accesses can be ignored because ngDevMode will be set to false // when optimizing code and the whole if statement will be dropped. // tslint:disable-next-line:no-toplevel-property-access Object.freeze(EMPTY_OBJ); // tslint:disable-next-line:no-toplevel-property-access Object.freeze(EMPTY_ARRAY); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ let _renderCompCount = 0; /** * Create a component definition object. * * * # Example * ``` * class MyDirective { * // Generated by Angular Template Compiler * // [Symbol] syntax will not be supported by TypeScript until v2.7 * static ɵcmp = defineComponent({ * ... * }); * } * ``` * @codeGenApi */ function ɵɵdefineComponent(componentDefinition) { return noSideEffects(() => { // Initialize ngDevMode. This must be the first statement in ɵɵdefineComponent. // See the `initNgDevMode` docstring for more information. (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode(); const type = componentDefinition.type; const typePrototype = type.prototype; const declaredInputs = {}; const def = { type: type, providersResolver: null, decls: componentDefinition.decls, vars: componentDefinition.vars, factory: null, template: componentDefinition.template || null, consts: componentDefinition.consts || null, ngContentSelectors: componentDefinition.ngContentSelectors, hostBindings: componentDefinition.hostBindings || null, hostVars: componentDefinition.hostVars || 0, hostAttrs: componentDefinition.hostAttrs || null, contentQueries: componentDefinition.contentQueries || null, declaredInputs: declaredInputs, inputs: null, outputs: null, exportAs: componentDefinition.exportAs || null, onPush: componentDefinition.changeDetection === ChangeDetectionStrategy.OnPush, directiveDefs: null, pipeDefs: null, selectors: componentDefinition.selectors || EMPTY_ARRAY, viewQuery: componentDefinition.viewQuery || null, features: componentDefinition.features || null, data: componentDefinition.data || {}, // TODO(misko): convert ViewEncapsulation into const enum so that it can be used // directly in the next line. Also `None` should be 0 not 2. encapsulation: componentDefinition.encapsulation || ViewEncapsulation$1.Emulated, id: 'c', styles: componentDefinition.styles || EMPTY_ARRAY, _: null, setInput: null, schemas: componentDefinition.schemas || null, tView: null, }; const directiveTypes = componentDefinition.directives; const feature = componentDefinition.features; const pipeTypes = componentDefinition.pipes; def.id += _renderCompCount++; def.inputs = invertObject(componentDefinition.inputs, declaredInputs), def.outputs = invertObject(componentDefinition.outputs), feature && feature.forEach((fn) => fn(def)); def.directiveDefs = directiveTypes ? () => (typeof directiveTypes === 'function' ? directiveTypes() : directiveTypes) .map(extractDirectiveDef) : null; def.pipeDefs = pipeTypes ? () => (typeof pipeTypes === 'function' ? pipeTypes() : pipeTypes).map(extractPipeDef) : null; return def; }); } /** * @codeGenApi */ function ɵɵsetComponentScope(type, directives, pipes) { const def = type.ɵcmp; def.directiveDefs = () => directives.map(extractDirectiveDef); def.pipeDefs = () => pipes.map(extractPipeDef); } function extractDirectiveDef(type) { const def = getComponentDef(type) || getDirectiveDef(type); if (ngDevMode && !def) { throw new Error(`'${type.name}' is neither 'ComponentType' or 'DirectiveType'.`); } return def; } function extractPipeDef(type) { const def = getPipeDef(type); if (ngDevMode && !def) { throw new Error(`'${type.name}' is not a 'PipeType'.`); } return def; } const autoRegisterModuleById = {}; /** * @codeGenApi */ function ɵɵdefineNgModule(def) { const res = { type: def.type, bootstrap: def.bootstrap || EMPTY_ARRAY, declarations: def.declarations || EMPTY_ARRAY, imports: def.imports || EMPTY_ARRAY, exports: def.exports || EMPTY_ARRAY, transitiveCompileScopes: null, schemas: def.schemas || null, id: def.id || null, }; if (def.id != null) { noSideEffects(() => { autoRegisterModuleById[def.id] = def.type; }); } return res; } /** * Adds the module metadata that is necessary to compute the module's transitive scope to an * existing module definition. * * Scope metadata of modules is not used in production builds, so calls to this function can be * marked pure to tree-shake it from the bundle, allowing for all referenced declarations * to become eligible for tree-shaking as well. * * @codeGenApi */ function ɵɵsetNgModuleScope(type, scope) { return noSideEffects(() => { const ngModuleDef = getNgModuleDef(type, true); ngModuleDef.declarations = scope.declarations || EMPTY_ARRAY; ngModuleDef.imports = scope.imports || EMPTY_ARRAY; ngModuleDef.exports = scope.exports || EMPTY_ARRAY; }); } /** * Inverts an inputs or outputs lookup such that the keys, which were the * minified keys, are part of the values, and the values are parsed so that * the publicName of the property is the new key * * e.g. for * * ``` * class Comp { * @Input() * propName1: string; * * @Input('publicName2') * declaredPropName2: number; * } * ``` * * will be serialized as * * ``` * { * propName1: 'propName1', * declaredPropName2: ['publicName2', 'declaredPropName2'], * } * ``` * * which is than translated by the minifier as: * * ``` * { * minifiedPropName1: 'propName1', * minifiedPropName2: ['publicName2', 'declaredPropName2'], * } * ``` * * becomes: (public name => minifiedName) * * ``` * { * 'propName1': 'minifiedPropName1', * 'publicName2': 'minifiedPropName2', * } * ``` * * Optionally the function can take `secondary` which will result in: (public name => declared name) * * ``` * { * 'propName1': 'propName1', * 'publicName2': 'declaredPropName2', * } * ``` * */ function invertObject(obj, secondary) { if (obj == null) return EMPTY_OBJ; const newLookup = {}; for (const minifiedKey in obj) { if (obj.hasOwnProperty(minifiedKey)) { let publicName = obj[minifiedKey]; let declaredName = publicName; if (Array.isArray(publicName)) { declaredName = publicName[1]; publicName = publicName[0]; } newLookup[publicName] = minifiedKey; if (secondary) { (secondary[publicName] = declaredName); } } } return newLookup; } /** * Create a directive definition object. * * # Example * ```ts * class MyDirective { * // Generated by Angular Template Compiler * // [Symbol] syntax will not be supported by TypeScript until v2.7 * static ɵdir = ɵɵdefineDirective({ * ... * }); * } * ``` * * @codeGenApi */ const ɵɵdefineDirective = ɵɵdefineComponent; /** * Create a pipe definition object. * * # Example * ``` * class MyPipe implements PipeTransform { * // Generated by Angular Template Compiler * static ɵpipe = definePipe({ * ... * }); * } * ``` * @param pipeDef Pipe definition generated by the compiler * * @codeGenApi */ function ɵɵdefinePipe(pipeDef) { return { type: pipeDef.type, name: pipeDef.name, factory: null, pure: pipeDef.pure !== false, onDestroy: pipeDef.type.prototype.ngOnDestroy || null }; } /** * The following getter methods retrieve the definition form the type. Currently the retrieval * honors inheritance, but in the future we may change the rule to require that definitions are * explicit. This would require some sort of migration strategy. */ function getComponentDef(type) { return type[NG_COMP_DEF] || null; } function getDirectiveDef(type) { return type[NG_DIR_DEF] || null; } function getPipeDef(type) { return type[NG_PIPE_DEF] || null; } function getFactoryDef(type, throwNotFound) { const hasFactoryDef = type.hasOwnProperty(NG_FACTORY_DEF); if (!hasFactoryDef && throwNotFound === true && ngDevMode) { throw new Error(`Type ${stringify(type)} does not have 'ɵfac' property.`); } return hasFactoryDef ? type[NG_FACTORY_DEF] : null; } function getNgModuleDef(type, throwNotFound) { const ngModuleDef = type[NG_MOD_DEF] || null; if (!ngModuleDef && throwNotFound === true) { throw new Error(`Type ${stringify(type)} does not have 'ɵmod' property.`); } return ngModuleDef; } function getNgLocaleIdDef(type) { return type[NG_LOC_ID_DEF] || null; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // Below are constants for LView indices to help us look up LView members // without having to remember the specific indices. // Uglify will inline these when minifying so there shouldn't be a cost. const HOST = 0; const TVIEW = 1; const FLAGS = 2; const PARENT = 3; const NEXT = 4; const TRANSPLANTED_VIEWS_TO_REFRESH = 5; const T_HOST = 6; const CLEANUP = 7; const CONTEXT = 8; const INJECTOR$1 = 9; const RENDERER_FACTORY = 10; const RENDERER = 11; const SANITIZER = 12; const CHILD_HEAD = 13; const CHILD_TAIL = 14; // FIXME(misko): Investigate if the three declarations aren't all same thing. const DECLARATION_VIEW = 15; const DECLARATION_COMPONENT_VIEW = 16; const DECLARATION_LCONTAINER = 17; const PREORDER_HOOK_FLAGS = 18; const QUERIES = 19; /** Size of LView's header. Necessary to adjust for it when setting slots. */ const HEADER_OFFSET = 20; /** * Converts `TViewType` into human readable text. * Make sure this matches with `TViewType` */ const TViewTypeAsString = [ 'Root', 'Component', 'Embedded', ]; // Note: This hack is necessary so we don't erroneously get a circular dependency // failure based on types. const unusedValueExportToPlacateAjd = 1; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Special location which allows easy identification of type. If we have an array which was * retrieved from the `LView` and that array has `true` at `TYPE` location, we know it is * `LContainer`. */ const TYPE = 1; /** * Below are constants for LContainer indices to help us look up LContainer members * without having to remember the specific indices. * Uglify will inline these when minifying so there shouldn't be a cost. */ /** * Flag to signify that this `LContainer` may have transplanted views which need to be change * detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`. * * This flag, once set, is never unset for the `LContainer`. This means that when unset we can skip * a lot of work in `refreshEmbeddedViews`. But when set we still need to verify * that the `MOVED_VIEWS` are transplanted and on-push. */ const HAS_TRANSPLANTED_VIEWS = 2; // PARENT, NEXT, TRANSPLANTED_VIEWS_TO_REFRESH are indices 3, 4, and 5 // As we already have these constants in LView, we don't need to re-create them. // T_HOST is index 6 // We already have this constants in LView, we don't need to re-create it. const NATIVE = 7; const VIEW_REFS = 8; const MOVED_VIEWS = 9; /** * Size of LContainer's header. Represents the index after which all views in the * container will be inserted. We need to keep a record of current views so we know * which views are already in the DOM (and don't need to be re-added) and so we can * remove views from the DOM when they are no longer required. */ const CONTAINER_HEADER_OFFSET = 10; // Note: This hack is necessary so we don't erroneously get a circular dependency // failure based on types. const unusedValueExportToPlacateAjd$1 = 1; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * True if `value` is `LView`. * @param value wrapped value of `RNode`, `LView`, `LContainer` */ function isLView(value) { return Array.isArray(value) && typeof value[TYPE] === 'object'; } /** * True if `value` is `LContainer`. * @param value wrapped value of `RNode`, `LView`, `LContainer` */ function isLContainer(value) { return Array.isArray(value) && value[TYPE] === true; } function isContentQueryHost(tNode) { return (tNode.flags & 8 /* hasContentQuery */) !== 0; } function isComponentHost(tNode) { return (tNode.flags & 2 /* isComponentHost */) === 2 /* isComponentHost */; } function isDirectiveHost(tNode) { return (tNode.flags & 1 /* isDirectiveHost */) === 1 /* isDirectiveHost */; } function isComponentDef(def) { return def.template !== null; } function isRootView(target) { return (target[FLAGS] & 512 /* IsRoot */) !== 0; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // [Assert functions do not constraint type when they are guarded by a truthy // expression.](https://github.com/microsoft/TypeScript/issues/37295) function assertTNodeForLView(tNode, lView) { assertTNodeForTView(tNode, lView[TVIEW]); } function assertTNodeForTView(tNode, tView) { assertDefined(tNode, 'TNode must be defined'); tNode.hasOwnProperty('tView_') && assertEqual(tNode.tView_, tView, 'This TNode does not belong to this TView.'); } function assertComponentType(actual, msg = 'Type passed in is not ComponentType, it does not have \'ɵcmp\' property.') { if (!getComponentDef(actual)) { throwError(msg); } } function assertNgModuleType(actual, msg = 'Type passed in is not NgModuleType, it does not have \'ɵmod\' property.') { if (!getNgModuleDef(actual)) { throwError(msg); } } function assertCurrentTNodeIsParent(isParent) { assertEqual(isParent, true, 'currentTNode should be a parent'); } function assertHasParent(tNode) { assertDefined(tNode, 'currentTNode should exist!'); assertDefined(tNode.parent, 'currentTNode should have a parent'); } function assertDataNext(lView, index, arr) { if (arr == null) arr = lView; assertEqual(arr.length, index, `index ${index} expected to be at the end of arr (length ${arr.length})`); } function assertLContainer(value) { assertDefined(value, 'LContainer must be defined'); assertEqual(isLContainer(value), true, 'Expecting LContainer'); } function assertLViewOrUndefined(value) { value && assertEqual(isLView(value), true, 'Expecting LView or undefined or null'); } function assertLView(value) { assertDefined(value, 'LView must be defined'); assertEqual(isLView(value), true, 'Expecting LView'); } function assertFirstCreatePass(tView, errMessage) { assertEqual(tView.firstCreatePass, true, errMessage || 'Should only be called in first create pass.'); } function assertFirstUpdatePass(tView, errMessage) { assertEqual(tView.firstUpdatePass, true, errMessage || 'Should only be called in first update pass.'); } /** * This is a basic sanity check that an object is probably a directive def. DirectiveDef is * an interface, so we can't do a direct instanceof check. */ function assertDirectiveDef(obj) { if (obj.type === undefined || obj.selectors == undefined || obj.inputs === undefined) { throwError(`Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.`); } } function assertIndexInDeclRange(lView, index) { const tView = lView[1]; assertBetween(HEADER_OFFSET, tView.bindingStartIndex, index); } function assertIndexInVarsRange(lView, index) { const tView = lView[1]; assertBetween(tView.bindingStartIndex, tView.i18nStartIndex, index); } function assertIndexInI18nRange(lView, index) { const tView = lView[1]; assertBetween(tView.i18nStartIndex, tView.expandoStartIndex, index); } function assertIndexInExpandoRange(lView, index) { const tView = lView[1]; assertBetween(tView.expandoStartIndex, lView.length, index); } function assertBetween(lower, upper, index) { if (!(lower <= index && index < upper)) { throwError(`Index out of range (expecting ${lower} <= ${index} < ${upper})`); } } /** * This is a basic sanity check that the `injectorIndex` seems to point to what looks like a * NodeInjector data structure. * * @param lView `LView` which should be checked. * @param injectorIndex index into the `LView` where the `NodeInjector` is expected. */ function assertNodeInjector(lView, injectorIndex) { assertIndexInExpandoRange(lView, injectorIndex); assertIndexInExpandoRange(lView, injectorIndex + 8 /* PARENT */); assertNumber(lView[injectorIndex + 0], 'injectorIndex should point to a bloom filter'); assertNumber(lView[injectorIndex + 1], 'injectorIndex should point to a bloom filter'); assertNumber(lView[injectorIndex + 2], 'injectorIndex should point to a bloom filter'); assertNumber(lView[injectorIndex + 3], 'injectorIndex should point to a bloom filter'); assertNumber(lView[injectorIndex + 4], 'injectorIndex should point to a bloom filter'); assertNumber(lView[injectorIndex + 5], 'injectorIndex should point to a bloom filter'); assertNumber(lView[injectorIndex + 6], 'injectorIndex should point to a bloom filter'); assertNumber(lView[injectorIndex + 7], 'injectorIndex should point to a bloom filter'); assertNumber(lView[injectorIndex + 8 /* PARENT */], 'injectorIndex should point to parent injector'); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Represents a basic change from a previous to a new value for a single * property on a directive instance. Passed as a value in a * {@link SimpleChanges} object to the `ngOnChanges` hook. * * @see `OnChanges` * * @publicApi */ class SimpleChange { constructor(previousValue, currentValue, firstChange) { this.previousValue = previousValue; this.currentValue = currentValue; this.firstChange = firstChange; } /** * Check whether the new value is the first value assigned. */ isFirstChange() { return this.firstChange; } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * The NgOnChangesFeature decorates a component with support for the ngOnChanges * lifecycle hook, so it should be included in any component that implements * that hook. * * If the component or directive uses inheritance, the NgOnChangesFeature MUST * be included as a feature AFTER {@link InheritDefinitionFeature}, otherwise * inherited properties will not be propagated to the ngOnChanges lifecycle * hook. * * Example usage: * * ``` * static ɵcmp = defineComponent({ * ... * inputs: {name: 'publicName'}, * features: [NgOnChangesFeature] * }); * ``` * * @codeGenApi */ function ɵɵNgOnChangesFeature() { return NgOnChangesFeatureImpl; } function NgOnChangesFeatureImpl(definition) { if (definition.type.prototype.ngOnChanges) { definition.setInput = ngOnChangesSetInput; } return rememberChangeHistoryAndInvokeOnChangesHook; } // This option ensures that the ngOnChanges lifecycle hook will be inherited // from superclasses (in InheritDefinitionFeature). /** @nocollapse */ // tslint:disable-next-line:no-toplevel-property-access ɵɵNgOnChangesFeature.ngInherit = true; /** * This is a synthetic lifecycle hook which gets inserted into `TView.preOrderHooks` to simulate * `ngOnChanges`. * * The hook reads the `NgSimpleChangesStore` data from the component instance and if changes are * found it invokes `ngOnChanges` on the component instance. * * @param this Component instance. Because this function gets inserted into `TView.preOrderHooks`, * it is guaranteed to be called with component instance. */ function rememberChangeHistoryAndInvokeOnChangesHook() { const simpleChangesStore = getSimpleChangesStore(this); const current = simpleChangesStore === null || simpleChangesStore === void 0 ? void 0 : simpleChangesStore.current; if (current) { const previous = simpleChangesStore.previous; if (previous === EMPTY_OBJ) { simpleChangesStore.previous = current; } else { // New changes are copied to the previous store, so that we don't lose history for inputs // which were not changed this time for (let key in current) { previous[key] = current[key]; } } simpleChangesStore.current = null; this.ngOnChanges(current); } } function ngOnChangesSetInput(instance, value, publicName, privateName) { const simpleChangesStore = getSimpleChangesStore(instance) || setSimpleChangesStore(instance, { previous: EMPTY_OBJ, current: null }); const current = simpleChangesStore.current || (simpleChangesStore.current = {}); const previous = simpleChangesStore.previous; const declaredName = this.declaredInputs[publicName]; const previousChange = previous[declaredName]; current[declaredName] = new SimpleChange(previousChange && previousChange.currentValue, value, previous === EMPTY_OBJ); instance[privateName] = value; } const SIMPLE_CHANGES_STORE = '__ngSimpleChanges__'; function getSimpleChangesStore(instance) { return instance[SIMPLE_CHANGES_STORE] || null; } function setSimpleChangesStore(instance, store) { return instance[SIMPLE_CHANGES_STORE] = store; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; const MATH_ML_NAMESPACE = 'http://www.w3.org/1998/MathML/'; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * This property will be monkey-patched on elements, components and directives */ const MONKEY_PATCH_KEY_NAME = '__ngContext__'; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Most of the use of `document` in Angular is from within the DI system so it is possible to simply * inject the `DOCUMENT` token and are done. * * Ivy is special because it does not rely upon the DI and must get hold of the document some other * way. * * The solution is to define `getDocument()` and `setDocument()` top-level functions for ivy. * Wherever ivy needs the global document, it calls `getDocument()` instead. * * When running ivy outside of a browser environment, it is necessary to call `setDocument()` to * tell ivy what the global `document` is. * * Angular does this for us in each of the standard platforms (`Browser`, `Server`, and `WebWorker`) * by calling `setDocument()` when providing the `DOCUMENT` token. */ let DOCUMENT = undefined; /** * Tell ivy what the `document` is for this platform. * * It is only necessary to call this if the current platform is not a browser. * * @param document The object representing the global `document` in this environment. */ function setDocument(document) { DOCUMENT = document; } /** * Access the object that represents the `document` for this platform. * * Ivy calls this whenever it needs to access the `document` object. * For example to create the renderer or to do sanitization. */ function getDocument() { if (DOCUMENT !== undefined) { return DOCUMENT; } else if (typeof document !== 'undefined') { return document; } // No "document" can be found. This should only happen if we are running ivy outside Angular and // the current platform is not a browser. Since this is not a supported scenario at the moment // this should not happen in Angular apps. // Once we support running ivy outside of Angular we will need to publish `setDocument()` as a // public API. Meanwhile we just return `undefined` and let the application fail. return undefined; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // TODO: cleanup once the code is merged in angular/angular var RendererStyleFlags3; (function (RendererStyleFlags3) { RendererStyleFlags3[RendererStyleFlags3["Important"] = 1] = "Important"; RendererStyleFlags3[RendererStyleFlags3["DashCase"] = 2] = "DashCase"; })(RendererStyleFlags3 || (RendererStyleFlags3 = {})); /** Returns whether the `renderer` is a `ProceduralRenderer3` */ function isProceduralRenderer(renderer) { return !!(renderer.listen); } const ɵ0$2 = (hostElement, rendererType) => { return getDocument(); }; const domRendererFactory3 = { createRenderer: ɵ0$2 }; // Note: This hack is necessary so we don't erroneously get a circular dependency // failure based on types. const unusedValueExportToPlacateAjd$2 = 1; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * For efficiency reasons we often put several different data types (`RNode`, `LView`, `LContainer`) * in same location in `LView`. This is because we don't want to pre-allocate space for it * because the storage is sparse. This file contains utilities for dealing with such data types. * * How do we know what is stored at a given location in `LView`. * - `Array.isArray(value) === false` => `RNode` (The normal storage value) * - `Array.isArray(value) === true` => then the `value[0]` represents the wrapped value. * - `typeof value[TYPE] === 'object'` => `LView` * - This happens when we have a component at a given location * - `typeof value[TYPE] === true` => `LContainer` * - This happens when we have `LContainer` binding at a given location. * * * NOTE: it is assumed that `Array.isArray` and `typeof` operations are very efficient. */ /** * Returns `RNode`. * @param value wrapped value of `RNode`, `LView`, `LContainer` */ function unwrapRNode(value) { while (Array.isArray(value)) { value = value[HOST]; } return value; } /** * Returns `LView` or `null` if not found. * @param value wrapped value of `RNode`, `LView`, `LContainer` */ function unwrapLView(value) { while (Array.isArray(value)) { // This check is same as `isLView()` but we don't call at as we don't want to call // `Array.isArray()` twice and give JITer more work for inlining. if (typeof value[TYPE] === 'object') return value; value = value[HOST]; } return null; } /** * Returns `LContainer` or `null` if not found. * @param value wrapped value of `RNode`, `LView`, `LContainer` */ function unwrapLContainer(value) { while (Array.isArray(value)) { // This check is same as `isLContainer()` but we don't call at as we don't want to call // `Array.isArray()` twice and give JITer more work for inlining. if (value[TYPE] === true) return value; value = value[HOST]; } return null; } /** * Retrieves an element value from the provided `viewData`, by unwrapping * from any containers, component views, or style contexts. */ function getNativeByIndex(index, lView) { return unwrapRNode(lView[index + HEADER_OFFSET]); } /** * Retrieve an `RNode` for a given `TNode` and `LView`. * * This function guarantees in dev mode to retrieve a non-null `RNode`. * * @param tNode * @param lView */ function getNativeByTNode(tNode, lView) { ngDevMode && assertTNodeForLView(tNode, lView); ngDevMode && assertIndexInRange(lView, tNode.index); const node = unwrapRNode(lView[tNode.index]); ngDevMode && !isProceduralRenderer(lView[RENDERER]) && assertDomNode(node); return node; } /** * Retrieve an `RNode` or `null` for a given `TNode` and `LView`. * * Some `TNode`s don't have associated `RNode`s. For example `Projection` * * @param tNode * @param lView */ function getNativeByTNodeOrNull(tNode, lView) { const index = tNode === null ? -1 : tNode.index; if (index !== -1) { ngDevMode && assertTNodeForLView(tNode, lView); const node = unwrapRNode(lView[index]); ngDevMode && node !== null && !isProceduralRenderer(lView[RENDERER]) && assertDomNode(node); return node; } return null; } function getTNode(tView, index) { ngDevMode && assertGreaterThan(index, -1, 'wrong index for TNode'); ngDevMode && assertLessThan(index, tView.data.length, 'wrong index for TNode'); return tView.data[index + HEADER_OFFSET]; } /** Retrieves a value from any `LView` or `TData`. */ function load(view, index) { ngDevMode && assertIndexInRange(view, index + HEADER_OFFSET); return view[index + HEADER_OFFSET]; } function getComponentLViewByIndex(nodeIndex, hostView) { // Could be an LView or an LContainer. If LContainer, unwrap to find LView. ngDevMode && assertIndexInRange(hostView, nodeIndex); const slotValue = hostView[nodeIndex]; const lView = isLView(slotValue) ? slotValue : slotValue[HOST]; return lView; } /** * Returns the monkey-patch value data present on the target (which could be * a component, directive or a DOM node). */ function readPatchedData(target) { ngDevMode && assertDefined(target, 'Target expected'); return target[MONKEY_PATCH_KEY_NAME] || null; } function readPatchedLView(target) { const value = readPatchedData(target); if (value) { return Array.isArray(value) ? value : value.lView; } return null; } /** Checks whether a given view is in creation mode */ function isCreationMode(view) { return (view[FLAGS] & 4 /* CreationMode */) === 4 /* CreationMode */; } /** * Returns a boolean for whether the view is attached to the change detection tree. * * Note: This determines whether a view should be checked, not whether it's inserted * into a container. For that, you'll want `viewAttachedToContainer` below. */ function viewAttachedToChangeDetector(view) { return (view[FLAGS] & 128 /* Attached */) === 128 /* Attached */; } /** Returns a boolean for whether the view is attached to a container. */ function viewAttachedToContainer(view) { return isLContainer(view[PARENT]); } /** Returns a constant from `TConstants` instance. */ function getConstant(consts, index) { return consts === null || index == null ? null : consts[index]; } /** * Resets the pre-order hook flags of the view. * @param lView the LView on which the flags are reset */ function resetPreOrderHookFlags(lView) { lView[PREORDER_HOOK_FLAGS] = 0; } /** * Updates the `TRANSPLANTED_VIEWS_TO_REFRESH` counter on the `LContainer` as well as the parents * whose * 1. counter goes from 0 to 1, indicating that there is a new child that has a view to refresh * or * 2. counter goes from 1 to 0, indicating there are no more descendant views to refresh */ function updateTransplantedViewCount(lContainer, amount) { lContainer[TRANSPLANTED_VIEWS_TO_REFRESH] += amount; let viewOrContainer = lContainer; let parent = lContainer[PARENT]; while (parent !== null && ((amount === 1 && viewOrContainer[TRANSPLANTED_VIEWS_TO_REFRESH] === 1) || (amount === -1 && viewOrContainer[TRANSPLANTED_VIEWS_TO_REFRESH] === 0))) { parent[TRANSPLANTED_VIEWS_TO_REFRESH] += amount; viewOrContainer = parent; parent = parent[PARENT]; } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const instructionState = { lFrame: createLFrame(null), bindingsEnabled: true, checkNoChangesMode: false, }; function getElementDepthCount() { return instructionState.lFrame.elementDepthCount; } function increaseElementDepthCount() { instructionState.lFrame.elementDepthCount++; } function decreaseElementDepthCount() { instructionState.lFrame.elementDepthCount--; } function getBindingsEnabled() { return instructionState.bindingsEnabled; } /** * Enables directive matching on elements. * * * Example: * ``` * * Should match component / directive. * *
* * * Should not match component / directive because we are in ngNonBindable. * * *
* ``` * * @codeGenApi */ function ɵɵenableBindings() { instructionState.bindingsEnabled = true; } /** * Disables directive matching on element. * * * Example: * ``` * * Should match component / directive. * *
* * * Should not match component / directive because we are in ngNonBindable. * * *
* ``` * * @codeGenApi */ function ɵɵdisableBindings() { instructionState.bindingsEnabled = false; } /** * Return the current `LView`. */ function getLView() { return instructionState.lFrame.lView; } /** * Return the current `TView`. */ function getTView() { return instructionState.lFrame.tView; } /** * Restores `contextViewData` to the given OpaqueViewState instance. * * Used in conjunction with the getCurrentView() instruction to save a snapshot * of the current view and restore it when listeners are invoked. This allows * walking the declaration view tree in listeners to get vars from parent views. * * @param viewToRestore The OpaqueViewState instance to restore. * * @codeGenApi */ function ɵɵrestoreView(viewToRestore) { instructionState.lFrame.contextLView = viewToRestore; } function getCurrentTNode() { return instructionState.lFrame.currentTNode; } function setCurrentTNode(tNode, isParent) { ngDevMode && assertTNodeForTView(tNode, instructionState.lFrame.tView); instructionState.lFrame.currentTNode = tNode; instructionState.lFrame.isParent = isParent; } function isCurrentTNodeParent() { return instructionState.lFrame.isParent; } function setCurrentTNodeAsNotParent() { instructionState.lFrame.isParent = false; } function setCurrentTNodeAsParent() { instructionState.lFrame.isParent = true; } function getContextLView() { return instructionState.lFrame.contextLView; } function getCheckNoChangesMode() { // TODO(misko): remove this from the LView since it is ngDevMode=true mode only. return instructionState.checkNoChangesMode; } function setCheckNoChangesMode(mode) { instructionState.checkNoChangesMode = mode; } // top level variables should not be exported for performance reasons (PERF_NOTES.md) function getBindingRoot() { const lFrame = instructionState.lFrame; let index = lFrame.bindingRootIndex; if (index === -1) { index = lFrame.bindingRootIndex = lFrame.tView.bindingStartIndex; } return index; } function getBindingIndex() { return instructionState.lFrame.bindingIndex; } function setBindingIndex(value) { return instructionState.lFrame.bindingIndex = value; } function nextBindingIndex() { return instructionState.lFrame.bindingIndex++; } function incrementBindingIndex(count) { const lFrame = instructionState.lFrame; const index = lFrame.bindingIndex; lFrame.bindingIndex = lFrame.bindingIndex + count; return index; } /** * Set a new binding root index so that host template functions can execute. * * Bindings inside the host template are 0 index. But because we don't know ahead of time * how many host bindings we have we can't pre-compute them. For this reason they are all * 0 index and we just shift the root so that they match next available location in the LView. * * @param bindingRootIndex Root index for `hostBindings` * @param currentDirectiveIndex `TData[currentDirectiveIndex]` will point to the current directive * whose `hostBindings` are being processed. */ function setBindingRootForHostBindings(bindingRootIndex, currentDirectiveIndex) { const lFrame = instructionState.lFrame; lFrame.bindingIndex = lFrame.bindingRootIndex = bindingRootIndex; setCurrentDirectiveIndex(currentDirectiveIndex); } /** * When host binding is executing this points to the directive index. * `TView.data[getCurrentDirectiveIndex()]` is `DirectiveDef` * `LView[getCurrentDirectiveIndex()]` is directive instance. */ function getCurrentDirectiveIndex() { return instructionState.lFrame.currentDirectiveIndex; } /** * Sets an index of a directive whose `hostBindings` are being processed. * * @param currentDirectiveIndex `TData` index where current directive instance can be found. */ function setCurrentDirectiveIndex(currentDirectiveIndex) { instructionState.lFrame.currentDirectiveIndex = currentDirectiveIndex; } /** * Retrieve the current `DirectiveDef` which is active when `hostBindings` instruction is being * executed. * * @param tData Current `TData` where the `DirectiveDef` will be looked up at. */ function getCurrentDirectiveDef(tData) { const currentDirectiveIndex = instructionState.lFrame.currentDirectiveIndex; return currentDirectiveIndex === -1 ? null : tData[currentDirectiveIndex]; } function getCurrentQueryIndex() { return instructionState.lFrame.currentQueryIndex; } function setCurrentQueryIndex(value) { instructionState.lFrame.currentQueryIndex = value; } /** * This is a light weight version of the `enterView` which is needed by the DI system. * @param newView * @param tNode */ function enterDI(newView, tNode) { ngDevMode && assertLViewOrUndefined(newView); const newLFrame = allocLFrame(); instructionState.lFrame = newLFrame; newLFrame.currentTNode = tNode; newLFrame.lView = newView; } /** * Swap the current lView with a new lView. * * For performance reasons we store the lView in the top level of the module. * This way we minimize the number of properties to read. Whenever a new view * is entered we have to store the lView for later, and when the view is * exited the state has to be restored * * @param newView New lView to become active * @returns the previously active lView; */ function enterView(newView) { ngDevMode && assertLViewOrUndefined(newView); const newLFrame = allocLFrame(); if (ngDevMode) { assertEqual(newLFrame.isParent, true, 'Expected clean LFrame'); assertEqual(newLFrame.lView, null, 'Expected clean LFrame'); assertEqual(newLFrame.tView, null, 'Expected clean LFrame'); assertEqual(newLFrame.selectedIndex, 0, 'Expected clean LFrame'); assertEqual(newLFrame.elementDepthCount, 0, 'Expected clean LFrame'); assertEqual(newLFrame.currentDirectiveIndex, -1, 'Expected clean LFrame'); assertEqual(newLFrame.currentNamespace, null, 'Expected clean LFrame'); assertEqual(newLFrame.bindingRootIndex, -1, 'Expected clean LFrame'); assertEqual(newLFrame.currentQueryIndex, 0, 'Expected clean LFrame'); } const tView = newView[TVIEW]; instructionState.lFrame = newLFrame; ngDevMode && tView.firstChild && assertTNodeForTView(tView.firstChild, tView); newLFrame.currentTNode = tView.firstChild; newLFrame.lView = newView; newLFrame.tView = tView; newLFrame.contextLView = newView; newLFrame.bindingIndex = tView.bindingStartIndex; } /** * Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure. */ function allocLFrame() { const currentLFrame = instructionState.lFrame; const childLFrame = currentLFrame === null ? null : currentLFrame.child; const newLFrame = childLFrame === null ? createLFrame(currentLFrame) : childLFrame; return newLFrame; } function createLFrame(parent) { const lFrame = { currentTNode: null, isParent: true, lView: null, tView: null, selectedIndex: 0, contextLView: null, elementDepthCount: 0, currentNamespace: null, currentDirectiveIndex: -1, bindingRootIndex: -1, bindingIndex: -1, currentQueryIndex: 0, parent: parent, child: null, }; parent !== null && (parent.child = lFrame); // link the new LFrame for reuse. return lFrame; } /** * A lightweight version of leave which is used with DI. * * This function only resets `currentTNode` and `LView` as those are the only properties * used with DI (`enterDI()`). * * NOTE: This function is reexported as `leaveDI`. However `leaveDI` has return type of `void` where * as `leaveViewLight` has `LFrame`. This is so that `leaveViewLight` can be used in `leaveView`. */ function leaveViewLight() { const oldLFrame = instructionState.lFrame; instructionState.lFrame = oldLFrame.parent; oldLFrame.currentTNode = null; oldLFrame.lView = null; return oldLFrame; } /** * This is a lightweight version of the `leaveView` which is needed by the DI system. * * NOTE: this function is an alias so that we can change the type of the function to have `void` * return type. */ const leaveDI = leaveViewLight; /** * Leave the current `LView` * * This pops the `LFrame` with the associated `LView` from the stack. * * IMPORTANT: We must zero out the `LFrame` values here otherwise they will be retained. This is * because for performance reasons we don't release `LFrame` but rather keep it for next use. */ function leaveView() { const oldLFrame = leaveViewLight(); oldLFrame.isParent = true; oldLFrame.tView = null; oldLFrame.selectedIndex = 0; oldLFrame.contextLView = null; oldLFrame.elementDepthCount = 0; oldLFrame.currentDirectiveIndex = -1; oldLFrame.currentNamespace = null; oldLFrame.bindingRootIndex = -1; oldLFrame.bindingIndex = -1; oldLFrame.currentQueryIndex = 0; } function nextContextImpl(level) { const contextLView = instructionState.lFrame.contextLView = walkUpViews(level, instructionState.lFrame.contextLView); return contextLView[CONTEXT]; } function walkUpViews(nestingLevel, currentView) { while (nestingLevel > 0) { ngDevMode && assertDefined(currentView[DECLARATION_VIEW], 'Declaration view should be defined if nesting level is greater than 0.'); currentView = currentView[DECLARATION_VIEW]; nestingLevel--; } return currentView; } /** * Gets the currently selected element index. * * Used with {@link property} instruction (and more in the future) to identify the index in the * current `LView` to act on. */ function getSelectedIndex() { return instructionState.lFrame.selectedIndex; } /** * Sets the most recent index passed to {@link select} * * Used with {@link property} instruction (and more in the future) to identify the index in the * current `LView` to act on. * * (Note that if an "exit function" was set earlier (via `setElementExitFn()`) then that will be * run if and when the provided `index` value is different from the current selected index value.) */ function setSelectedIndex(index) { instructionState.lFrame.selectedIndex = index; } /** * Gets the `tNode` that represents currently selected element. */ function getSelectedTNode() { const lFrame = instructionState.lFrame; return getTNode(lFrame.tView, lFrame.selectedIndex); } /** * Sets the namespace used to create elements to `'http://www.w3.org/2000/svg'` in global state. * * @codeGenApi */ function ɵɵnamespaceSVG() { instructionState.lFrame.currentNamespace = SVG_NAMESPACE; } /** * Sets the namespace used to create elements to `'http://www.w3.org/1998/MathML/'` in global state. * * @codeGenApi */ function ɵɵnamespaceMathML() { instructionState.lFrame.currentNamespace = MATH_ML_NAMESPACE; } /** * Sets the namespace used to create elements to `null`, which forces element creation to use * `createElement` rather than `createElementNS`. * * @codeGenApi */ function ɵɵnamespaceHTML() { namespaceHTMLInternal(); } /** * Sets the namespace used to create elements to `null`, which forces element creation to use * `createElement` rather than `createElementNS`. */ function namespaceHTMLInternal() { instructionState.lFrame.currentNamespace = null; } function getNamespace() { return instructionState.lFrame.currentNamespace; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Adds all directive lifecycle hooks from the given `DirectiveDef` to the given `TView`. * * Must be run *only* on the first template pass. * * Sets up the pre-order hooks on the provided `tView`, * see {@link HookData} for details about the data structure. * * @param directiveIndex The index of the directive in LView * @param directiveDef The definition containing the hooks to setup in tView * @param tView The current TView */ function registerPreOrderHooks(directiveIndex, directiveDef, tView) { ngDevMode && assertFirstCreatePass(tView); const { ngOnChanges, ngOnInit, ngDoCheck } = directiveDef.type.prototype; if (ngOnChanges) { const wrappedOnChanges = NgOnChangesFeatureImpl(directiveDef); (tView.preOrderHooks || (tView.preOrderHooks = [])).push(directiveIndex, wrappedOnChanges); (tView.preOrderCheckHooks || (tView.preOrderCheckHooks = [])) .push(directiveIndex, wrappedOnChanges); } if (ngOnInit) { (tView.preOrderHooks || (tView.preOrderHooks = [])).push(0 - directiveIndex, ngOnInit); } if (ngDoCheck) { (tView.preOrderHooks || (tView.preOrderHooks = [])).push(directiveIndex, ngDoCheck); (tView.preOrderCheckHooks || (tView.preOrderCheckHooks = [])).push(directiveIndex, ngDoCheck); } } /** * * Loops through the directives on the provided `tNode` and queues hooks to be * run that are not initialization hooks. * * Should be executed during `elementEnd()` and similar to * preserve hook execution order. Content, view, and destroy hooks for projected * components and directives must be called *before* their hosts. * * Sets up the content, view, and destroy hooks on the provided `tView`, * see {@link HookData} for details about the data structure. * * NOTE: This does not set up `onChanges`, `onInit` or `doCheck`, those are set up * separately at `elementStart`. * * @param tView The current TView * @param tNode The TNode whose directives are to be searched for hooks to queue */ function registerPostOrderHooks(tView, tNode) { ngDevMode && assertFirstCreatePass(tView); // It's necessary to loop through the directives at elementEnd() (rather than processing in // directiveCreate) so we can preserve the current hook order. Content, view, and destroy // hooks for projected components and directives must be called *before* their hosts. for (let i = tNode.directiveStart, end = tNode.directiveEnd; i < end; i++) { const directiveDef = tView.data[i]; const lifecycleHooks = directiveDef.type.prototype; const { ngAfterContentInit, ngAfterContentChecked, ngAfterViewInit, ngAfterViewChecked, ngOnDestroy } = lifecycleHooks; if (ngAfterContentInit) { (tView.contentHooks || (tView.contentHooks = [])).push(-i, ngAfterContentInit); } if (ngAfterContentChecked) { (tView.contentHooks || (tView.contentHooks = [])).push(i, ngAfterContentChecked); (tView.contentCheckHooks || (tView.contentCheckHooks = [])).push(i, ngAfterContentChecked); } if (ngAfterViewInit) { (tView.viewHooks || (tView.viewHooks = [])).push(-i, ngAfterViewInit); } if (ngAfterViewChecked) { (tView.viewHooks || (tView.viewHooks = [])).push(i, ngAfterViewChecked); (tView.viewCheckHooks || (tView.viewCheckHooks = [])).push(i, ngAfterViewChecked); } if (ngOnDestroy != null) { (tView.destroyHooks || (tView.destroyHooks = [])).push(i, ngOnDestroy); } } } /** * Executing hooks requires complex logic as we need to deal with 2 constraints. * * 1. Init hooks (ngOnInit, ngAfterContentInit, ngAfterViewInit) must all be executed once and only * once, across many change detection cycles. This must be true even if some hooks throw, or if * some recursively trigger a change detection cycle. * To solve that, it is required to track the state of the execution of these init hooks. * This is done by storing and maintaining flags in the view: the {@link InitPhaseState}, * and the index within that phase. They can be seen as a cursor in the following structure: * [[onInit1, onInit2], [afterContentInit1], [afterViewInit1, afterViewInit2, afterViewInit3]] * They are are stored as flags in LView[FLAGS]. * * 2. Pre-order hooks can be executed in batches, because of the select instruction. * To be able to pause and resume their execution, we also need some state about the hook's array * that is being processed: * - the index of the next hook to be executed * - the number of init hooks already found in the processed part of the array * They are are stored as flags in LView[PREORDER_HOOK_FLAGS]. */ /** * Executes pre-order check hooks ( OnChanges, DoChanges) given a view where all the init hooks were * executed once. This is a light version of executeInitAndCheckPreOrderHooks where we can skip read * / write of the init-hooks related flags. * @param lView The LView where hooks are defined * @param hooks Hooks to be run * @param nodeIndex 3 cases depending on the value: * - undefined: all hooks from the array should be executed (post-order case) * - null: execute hooks only from the saved index until the end of the array (pre-order case, when * flushing the remaining hooks) * - number: execute hooks only from the saved index until that node index exclusive (pre-order * case, when executing select(number)) */ function executeCheckHooks(lView, hooks, nodeIndex) { callHooks(lView, hooks, 3 /* InitPhaseCompleted */, nodeIndex); } /** * Executes post-order init and check hooks (one of AfterContentInit, AfterContentChecked, * AfterViewInit, AfterViewChecked) given a view where there are pending init hooks to be executed. * @param lView The LView where hooks are defined * @param hooks Hooks to be run * @param initPhase A phase for which hooks should be run * @param nodeIndex 3 cases depending on the value: * - undefined: all hooks from the array should be executed (post-order case) * - null: execute hooks only from the saved index until the end of the array (pre-order case, when * flushing the remaining hooks) * - number: execute hooks only from the saved index until that node index exclusive (pre-order * case, when executing select(number)) */ function executeInitAndCheckHooks(lView, hooks, initPhase, nodeIndex) { ngDevMode && assertNotEqual(initPhase, 3 /* InitPhaseCompleted */, 'Init pre-order hooks should not be called more than once'); if ((lView[FLAGS] & 3 /* InitPhaseStateMask */) === initPhase) { callHooks(lView, hooks, initPhase, nodeIndex); } } function incrementInitPhaseFlags(lView, initPhase) { ngDevMode && assertNotEqual(initPhase, 3 /* InitPhaseCompleted */, 'Init hooks phase should not be incremented after all init hooks have been run.'); let flags = lView[FLAGS]; if ((flags & 3 /* InitPhaseStateMask */) === initPhase) { flags &= 2047 /* IndexWithinInitPhaseReset */; flags += 1 /* InitPhaseStateIncrementer */; lView[FLAGS] = flags; } } /** * Calls lifecycle hooks with their contexts, skipping init hooks if it's not * the first LView pass * * @param currentView The current view * @param arr The array in which the hooks are found * @param initPhaseState the current state of the init phase * @param currentNodeIndex 3 cases depending on the value: * - undefined: all hooks from the array should be executed (post-order case) * - null: execute hooks only from the saved index until the end of the array (pre-order case, when * flushing the remaining hooks) * - number: execute hooks only from the saved index until that node index exclusive (pre-order * case, when executing select(number)) */ function callHooks(currentView, arr, initPhase, currentNodeIndex) { ngDevMode && assertEqual(getCheckNoChangesMode(), false, 'Hooks should never be run in the check no changes mode.'); const startIndex = currentNodeIndex !== undefined ? (currentView[PREORDER_HOOK_FLAGS] & 65535 /* IndexOfTheNextPreOrderHookMaskMask */) : 0; const nodeIndexLimit = currentNodeIndex != null ? currentNodeIndex : -1; let lastNodeIndexFound = 0; for (let i = startIndex; i < arr.length; i++) { const hook = arr[i + 1]; if (typeof hook === 'number') { lastNodeIndexFound = arr[i]; if (currentNodeIndex != null && lastNodeIndexFound >= currentNodeIndex) { break; } } else { const isInitHook = arr[i] < 0; if (isInitHook) currentView[PREORDER_HOOK_FLAGS] += 65536 /* NumberOfInitHooksCalledIncrementer */; if (lastNodeIndexFound < nodeIndexLimit || nodeIndexLimit == -1) { callHook(currentView, initPhase, arr, i); currentView[PREORDER_HOOK_FLAGS] = (currentView[PREORDER_HOOK_FLAGS] & 4294901760 /* NumberOfInitHooksCalledMask */) + i + 2; } i++; } } } /** * Execute one hook against the current `LView`. * * @param currentView The current view * @param initPhaseState the current state of the init phase * @param arr The array in which the hooks are found * @param i The current index within the hook data array */ function callHook(currentView, initPhase, arr, i) { const isInitHook = arr[i] < 0; const hook = arr[i + 1]; const directiveIndex = isInitHook ? -arr[i] : arr[i]; const directive = currentView[directiveIndex]; if (isInitHook) { const indexWithintInitPhase = currentView[FLAGS] >> 11 /* IndexWithinInitPhaseShift */; // The init phase state must be always checked here as it may have been recursively // updated if (indexWithintInitPhase < (currentView[PREORDER_HOOK_FLAGS] >> 16 /* NumberOfInitHooksCalledShift */) && (currentView[FLAGS] & 3 /* InitPhaseStateMask */) === initPhase) { currentView[FLAGS] += 2048 /* IndexWithinInitPhaseIncrementer */; hook.call(directive); } } else { hook.call(directive); } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const NO_PARENT_INJECTOR = -1; /** * Each injector is saved in 9 contiguous slots in `LView` and 9 contiguous slots in * `TView.data`. This allows us to store information about the current node's tokens (which * can be shared in `TView`) as well as the tokens of its ancestor nodes (which cannot be * shared, so they live in `LView`). * * Each of these slots (aside from the last slot) contains a bloom filter. This bloom filter * determines whether a directive is available on the associated node or not. This prevents us * from searching the directives array at this level unless it's probable the directive is in it. * * See: https://en.wikipedia.org/wiki/Bloom_filter for more about bloom filters. * * Because all injectors have been flattened into `LView` and `TViewData`, they cannot typed * using interfaces as they were previously. The start index of each `LInjector` and `TInjector` * will differ based on where it is flattened into the main array, so it's not possible to know * the indices ahead of time and save their types here. The interfaces are still included here * for documentation purposes. * * export interface LInjector extends Array { * * // Cumulative bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE) * [0]: number; * * // Cumulative bloom for directive IDs 32-63 * [1]: number; * * // Cumulative bloom for directive IDs 64-95 * [2]: number; * * // Cumulative bloom for directive IDs 96-127 * [3]: number; * * // Cumulative bloom for directive IDs 128-159 * [4]: number; * * // Cumulative bloom for directive IDs 160 - 191 * [5]: number; * * // Cumulative bloom for directive IDs 192 - 223 * [6]: number; * * // Cumulative bloom for directive IDs 224 - 255 * [7]: number; * * // We need to store a reference to the injector's parent so DI can keep looking up * // the injector tree until it finds the dependency it's looking for. * [PARENT_INJECTOR]: number; * } * * export interface TInjector extends Array { * * // Shared node bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE) * [0]: number; * * // Shared node bloom for directive IDs 32-63 * [1]: number; * * // Shared node bloom for directive IDs 64-95 * [2]: number; * * // Shared node bloom for directive IDs 96-127 * [3]: number; * * // Shared node bloom for directive IDs 128-159 * [4]: number; * * // Shared node bloom for directive IDs 160 - 191 * [5]: number; * * // Shared node bloom for directive IDs 192 - 223 * [6]: number; * * // Shared node bloom for directive IDs 224 - 255 * [7]: number; * * // Necessary to find directive indices for a particular node. * [TNODE]: TElementNode|TElementContainerNode|TContainerNode; * } */ /** * Factory for creating instances of injectors in the NodeInjector. * * This factory is complicated by the fact that it can resolve `multi` factories as well. * * NOTE: Some of the fields are optional which means that this class has two hidden classes. * - One without `multi` support (most common) * - One with `multi` values, (rare). * * Since VMs can cache up to 4 inline hidden classes this is OK. * * - Single factory: Only `resolving` and `factory` is defined. * - `providers` factory: `componentProviders` is a number and `index = -1`. * - `viewProviders` factory: `componentProviders` is a number and `index` points to `providers`. */ class NodeInjectorFactory { constructor( /** * Factory to invoke in order to create a new instance. */ factory, /** * Set to `true` if the token is declared in `viewProviders` (or if it is component). */ isViewProvider, injectImplementation) { this.factory = factory; /** * Marker set to true during factory invocation to see if we get into recursive loop. * Recursive loop causes an error to be displayed. */ this.resolving = false; ngDevMode && assertDefined(factory, 'Factory not specified'); ngDevMode && assertEqual(typeof factory, 'function', 'Expected factory function.'); this.canSeeViewProviders = isViewProvider; this.injectImpl = injectImplementation; } } function isFactory(obj) { return obj instanceof NodeInjectorFactory; } // Note: This hack is necessary so we don't erroneously get a circular dependency // failure based on types. const unusedValueExportToPlacateAjd$3 = 1; /** * Converts `TNodeType` into human readable text. * Make sure this matches with `TNodeType` */ const TNodeTypeAsString = [ 'Container', 'Projection', 'Element', 'ElementContainer', 'IcuContainer' // 4 ]; // Note: This hack is necessary so we don't erroneously get a circular dependency // failure based on types. const unusedValueExportToPlacateAjd$4 = 1; /** * Returns `true` if the `TNode` has a directive which has `@Input()` for `class` binding. * * ``` *
* ``` * and * ``` * @Directive({ * }) * class MyDirective { * @Input() * class: string; * } * ``` * * In the above case it is necessary to write the reconciled styling information into the * directive's input. * * @param tNode */ function hasClassInput(tNode) { return (tNode.flags & 16 /* hasClassInput */) !== 0; } /** * Returns `true` if the `TNode` has a directive which has `@Input()` for `style` binding. * * ``` *
* ``` * and * ``` * @Directive({ * }) * class MyDirective { * @Input() * class: string; * } * ``` * * In the above case it is necessary to write the reconciled styling information into the * directive's input. * * @param tNode */ function hasStyleInput(tNode) { return (tNode.flags & 32 /* hasStyleInput */) !== 0; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function assertNodeType(tNode, type) { assertDefined(tNode, 'should be called with a TNode'); assertEqual(tNode.type, type, `should be a ${typeName(type)}`); } function assertNodeOfPossibleTypes(tNode, types, message) { assertDefined(tNode, 'should be called with a TNode'); const found = types.some(type => tNode.type === type); assertEqual(found, true, message !== null && message !== void 0 ? message : `Should be one of ${types.map(typeName).join(', ')} but got ${typeName(tNode.type)}`); } function assertNodeNotOfTypes(tNode, types, message) { assertDefined(tNode, 'should be called with a TNode'); const found = types.some(type => tNode.type === type); assertEqual(found, false, message !== null && message !== void 0 ? message : `Should not be one of ${types.map(typeName).join(', ')} but got ${typeName(tNode.type)}`); } function typeName(type) { return TNodeTypeAsString[type] || ''; } /** * Assigns all attribute values to the provided element via the inferred renderer. * * This function accepts two forms of attribute entries: * * default: (key, value): * attrs = [key1, value1, key2, value2] * * namespaced: (NAMESPACE_MARKER, uri, name, value) * attrs = [NAMESPACE_MARKER, uri, name, value, NAMESPACE_MARKER, uri, name, value] * * The `attrs` array can contain a mix of both the default and namespaced entries. * The "default" values are set without a marker, but if the function comes across * a marker value then it will attempt to set a namespaced value. If the marker is * not of a namespaced value then the function will quit and return the index value * where it stopped during the iteration of the attrs array. * * See [AttributeMarker] to understand what the namespace marker value is. * * Note that this instruction does not support assigning style and class values to * an element. See `elementStart` and `elementHostAttrs` to learn how styling values * are applied to an element. * @param renderer The renderer to be used * @param native The element that the attributes will be assigned to * @param attrs The attribute array of values that will be assigned to the element * @returns the index value that was last accessed in the attributes array */ function setUpAttributes(renderer, native, attrs) { const isProc = isProceduralRenderer(renderer); let i = 0; while (i < attrs.length) { const value = attrs[i]; if (typeof value === 'number') { // only namespaces are supported. Other value types (such as style/class // entries) are not supported in this function. if (value !== 0 /* NamespaceURI */) { break; } // we just landed on the marker value ... therefore // we should skip to the next entry i++; const namespaceURI = attrs[i++]; const attrName = attrs[i++]; const attrVal = attrs[i++]; ngDevMode && ngDevMode.rendererSetAttribute++; isProc ? renderer.setAttribute(native, attrName, attrVal, namespaceURI) : native.setAttributeNS(namespaceURI, attrName, attrVal); } else { // attrName is string; const attrName = value; const attrVal = attrs[++i]; // Standard attributes ngDevMode && ngDevMode.rendererSetAttribute++; if (isAnimationProp(attrName)) { if (isProc) { renderer.setProperty(native, attrName, attrVal); } } else { isProc ? renderer.setAttribute(native, attrName, attrVal) : native.setAttribute(attrName, attrVal); } i++; } } // another piece of code may iterate over the same attributes array. Therefore // it may be helpful to return the exact spot where the attributes array exited // whether by running into an unsupported marker or if all the static values were // iterated over. return i; } /** * Test whether the given value is a marker that indicates that the following * attribute values in a `TAttributes` array are only the names of attributes, * and not name-value pairs. * @param marker The attribute marker to test. * @returns true if the marker is a "name-only" marker (e.g. `Bindings`, `Template` or `I18n`). */ function isNameOnlyAttributeMarker(marker) { return marker === 3 /* Bindings */ || marker === 4 /* Template */ || marker === 6 /* I18n */; } function isAnimationProp(name) { // Perf note: accessing charCodeAt to check for the first character of a string is faster as // compared to accessing a character at index 0 (ex. name[0]). The main reason for this is that // charCodeAt doesn't allocate memory to return a substring. return name.charCodeAt(0) === 64 /* AT_SIGN */; } /** * Merges `src` `TAttributes` into `dst` `TAttributes` removing any duplicates in the process. * * This merge function keeps the order of attrs same. * * @param dst Location of where the merged `TAttributes` should end up. * @param src `TAttributes` which should be appended to `dst` */ function mergeHostAttrs(dst, src) { if (src === null || src.length === 0) { // do nothing } else if (dst === null || dst.length === 0) { // We have source, but dst is empty, just make a copy. dst = src.slice(); } else { let srcMarker = -1 /* ImplicitAttributes */; for (let i = 0; i < src.length; i++) { const item = src[i]; if (typeof item === 'number') { srcMarker = item; } else { if (srcMarker === 0 /* NamespaceURI */) { // Case where we need to consume `key1`, `key2`, `value` items. } else if (srcMarker === -1 /* ImplicitAttributes */ || srcMarker === 2 /* Styles */) { // Case where we have to consume `key1` and `value` only. mergeHostAttribute(dst, srcMarker, item, null, src[++i]); } else { // Case where we have to consume `key1` only. mergeHostAttribute(dst, srcMarker, item, null, null); } } } } return dst; } /** * Append `key`/`value` to existing `TAttributes` taking region marker and duplicates into account. * * @param dst `TAttributes` to append to. * @param marker Region where the `key`/`value` should be added. * @param key1 Key to add to `TAttributes` * @param key2 Key to add to `TAttributes` (in case of `AttributeMarker.NamespaceURI`) * @param value Value to add or to overwrite to `TAttributes` Only used if `marker` is not Class. */ function mergeHostAttribute(dst, marker, key1, key2, value) { let i = 0; // Assume that new markers will be inserted at the end. let markerInsertPosition = dst.length; // scan until correct type. if (marker === -1 /* ImplicitAttributes */) { markerInsertPosition = -1; } else { while (i < dst.length) { const dstValue = dst[i++]; if (typeof dstValue === 'number') { if (dstValue === marker) { markerInsertPosition = -1; break; } else if (dstValue > marker) { // We need to save this as we want the markers to be inserted in specific order. markerInsertPosition = i - 1; break; } } } } // search until you find place of insertion while (i < dst.length) { const item = dst[i]; if (typeof item === 'number') { // since `i` started as the index after the marker, we did not find it if we are at the next // marker break; } else if (item === key1) { // We already have same token if (key2 === null) { if (value !== null) { dst[i + 1] = value; } return; } else if (key2 === dst[i + 1]) { dst[i + 2] = value; return; } } // Increment counter. i++; if (key2 !== null) i++; if (value !== null) i++; } // insert at location. if (markerInsertPosition !== -1) { dst.splice(markerInsertPosition, 0, marker); i = markerInsertPosition + 1; } dst.splice(i++, 0, key1); if (key2 !== null) { dst.splice(i++, 0, key2); } if (value !== null) { dst.splice(i++, 0, value); } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /// Parent Injector Utils /////////////////////////////////////////////////////////////// function hasParentInjector(parentLocation) { return parentLocation !== NO_PARENT_INJECTOR; } function getParentInjectorIndex(parentLocation) { ngDevMode && assertNumber(parentLocation, 'Number expected'); ngDevMode && assertNotEqual(parentLocation, -1, 'Not a valid state.'); const parentInjectorIndex = parentLocation & 32767 /* InjectorIndexMask */; ngDevMode && assertGreaterThan(parentInjectorIndex, HEADER_OFFSET, 'Parent injector must be pointing past HEADER_OFFSET.'); return parentLocation & 32767 /* InjectorIndexMask */; } function getParentInjectorViewOffset(parentLocation) { return parentLocation >> 16 /* ViewOffsetShift */; } /** * Unwraps a parent injector location number to find the view offset from the current injector, * then walks up the declaration view tree until the view is found that contains the parent * injector. * * @param location The location of the parent injector, which contains the view offset * @param startView The LView instance from which to start walking up the view tree * @returns The LView instance that contains the parent injector */ function getParentInjectorView(location, startView) { let viewOffset = getParentInjectorViewOffset(location); let parentView = startView; // For most cases, the parent injector can be found on the host node (e.g. for component // or container), but we must keep the loop here to support the rarer case of deeply nested // tags or inline views, where the parent injector might live many views // above the child injector. while (viewOffset > 0) { parentView = parentView[DECLARATION_VIEW]; viewOffset--; } return parentView; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Used for stringify render output in Ivy. * Important! This function is very performance-sensitive and we should * be extra careful not to introduce megamorphic reads in it. */ function renderStringify(value) { if (typeof value === 'string') return value; if (value == null) return ''; return '' + value; } /** * Used to stringify a value so that it can be displayed in an error message. * Important! This function contains a megamorphic read and should only be * used for error messages. */ function stringifyForError(value) { if (typeof value === 'function') return value.name || value.toString(); if (typeof value === 'object' && value != null && typeof value.type === 'function') { return value.type.name || value.type.toString(); } return renderStringify(value); } const ɵ0$3 = () => (typeof requestAnimationFrame !== 'undefined' && requestAnimationFrame || // browser only setTimeout // everything else ) .bind(_global); const defaultScheduler = (ɵ0$3)(); /** * * @codeGenApi */ function ɵɵresolveWindow(element) { return { name: 'window', target: element.ownerDocument.defaultView }; } /** * * @codeGenApi */ function ɵɵresolveDocument(element) { return { name: 'document', target: element.ownerDocument }; } /** * * @codeGenApi */ function ɵɵresolveBody(element) { return { name: 'body', target: element.ownerDocument.body }; } /** * The special delimiter we use to separate property names, prefixes, and suffixes * in property binding metadata. See storeBindingMetadata(). * * We intentionally use the Unicode "REPLACEMENT CHARACTER" (U+FFFD) as a delimiter * because it is a very uncommon character that is unlikely to be part of a user's * property names or interpolation strings. If it is in fact used in a property * binding, DebugElement.properties will not return the correct value for that * binding. However, there should be no runtime effect for real applications. * * This character is typically rendered as a question mark inside of a diamond. * See https://en.wikipedia.org/wiki/Specials_(Unicode_block) * */ const INTERPOLATION_DELIMITER = `�`; /** * Unwrap a value which might be behind a closure (for forward declaration reasons). */ function maybeUnwrapFn(value) { if (value instanceof Function) { return value(); } else { return value; } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Defines if the call to `inject` should include `viewProviders` in its resolution. * * This is set to true when we try to instantiate a component. This value is reset in * `getNodeInjectable` to a value which matches the declaration location of the token about to be * instantiated. This is done so that if we are injecting a token which was declared outside of * `viewProviders` we don't accidentally pull `viewProviders` in. * * Example: * * ``` * @Injectable() * class MyService { * constructor(public value: String) {} * } * * @Component({ * providers: [ * MyService, * {provide: String, value: 'providers' } * ] * viewProviders: [ * {provide: String, value: 'viewProviders'} * ] * }) * class MyComponent { * constructor(myService: MyService, value: String) { * // We expect that Component can see into `viewProviders`. * expect(value).toEqual('viewProviders'); * // `MyService` was not declared in `viewProviders` hence it can't see it. * expect(myService.value).toEqual('providers'); * } * } * * ``` */ let includeViewProviders = true; function setIncludeViewProviders(v) { const oldValue = includeViewProviders; includeViewProviders = v; return oldValue; } /** * The number of slots in each bloom filter (used by DI). The larger this number, the fewer * directives that will share slots, and thus, the fewer false positives when checking for * the existence of a directive. */ const BLOOM_SIZE = 256; const BLOOM_MASK = BLOOM_SIZE - 1; /** Counter used to generate unique IDs for directives. */ let nextNgElementId = 0; /** * Registers this directive as present in its node's injector by flipping the directive's * corresponding bit in the injector's bloom filter. * * @param injectorIndex The index of the node injector where this token should be registered * @param tView The TView for the injector's bloom filters * @param type The directive token to register */ function bloomAdd(injectorIndex, tView, type) { ngDevMode && assertEqual(tView.firstCreatePass, true, 'expected firstCreatePass to be true'); let id; if (typeof type === 'string') { id = type.charCodeAt(0) || 0; } else if (type.hasOwnProperty(NG_ELEMENT_ID)) { id = type[NG_ELEMENT_ID]; } // Set a unique ID on the directive type, so if something tries to inject the directive, // we can easily retrieve the ID and hash it into the bloom bit that should be checked. if (id == null) { id = type[NG_ELEMENT_ID] = nextNgElementId++; } // We only have BLOOM_SIZE (256) slots in our bloom filter (8 buckets * 32 bits each), // so all unique IDs must be modulo-ed into a number from 0 - 255 to fit into the filter. const bloomBit = id & BLOOM_MASK; // Create a mask that targets the specific bit associated with the directive. // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding // to bit positions 0 - 31 in a 32 bit integer. const mask = 1 << bloomBit; // Use the raw bloomBit number to determine which bloom filter bucket we should check // e.g: bf0 = [0 - 31], bf1 = [32 - 63], bf2 = [64 - 95], bf3 = [96 - 127], etc const b7 = bloomBit & 0x80; const b6 = bloomBit & 0x40; const b5 = bloomBit & 0x20; const tData = tView.data; if (b7) { b6 ? (b5 ? (tData[injectorIndex + 7] |= mask) : (tData[injectorIndex + 6] |= mask)) : (b5 ? (tData[injectorIndex + 5] |= mask) : (tData[injectorIndex + 4] |= mask)); } else { b6 ? (b5 ? (tData[injectorIndex + 3] |= mask) : (tData[injectorIndex + 2] |= mask)) : (b5 ? (tData[injectorIndex + 1] |= mask) : (tData[injectorIndex] |= mask)); } } /** * Creates (or gets an existing) injector for a given element or container. * * @param tNode for which an injector should be retrieved / created. * @param lView View where the node is stored * @returns Node injector */ function getOrCreateNodeInjectorForNode(tNode, lView) { const existingInjectorIndex = getInjectorIndex(tNode, lView); if (existingInjectorIndex !== -1) { return existingInjectorIndex; } const tView = lView[TVIEW]; if (tView.firstCreatePass) { tNode.injectorIndex = lView.length; insertBloom(tView.data, tNode); // foundation for node bloom insertBloom(lView, null); // foundation for cumulative bloom insertBloom(tView.blueprint, null); } const parentLoc = getParentInjectorLocation(tNode, lView); const injectorIndex = tNode.injectorIndex; // If a parent injector can't be found, its location is set to -1. // In that case, we don't need to set up a cumulative bloom if (hasParentInjector(parentLoc)) { const parentIndex = getParentInjectorIndex(parentLoc); const parentLView = getParentInjectorView(parentLoc, lView); const parentData = parentLView[TVIEW].data; // Creates a cumulative bloom filter that merges the parent's bloom filter // and its own cumulative bloom (which contains tokens for all ancestors) for (let i = 0; i < 8 /* BLOOM_SIZE */; i++) { lView[injectorIndex + i] = parentLView[parentIndex + i] | parentData[parentIndex + i]; } } lView[injectorIndex + 8 /* PARENT */] = parentLoc; return injectorIndex; } function insertBloom(arr, footer) { arr.push(0, 0, 0, 0, 0, 0, 0, 0, footer); } function getInjectorIndex(tNode, lView) { if (tNode.injectorIndex === -1 || // If the injector index is the same as its parent's injector index, then the index has been // copied down from the parent node. No injector has been created yet on this node. (tNode.parent && tNode.parent.injectorIndex === tNode.injectorIndex) || // After the first template pass, the injector index might exist but the parent values // might not have been calculated yet for this instance lView[tNode.injectorIndex + 8 /* PARENT */] === null) { return -1; } else { ngDevMode && assertIndexInRange(lView, tNode.injectorIndex); return tNode.injectorIndex; } } /** * Finds the index of the parent injector, with a view offset if applicable. Used to set the * parent injector initially. * * @returns Returns a number that is the combination of the number of LViews that we have to go up * to find the LView containing the parent inject AND the index of the injector within that LView. */ function getParentInjectorLocation(tNode, lView) { if (tNode.parent && tNode.parent.injectorIndex !== -1) { // If we have a parent `TNode` and there is an injector associated with it we are done, because // the parent injector is within the current `LView`. return tNode.parent.injectorIndex; // ViewOffset is 0 } // When parent injector location is computed it may be outside of the current view. (ie it could // be pointing to a declared parent location). This variable stores number of declaration parents // we need to walk up in order to find the parent injector location. let declarationViewOffset = 0; let parentTNode = null; let lViewCursor = lView; // The parent injector is not in the current `LView`. We will have to walk the declared parent // `LView` hierarchy and look for it. If we walk of the top, that means that there is no parent // `NodeInjector`. while (lViewCursor !== null) { // First determine the `parentTNode` location. The parent pointer differs based on `TView.type`. const tView = lViewCursor[TVIEW]; const tViewType = tView.type; if (tViewType === 2 /* Embedded */) { ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.'); parentTNode = tView.declTNode; } else if (tViewType === 1 /* Component */) { // Components don't have `TView.declTNode` because each instance of component could be // inserted in different location, hence `TView.declTNode` is meaningless. parentTNode = lViewCursor[T_HOST]; } else { ngDevMode && assertEqual(tView.type, 0 /* Root */, 'Root type expected'); parentTNode = null; } if (parentTNode === null) { // If we have no parent, than we are done. return NO_PARENT_INJECTOR; } ngDevMode && parentTNode && assertTNodeForLView(parentTNode, lViewCursor[DECLARATION_VIEW]); // Every iteration of the loop requires that we go to the declared parent. declarationViewOffset++; lViewCursor = lViewCursor[DECLARATION_VIEW]; if (parentTNode.injectorIndex !== -1) { // We found a NodeInjector which points to something. return (parentTNode.injectorIndex | (declarationViewOffset << 16 /* ViewOffsetShift */)); } } return NO_PARENT_INJECTOR; } /** * Makes a type or an injection token public to the DI system by adding it to an * injector's bloom filter. * * @param di The node injector in which a directive will be added * @param token The type or the injection token to be made public */ function diPublicInInjector(injectorIndex, tView, token) { bloomAdd(injectorIndex, tView, token); } /** * Inject static attribute value into directive constructor. * * This method is used with `factory` functions which are generated as part of * `defineDirective` or `defineComponent`. The method retrieves the static value * of an attribute. (Dynamic attributes are not supported since they are not resolved * at the time of injection and can change over time.) * * # Example * Given: * ``` * @Component(...) * class MyComponent { * constructor(@Attribute('title') title: string) { ... } * } * ``` * When instantiated with * ``` * * ``` * * Then factory method generated is: * ``` * MyComponent.ɵcmp = defineComponent({ * factory: () => new MyComponent(injectAttribute('title')) * ... * }) * ``` * * @publicApi */ function injectAttributeImpl(tNode, attrNameToInject) { ngDevMode && assertNodeOfPossibleTypes(tNode, [0 /* Container */, 2 /* Element */, 3 /* ElementContainer */]); ngDevMode && assertDefined(tNode, 'expecting tNode'); if (attrNameToInject === 'class') { return tNode.classes; } if (attrNameToInject === 'style') { return tNode.styles; } const attrs = tNode.attrs; if (attrs) { const attrsLength = attrs.length; let i = 0; while (i < attrsLength) { const value = attrs[i]; // If we hit a `Bindings` or `Template` marker then we are done. if (isNameOnlyAttributeMarker(value)) break; // Skip namespaced attributes if (value === 0 /* NamespaceURI */) { // we skip the next two values // as namespaced attributes looks like // [..., AttributeMarker.NamespaceURI, 'http://someuri.com/test', 'test:exist', // 'existValue', ...] i = i + 2; } else if (typeof value === 'number') { // Skip to the first value of the marked attribute. i++; while (i < attrsLength && typeof attrs[i] === 'string') { i++; } } else if (value === attrNameToInject) { return attrs[i + 1]; } else { i = i + 2; } } } return null; } /** * Returns the value associated to the given token from the NodeInjectors => ModuleInjector. * * Look for the injector providing the token by walking up the node injector tree and then * the module injector tree. * * This function patches `token` with `__NG_ELEMENT_ID__` which contains the id for the bloom * filter. Negative values are reserved for special objects. * - `-1` is reserved for injecting `Injector` (implemented by `NodeInjector`) * * @param tNode The Node where the search for the injector should start * @param lView The `LView` that contains the `tNode` * @param token The token to look for * @param flags Injection flags * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional` * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided */ function getOrCreateInjectable(tNode, lView, token, flags = InjectFlags.Default, notFoundValue) { if (tNode !== null) { const bloomHash = bloomHashBitOrFactory(token); // If the ID stored here is a function, this is a special object like ElementRef or TemplateRef // so just call the factory function to create it. if (typeof bloomHash === 'function') { enterDI(lView, tNode); try { const value = bloomHash(); if (value == null && !(flags & InjectFlags.Optional)) { throw new Error(`No provider for ${stringifyForError(token)}!`); } else { return value; } } finally { leaveDI(); } } else if (typeof bloomHash == 'number') { if (bloomHash === -1) { // `-1` is a special value used to identify `Injector` types. return new NodeInjector(tNode, lView); } // If the token has a bloom hash, then it is a token which could be in NodeInjector. // A reference to the previous injector TView that was found while climbing the element // injector tree. This is used to know if viewProviders can be accessed on the current // injector. let previousTView = null; let injectorIndex = getInjectorIndex(tNode, lView); let parentLocation = NO_PARENT_INJECTOR; let hostTElementNode = flags & InjectFlags.Host ? lView[DECLARATION_COMPONENT_VIEW][T_HOST] : null; // If we should skip this injector, or if there is no injector on this node, start by // searching the parent injector. if (injectorIndex === -1 || flags & InjectFlags.SkipSelf) { parentLocation = injectorIndex === -1 ? getParentInjectorLocation(tNode, lView) : lView[injectorIndex + 8 /* PARENT */]; if (parentLocation === NO_PARENT_INJECTOR || !shouldSearchParent(flags, false)) { injectorIndex = -1; } else { previousTView = lView[TVIEW]; injectorIndex = getParentInjectorIndex(parentLocation); lView = getParentInjectorView(parentLocation, lView); } } // Traverse up the injector tree until we find a potential match or until we know there // *isn't* a match. while (injectorIndex !== -1) { ngDevMode && assertNodeInjector(lView, injectorIndex); // Check the current injector. If it matches, see if it contains token. const tView = lView[TVIEW]; ngDevMode && assertTNodeForLView(tView.data[injectorIndex + 8 /* TNODE */], lView); if (bloomHasToken(bloomHash, injectorIndex, tView.data)) { // At this point, we have an injector which *may* contain the token, so we step through // the providers and directives associated with the injector's corresponding node to get // the instance. const instance = searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode); if (instance !== NOT_FOUND) { return instance; } } parentLocation = lView[injectorIndex + 8 /* PARENT */]; if (parentLocation !== NO_PARENT_INJECTOR && shouldSearchParent(flags, lView[TVIEW].data[injectorIndex + 8 /* TNODE */] === hostTElementNode) && bloomHasToken(bloomHash, injectorIndex, lView)) { // The def wasn't found anywhere on this node, so it was a false positive. // Traverse up the tree and continue searching. previousTView = tView; injectorIndex = getParentInjectorIndex(parentLocation); lView = getParentInjectorView(parentLocation, lView); } else { // If we should not search parent OR If the ancestor bloom filter value does not have the // bit corresponding to the directive we can give up on traversing up to find the specific // injector. injectorIndex = -1; } } } } if (flags & InjectFlags.Optional && notFoundValue === undefined) { // This must be set or the NullInjector will throw for optional deps notFoundValue = null; } if ((flags & (InjectFlags.Self | InjectFlags.Host)) === 0) { const moduleInjector = lView[INJECTOR$1]; // switch to `injectInjectorOnly` implementation for module injector, since module injector // should not have access to Component/Directive DI scope (that may happen through // `directiveInject` implementation) const previousInjectImplementation = setInjectImplementation(undefined); try { if (moduleInjector) { return moduleInjector.get(token, notFoundValue, flags & InjectFlags.Optional); } else { return injectRootLimpMode(token, notFoundValue, flags & InjectFlags.Optional); } } finally { setInjectImplementation(previousInjectImplementation); } } if (flags & InjectFlags.Optional) { return notFoundValue; } else { throw new Error(`NodeInjector: NOT_FOUND [${stringifyForError(token)}]`); } } const NOT_FOUND = {}; function searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode) { const currentTView = lView[TVIEW]; const tNode = currentTView.data[injectorIndex + 8 /* TNODE */]; // First, we need to determine if view providers can be accessed by the starting element. // There are two possibilities const canAccessViewProviders = previousTView == null ? // 1) This is the first invocation `previousTView == null` which means that we are at the // `TNode` of where injector is starting to look. In such a case the only time we are allowed // to look into the ViewProviders is if: // - we are on a component // - AND the injector set `includeViewProviders` to true (implying that the token can see // ViewProviders because it is the Component or a Service which itself was declared in // ViewProviders) (isComponentHost(tNode) && includeViewProviders) : // 2) `previousTView != null` which means that we are now walking across the parent nodes. // In such a case we are only allowed to look into the ViewProviders if: // - We just crossed from child View to Parent View `previousTView != currentTView` // - AND the parent TNode is an Element. // This means that we just came from the Component's View and therefore are allowed to see // into the ViewProviders. (previousTView != currentTView && (tNode.type === 2 /* Element */)); // This special case happens when there is a @host on the inject and when we are searching // on the host element node. const isHostSpecialCase = (flags & InjectFlags.Host) && hostTElementNode === tNode; const injectableIdx = locateDirectiveOrProvider(tNode, currentTView, token, canAccessViewProviders, isHostSpecialCase); if (injectableIdx !== null) { return getNodeInjectable(lView, currentTView, injectableIdx, tNode); } else { return NOT_FOUND; } } /** * Searches for the given token among the node's directives and providers. * * @param tNode TNode on which directives are present. * @param tView The tView we are currently processing * @param token Provider token or type of a directive to look for. * @param canAccessViewProviders Whether view providers should be considered. * @param isHostSpecialCase Whether the host special case applies. * @returns Index of a found directive or provider, or null when none found. */ function locateDirectiveOrProvider(tNode, tView, token, canAccessViewProviders, isHostSpecialCase) { const nodeProviderIndexes = tNode.providerIndexes; const tInjectables = tView.data; const injectablesStart = nodeProviderIndexes & 1048575 /* ProvidersStartIndexMask */; const directivesStart = tNode.directiveStart; const directiveEnd = tNode.directiveEnd; const cptViewProvidersCount = nodeProviderIndexes >> 20 /* CptViewProvidersCountShift */; const startingIndex = canAccessViewProviders ? injectablesStart : injectablesStart + cptViewProvidersCount; // When the host special case applies, only the viewProviders and the component are visible const endIndex = isHostSpecialCase ? injectablesStart + cptViewProvidersCount : directiveEnd; for (let i = startingIndex; i < endIndex; i++) { const providerTokenOrDef = tInjectables[i]; if (i < directivesStart && token === providerTokenOrDef || i >= directivesStart && providerTokenOrDef.type === token) { return i; } } if (isHostSpecialCase) { const dirDef = tInjectables[directivesStart]; if (dirDef && isComponentDef(dirDef) && dirDef.type === token) { return directivesStart; } } return null; } /** * Retrieve or instantiate the injectable from the `LView` at particular `index`. * * This function checks to see if the value has already been instantiated and if so returns the * cached `injectable`. Otherwise if it detects that the value is still a factory it * instantiates the `injectable` and caches the value. */ function getNodeInjectable(lView, tView, index, tNode) { let value = lView[index]; const tData = tView.data; if (isFactory(value)) { const factory = value; if (factory.resolving) { throw new Error(`Circular dep for ${stringifyForError(tData[index])}`); } const previousIncludeViewProviders = setIncludeViewProviders(factory.canSeeViewProviders); factory.resolving = true; const previousInjectImplementation = factory.injectImpl ? setInjectImplementation(factory.injectImpl) : null; enterDI(lView, tNode); try { value = lView[index] = factory.factory(undefined, tData, lView, tNode); // This code path is hit for both directives and providers. // For perf reasons, we want to avoid searching for hooks on providers. // It does no harm to try (the hooks just won't exist), but the extra // checks are unnecessary and this is a hot path. So we check to see // if the index of the dependency is in the directive range for this // tNode. If it's not, we know it's a provider and skip hook registration. if (tView.firstCreatePass && index >= tNode.directiveStart) { ngDevMode && assertDirectiveDef(tData[index]); registerPreOrderHooks(index, tData[index], tView); } } finally { previousInjectImplementation !== null && setInjectImplementation(previousInjectImplementation); setIncludeViewProviders(previousIncludeViewProviders); factory.resolving = false; leaveDI(); } } return value; } /** * Returns the bit in an injector's bloom filter that should be used to determine whether or not * the directive might be provided by the injector. * * When a directive is public, it is added to the bloom filter and given a unique ID that can be * retrieved on the Type. When the directive isn't public or the token is not a directive `null` * is returned as the node injector can not possibly provide that token. * * @param token the injection token * @returns the matching bit to check in the bloom filter or `null` if the token is not known. * When the returned value is negative then it represents special values such as `Injector`. */ function bloomHashBitOrFactory(token) { ngDevMode && assertDefined(token, 'token must be defined'); if (typeof token === 'string') { return token.charCodeAt(0) || 0; } const tokenId = // First check with `hasOwnProperty` so we don't get an inherited ID. token.hasOwnProperty(NG_ELEMENT_ID) ? token[NG_ELEMENT_ID] : undefined; // Negative token IDs are used for special objects such as `Injector` return (typeof tokenId === 'number' && tokenId > 0) ? tokenId & BLOOM_MASK : tokenId; } function bloomHasToken(bloomHash, injectorIndex, injectorView) { // Create a mask that targets the specific bit associated with the directive we're looking for. // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding // to bit positions 0 - 31 in a 32 bit integer. const mask = 1 << bloomHash; const b7 = bloomHash & 0x80; const b6 = bloomHash & 0x40; const b5 = bloomHash & 0x20; // Our bloom filter size is 256 bits, which is eight 32-bit bloom filter buckets: // bf0 = [0 - 31], bf1 = [32 - 63], bf2 = [64 - 95], bf3 = [96 - 127], etc. // Get the bloom filter value from the appropriate bucket based on the directive's bloomBit. let value; if (b7) { value = b6 ? (b5 ? injectorView[injectorIndex + 7] : injectorView[injectorIndex + 6]) : (b5 ? injectorView[injectorIndex + 5] : injectorView[injectorIndex + 4]); } else { value = b6 ? (b5 ? injectorView[injectorIndex + 3] : injectorView[injectorIndex + 2]) : (b5 ? injectorView[injectorIndex + 1] : injectorView[injectorIndex]); } // If the bloom filter value has the bit corresponding to the directive's bloomBit flipped on, // this injector is a potential match. return !!(value & mask); } /** Returns true if flags prevent parent injector from being searched for tokens */ function shouldSearchParent(flags, isFirstHostTNode) { return !(flags & InjectFlags.Self) && !(flags & InjectFlags.Host && isFirstHostTNode); } class NodeInjector { constructor(_tNode, _lView) { this._tNode = _tNode; this._lView = _lView; } get(token, notFoundValue) { return getOrCreateInjectable(this._tNode, this._lView, token, undefined, notFoundValue); } } /** * @codeGenApi */ function ɵɵgetFactoryOf(type) { const typeAny = type; if (isForwardRef(type)) { return (() => { const factory = ɵɵgetFactoryOf(resolveForwardRef(typeAny)); return factory ? factory() : null; }); } let factory = getFactoryDef(typeAny); if (factory === null) { const injectorDef = getInjectorDef(typeAny); factory = injectorDef && injectorDef.factory; } return factory || null; } /** * @codeGenApi */ function ɵɵgetInheritedFactory(type) { return noSideEffects(() => { const ownConstructor = type.prototype.constructor; const ownFactory = ownConstructor[NG_FACTORY_DEF] || ɵɵgetFactoryOf(ownConstructor); const objectPrototype = Object.prototype; let parent = Object.getPrototypeOf(type.prototype).constructor; // Go up the prototype until we hit `Object`. while (parent && parent !== objectPrototype) { const factory = parent[NG_FACTORY_DEF] || ɵɵgetFactoryOf(parent); // If we hit something that has a factory and the factory isn't the same as the type, // we've found the inherited factory. Note the check that the factory isn't the type's // own factory is redundant in most cases, but if the user has custom decorators on the // class, this lookup will start one level down in the prototype chain, causing us to // find the own factory first and potentially triggering an infinite loop downstream. if (factory && factory !== ownFactory) { return factory; } parent = Object.getPrototypeOf(parent); } // There is no factory defined. Either this was improper usage of inheritance // (no Angular decorator on the superclass) or there is no constructor at all // in the inheritance chain. Since the two cases cannot be distinguished, the // latter has to be assumed. return t => new t(); }); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const ERROR_TYPE = 'ngType'; const ERROR_DEBUG_CONTEXT = 'ngDebugContext'; const ERROR_ORIGINAL_ERROR = 'ngOriginalError'; const ERROR_LOGGER = 'ngErrorLogger'; function wrappedError(message, originalError) { const msg = `${message} caused by: ${originalError instanceof Error ? originalError.message : originalError}`; const error = Error(msg); error[ERROR_ORIGINAL_ERROR] = originalError; return error; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function getType(error) { return error[ERROR_TYPE]; } function getDebugContext(error) { return error[ERROR_DEBUG_CONTEXT]; } function getOriginalError(error) { return error[ERROR_ORIGINAL_ERROR]; } function getErrorLogger(error) { return error[ERROR_LOGGER] || defaultErrorLogger; } function defaultErrorLogger(console, ...values) { console.error(...values); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Provides a hook for centralized exception handling. * * The default implementation of `ErrorHandler` prints error messages to the `console`. To * intercept error handling, write a custom exception handler that replaces this default as * appropriate for your app. * * @usageNotes * ### Example * * ``` * class MyErrorHandler implements ErrorHandler { * handleError(error) { * // do something with the exception * } * } * * @NgModule({ * providers: [{provide: ErrorHandler, useClass: MyErrorHandler}] * }) * class MyModule {} * ``` * * @publicApi */ class ErrorHandler { constructor() { /** * @internal */ this._console = console; } handleError(error) { const originalError = this._findOriginalError(error); const context = this._findContext(error); // Note: Browser consoles show the place from where console.error was called. // We can use this to give users additional information about the error. const errorLogger = getErrorLogger(error); errorLogger(this._console, `ERROR`, error); if (originalError) { errorLogger(this._console, `ORIGINAL ERROR`, originalError); } if (context) { errorLogger(this._console, 'ERROR CONTEXT', context); } } /** @internal */ _findContext(error) { if (error) { return getDebugContext(error) ? getDebugContext(error) : this._findContext(getOriginalError(error)); } return null; } /** @internal */ _findOriginalError(error) { let e = getOriginalError(error); while (e && getOriginalError(e)) { e = getOriginalError(e); } return e; } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Defines a schema that allows an NgModule to contain the following: * - Non-Angular elements named with dash case (`-`). * - Element properties named with dash case (`-`). * Dash case is the naming convention for custom elements. * * @publicApi */ const CUSTOM_ELEMENTS_SCHEMA = { name: 'custom-elements' }; /** * Defines a schema that allows any property on any element. * * @publicApi */ const NO_ERRORS_SCHEMA = { name: 'no-errors-schema' }; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class SafeValueImpl { constructor(changingThisBreaksApplicationSecurity) { this.changingThisBreaksApplicationSecurity = changingThisBreaksApplicationSecurity; } toString() { return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}` + ` (see http://g.co/ng/security#xss)`; } } class SafeHtmlImpl extends SafeValueImpl { getTypeName() { return "HTML" /* Html */; } } class SafeStyleImpl extends SafeValueImpl { getTypeName() { return "Style" /* Style */; } } class SafeScriptImpl extends SafeValueImpl { getTypeName() { return "Script" /* Script */; } } class SafeUrlImpl extends SafeValueImpl { getTypeName() { return "URL" /* Url */; } } class SafeResourceUrlImpl extends SafeValueImpl { getTypeName() { return "ResourceURL" /* ResourceUrl */; } } function unwrapSafeValue(value) { return value instanceof SafeValueImpl ? value.changingThisBreaksApplicationSecurity : value; } function allowSanitizationBypassAndThrow(value, type) { const actualType = getSanitizationBypassType(value); if (actualType != null && actualType !== type) { // Allow ResourceURLs in URL contexts, they are strictly more trusted. if (actualType === "ResourceURL" /* ResourceUrl */ && type === "URL" /* Url */) return true; throw new Error(`Required a safe ${type}, got a ${actualType} (see http://g.co/ng/security#xss)`); } return actualType === type; } function getSanitizationBypassType(value) { return value instanceof SafeValueImpl && value.getTypeName() || null; } /** * Mark `html` string as trusted. * * This function wraps the trusted string in `String` and brands it in a way which makes it * recognizable to {@link htmlSanitizer} to be trusted implicitly. * * @param trustedHtml `html` string which needs to be implicitly trusted. * @returns a `html` which has been branded to be implicitly trusted. */ function bypassSanitizationTrustHtml(trustedHtml) { return new SafeHtmlImpl(trustedHtml); } /** * Mark `style` string as trusted. * * This function wraps the trusted string in `String` and brands it in a way which makes it * recognizable to {@link styleSanitizer} to be trusted implicitly. * * @param trustedStyle `style` string which needs to be implicitly trusted. * @returns a `style` hich has been branded to be implicitly trusted. */ function bypassSanitizationTrustStyle(trustedStyle) { return new SafeStyleImpl(trustedStyle); } /** * Mark `script` string as trusted. * * This function wraps the trusted string in `String` and brands it in a way which makes it * recognizable to {@link scriptSanitizer} to be trusted implicitly. * * @param trustedScript `script` string which needs to be implicitly trusted. * @returns a `script` which has been branded to be implicitly trusted. */ function bypassSanitizationTrustScript(trustedScript) { return new SafeScriptImpl(trustedScript); } /** * Mark `url` string as trusted. * * This function wraps the trusted string in `String` and brands it in a way which makes it * recognizable to {@link urlSanitizer} to be trusted implicitly. * * @param trustedUrl `url` string which needs to be implicitly trusted. * @returns a `url` which has been branded to be implicitly trusted. */ function bypassSanitizationTrustUrl(trustedUrl) { return new SafeUrlImpl(trustedUrl); } /** * Mark `url` string as trusted. * * This function wraps the trusted string in `String` and brands it in a way which makes it * recognizable to {@link resourceUrlSanitizer} to be trusted implicitly. * * @param trustedResourceUrl `url` string which needs to be implicitly trusted. * @returns a `url` which has been branded to be implicitly trusted. */ function bypassSanitizationTrustResourceUrl(trustedResourceUrl) { return new SafeResourceUrlImpl(trustedResourceUrl); } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * This file is used to control if the default rendering pipeline should be `ViewEngine` or `Ivy`. * * For more information on how to run and debug tests with either Ivy or View Engine (legacy), * please see [BAZEL.md](./docs/BAZEL.md). */ let _devMode = true; let _runModeLocked = false; /** * Returns whether Angular is in development mode. After called once, * the value is locked and won't change any more. * * By default, this is true, unless a user calls `enableProdMode` before calling this. * * @publicApi */ function isDevMode() { _runModeLocked = true; return _devMode; } /** * Disable Angular's development mode, which turns off assertions and other * checks within the framework. * * One important assertion this disables verifies that a change detection pass * does not result in additional changes to any bindings (also known as * unidirectional data flow). * * @publicApi */ function enableProdMode() { if (_runModeLocked) { throw new Error('Cannot enable prod mode after platform setup.'); } _devMode = false; } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * This helper is used to get hold of an inert tree of DOM elements containing dirty HTML * that needs sanitizing. * Depending upon browser support we use one of two strategies for doing this. * Default: DOMParser strategy * Fallback: InertDocument strategy */ function getInertBodyHelper(defaultDoc) { return isDOMParserAvailable() ? new DOMParserHelper() : new InertDocumentHelper(defaultDoc); } /** * Uses DOMParser to create and fill an inert body element. * This is the default strategy used in browsers that support it. */ class DOMParserHelper { getInertBodyElement(html) { // We add these extra elements to ensure that the rest of the content is parsed as expected // e.g. leading whitespace is maintained and tags like `` do not get hoisted to the // `` tag. Note that the `` tag is closed implicitly to prevent unclosed tags // in `html` from consuming the otherwise explicit `` tag. html = '' + html; try { const body = new window.DOMParser().parseFromString(html, 'text/html').body; body.removeChild(body.firstChild); return body; } catch (_a) { return null; } } } /** * Use an HTML5 `template` element, if supported, or an inert body element created via * `createHtmlDocument` to create and fill an inert DOM element. * This is the fallback strategy if the browser does not support DOMParser. */ class InertDocumentHelper { constructor(defaultDoc) { this.defaultDoc = defaultDoc; this.inertDocument = this.defaultDoc.implementation.createHTMLDocument('sanitization-inert'); if (this.inertDocument.body == null) { // usually there should be only one body element in the document, but IE doesn't have any, so // we need to create one. const inertHtml = this.inertDocument.createElement('html'); this.inertDocument.appendChild(inertHtml); const inertBodyElement = this.inertDocument.createElement('body'); inertHtml.appendChild(inertBodyElement); } } getInertBodyElement(html) { // Prefer using